login-action/dist/index.js
CrazyMax b312880b69
Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-04-28 07:50:23 +02:00

17 lines
No EOL
739 KiB
JavaScript
Generated
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=i(o(2037));const a=o(5278);function issueCommand(e,t,o){const n=new Command(e,t,o);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,o){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=o}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const o in this.properties){if(this.properties.hasOwnProperty(o)){const n=this.properties[o];if(n){if(t){t=false}else{e+=","}e+=`${o}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return a.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const a=o(7351);const c=o(717);const l=o(5278);const u=i(o(2037));const d=i(o(1017));const p=o(8041);var m;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(m=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const o=l.toCommandValue(t);process.env[e]=o;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${o}${u.EOL}${t}`;c.issueCommand("ENV",n)}else{a.issueCommand("set-env",{name:e},o)}}t.exportVariable=exportVariable;function setSecret(e){a.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){c.issueCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const o=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!o){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return o}return o.trim()}t.getInput=getInput;function getMultilineInput(e,t){const o=getInput(e,t).split("\n").filter((e=>e!==""));return o}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const o=["true","True","TRUE"];const n=["false","False","FALSE"];const r=getInput(e,t);if(o.includes(r))return true;if(n.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(u.EOL);a.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=m.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){a.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){a.issue("group",e)}t.startGroup=startGroup;function endGroup(){a.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let o;try{o=yield t()}finally{endGroup()}return o}))}t.group=group;function saveState(e,t){a.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=i(o(7147));const a=i(o(2037));const c=o(5278);function issueCommand(e,t){const o=process.env[`GITHUB_${e}`];if(!o){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(o)){throw new Error(`Missing file at path: ${o}`)}s.appendFileSync(o,`${c.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,o){"use strict";var n=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=o(9925);const i=o(3702);const s=o(2186);class OidcClient{static createHttpClient(e=true,t=10){const o={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],o)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const o=OidcClient.createHttpClient();const n=yield o.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const r=(t=n.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const o=encodeURIComponent(e);t=`${t}&audience=${o}`}s.debug(`ID token url is ${t}`);const o=yield OidcClient.getCall(t);s.setSecret(o);return o}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const a=o(1576);const c=i(o(8159));function exec(e,t,o){return s(this,void 0,void 0,(function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=n[0];t=n.slice(1).concat(t||[]);const i=new c.ToolRunner(r,t,o);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,o){var n,r;return s(this,void 0,void 0,(function*(){let i="";let s="";const c=new a.StringDecoder("utf8");const l=new a.StringDecoder("utf8");const u=(n=o===null||o===void 0?void 0:o.listeners)===null||n===void 0?void 0:n.stdout;const d=(r=o===null||o===void 0?void 0:o.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{s+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{i+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},o===null||o===void 0?void 0:o.listeners),{stdout:stdOutListener,stderr:stdErrListener});const m=yield exec(e,t,Object.assign(Object.assign({},o),{listeners:p}));i+=c.end();s+=l.end();return{exitCode:m,stdout:i,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const a=i(o(2037));const c=i(o(2361));const l=i(o(2081));const u=i(o(1017));const d=i(o(7436));const p=i(o(1962));const m=o(9512);const f=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,o){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=o||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const o=this._getSpawnFileName();const n=this._getSpawnArgs(e);let r=t?"":"[command]";if(f){if(this._isCmdFile()){r+=o;for(const e of n){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${o}"`;for(const e of n){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(o);for(const e of n){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=o;for(const e of n){r+=` ${e}`}}return r}_processLineBuffer(e,t,o){try{let n=t+e.toString();let r=n.indexOf(a.EOL);while(r>-1){const e=n.substring(0,r);o(e);n=n.substring(r+a.EOL.length);r=n.indexOf(a.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const o of this.args){t+=" ";t+=e.windowsVerbatimArguments?o:this._windowsQuoteCmdArg(o)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let o=false;for(const n of e){if(t.some((e=>e===n))){o=true;break}}if(!o){return e}let n='"';let r=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(r&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){r=true;n+='"'}else{r=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let o=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(o&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){o=true;t+="\\"}else{o=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const o={};o.cwd=e.cwd;o.env=e.env;o["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){o.argv0=`"${t}"`}return o}exec(){return s(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const o=this._cloneExecOptions(this.options);if(!o.silent&&o.outStream){o.outStream.write(this._getCommandString(o)+a.EOL)}const n=new ExecState(o,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const i=l.spawn(r,this._getSpawnArgs(o),this._getSpawnOptions(this.options,r));let s="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!o.silent&&o.outStream){o.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(i.stderr){i.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!o.silent&&o.errStream&&o.outStream){const t=o.failOnStdErr?o.errStream:o.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));i.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));i.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((o,n)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}i.removeAllListeners();if(o){t(o)}else{e(n)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let o=false;let n=false;let r="";function append(e){if(n&&e!=='"'){r+="\\"}r+=e;n=false}for(let i=0;i<e.length;i++){const s=e.charAt(i);if(s==='"'){if(!n){o=!o}else{append(s)}continue}if(s==="\\"&&n){append(s);continue}if(s==="\\"&&o){n=true;continue}if(s===" "&&!o){if(r.length>0){t.push(r);r=""}continue}append(s)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=m.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,o){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,o){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,o){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(3685);const r=o(5687);const i=o(6443);let s;var a;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(a=t.HttpCodes||(t.HttpCodes={}));var c;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(c=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=i.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const u=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect];const d=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const m=10;const f=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let o=Buffer.alloc(0);this.message.on("data",(e=>{o=Buffer.concat([o,e])}));this.message.on("end",(()=>{e(o.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,o){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=o;if(o){if(o.ignoreSslError!=null){this._ignoreSslError=o.ignoreSslError}this._socketTimeout=o.socketTimeout;if(o.allowRedirects!=null){this._allowRedirects=o.allowRedirects}if(o.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=o.allowRedirectDowngrade}if(o.maxRedirects!=null){this._maxRedirects=Math.max(o.maxRedirects,0)}if(o.keepAlive!=null){this._keepAlive=o.keepAlive}if(o.allowRetries!=null){this._allowRetries=o.allowRetries}if(o.maxRetries!=null){this._maxRetries=o.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,o){return this.request("POST",e,t,o||{})}patch(e,t,o){return this.request("PATCH",e,t,o||{})}put(e,t,o){return this.request("PUT",e,t,o||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,o,n){return this.request(e,t,o,n)}async getJson(e,t={}){t[c.Accept]=this._getExistingOrDefaultHeader(t,c.Accept,l.ApplicationJson);let o=await this.get(e,t);return this._processResponse(o,this.requestOptions)}async postJson(e,t,o={}){let n=JSON.stringify(t,null,2);o[c.Accept]=this._getExistingOrDefaultHeader(o,c.Accept,l.ApplicationJson);o[c.ContentType]=this._getExistingOrDefaultHeader(o,c.ContentType,l.ApplicationJson);let r=await this.post(e,n,o);return this._processResponse(r,this.requestOptions)}async putJson(e,t,o={}){let n=JSON.stringify(t,null,2);o[c.Accept]=this._getExistingOrDefaultHeader(o,c.Accept,l.ApplicationJson);o[c.ContentType]=this._getExistingOrDefaultHeader(o,c.ContentType,l.ApplicationJson);let r=await this.put(e,n,o);return this._processResponse(r,this.requestOptions)}async patchJson(e,t,o={}){let n=JSON.stringify(t,null,2);o[c.Accept]=this._getExistingOrDefaultHeader(o,c.Accept,l.ApplicationJson);o[c.ContentType]=this._getExistingOrDefaultHeader(o,c.ContentType,l.ApplicationJson);let r=await this.patch(e,n,o);return this._processResponse(r,this.requestOptions)}async request(e,t,o,n){if(this._disposed){throw new Error("Client has already been disposed.")}let r=new URL(t);let i=this._prepareRequest(e,r,n);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let c=0;let l;while(c<s){l=await this.requestRaw(i,o);if(l&&l.message&&l.message.statusCode===a.Unauthorized){let e;for(let t=0;t<this.handlers.length;t++){if(this.handlers[t].canHandleAuthentication(l)){e=this.handlers[t];break}}if(e){return e.handleAuthentication(this,i,o)}else{return l}}let t=this._maxRedirects;while(u.indexOf(l.message.statusCode)!=-1&&this._allowRedirects&&t>0){const s=l.message.headers["location"];if(!s){break}let a=new URL(s);if(r.protocol=="https:"&&r.protocol!=a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await l.readBody();if(a.hostname!==r.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,a,n);l=await this.requestRaw(i,o);t--}if(d.indexOf(l.message.statusCode)==-1){return l}c+=1;if(c<s){await l.readBody();await this._performExponentialBackoff(c)}}return l}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return new Promise(((o,n)=>{let callbackForResult=function(e,t){if(e){n(e)}o(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,o){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;let handleResult=(e,t)=>{if(!r){r=true;o(e,t)}};let i=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));i.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,o){const i={};i.parsedUrl=t;const s=i.parsedUrl.protocol==="https:";i.httpModule=s?r:n;const a=s?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):a;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(o);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(i.options)}))}return i}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,o)=>(t[o.toLowerCase()]=e[o],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,o){const lowercaseKeys=e=>Object.keys(e).reduce(((t,o)=>(t[o.toLowerCase()]=e[o],t)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||o}_getAgent(e){let t;let a=i.getProxyUrl(e);let c=a&&a.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const l=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(c){if(!s){s=o(4294)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{...(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`},host:a.hostname,port:a.port}};let n;const r=a.protocol==="https:";if(l){n=r?s.httpsOverHttps:s.httpsOverHttp}else{n=r?s.httpOverHttps:s.httpOverHttp}t=n(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=l?new r.Agent(e):new n.Agent(e);this._agent=t}if(!t){t=l?r.globalAgent:n.globalAgent}if(l&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=f*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(o,n)=>{const r=e.message.statusCode;const i={statusCode:r,result:null,headers:{}};if(r==a.NotFound){o(i)}let s;let c;try{c=await e.readBody();if(c&&c.length>0){if(t&&t.deserializeDates){s=JSON.parse(c,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(c)}i.result=s}i.headers=e.message.headers}catch(e){}if(r>299){let e;if(s&&s.message){e=s.message}else if(c&&c.length>0){e=c}else{e="Failed request: ("+r+")"}let t=new HttpClientError(e,r);t.result=i.result;n(t)}else{o(i)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let o;if(checkBypass(e)){return o}let n;if(t){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){o=new URL(n)}return o}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}let n=[e.hostname.toUpperCase()];if(typeof o==="number"){n.push(`${n[0]}:${o}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var s=this&&this.__awaiter||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())}))};var a;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=i(o(7147));const l=i(o(1017));a=c.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,o=false){return s(this,void 0,void 0,(function*(){const n=o?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,o){return s(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(o.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const r=e;for(const i of o){e=r+i;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const o=l.dirname(e);const n=l.basename(e).toUpperCase();for(const r of yield t.readdir(o)){if(n===r.toUpperCase()){e=l.join(o,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const a=o(9491);const c=i(o(2081));const l=i(o(1017));const u=o(3837);const d=i(o(1962));const p=u.promisify(c.exec);const m=u.promisify(c.execFile);function cp(e,t,o={}){return s(this,void 0,void 0,(function*(){const{force:n,recursive:r,copySourceDirectory:i}=readCopyOptions(o);const s=(yield d.exists(t))?yield d.stat(t):null;if(s&&s.isFile()&&!n){return}const a=s&&s.isDirectory()&&i?l.join(t,l.basename(e)):t;if(!(yield d.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield d.stat(e);if(c.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,a,0,n)}}else{if(l.relative(e,a)===""){throw new Error(`'${a}' and '${e}' are the same file`)}yield copyFile(e,a,n)}}))}t.cp=cp;function mv(e,t,o={}){return s(this,void 0,void 0,(function*(){if(yield d.exists(t)){let n=true;if(yield d.isDirectory(t)){t=l.join(t,l.basename(e));n=yield d.exists(t)}if(n){if(o.force==null||o.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(l.dirname(t));yield d.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(d.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=d.getCmdPath();if(yield d.isDirectory(e,true)){yield p(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield p(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield d.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield d.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield m(`rm`,[`-rf`,`${e}`])}else{yield d.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){a.ok(e,"a path argument must be provided");yield d.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(d.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const o=yield findInPath(e);if(o&&o.length>0){return o[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(d.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(l.delimiter)){if(e){t.push(e)}}}if(d.isRooted(e)){const o=yield d.tryGetExecutablePath(e,t);if(o){return[o]}return[]}if(e.includes(l.sep)){return[]}const o=[];if(process.env.PATH){for(const e of process.env.PATH.split(l.delimiter)){if(e){o.push(e)}}}const n=[];for(const r of o){const o=yield d.tryGetExecutablePath(l.join(r,e),t);if(o){n.push(o)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const o=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:o,copySourceDirectory:n}}function cpDirRecursive(e,t,o,n){return s(this,void 0,void 0,(function*(){if(o>=255)return;o++;yield mkdirP(t);const r=yield d.readdir(e);for(const i of r){const r=`${e}/${i}`;const s=`${t}/${i}`;const a=yield d.lstat(r);if(a.isDirectory()){yield cpDirRecursive(r,s,o,n)}else{yield copyFile(r,s,n)}}yield d.chmod(t,(yield d.stat(e)).mode)}))}function copyFile(e,t,o){return s(this,void 0,void 0,(function*(){if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t);yield d.unlink(t)}catch(e){if(e.code==="EPERM"){yield d.chmod(t,"0666");yield d.unlink(t)}}const o=yield d.readlink(e);yield d.symlink(o,t,d.IS_WINDOWS?"junction":null)}else if(!(yield d.exists(t))||o){yield d.copyFile(e,t)}}))}},6087:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLIC=void 0;const n=o(9464);const r=o(6517);const i=o(5490);const s=o(9633);const a=o(467);const c=o(2528);const l=o(2776);const u=o(7670);const d=o(8696);const p=o(2218);const m=o(2674);const f=o(6518);const g=o(3189);const y=o(8562);const h=o(3675);const v=o(575);const w=o(6486);const E=o(6805);const S=o(3753);const C=o(1796);const x=o(9869);const R=o(6689);const _=o(7429);const b=o(608);class ECRPUBLIC extends b.ECRPUBLICClient{batchCheckLayerAvailability(e,t,o){const r=new n.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}batchDeleteImage(e,t,o){const n=new r.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}completeLayerUpload(e,t,o){const n=new i.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}createRepository(e,t,o){const n=new s.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deleteRepository(e,t,o){const n=new a.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deleteRepositoryPolicy(e,t,o){const n=new c.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeImages(e,t,o){const n=new l.DescribeImagesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeImageTags(e,t,o){const n=new u.DescribeImageTagsCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeRegistries(e,t,o){const n=new d.DescribeRegistriesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeRepositories(e,t,o){const n=new p.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getAuthorizationToken(e,t,o){const n=new m.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getRegistryCatalogData(e,t,o){const n=new f.GetRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getRepositoryCatalogData(e,t,o){const n=new g.GetRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getRepositoryPolicy(e,t,o){const n=new y.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}initiateLayerUpload(e,t,o){const n=new h.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}listTagsForResource(e,t,o){const n=new v.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putImage(e,t,o){const n=new w.PutImageCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putRegistryCatalogData(e,t,o){const n=new E.PutRegistryCatalogDataCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putRepositoryCatalogData(e,t,o){const n=new S.PutRepositoryCatalogDataCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}setRepositoryPolicy(e,t,o){const n=new C.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}tagResource(e,t,o){const n=new x.TagResourceCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}untagResource(e,t,o){const n=new R.UntagResourceCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}uploadLayerPart(e,t,o){const n=new _.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}}t.ECRPUBLIC=ECRPUBLIC},608:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICClient=void 0;const n=o(6153);const r=o(2245);const i=o(2545);const s=o(14);const a=o(6064);const c=o(4935);const l=o(4688);const u=o(4963);const d=o(9324);class ECRPUBLICClient extends u.Client{constructor(e){const t=d.getRuntimeConfig(e);const o=n.resolveRegionConfig(t);const u=n.resolveEndpointsConfig(o);const p=a.resolveRetryConfig(u);const m=i.resolveHostHeaderConfig(p);const f=c.resolveAwsAuthConfig(m);const g=l.resolveUserAgentConfig(f);super(g);this.config=g;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(c.getAwsAuthPlugin(this.config));this.middlewareStack.use(l.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.ECRPUBLICClient=ECRPUBLICClient},9464:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class BatchCheckLayerAvailabilityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="BatchCheckLayerAvailabilityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchCheckLayerAvailabilityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchCheckLayerAvailabilityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},6517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class BatchDeleteImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="BatchDeleteImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchDeleteImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchDeleteImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchDeleteImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchDeleteImageCommand(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},5490:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class CompleteLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="CompleteLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CompleteLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CompleteLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1CompleteLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CompleteLayerUploadCommand(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},9633:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class CreateRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="CreateRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CreateRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CreateRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1CreateRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CreateRepositoryCommand(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},467:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class DeleteRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryCommand(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},2528:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class DeleteRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DeleteRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},7670:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageTagsCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class DescribeImageTagsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeImageTagsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImageTagsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageTagsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImageTagsCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImageTagsCommand(e,t)}}t.DescribeImageTagsCommand=DescribeImageTagsCommand},2776:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class DescribeImagesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeImagesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImagesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImagesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImagesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImagesCommand(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},8696:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistriesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class DescribeRegistriesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeRegistriesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRegistriesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRegistriesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRegistriesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRegistriesCommand(e,t)}}t.DescribeRegistriesCommand=DescribeRegistriesCommand},2218:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class DescribeRepositoriesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="DescribeRepositoriesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRepositoriesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRepositoriesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRepositoriesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRepositoriesCommand(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},2674:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class GetAuthorizationTokenCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetAuthorizationTokenCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetAuthorizationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetAuthorizationTokenResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetAuthorizationTokenCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetAuthorizationTokenCommand(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},6518:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class GetRegistryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetRegistryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRegistryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRegistryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRegistryCatalogDataCommand(e,t)}}t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand},3189:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryCatalogDataCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class GetRepositoryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetRepositoryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRepositoryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRepositoryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRepositoryCatalogDataCommand(e,t)}}t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand},8562:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class GetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="GetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRepositoryPolicyCommand(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},3675:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class InitiateLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="InitiateLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.InitiateLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.InitiateLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1InitiateLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1InitiateLayerUploadCommand(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},575:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class ListTagsForResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="ListTagsForResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListTagsForResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListTagsForResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1ListTagsForResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1ListTagsForResourceCommand(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},6486:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class PutImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="PutImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageCommand(e,t)}}t.PutImageCommand=PutImageCommand},6805:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryCatalogDataCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class PutRegistryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="PutRegistryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRegistryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRegistryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRegistryCatalogDataCommand(e,t)}}t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand},3753:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRepositoryCatalogDataCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class PutRepositoryCatalogDataCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="PutRepositoryCatalogDataCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRepositoryCatalogDataRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRepositoryCatalogDataResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRepositoryCatalogDataCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRepositoryCatalogDataCommand(e,t)}}t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand},1796:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class SetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="SetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.SetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.SetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1SetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1SetRepositoryPolicyCommand(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},9869:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class TagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="TagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.TagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.TagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1TagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1TagResourceCommand(e,t)}}t.TagResourceCommand=TagResourceCommand},6689:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class UntagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="UntagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UntagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UntagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1UntagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UntagResourceCommand(e,t)}}t.UntagResourceCommand=UntagResourceCommand},7429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const n=o(3631);const r=o(4963);const i=o(8818);const s=o(4170);class UploadLayerPartCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRPUBLICClient";const c="UploadLayerPartCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UploadLayerPartRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UploadLayerPartResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1UploadLayerPartCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UploadLayerPartCommand(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},5506:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9464),t);n.__exportStar(o(6517),t);n.__exportStar(o(5490),t);n.__exportStar(o(9633),t);n.__exportStar(o(467),t);n.__exportStar(o(2528),t);n.__exportStar(o(7670),t);n.__exportStar(o(2776),t);n.__exportStar(o(8696),t);n.__exportStar(o(2218),t);n.__exportStar(o(2674),t);n.__exportStar(o(6518),t);n.__exportStar(o(3189),t);n.__exportStar(o(8562),t);n.__exportStar(o(3675),t);n.__exportStar(o(575),t);n.__exportStar(o(6486),t);n.__exportStar(o(6805),t);n.__exportStar(o(3753),t);n.__exportStar(o(1796),t);n.__exportStar(o(9869),t);n.__exportStar(o(6689),t);n.__exportStar(o(7429),t)},8593:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const n=o(6153);const r={};const i={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.amazonaws.com",tags:[]},{hostname:"api.ecr-public-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-public-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr-public.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.amazonaws.com.cn",tags:[]},{hostname:"api.ecr-public-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"api.ecr-public-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"api.ecr-public.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.c2s.ic.gov",tags:[]},{hostname:"api.ecr-public-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.sc2s.sgov.gov",tags:[]},{hostname:"api.ecr-public-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr-public.{region}.amazonaws.com",tags:[]},{hostname:"api.ecr-public-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-public-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr-public.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>n.getRegionInfo(e,{...t,signingService:"ecr-public",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},2308:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const n=o(4351);n.__exportStar(o(6087),t);n.__exportStar(o(608),t);n.__exportStar(o(5506),t);n.__exportStar(o(183),t);n.__exportStar(o(5945),t);var r=o(8278);Object.defineProperty(t,"ECRPUBLICServiceException",{enumerable:true,get:function(){return r.ECRPUBLICServiceException}})},8278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const n=o(4963);class ECRPUBLICServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},183:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(8818),t)},8818:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RegistryAliasStatus=t.DescribeRegistriesRequest=t.DescribeImageTagsResponse=t.ImageTagDetail=t.ReferencedImageDetail=t.DescribeImageTagsRequest=t.ImageNotFoundException=t.DescribeImagesResponse=t.ImageDetail=t.DescribeImagesRequest=t.RepositoryPolicyNotFoundException=t.DeleteRepositoryPolicyResponse=t.DeleteRepositoryPolicyRequest=t.RepositoryNotEmptyException=t.DeleteRepositoryResponse=t.DeleteRepositoryRequest=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.CreateRepositoryResponse=t.Repository=t.RepositoryCatalogData=t.CreateRepositoryRequest=t.Tag=t.RepositoryCatalogDataInput=t.UploadNotFoundException=t.UnsupportedCommandException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.CompleteLayerUploadResponse=t.CompleteLayerUploadRequest=t.BatchDeleteImageResponse=t.ImageFailure=t.ImageFailureCode=t.BatchDeleteImageRequest=t.ImageIdentifier=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=t.BatchCheckLayerAvailabilityResponse=t.Layer=t.LayerAvailability=t.LayerFailure=t.LayerFailureCode=t.BatchCheckLayerAvailabilityRequest=t.AuthorizationData=void 0;t.UploadLayerPartResponse=t.UploadLayerPartRequest=t.UntagResourceResponse=t.UntagResourceRequest=t.TagResourceResponse=t.TagResourceRequest=t.SetRepositoryPolicyResponse=t.SetRepositoryPolicyRequest=t.PutRepositoryCatalogDataResponse=t.PutRepositoryCatalogDataRequest=t.PutRegistryCatalogDataResponse=t.PutRegistryCatalogDataRequest=t.ReferencedImagesNotFoundException=t.PutImageResponse=t.PutImageRequest=t.ListTagsForResourceResponse=t.ListTagsForResourceRequest=t.LayersNotFoundException=t.InvalidLayerPartException=t.InitiateLayerUploadResponse=t.InitiateLayerUploadRequest=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.Image=t.GetRepositoryPolicyResponse=t.GetRepositoryPolicyRequest=t.GetRepositoryCatalogDataResponse=t.GetRepositoryCatalogDataRequest=t.GetRegistryCatalogDataResponse=t.RegistryCatalogData=t.GetRegistryCatalogDataRequest=t.GetAuthorizationTokenResponse=t.GetAuthorizationTokenRequest=t.DescribeRepositoriesResponse=t.DescribeRepositoriesRequest=t.DescribeRegistriesResponse=t.Registry=t.RegistryAlias=void 0;const n=o(8278);var r;(function(e){e.filterSensitiveLog=e=>({...e})})(r=t.AuthorizationData||(t.AuthorizationData={}));var i;(function(e){e.filterSensitiveLog=e=>({...e})})(i=t.BatchCheckLayerAvailabilityRequest||(t.BatchCheckLayerAvailabilityRequest={}));var s;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(s=t.LayerFailureCode||(t.LayerFailureCode={}));var a;(function(e){e.filterSensitiveLog=e=>({...e})})(a=t.LayerFailure||(t.LayerFailure={}));var c;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(c=t.LayerAvailability||(t.LayerAvailability={}));var l;(function(e){e.filterSensitiveLog=e=>({...e})})(l=t.Layer||(t.Layer={}));var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.BatchCheckLayerAvailabilityResponse||(t.BatchCheckLayerAvailabilityResponse={}));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;var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.ImageIdentifier||(t.ImageIdentifier={}));var p;(function(e){e.filterSensitiveLog=e=>({...e})})(p=t.BatchDeleteImageRequest||(t.BatchDeleteImageRequest={}));var m;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(m=t.ImageFailureCode||(t.ImageFailureCode={}));var f;(function(e){e.filterSensitiveLog=e=>({...e})})(f=t.ImageFailure||(t.ImageFailure={}));var g;(function(e){e.filterSensitiveLog=e=>({...e})})(g=t.BatchDeleteImageResponse||(t.BatchDeleteImageResponse={}));var y;(function(e){e.filterSensitiveLog=e=>({...e})})(y=t.CompleteLayerUploadRequest||(t.CompleteLayerUploadRequest={}));var h;(function(e){e.filterSensitiveLog=e=>({...e})})(h=t.CompleteLayerUploadResponse||(t.CompleteLayerUploadResponse={}));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 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;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;var v;(function(e){e.filterSensitiveLog=e=>({...e})})(v=t.RepositoryCatalogDataInput||(t.RepositoryCatalogDataInput={}));var w;(function(e){e.filterSensitiveLog=e=>({...e})})(w=t.Tag||(t.Tag={}));var E;(function(e){e.filterSensitiveLog=e=>({...e})})(E=t.CreateRepositoryRequest||(t.CreateRepositoryRequest={}));var S;(function(e){e.filterSensitiveLog=e=>({...e})})(S=t.RepositoryCatalogData||(t.RepositoryCatalogData={}));var C;(function(e){e.filterSensitiveLog=e=>({...e})})(C=t.Repository||(t.Repository={}));var x;(function(e){e.filterSensitiveLog=e=>({...e})})(x=t.CreateRepositoryResponse||(t.CreateRepositoryResponse={}));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;var R;(function(e){e.filterSensitiveLog=e=>({...e})})(R=t.DeleteRepositoryRequest||(t.DeleteRepositoryRequest={}));var _;(function(e){e.filterSensitiveLog=e=>({...e})})(_=t.DeleteRepositoryResponse||(t.DeleteRepositoryResponse={}));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;var b;(function(e){e.filterSensitiveLog=e=>({...e})})(b=t.DeleteRepositoryPolicyRequest||(t.DeleteRepositoryPolicyRequest={}));var P;(function(e){e.filterSensitiveLog=e=>({...e})})(P=t.DeleteRepositoryPolicyResponse||(t.DeleteRepositoryPolicyResponse={}));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;var I;(function(e){e.filterSensitiveLog=e=>({...e})})(I=t.DescribeImagesRequest||(t.DescribeImagesRequest={}));var A;(function(e){e.filterSensitiveLog=e=>({...e})})(A=t.ImageDetail||(t.ImageDetail={}));var T;(function(e){e.filterSensitiveLog=e=>({...e})})(T=t.DescribeImagesResponse||(t.DescribeImagesResponse={}));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;var N;(function(e){e.filterSensitiveLog=e=>({...e})})(N=t.DescribeImageTagsRequest||(t.DescribeImageTagsRequest={}));var L;(function(e){e.filterSensitiveLog=e=>({...e})})(L=t.ReferencedImageDetail||(t.ReferencedImageDetail={}));var D;(function(e){e.filterSensitiveLog=e=>({...e})})(D=t.ImageTagDetail||(t.ImageTagDetail={}));var O;(function(e){e.filterSensitiveLog=e=>({...e})})(O=t.DescribeImageTagsResponse||(t.DescribeImageTagsResponse={}));var z;(function(e){e.filterSensitiveLog=e=>({...e})})(z=t.DescribeRegistriesRequest||(t.DescribeRegistriesRequest={}));var j;(function(e){e["ACTIVE"]="ACTIVE";e["PENDING"]="PENDING";e["REJECTED"]="REJECTED"})(j=t.RegistryAliasStatus||(t.RegistryAliasStatus={}));var M;(function(e){e.filterSensitiveLog=e=>({...e})})(M=t.RegistryAlias||(t.RegistryAlias={}));var k;(function(e){e.filterSensitiveLog=e=>({...e})})(k=t.Registry||(t.Registry={}));var F;(function(e){e.filterSensitiveLog=e=>({...e})})(F=t.DescribeRegistriesResponse||(t.DescribeRegistriesResponse={}));var U;(function(e){e.filterSensitiveLog=e=>({...e})})(U=t.DescribeRepositoriesRequest||(t.DescribeRepositoriesRequest={}));var q;(function(e){e.filterSensitiveLog=e=>({...e})})(q=t.DescribeRepositoriesResponse||(t.DescribeRepositoriesResponse={}));var $;(function(e){e.filterSensitiveLog=e=>({...e})})($=t.GetAuthorizationTokenRequest||(t.GetAuthorizationTokenRequest={}));var G;(function(e){e.filterSensitiveLog=e=>({...e})})(G=t.GetAuthorizationTokenResponse||(t.GetAuthorizationTokenResponse={}));var H;(function(e){e.filterSensitiveLog=e=>({...e})})(H=t.GetRegistryCatalogDataRequest||(t.GetRegistryCatalogDataRequest={}));var B;(function(e){e.filterSensitiveLog=e=>({...e})})(B=t.RegistryCatalogData||(t.RegistryCatalogData={}));var V;(function(e){e.filterSensitiveLog=e=>({...e})})(V=t.GetRegistryCatalogDataResponse||(t.GetRegistryCatalogDataResponse={}));var W;(function(e){e.filterSensitiveLog=e=>({...e})})(W=t.GetRepositoryCatalogDataRequest||(t.GetRepositoryCatalogDataRequest={}));var K;(function(e){e.filterSensitiveLog=e=>({...e})})(K=t.GetRepositoryCatalogDataResponse||(t.GetRepositoryCatalogDataResponse={}));var J;(function(e){e.filterSensitiveLog=e=>({...e})})(J=t.GetRepositoryPolicyRequest||(t.GetRepositoryPolicyRequest={}));var Y;(function(e){e.filterSensitiveLog=e=>({...e})})(Y=t.GetRepositoryPolicyResponse||(t.GetRepositoryPolicyResponse={}));var X;(function(e){e.filterSensitiveLog=e=>({...e})})(X=t.Image||(t.Image={}));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;var Q;(function(e){e.filterSensitiveLog=e=>({...e})})(Q=t.InitiateLayerUploadRequest||(t.InitiateLayerUploadRequest={}));var Z;(function(e){e.filterSensitiveLog=e=>({...e})})(Z=t.InitiateLayerUploadResponse||(t.InitiateLayerUploadResponse={}));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;var ee;(function(e){e.filterSensitiveLog=e=>({...e})})(ee=t.ListTagsForResourceRequest||(t.ListTagsForResourceRequest={}));var te;(function(e){e.filterSensitiveLog=e=>({...e})})(te=t.ListTagsForResourceResponse||(t.ListTagsForResourceResponse={}));var oe;(function(e){e.filterSensitiveLog=e=>({...e})})(oe=t.PutImageRequest||(t.PutImageRequest={}));var ne;(function(e){e.filterSensitiveLog=e=>({...e})})(ne=t.PutImageResponse||(t.PutImageResponse={}));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;var re;(function(e){e.filterSensitiveLog=e=>({...e})})(re=t.PutRegistryCatalogDataRequest||(t.PutRegistryCatalogDataRequest={}));var ie;(function(e){e.filterSensitiveLog=e=>({...e})})(ie=t.PutRegistryCatalogDataResponse||(t.PutRegistryCatalogDataResponse={}));var se;(function(e){e.filterSensitiveLog=e=>({...e})})(se=t.PutRepositoryCatalogDataRequest||(t.PutRepositoryCatalogDataRequest={}));var ae;(function(e){e.filterSensitiveLog=e=>({...e})})(ae=t.PutRepositoryCatalogDataResponse||(t.PutRepositoryCatalogDataResponse={}));var ce;(function(e){e.filterSensitiveLog=e=>({...e})})(ce=t.SetRepositoryPolicyRequest||(t.SetRepositoryPolicyRequest={}));var le;(function(e){e.filterSensitiveLog=e=>({...e})})(le=t.SetRepositoryPolicyResponse||(t.SetRepositoryPolicyResponse={}));var ue;(function(e){e.filterSensitiveLog=e=>({...e})})(ue=t.TagResourceRequest||(t.TagResourceRequest={}));var de;(function(e){e.filterSensitiveLog=e=>({...e})})(de=t.TagResourceResponse||(t.TagResourceResponse={}));var pe;(function(e){e.filterSensitiveLog=e=>({...e})})(pe=t.UntagResourceRequest||(t.UntagResourceRequest={}));var me;(function(e){e.filterSensitiveLog=e=>({...e})})(me=t.UntagResourceResponse||(t.UntagResourceResponse={}));var fe;(function(e){e.filterSensitiveLog=e=>({...e})})(fe=t.UploadLayerPartRequest||(t.UploadLayerPartRequest={}));var ge;(function(e){e.filterSensitiveLog=e=>({...e})})(ge=t.UploadLayerPartResponse||(t.UploadLayerPartResponse={}))},9634:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageTags=void 0;const n=o(7670);const r=o(6087);const i=o(608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImageTagsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImageTags(t,...o);async function*paginateDescribeImageTags(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeImageTags=paginateDescribeImageTags},4128:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const n=o(2776);const r=o(6087);const i=o(608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImagesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImages(t,...o);async function*paginateDescribeImages(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeImages=paginateDescribeImages},1720:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRegistries=void 0;const n=o(8696);const r=o(6087);const i=o(608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeRegistriesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeRegistries(t,...o);async function*paginateDescribeRegistries(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeRegistries=paginateDescribeRegistries},5474:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const n=o(2218);const r=o(6087);const i=o(608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeRepositoriesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeRepositories(t,...o);async function*paginateDescribeRepositories(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLIC){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRPUBLICClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},3463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5945:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9634),t);n.__exportStar(o(4128),t);n.__exportStar(o(1720),t);n.__exportStar(o(5474),t);n.__exportStar(o(3463),t)},4170:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_json1_1UploadLayerPartCommand=t.deserializeAws_json1_1UntagResourceCommand=t.deserializeAws_json1_1TagResourceCommand=t.deserializeAws_json1_1SetRepositoryPolicyCommand=t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=t.deserializeAws_json1_1PutRegistryCatalogDataCommand=t.deserializeAws_json1_1PutImageCommand=t.deserializeAws_json1_1ListTagsForResourceCommand=t.deserializeAws_json1_1InitiateLayerUploadCommand=t.deserializeAws_json1_1GetRepositoryPolicyCommand=t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=t.deserializeAws_json1_1GetRegistryCatalogDataCommand=t.deserializeAws_json1_1GetAuthorizationTokenCommand=t.deserializeAws_json1_1DescribeRepositoriesCommand=t.deserializeAws_json1_1DescribeRegistriesCommand=t.deserializeAws_json1_1DescribeImageTagsCommand=t.deserializeAws_json1_1DescribeImagesCommand=t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=t.deserializeAws_json1_1DeleteRepositoryCommand=t.deserializeAws_json1_1CreateRepositoryCommand=t.deserializeAws_json1_1CompleteLayerUploadCommand=t.deserializeAws_json1_1BatchDeleteImageCommand=t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=t.serializeAws_json1_1UploadLayerPartCommand=t.serializeAws_json1_1UntagResourceCommand=t.serializeAws_json1_1TagResourceCommand=t.serializeAws_json1_1SetRepositoryPolicyCommand=t.serializeAws_json1_1PutRepositoryCatalogDataCommand=t.serializeAws_json1_1PutRegistryCatalogDataCommand=t.serializeAws_json1_1PutImageCommand=t.serializeAws_json1_1ListTagsForResourceCommand=t.serializeAws_json1_1InitiateLayerUploadCommand=t.serializeAws_json1_1GetRepositoryPolicyCommand=t.serializeAws_json1_1GetRepositoryCatalogDataCommand=t.serializeAws_json1_1GetRegistryCatalogDataCommand=t.serializeAws_json1_1GetAuthorizationTokenCommand=t.serializeAws_json1_1DescribeRepositoriesCommand=t.serializeAws_json1_1DescribeRegistriesCommand=t.serializeAws_json1_1DescribeImageTagsCommand=t.serializeAws_json1_1DescribeImagesCommand=t.serializeAws_json1_1DeleteRepositoryPolicyCommand=t.serializeAws_json1_1DeleteRepositoryCommand=t.serializeAws_json1_1CreateRepositoryCommand=t.serializeAws_json1_1CompleteLayerUploadCommand=t.serializeAws_json1_1BatchDeleteImageCommand=t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=void 0;const n=o(223);const r=o(4963);const i=o(8278);const s=o(8818);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchCheckLayerAvailability"};let n;n=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.BatchDeleteImage"};let n;n=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CompleteLayerUpload"};let n;n=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.CreateRepository"};let n;n=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepository"};let n;n=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DeleteRepositoryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImages"};let n;n=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeImageTags"};let n;n=JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeImageTagsCommand=serializeAws_json1_1DescribeImageTagsCommand;const serializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRegistries"};let n;n=JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeRegistriesCommand=serializeAws_json1_1DescribeRegistriesCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.DescribeRepositories"};let n;n=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetAuthorizationToken"};let n;n=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRegistryCatalogData"};let n;n=JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetRegistryCatalogDataCommand=serializeAws_json1_1GetRegistryCatalogDataCommand;const serializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryCatalogData"};let n;n=JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetRepositoryCatalogDataCommand=serializeAws_json1_1GetRepositoryCatalogDataCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.GetRepositoryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.InitiateLayerUpload"};let n;n=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.ListTagsForResource"};let n;n=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutImage"};let n;n=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRegistryCatalogData"};let n;n=JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutRegistryCatalogDataCommand=serializeAws_json1_1PutRegistryCatalogDataCommand;const serializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.PutRepositoryCatalogData"};let n;n=JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutRepositoryCatalogDataCommand=serializeAws_json1_1PutRepositoryCatalogDataCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.SetRepositoryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.TagResource"};let n;n=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UntagResource"};let n;n=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"SpencerFrontendService.UploadLayerPart"};let n;n=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1UploadLayerPartCommand=serializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1BatchDeleteImageResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1CompleteLayerUploadResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"EmptyUploadException":case"com.amazonaws.ecrpublic#EmptyUploadException":throw await deserializeAws_json1_1EmptyUploadExceptionResponse(o,t);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(o,t);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1CreateRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeleteRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeleteRepositoryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeImagesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecrpublic#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeImageTagsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageTagsCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeImageTagsResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageTagsCommand=deserializeAws_json1_1DescribeImageTagsCommand;const deserializeAws_json1_1DescribeImageTagsCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeRegistriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistriesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeRegistriesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRegistriesCommand=deserializeAws_json1_1DescribeRegistriesCommand;const deserializeAws_json1_1DescribeRegistriesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeRepositoriesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetAuthorizationTokenResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetRegistryCatalogDataResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryCatalogDataCommand=deserializeAws_json1_1GetRegistryCatalogDataCommand;const deserializeAws_json1_1GetRegistryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetRepositoryCatalogDataResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryCatalogDataCommand=deserializeAws_json1_1GetRepositoryCatalogDataCommand;const deserializeAws_json1_1GetRepositoryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetRepositoryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1InitiateLayerUploadResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1ListTagsForResourceResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutImageResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageAlreadyExistsException":throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(o,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(o,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutRegistryCatalogDataResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryCatalogDataCommand=deserializeAws_json1_1PutRegistryCatalogDataCommand;const deserializeAws_json1_1PutRegistryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRepositoryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutRepositoryCatalogDataResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutRepositoryCatalogDataCommand=deserializeAws_json1_1PutRepositoryCatalogDataCommand;const deserializeAws_json1_1PutRepositoryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1SetRepositoryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1TagResourceResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1UntagResourceResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1UploadLayerPartResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidLayerPartException":case"com.amazonaws.ecrpublic#InvalidLayerPartException":throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await deserializeAws_json1_1RegistryNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const a=o.body;n=new i.ECRPUBLICServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1EmptyUploadException(o,t);const i=new s.EmptyUploadException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageAlreadyExistsException(o,t);const i=new s.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageDigestDoesNotMatchException(o,t);const i=new s.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageNotFoundException(o,t);const i=new s.ImageNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageTagAlreadyExistsException(o,t);const i=new s.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidLayerException(o,t);const i=new s.InvalidLayerException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidLayerPartException(o,t);const i=new s.InvalidLayerPartException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidParameterException(o,t);const i=new s.InvalidParameterException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidTagParameterException(o,t);const i=new s.InvalidTagParameterException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayerAlreadyExistsException(o,t);const i=new s.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayerPartTooSmallException(o,t);const i=new s.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayersNotFoundException(o,t);const i=new s.LayersNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LimitExceededException(o,t);const i=new s.LimitExceededException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ReferencedImagesNotFoundException(o,t);const i=new s.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RegistryNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RegistryNotFoundException(o,t);const i=new s.RegistryNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryAlreadyExistsException(o,t);const i=new s.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryNotEmptyException(o,t);const i=new s.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryNotFoundException(o,t);const i=new s.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryPolicyNotFoundException(o,t);const i=new s.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ServerException(o,t);const i=new s.ServerException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1TooManyTagsException(o,t);const i=new s.TooManyTagsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1UnsupportedCommandExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1UnsupportedCommandException(o,t);const i=new s.UnsupportedCommandException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1UploadNotFoundException(o,t);const i=new s.UploadNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const serializeAws_json1_1ArchitectureList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.catalogData!==undefined&&e.catalogData!==null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageTagsRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeRegistriesRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken}});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryNames!==undefined&&e.repositoryNames!==null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({});const serializeAws_json1_1GetRegistryCatalogDataRequest=(e,t)=>({});const serializeAws_json1_1GetRepositoryCatalogDataRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ImageIdentifier(e,t)}));const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1OperatingSystemList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageManifest!==undefined&&e.imageManifest!==null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!==undefined&&e.imageManifestMediaType!==null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryCatalogDataRequest=(e,t)=>({...e.displayName!==undefined&&e.displayName!==null&&{displayName:e.displayName}});const serializeAws_json1_1PutRepositoryCatalogDataRequest=(e,t)=>({...e.catalogData!==undefined&&e.catalogData!==null&&{catalogData:serializeAws_json1_1RepositoryCatalogDataInput(e.catalogData,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1RepositoryCatalogDataInput=(e,t)=>({...e.aboutText!==undefined&&e.aboutText!==null&&{aboutText:e.aboutText},...e.architectures!==undefined&&e.architectures!==null&&{architectures:serializeAws_json1_1ArchitectureList(e.architectures,t)},...e.description!==undefined&&e.description!==null&&{description:e.description},...e.logoImageBlob!==undefined&&e.logoImageBlob!==null&&{logoImageBlob:t.base64Encoder(e.logoImageBlob)},...e.operatingSystems!==undefined&&e.operatingSystems!==null&&{operatingSystems:serializeAws_json1_1OperatingSystemList(e.operatingSystems,t)},...e.usageText!==undefined&&e.usageText!==null&&{usageText:e.usageText}});const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.policyText!==undefined&&e.policyText!==null&&{policyText:e.policyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!==undefined&&e.Key!==null&&{Key:e.Key},...e.Value!==undefined&&e.Value!==null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1Tag(e,t)}));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tagKeys!==undefined&&e.tagKeys!==null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!==undefined&&e.layerPartBlob!==null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!==undefined&&e.partFirstByte!==null&&{partFirstByte:e.partFirstByte},...e.partLastByte!==undefined&&e.partLastByte!==null&&{partLastByte:e.partLastByte},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const deserializeAws_json1_1ArchitectureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:r.expectString(e.authorizationToken),expiresAt:e.expiresAt!==undefined&&e.expiresAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.expiresAt))):undefined});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!==undefined&&e.layers!==null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!==undefined&&e.imageIds!==null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:r.expectString(e.layerDigest),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({catalogData:e.catalogData!==undefined&&e.catalogData!==null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined,repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!==undefined&&e.imageDetails!==null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1DescribeImageTagsResponse=(e,t)=>({imageTagDetails:e.imageTagDetails!==undefined&&e.imageTagDetails!==null?deserializeAws_json1_1ImageTagDetailList(e.imageTagDetails,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1DescribeRegistriesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),registries:e.registries!==undefined&&e.registries!==null?deserializeAws_json1_1RegistryList(e.registries,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),repositories:e.repositories!==undefined&&e.repositories!==null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!==undefined&&e.authorizationData!==null?deserializeAws_json1_1AuthorizationData(e.authorizationData,t):undefined});const deserializeAws_json1_1GetRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!==undefined&&e.registryCatalogData!==null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1GetRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!==undefined&&e.catalogData!==null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:r.expectString(e.imageManifest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:r.expectString(e.artifactMediaType),imageDigest:r.expectString(e.imageDigest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageSizeInBytes:r.expectLong(e.imageSizeInBytes),imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return o};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return o};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:r.expectString(e.imageDigest),imageTag:r.expectString(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return o};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageTagDetail=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,imageDetail:e.imageDetail!==undefined&&e.imageDetail!==null?deserializeAws_json1_1ReferencedImageDetail(e.imageDetail,t):undefined,imageTag:r.expectString(e.imageTag)});const deserializeAws_json1_1ImageTagDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageTagDetail(e,t)}));return o};const deserializeAws_json1_1ImageTagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:r.expectLong(e.partSize),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:r.expectLong(e.lastValidByteReceived),message:r.expectString(e.message),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:r.expectString(e.layerAvailability),layerDigest:r.expectString(e.layerDigest),layerSize:r.expectLong(e.layerSize),mediaType:r.expectString(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),layerDigest:r.expectString(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return o};const deserializeAws_json1_1LayerList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return o};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!==undefined&&e.tags!==null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1OperatingSystemList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!==undefined&&e.image!==null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutRegistryCatalogDataResponse=(e,t)=>({registryCatalogData:e.registryCatalogData!==undefined&&e.registryCatalogData!==null?deserializeAws_json1_1RegistryCatalogData(e.registryCatalogData,t):undefined});const deserializeAws_json1_1PutRepositoryCatalogDataResponse=(e,t)=>({catalogData:e.catalogData!==undefined&&e.catalogData!==null?deserializeAws_json1_1RepositoryCatalogData(e.catalogData,t):undefined});const deserializeAws_json1_1ReferencedImageDetail=(e,t)=>({artifactMediaType:r.expectString(e.artifactMediaType),imageDigest:r.expectString(e.imageDigest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageSizeInBytes:r.expectLong(e.imageSizeInBytes)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1Registry=(e,t)=>({aliases:e.aliases!==undefined&&e.aliases!==null?deserializeAws_json1_1RegistryAliasList(e.aliases,t):undefined,registryArn:r.expectString(e.registryArn),registryId:r.expectString(e.registryId),registryUri:r.expectString(e.registryUri),verified:r.expectBoolean(e.verified)});const deserializeAws_json1_1RegistryAlias=(e,t)=>({defaultRegistryAlias:r.expectBoolean(e.defaultRegistryAlias),name:r.expectString(e.name),primaryRegistryAlias:r.expectBoolean(e.primaryRegistryAlias),status:r.expectString(e.status)});const deserializeAws_json1_1RegistryAliasList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryAlias(e,t)}));return o};const deserializeAws_json1_1RegistryCatalogData=(e,t)=>({displayName:r.expectString(e.displayName)});const deserializeAws_json1_1RegistryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Registry(e,t)}));return o};const deserializeAws_json1_1RegistryNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,registryId:r.expectString(e.registryId),repositoryArn:r.expectString(e.repositoryArn),repositoryName:r.expectString(e.repositoryName),repositoryUri:r.expectString(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryCatalogData=(e,t)=>({aboutText:r.expectString(e.aboutText),architectures:e.architectures!==undefined&&e.architectures!==null?deserializeAws_json1_1ArchitectureList(e.architectures,t):undefined,description:r.expectString(e.description),logoUrl:r.expectString(e.logoUrl),marketplaceCertified:r.expectBoolean(e.marketplaceCertified),operatingSystems:e.operatingSystems!==undefined&&e.operatingSystems!==null?deserializeAws_json1_1OperatingSystemList(e.operatingSystems,t):undefined,usageText:r.expectString(e.usageText)});const deserializeAws_json1_1RepositoryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return o};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ServerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1Tag=(e,t)=>({Key:r.expectString(e.Key),Value:r.expectString(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return o};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UnsupportedCommandException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:r.expectLong(e.lastByteReceived),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new n.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;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"])}return""}},9324:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(4351);const r=n.__importDefault(o(5929));const i=o(2209);const s=o(6153);const a=o(5531);const c=o(7442);const l=o(6064);const u=o(7684);const d=o(8805);const p=o(8588);const m=o(4147);const f=o(8095);const g=o(6278);const y=o(6746);const h=o(4963);const v=o(4243);const getRuntimeConfig=e=>{var t,o,n,w,E,S,C,x,R,_,b,P,I,A,T;const N=v.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const L=y.getRuntimeConfig(e);return{...L,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:p.toBase64,bodyLengthChecker:(n=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:m.calculateBodyLength,credentialDefaultProvider:(w=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&w!==void 0?w:i.decorateDefaultCredentialProvider(a.defaultProvider),defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:f.defaultUserAgent({serviceId:L.serviceId,clientVersion:r.default.version}),maxAttempts:(S=e===null||e===void 0?void 0:e.maxAttempts)!==null&&S!==void 0?S:u.loadConfig(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(C=e===null||e===void 0?void 0:e.region)!==null&&C!==void 0?C:u.loadConfig(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(x=e===null||e===void 0?void 0:e.requestHandler)!==null&&x!==void 0?x:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(R=e===null||e===void 0?void 0:e.retryMode)!==null&&R!==void 0?R:u.loadConfig({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(_=e===null||e===void 0?void 0:e.sha256)!==null&&_!==void 0?_:c.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:d.streamCollector,useDualstackEndpoint:(P=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&P!==void 0?P:u.loadConfig(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:u.loadConfig(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(A=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&A!==void 0?A:g.fromUtf8,utf8Encoder:(T=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&T!==void 0?T:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},6746:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(2992);const r=o(8593);const getRuntimeConfig=e=>{var t,o,i,s,a;return{apiVersion:"2020-10-30",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"ECR PUBLIC",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:n.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},9167:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECR=void 0;const n=o(3804);const r=o(5511);const i=o(8859);const s=o(9728);const a=o(9003);const c=o(1454);const l=o(5074);const u=o(8981);const d=o(3793);const p=o(1424);const m=o(8651);const f=o(6828);const g=o(9694);const y=o(2987);const h=o(5353);const v=o(1484);const w=o(6166);const E=o(1200);const S=o(5828);const C=o(1401);const x=o(8469);const R=o(7006);const _=o(6653);const b=o(2741);const P=o(6330);const I=o(6936);const A=o(3854);const T=o(7403);const N=o(6844);const L=o(7935);const D=o(6495);const O=o(4444);const z=o(7928);const j=o(9529);const M=o(3350);const k=o(8300);const F=o(7984);const U=o(5905);const q=o(2665);const $=o(7225);const G=o(5825);const H=o(3391);class ECR extends H.ECRClient{batchCheckLayerAvailability(e,t,o){const r=new n.BatchCheckLayerAvailabilityCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}batchDeleteImage(e,t,o){const n=new r.BatchDeleteImageCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}batchGetImage(e,t,o){const n=new i.BatchGetImageCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}batchGetRepositoryScanningConfiguration(e,t,o){const n=new s.BatchGetRepositoryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}completeLayerUpload(e,t,o){const n=new a.CompleteLayerUploadCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}createPullThroughCacheRule(e,t,o){const n=new c.CreatePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}createRepository(e,t,o){const n=new l.CreateRepositoryCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deleteLifecyclePolicy(e,t,o){const n=new u.DeleteLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deletePullThroughCacheRule(e,t,o){const n=new d.DeletePullThroughCacheRuleCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deleteRegistryPolicy(e,t,o){const n=new p.DeleteRegistryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deleteRepository(e,t,o){const n=new m.DeleteRepositoryCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}deleteRepositoryPolicy(e,t,o){const n=new f.DeleteRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeImageReplicationStatus(e,t,o){const n=new g.DescribeImageReplicationStatusCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeImages(e,t,o){const n=new h.DescribeImagesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeImageScanFindings(e,t,o){const n=new y.DescribeImageScanFindingsCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describePullThroughCacheRules(e,t,o){const n=new v.DescribePullThroughCacheRulesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeRegistry(e,t,o){const n=new w.DescribeRegistryCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}describeRepositories(e,t,o){const n=new E.DescribeRepositoriesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getAuthorizationToken(e,t,o){const n=new S.GetAuthorizationTokenCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getDownloadUrlForLayer(e,t,o){const n=new C.GetDownloadUrlForLayerCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getLifecyclePolicy(e,t,o){const n=new x.GetLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getLifecyclePolicyPreview(e,t,o){const n=new R.GetLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getRegistryPolicy(e,t,o){const n=new _.GetRegistryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getRegistryScanningConfiguration(e,t,o){const n=new b.GetRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getRepositoryPolicy(e,t,o){const n=new P.GetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}initiateLayerUpload(e,t,o){const n=new I.InitiateLayerUploadCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}listImages(e,t,o){const n=new A.ListImagesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}listTagsForResource(e,t,o){const n=new T.ListTagsForResourceCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putImage(e,t,o){const n=new N.PutImageCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putImageScanningConfiguration(e,t,o){const n=new L.PutImageScanningConfigurationCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putImageTagMutability(e,t,o){const n=new D.PutImageTagMutabilityCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putLifecyclePolicy(e,t,o){const n=new O.PutLifecyclePolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putRegistryPolicy(e,t,o){const n=new z.PutRegistryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putRegistryScanningConfiguration(e,t,o){const n=new j.PutRegistryScanningConfigurationCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}putReplicationConfiguration(e,t,o){const n=new M.PutReplicationConfigurationCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}setRepositoryPolicy(e,t,o){const n=new k.SetRepositoryPolicyCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}startImageScan(e,t,o){const n=new F.StartImageScanCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}startLifecyclePolicyPreview(e,t,o){const n=new U.StartLifecyclePolicyPreviewCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}tagResource(e,t,o){const n=new q.TagResourceCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}untagResource(e,t,o){const n=new $.UntagResourceCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}uploadLayerPart(e,t,o){const n=new G.UploadLayerPartCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}}t.ECR=ECR},3391:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRClient=void 0;const n=o(6153);const r=o(2245);const i=o(2545);const s=o(14);const a=o(6064);const c=o(4935);const l=o(4688);const u=o(4963);const d=o(869);class ECRClient extends u.Client{constructor(e){const t=d.getRuntimeConfig(e);const o=n.resolveRegionConfig(t);const u=n.resolveEndpointsConfig(o);const p=a.resolveRetryConfig(u);const m=i.resolveHostHeaderConfig(p);const f=c.resolveAwsAuthConfig(m);const g=l.resolveUserAgentConfig(f);super(g);this.config=g;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(c.getAwsAuthPlugin(this.config));this.middlewareStack.use(l.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.ECRClient=ECRClient},3804:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class BatchCheckLayerAvailabilityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchCheckLayerAvailabilityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchCheckLayerAvailabilityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchCheckLayerAvailabilityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},5511:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class BatchDeleteImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchDeleteImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchDeleteImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchDeleteImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchDeleteImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchDeleteImageCommand(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},8859:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetImageCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class BatchGetImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchGetImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchGetImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchGetImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchGetImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchGetImageCommand(e,t)}}t.BatchGetImageCommand=BatchGetImageCommand},9728:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetRepositoryScanningConfigurationCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class BatchGetRepositoryScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="BatchGetRepositoryScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.BatchGetRepositoryScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.BatchGetRepositoryScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand(e,t)}}t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand},9003:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class CompleteLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="CompleteLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CompleteLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CompleteLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1CompleteLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CompleteLayerUploadCommand(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},1454:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreatePullThroughCacheRuleCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class CreatePullThroughCacheRuleCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="CreatePullThroughCacheRuleCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CreatePullThroughCacheRuleRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CreatePullThroughCacheRuleResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1CreatePullThroughCacheRuleCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CreatePullThroughCacheRuleCommand(e,t)}}t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand},5074:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class CreateRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="CreateRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.CreateRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.CreateRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1CreateRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1CreateRepositoryCommand(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},8981:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteLifecyclePolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DeleteLifecyclePolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteLifecyclePolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteLifecyclePolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteLifecyclePolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteLifecyclePolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteLifecyclePolicyCommand(e,t)}}t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand},3793:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeletePullThroughCacheRuleCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DeletePullThroughCacheRuleCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeletePullThroughCacheRuleCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeletePullThroughCacheRuleRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeletePullThroughCacheRuleResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeletePullThroughCacheRuleCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeletePullThroughCacheRuleCommand(e,t)}}t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand},1424:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRegistryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DeleteRegistryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteRegistryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRegistryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRegistryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRegistryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRegistryPolicyCommand(e,t)}}t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand},8651:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DeleteRepositoryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteRepositoryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryCommand(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},6828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DeleteRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DeleteRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DeleteRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DeleteRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DeleteRepositoryPolicyCommand(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},9694:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageReplicationStatusCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DescribeImageReplicationStatusCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeImageReplicationStatusCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImageReplicationStatusRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageReplicationStatusResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImageReplicationStatusCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImageReplicationStatusCommand(e,t)}}t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand},2987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageScanFindingsCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DescribeImageScanFindingsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeImageScanFindingsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImageScanFindingsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImageScanFindingsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImageScanFindingsCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImageScanFindingsCommand(e,t)}}t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand},5353:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DescribeImagesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeImagesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeImagesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeImagesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeImagesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeImagesCommand(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},1484:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribePullThroughCacheRulesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DescribePullThroughCacheRulesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribePullThroughCacheRulesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribePullThroughCacheRulesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribePullThroughCacheRulesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribePullThroughCacheRulesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribePullThroughCacheRulesCommand(e,t)}}t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand},6166:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistryCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DescribeRegistryCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeRegistryCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRegistryRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRegistryResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRegistryCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRegistryCommand(e,t)}}t.DescribeRegistryCommand=DescribeRegistryCommand},1200:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class DescribeRepositoriesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="DescribeRepositoriesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.DescribeRepositoriesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.DescribeRepositoriesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1DescribeRepositoriesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1DescribeRepositoriesCommand(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},5828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetAuthorizationTokenCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetAuthorizationTokenCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetAuthorizationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetAuthorizationTokenResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetAuthorizationTokenCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetAuthorizationTokenCommand(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},1401:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetDownloadUrlForLayerCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetDownloadUrlForLayerCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetDownloadUrlForLayerCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetDownloadUrlForLayerRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetDownloadUrlForLayerResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetDownloadUrlForLayerCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetDownloadUrlForLayerCommand(e,t)}}t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand},8469:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetLifecyclePolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetLifecyclePolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetLifecyclePolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetLifecyclePolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetLifecyclePolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetLifecyclePolicyCommand(e,t)}}t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand},7006:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyPreviewCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetLifecyclePolicyPreviewCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetLifecyclePolicyPreviewCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetLifecyclePolicyPreviewRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetLifecyclePolicyPreviewResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetLifecyclePolicyPreviewCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand(e,t)}}t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand},6653:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetRegistryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetRegistryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRegistryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRegistryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRegistryPolicyCommand(e,t)}}t.GetRegistryPolicyCommand=GetRegistryPolicyCommand},2741:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryScanningConfigurationCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetRegistryScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetRegistryScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRegistryScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRegistryScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRegistryScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRegistryScanningConfigurationCommand(e,t)}}t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand},6330:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class GetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="GetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1GetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1GetRepositoryPolicyCommand(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},6936:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class InitiateLayerUploadCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="InitiateLayerUploadCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.InitiateLayerUploadRequest.filterSensitiveLog,outputFilterSensitiveLog:i.InitiateLayerUploadResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1InitiateLayerUploadCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1InitiateLayerUploadCommand(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},3854:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListImagesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class ListImagesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="ListImagesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListImagesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListImagesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1ListImagesCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1ListImagesCommand(e,t)}}t.ListImagesCommand=ListImagesCommand},7403:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class ListTagsForResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="ListTagsForResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListTagsForResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListTagsForResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1ListTagsForResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1ListTagsForResourceCommand(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},6844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutImageCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutImageCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageCommand(e,t)}}t.PutImageCommand=PutImageCommand},7935:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageScanningConfigurationCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutImageScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutImageScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageScanningConfigurationCommand(e,t)}}t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand},6495:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageTagMutabilityCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutImageTagMutabilityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutImageTagMutabilityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutImageTagMutabilityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutImageTagMutabilityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutImageTagMutabilityCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutImageTagMutabilityCommand(e,t)}}t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand},4444:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutLifecyclePolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutLifecyclePolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutLifecyclePolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutLifecyclePolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutLifecyclePolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutLifecyclePolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutLifecyclePolicyCommand(e,t)}}t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand},7928:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutRegistryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutRegistryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRegistryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRegistryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRegistryPolicyCommand(e,t)}}t.PutRegistryPolicyCommand=PutRegistryPolicyCommand},9529:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryScanningConfigurationCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutRegistryScanningConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutRegistryScanningConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutRegistryScanningConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutRegistryScanningConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutRegistryScanningConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutRegistryScanningConfigurationCommand(e,t)}}t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand},3350:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutReplicationConfigurationCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class PutReplicationConfigurationCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="PutReplicationConfigurationCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.PutReplicationConfigurationRequest.filterSensitiveLog,outputFilterSensitiveLog:i.PutReplicationConfigurationResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1PutReplicationConfigurationCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1PutReplicationConfigurationCommand(e,t)}}t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand},8300:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class SetRepositoryPolicyCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="SetRepositoryPolicyCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.SetRepositoryPolicyRequest.filterSensitiveLog,outputFilterSensitiveLog:i.SetRepositoryPolicyResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1SetRepositoryPolicyCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1SetRepositoryPolicyCommand(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},7984:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartImageScanCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class StartImageScanCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="StartImageScanCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.StartImageScanRequest.filterSensitiveLog,outputFilterSensitiveLog:i.StartImageScanResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1StartImageScanCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1StartImageScanCommand(e,t)}}t.StartImageScanCommand=StartImageScanCommand},5905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartLifecyclePolicyPreviewCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class StartLifecyclePolicyPreviewCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="StartLifecyclePolicyPreviewCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.StartLifecyclePolicyPreviewRequest.filterSensitiveLog,outputFilterSensitiveLog:i.StartLifecyclePolicyPreviewResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1StartLifecyclePolicyPreviewCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand(e,t)}}t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand},2665:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class TagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="TagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.TagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.TagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1TagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1TagResourceCommand(e,t)}}t.TagResourceCommand=TagResourceCommand},7225:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class UntagResourceCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="UntagResourceCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UntagResourceRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UntagResourceResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1UntagResourceCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UntagResourceCommand(e,t)}}t.UntagResourceCommand=UntagResourceCommand},5825:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=void 0;const n=o(3631);const r=o(4963);const i=o(9088);const s=o(6704);class UploadLayerPartCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="ECRClient";const c="UploadLayerPartCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.UploadLayerPartRequest.filterSensitiveLog,outputFilterSensitiveLog:i.UploadLayerPartResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_json1_1UploadLayerPartCommand(e,t)}deserialize(e,t){return s.deserializeAws_json1_1UploadLayerPartCommand(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},7407:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(3804),t);n.__exportStar(o(5511),t);n.__exportStar(o(8859),t);n.__exportStar(o(9728),t);n.__exportStar(o(9003),t);n.__exportStar(o(1454),t);n.__exportStar(o(5074),t);n.__exportStar(o(8981),t);n.__exportStar(o(3793),t);n.__exportStar(o(1424),t);n.__exportStar(o(8651),t);n.__exportStar(o(6828),t);n.__exportStar(o(9694),t);n.__exportStar(o(2987),t);n.__exportStar(o(5353),t);n.__exportStar(o(1484),t);n.__exportStar(o(6166),t);n.__exportStar(o(1200),t);n.__exportStar(o(5828),t);n.__exportStar(o(1401),t);n.__exportStar(o(8469),t);n.__exportStar(o(7006),t);n.__exportStar(o(6653),t);n.__exportStar(o(2741),t);n.__exportStar(o(6330),t);n.__exportStar(o(6936),t);n.__exportStar(o(3854),t);n.__exportStar(o(7403),t);n.__exportStar(o(6844),t);n.__exportStar(o(7935),t);n.__exportStar(o(6495),t);n.__exportStar(o(4444),t);n.__exportStar(o(7928),t);n.__exportStar(o(9529),t);n.__exportStar(o(3350),t);n.__exportStar(o(8300),t);n.__exportStar(o(7984),t);n.__exportStar(o(5905),t);n.__exportStar(o(2665),t);n.__exportStar(o(7225),t);n.__exportStar(o(5825),t)},3070:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const n=o(6153);const r={"af-south-1":{variants:[{hostname:"api.ecr.af-south-1.amazonaws.com",tags:[]}],signingRegion:"af-south-1"},"ap-east-1":{variants:[{hostname:"api.ecr.ap-east-1.amazonaws.com",tags:[]}],signingRegion:"ap-east-1"},"ap-northeast-1":{variants:[{hostname:"api.ecr.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"api.ecr.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-northeast-3":{variants:[{hostname:"api.ecr.ap-northeast-3.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-3"},"ap-south-1":{variants:[{hostname:"api.ecr.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"api.ecr.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"api.ecr.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ap-southeast-3":{variants:[{hostname:"api.ecr.ap-southeast-3.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-3"},"ca-central-1":{variants:[{hostname:"api.ecr.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"cn-north-1":{variants:[{hostname:"api.ecr.cn-north-1.amazonaws.com.cn",tags:[]}],signingRegion:"cn-north-1"},"cn-northwest-1":{variants:[{hostname:"api.ecr.cn-northwest-1.amazonaws.com.cn",tags:[]}],signingRegion:"cn-northwest-1"},"eu-central-1":{variants:[{hostname:"api.ecr.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"api.ecr.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-south-1":{variants:[{hostname:"api.ecr.eu-south-1.amazonaws.com",tags:[]}],signingRegion:"eu-south-1"},"eu-west-1":{variants:[{hostname:"api.ecr.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"api.ecr.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"api.ecr.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"me-south-1":{variants:[{hostname:"api.ecr.me-south-1.amazonaws.com",tags:[]}],signingRegion:"me-south-1"},"sa-east-1":{variants:[{hostname:"api.ecr.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"api.ecr.us-east-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-east-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"api.ecr.us-east-2.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-east-2.amazonaws.com",tags:["fips"]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"api.ecr.us-gov-east-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-gov-east-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"api.ecr.us-gov-west-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-gov-west-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-gov-west-1"},"us-iso-east-1":{variants:[{hostname:"api.ecr.us-iso-east-1.c2s.ic.gov",tags:[]}],signingRegion:"us-iso-east-1"},"us-iso-west-1":{variants:[{hostname:"api.ecr.us-iso-west-1.c2s.ic.gov",tags:[]}],signingRegion:"us-iso-west-1"},"us-isob-east-1":{variants:[{hostname:"api.ecr.us-isob-east-1.sc2s.sgov.gov",tags:[]}],signingRegion:"us-isob-east-1"},"us-west-1":{variants:[{hostname:"api.ecr.us-west-1.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-west-1.amazonaws.com",tags:["fips"]}],signingRegion:"us-west-1"},"us-west-2":{variants:[{hostname:"api.ecr.us-west-2.amazonaws.com",tags:[]},{hostname:"ecr-fips.us-west-2.amazonaws.com",tags:["fips"]}],signingRegion:"us-west-2"}};const i={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","dkr-us-east-1","dkr-us-east-2","dkr-us-west-1","dkr-us-west-2","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","fips-dkr-us-east-1","fips-dkr-us-east-2","fips-dkr-us-west-1","fips-dkr-us-west-2","fips-us-east-1","fips-us-east-2","fips-us-west-1","fips-us-west-2","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.amazonaws.com",tags:[]},{hostname:"ecr-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.amazonaws.com.cn",tags:[]},{hostname:"api.ecr-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"api.ecr-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"api.ecr.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.c2s.ic.gov",tags:[]},{hostname:"api.ecr-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.sc2s.sgov.gov",tags:[]},{hostname:"api.ecr-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["dkr-us-gov-east-1","dkr-us-gov-west-1","fips-dkr-us-gov-east-1","fips-dkr-us-gov-west-1","fips-us-gov-east-1","fips-us-gov-west-1","us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"api.ecr.{region}.amazonaws.com",tags:[]},{hostname:"ecr-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"api.ecr-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"api.ecr.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>n.getRegionInfo(e,{...t,signingService:"ecr",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},8923:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const n=o(4351);n.__exportStar(o(9167),t);n.__exportStar(o(3391),t);n.__exportStar(o(7407),t);n.__exportStar(o(4692),t);n.__exportStar(o(5356),t);n.__exportStar(o(8406),t);var r=o(1610);Object.defineProperty(t,"ECRServiceException",{enumerable:true,get:function(){return r.ECRServiceException}})},1610:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const n=o(4963);class ECRServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},4692:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9088),t)},9088:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.CreateRepositoryResponse=t.Repository=t.CreateRepositoryRequest=t.Tag=t.ImageTagMutability=t.ImageScanningConfiguration=t.EncryptionConfiguration=t.EncryptionType=t.UnsupportedUpstreamRegistryException=t.PullThroughCacheRuleAlreadyExistsException=t.LimitExceededException=t.CreatePullThroughCacheRuleResponse=t.CreatePullThroughCacheRuleRequest=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.CompleteLayerUploadResponse=t.CompleteLayerUploadRequest=t.ValidationException=t.BatchGetRepositoryScanningConfigurationResponse=t.RepositoryScanningConfiguration=t.ScanFrequency=t.ScanningRepositoryFilter=t.ScanningRepositoryFilterType=t.RepositoryScanningConfigurationFailure=t.ScanningConfigurationFailureCode=t.BatchGetRepositoryScanningConfigurationRequest=t.BatchGetImageResponse=t.Image=t.BatchGetImageRequest=t.BatchDeleteImageResponse=t.ImageFailure=t.ImageFailureCode=t.BatchDeleteImageRequest=t.ImageIdentifier=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=t.BatchCheckLayerAvailabilityResponse=t.Layer=t.LayerAvailability=t.LayerFailure=t.LayerFailureCode=t.BatchCheckLayerAvailabilityRequest=void 0;t.DescribePullThroughCacheRulesResponse=t.PullThroughCacheRule=t.DescribePullThroughCacheRulesRequest=t.ScanNotFoundException=t.DescribeImageScanFindingsResponse=t.ImageScanFindings=t.ImageScanFinding=t.Attribute=t.EnhancedImageScanFinding=t.ScoreDetails=t.CvssScoreDetails=t.CvssScoreAdjustment=t.Resource=t.ResourceDetails=t.AwsEcrContainerImageDetails=t.Remediation=t.Recommendation=t.PackageVulnerabilityDetails=t.VulnerablePackage=t.CvssScore=t.DescribeImageScanFindingsRequest=t.DescribeImagesResponse=t.ImageDetail=t.ImageScanStatus=t.ScanStatus=t.ImageScanFindingsSummary=t.FindingSeverity=t.DescribeImagesRequest=t.DescribeImagesFilter=t.TagStatus=t.ImageNotFoundException=t.DescribeImageReplicationStatusResponse=t.ImageReplicationStatus=t.ReplicationStatus=t.DescribeImageReplicationStatusRequest=t.RepositoryPolicyNotFoundException=t.DeleteRepositoryPolicyResponse=t.DeleteRepositoryPolicyRequest=t.RepositoryNotEmptyException=t.DeleteRepositoryResponse=t.DeleteRepositoryRequest=t.RegistryPolicyNotFoundException=t.DeleteRegistryPolicyResponse=t.DeleteRegistryPolicyRequest=t.PullThroughCacheRuleNotFoundException=t.DeletePullThroughCacheRuleResponse=t.DeletePullThroughCacheRuleRequest=t.LifecyclePolicyNotFoundException=t.DeleteLifecyclePolicyResponse=t.DeleteLifecyclePolicyRequest=void 0;t.PutImageScanningConfigurationRequest=t.ReferencedImagesNotFoundException=t.PutImageResponse=t.PutImageRequest=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.ListTagsForResourceResponse=t.ListTagsForResourceRequest=t.ListImagesResponse=t.ListImagesRequest=t.ListImagesFilter=t.InitiateLayerUploadResponse=t.InitiateLayerUploadRequest=t.GetRepositoryPolicyResponse=t.GetRepositoryPolicyRequest=t.GetRegistryScanningConfigurationResponse=t.RegistryScanningConfiguration=t.ScanType=t.RegistryScanningRule=t.GetRegistryScanningConfigurationRequest=t.GetRegistryPolicyResponse=t.GetRegistryPolicyRequest=t.LifecyclePolicyPreviewNotFoundException=t.GetLifecyclePolicyPreviewResponse=t.LifecyclePolicyPreviewSummary=t.LifecyclePolicyPreviewStatus=t.LifecyclePolicyPreviewResult=t.LifecyclePolicyRuleAction=t.ImageActionType=t.GetLifecyclePolicyPreviewRequest=t.LifecyclePolicyPreviewFilter=t.GetLifecyclePolicyResponse=t.GetLifecyclePolicyRequest=t.LayersNotFoundException=t.LayerInaccessibleException=t.GetDownloadUrlForLayerResponse=t.GetDownloadUrlForLayerRequest=t.GetAuthorizationTokenResponse=t.AuthorizationData=t.GetAuthorizationTokenRequest=t.DescribeRepositoriesResponse=t.DescribeRepositoriesRequest=t.DescribeRegistryResponse=t.ReplicationConfiguration=t.ReplicationRule=t.RepositoryFilter=t.RepositoryFilterType=t.ReplicationDestination=t.DescribeRegistryRequest=void 0;t.UploadLayerPartResponse=t.UploadLayerPartRequest=t.InvalidLayerPartException=t.UntagResourceResponse=t.UntagResourceRequest=t.TagResourceResponse=t.TagResourceRequest=t.StartLifecyclePolicyPreviewResponse=t.StartLifecyclePolicyPreviewRequest=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.StartImageScanResponse=t.StartImageScanRequest=t.SetRepositoryPolicyResponse=t.SetRepositoryPolicyRequest=t.PutReplicationConfigurationResponse=t.PutReplicationConfigurationRequest=t.PutRegistryScanningConfigurationResponse=t.PutRegistryScanningConfigurationRequest=t.PutRegistryPolicyResponse=t.PutRegistryPolicyRequest=t.PutLifecyclePolicyResponse=t.PutLifecyclePolicyRequest=t.PutImageTagMutabilityResponse=t.PutImageTagMutabilityRequest=t.PutImageScanningConfigurationResponse=void 0;const n=o(1610);var r;(function(e){e.filterSensitiveLog=e=>({...e})})(r=t.BatchCheckLayerAvailabilityRequest||(t.BatchCheckLayerAvailabilityRequest={}));var i;(function(e){e["InvalidLayerDigest"]="InvalidLayerDigest";e["MissingLayerDigest"]="MissingLayerDigest"})(i=t.LayerFailureCode||(t.LayerFailureCode={}));var s;(function(e){e.filterSensitiveLog=e=>({...e})})(s=t.LayerFailure||(t.LayerFailure={}));var a;(function(e){e["AVAILABLE"]="AVAILABLE";e["UNAVAILABLE"]="UNAVAILABLE"})(a=t.LayerAvailability||(t.LayerAvailability={}));var c;(function(e){e.filterSensitiveLog=e=>({...e})})(c=t.Layer||(t.Layer={}));var l;(function(e){e.filterSensitiveLog=e=>({...e})})(l=t.BatchCheckLayerAvailabilityResponse||(t.BatchCheckLayerAvailabilityResponse={}));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;var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.ImageIdentifier||(t.ImageIdentifier={}));var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.BatchDeleteImageRequest||(t.BatchDeleteImageRequest={}));var p;(function(e){e["ImageNotFound"]="ImageNotFound";e["ImageReferencedByManifestList"]="ImageReferencedByManifestList";e["ImageTagDoesNotMatchDigest"]="ImageTagDoesNotMatchDigest";e["InvalidImageDigest"]="InvalidImageDigest";e["InvalidImageTag"]="InvalidImageTag";e["KmsError"]="KmsError";e["MissingDigestAndTag"]="MissingDigestAndTag"})(p=t.ImageFailureCode||(t.ImageFailureCode={}));var m;(function(e){e.filterSensitiveLog=e=>({...e})})(m=t.ImageFailure||(t.ImageFailure={}));var f;(function(e){e.filterSensitiveLog=e=>({...e})})(f=t.BatchDeleteImageResponse||(t.BatchDeleteImageResponse={}));var g;(function(e){e.filterSensitiveLog=e=>({...e})})(g=t.BatchGetImageRequest||(t.BatchGetImageRequest={}));var y;(function(e){e.filterSensitiveLog=e=>({...e})})(y=t.Image||(t.Image={}));var h;(function(e){e.filterSensitiveLog=e=>({...e})})(h=t.BatchGetImageResponse||(t.BatchGetImageResponse={}));var v;(function(e){e.filterSensitiveLog=e=>({...e})})(v=t.BatchGetRepositoryScanningConfigurationRequest||(t.BatchGetRepositoryScanningConfigurationRequest={}));var w;(function(e){e["REPOSITORY_NOT_FOUND"]="REPOSITORY_NOT_FOUND"})(w=t.ScanningConfigurationFailureCode||(t.ScanningConfigurationFailureCode={}));var E;(function(e){e.filterSensitiveLog=e=>({...e})})(E=t.RepositoryScanningConfigurationFailure||(t.RepositoryScanningConfigurationFailure={}));var S;(function(e){e["WILDCARD"]="WILDCARD"})(S=t.ScanningRepositoryFilterType||(t.ScanningRepositoryFilterType={}));var C;(function(e){e.filterSensitiveLog=e=>({...e})})(C=t.ScanningRepositoryFilter||(t.ScanningRepositoryFilter={}));var x;(function(e){e["CONTINUOUS_SCAN"]="CONTINUOUS_SCAN";e["MANUAL"]="MANUAL";e["SCAN_ON_PUSH"]="SCAN_ON_PUSH"})(x=t.ScanFrequency||(t.ScanFrequency={}));var R;(function(e){e.filterSensitiveLog=e=>({...e})})(R=t.RepositoryScanningConfiguration||(t.RepositoryScanningConfiguration={}));var _;(function(e){e.filterSensitiveLog=e=>({...e})})(_=t.BatchGetRepositoryScanningConfigurationResponse||(t.BatchGetRepositoryScanningConfigurationResponse={}));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;var b;(function(e){e.filterSensitiveLog=e=>({...e})})(b=t.CompleteLayerUploadRequest||(t.CompleteLayerUploadRequest={}));var P;(function(e){e.filterSensitiveLog=e=>({...e})})(P=t.CompleteLayerUploadResponse||(t.CompleteLayerUploadResponse={}));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;var I;(function(e){e.filterSensitiveLog=e=>({...e})})(I=t.CreatePullThroughCacheRuleRequest||(t.CreatePullThroughCacheRuleRequest={}));var A;(function(e){e.filterSensitiveLog=e=>({...e})})(A=t.CreatePullThroughCacheRuleResponse||(t.CreatePullThroughCacheRuleResponse={}));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;var T;(function(e){e["AES256"]="AES256";e["KMS"]="KMS"})(T=t.EncryptionType||(t.EncryptionType={}));var N;(function(e){e.filterSensitiveLog=e=>({...e})})(N=t.EncryptionConfiguration||(t.EncryptionConfiguration={}));var L;(function(e){e.filterSensitiveLog=e=>({...e})})(L=t.ImageScanningConfiguration||(t.ImageScanningConfiguration={}));var D;(function(e){e["IMMUTABLE"]="IMMUTABLE";e["MUTABLE"]="MUTABLE"})(D=t.ImageTagMutability||(t.ImageTagMutability={}));var O;(function(e){e.filterSensitiveLog=e=>({...e})})(O=t.Tag||(t.Tag={}));var z;(function(e){e.filterSensitiveLog=e=>({...e})})(z=t.CreateRepositoryRequest||(t.CreateRepositoryRequest={}));var j;(function(e){e.filterSensitiveLog=e=>({...e})})(j=t.Repository||(t.Repository={}));var M;(function(e){e.filterSensitiveLog=e=>({...e})})(M=t.CreateRepositoryResponse||(t.CreateRepositoryResponse={}));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;var k;(function(e){e.filterSensitiveLog=e=>({...e})})(k=t.DeleteLifecyclePolicyRequest||(t.DeleteLifecyclePolicyRequest={}));var F;(function(e){e.filterSensitiveLog=e=>({...e})})(F=t.DeleteLifecyclePolicyResponse||(t.DeleteLifecyclePolicyResponse={}));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;var U;(function(e){e.filterSensitiveLog=e=>({...e})})(U=t.DeletePullThroughCacheRuleRequest||(t.DeletePullThroughCacheRuleRequest={}));var q;(function(e){e.filterSensitiveLog=e=>({...e})})(q=t.DeletePullThroughCacheRuleResponse||(t.DeletePullThroughCacheRuleResponse={}));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;var $;(function(e){e.filterSensitiveLog=e=>({...e})})($=t.DeleteRegistryPolicyRequest||(t.DeleteRegistryPolicyRequest={}));var G;(function(e){e.filterSensitiveLog=e=>({...e})})(G=t.DeleteRegistryPolicyResponse||(t.DeleteRegistryPolicyResponse={}));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;var H;(function(e){e.filterSensitiveLog=e=>({...e})})(H=t.DeleteRepositoryRequest||(t.DeleteRepositoryRequest={}));var B;(function(e){e.filterSensitiveLog=e=>({...e})})(B=t.DeleteRepositoryResponse||(t.DeleteRepositoryResponse={}));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;var V;(function(e){e.filterSensitiveLog=e=>({...e})})(V=t.DeleteRepositoryPolicyRequest||(t.DeleteRepositoryPolicyRequest={}));var W;(function(e){e.filterSensitiveLog=e=>({...e})})(W=t.DeleteRepositoryPolicyResponse||(t.DeleteRepositoryPolicyResponse={}));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;var K;(function(e){e.filterSensitiveLog=e=>({...e})})(K=t.DescribeImageReplicationStatusRequest||(t.DescribeImageReplicationStatusRequest={}));var J;(function(e){e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(J=t.ReplicationStatus||(t.ReplicationStatus={}));var Y;(function(e){e.filterSensitiveLog=e=>({...e})})(Y=t.ImageReplicationStatus||(t.ImageReplicationStatus={}));var X;(function(e){e.filterSensitiveLog=e=>({...e})})(X=t.DescribeImageReplicationStatusResponse||(t.DescribeImageReplicationStatusResponse={}));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;var Q;(function(e){e["ANY"]="ANY";e["TAGGED"]="TAGGED";e["UNTAGGED"]="UNTAGGED"})(Q=t.TagStatus||(t.TagStatus={}));var Z;(function(e){e.filterSensitiveLog=e=>({...e})})(Z=t.DescribeImagesFilter||(t.DescribeImagesFilter={}));var ee;(function(e){e.filterSensitiveLog=e=>({...e})})(ee=t.DescribeImagesRequest||(t.DescribeImagesRequest={}));var te;(function(e){e["CRITICAL"]="CRITICAL";e["HIGH"]="HIGH";e["INFORMATIONAL"]="INFORMATIONAL";e["LOW"]="LOW";e["MEDIUM"]="MEDIUM";e["UNDEFINED"]="UNDEFINED"})(te=t.FindingSeverity||(t.FindingSeverity={}));var oe;(function(e){e.filterSensitiveLog=e=>({...e})})(oe=t.ImageScanFindingsSummary||(t.ImageScanFindingsSummary={}));var ne;(function(e){e["ACTIVE"]="ACTIVE";e["COMPLETE"]="COMPLETE";e["FAILED"]="FAILED";e["FINDINGS_UNAVAILABLE"]="FINDINGS_UNAVAILABLE";e["IN_PROGRESS"]="IN_PROGRESS";e["PENDING"]="PENDING";e["SCAN_ELIGIBILITY_EXPIRED"]="SCAN_ELIGIBILITY_EXPIRED";e["UNSUPPORTED_IMAGE"]="UNSUPPORTED_IMAGE"})(ne=t.ScanStatus||(t.ScanStatus={}));var re;(function(e){e.filterSensitiveLog=e=>({...e})})(re=t.ImageScanStatus||(t.ImageScanStatus={}));var ie;(function(e){e.filterSensitiveLog=e=>({...e})})(ie=t.ImageDetail||(t.ImageDetail={}));var se;(function(e){e.filterSensitiveLog=e=>({...e})})(se=t.DescribeImagesResponse||(t.DescribeImagesResponse={}));var ae;(function(e){e.filterSensitiveLog=e=>({...e})})(ae=t.DescribeImageScanFindingsRequest||(t.DescribeImageScanFindingsRequest={}));var ce;(function(e){e.filterSensitiveLog=e=>({...e})})(ce=t.CvssScore||(t.CvssScore={}));var le;(function(e){e.filterSensitiveLog=e=>({...e})})(le=t.VulnerablePackage||(t.VulnerablePackage={}));var ue;(function(e){e.filterSensitiveLog=e=>({...e})})(ue=t.PackageVulnerabilityDetails||(t.PackageVulnerabilityDetails={}));var de;(function(e){e.filterSensitiveLog=e=>({...e})})(de=t.Recommendation||(t.Recommendation={}));var pe;(function(e){e.filterSensitiveLog=e=>({...e})})(pe=t.Remediation||(t.Remediation={}));var me;(function(e){e.filterSensitiveLog=e=>({...e})})(me=t.AwsEcrContainerImageDetails||(t.AwsEcrContainerImageDetails={}));var fe;(function(e){e.filterSensitiveLog=e=>({...e})})(fe=t.ResourceDetails||(t.ResourceDetails={}));var ge;(function(e){e.filterSensitiveLog=e=>({...e})})(ge=t.Resource||(t.Resource={}));var ye;(function(e){e.filterSensitiveLog=e=>({...e})})(ye=t.CvssScoreAdjustment||(t.CvssScoreAdjustment={}));var he;(function(e){e.filterSensitiveLog=e=>({...e})})(he=t.CvssScoreDetails||(t.CvssScoreDetails={}));var ve;(function(e){e.filterSensitiveLog=e=>({...e})})(ve=t.ScoreDetails||(t.ScoreDetails={}));var we;(function(e){e.filterSensitiveLog=e=>({...e})})(we=t.EnhancedImageScanFinding||(t.EnhancedImageScanFinding={}));var Ee;(function(e){e.filterSensitiveLog=e=>({...e})})(Ee=t.Attribute||(t.Attribute={}));var Se;(function(e){e.filterSensitiveLog=e=>({...e})})(Se=t.ImageScanFinding||(t.ImageScanFinding={}));var Ce;(function(e){e.filterSensitiveLog=e=>({...e})})(Ce=t.ImageScanFindings||(t.ImageScanFindings={}));var xe;(function(e){e.filterSensitiveLog=e=>({...e})})(xe=t.DescribeImageScanFindingsResponse||(t.DescribeImageScanFindingsResponse={}));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;var Re;(function(e){e.filterSensitiveLog=e=>({...e})})(Re=t.DescribePullThroughCacheRulesRequest||(t.DescribePullThroughCacheRulesRequest={}));var be;(function(e){e.filterSensitiveLog=e=>({...e})})(be=t.PullThroughCacheRule||(t.PullThroughCacheRule={}));var Pe;(function(e){e.filterSensitiveLog=e=>({...e})})(Pe=t.DescribePullThroughCacheRulesResponse||(t.DescribePullThroughCacheRulesResponse={}));var Ie;(function(e){e.filterSensitiveLog=e=>({...e})})(Ie=t.DescribeRegistryRequest||(t.DescribeRegistryRequest={}));var Ae;(function(e){e.filterSensitiveLog=e=>({...e})})(Ae=t.ReplicationDestination||(t.ReplicationDestination={}));var Te;(function(e){e["PREFIX_MATCH"]="PREFIX_MATCH"})(Te=t.RepositoryFilterType||(t.RepositoryFilterType={}));var Ne;(function(e){e.filterSensitiveLog=e=>({...e})})(Ne=t.RepositoryFilter||(t.RepositoryFilter={}));var Le;(function(e){e.filterSensitiveLog=e=>({...e})})(Le=t.ReplicationRule||(t.ReplicationRule={}));var De;(function(e){e.filterSensitiveLog=e=>({...e})})(De=t.ReplicationConfiguration||(t.ReplicationConfiguration={}));var Oe;(function(e){e.filterSensitiveLog=e=>({...e})})(Oe=t.DescribeRegistryResponse||(t.DescribeRegistryResponse={}));var ze;(function(e){e.filterSensitiveLog=e=>({...e})})(ze=t.DescribeRepositoriesRequest||(t.DescribeRepositoriesRequest={}));var je;(function(e){e.filterSensitiveLog=e=>({...e})})(je=t.DescribeRepositoriesResponse||(t.DescribeRepositoriesResponse={}));var Me;(function(e){e.filterSensitiveLog=e=>({...e})})(Me=t.GetAuthorizationTokenRequest||(t.GetAuthorizationTokenRequest={}));var ke;(function(e){e.filterSensitiveLog=e=>({...e})})(ke=t.AuthorizationData||(t.AuthorizationData={}));var Fe;(function(e){e.filterSensitiveLog=e=>({...e})})(Fe=t.GetAuthorizationTokenResponse||(t.GetAuthorizationTokenResponse={}));var Ue;(function(e){e.filterSensitiveLog=e=>({...e})})(Ue=t.GetDownloadUrlForLayerRequest||(t.GetDownloadUrlForLayerRequest={}));var qe;(function(e){e.filterSensitiveLog=e=>({...e})})(qe=t.GetDownloadUrlForLayerResponse||(t.GetDownloadUrlForLayerResponse={}));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;var $e;(function(e){e.filterSensitiveLog=e=>({...e})})($e=t.GetLifecyclePolicyRequest||(t.GetLifecyclePolicyRequest={}));var Ge;(function(e){e.filterSensitiveLog=e=>({...e})})(Ge=t.GetLifecyclePolicyResponse||(t.GetLifecyclePolicyResponse={}));var He;(function(e){e.filterSensitiveLog=e=>({...e})})(He=t.LifecyclePolicyPreviewFilter||(t.LifecyclePolicyPreviewFilter={}));var Be;(function(e){e.filterSensitiveLog=e=>({...e})})(Be=t.GetLifecyclePolicyPreviewRequest||(t.GetLifecyclePolicyPreviewRequest={}));var Ve;(function(e){e["EXPIRE"]="EXPIRE"})(Ve=t.ImageActionType||(t.ImageActionType={}));var We;(function(e){e.filterSensitiveLog=e=>({...e})})(We=t.LifecyclePolicyRuleAction||(t.LifecyclePolicyRuleAction={}));var Ke;(function(e){e.filterSensitiveLog=e=>({...e})})(Ke=t.LifecyclePolicyPreviewResult||(t.LifecyclePolicyPreviewResult={}));var Je;(function(e){e["COMPLETE"]="COMPLETE";e["EXPIRED"]="EXPIRED";e["FAILED"]="FAILED";e["IN_PROGRESS"]="IN_PROGRESS"})(Je=t.LifecyclePolicyPreviewStatus||(t.LifecyclePolicyPreviewStatus={}));var Ye;(function(e){e.filterSensitiveLog=e=>({...e})})(Ye=t.LifecyclePolicyPreviewSummary||(t.LifecyclePolicyPreviewSummary={}));var Xe;(function(e){e.filterSensitiveLog=e=>({...e})})(Xe=t.GetLifecyclePolicyPreviewResponse||(t.GetLifecyclePolicyPreviewResponse={}));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;var Qe;(function(e){e.filterSensitiveLog=e=>({...e})})(Qe=t.GetRegistryPolicyRequest||(t.GetRegistryPolicyRequest={}));var Ze;(function(e){e.filterSensitiveLog=e=>({...e})})(Ze=t.GetRegistryPolicyResponse||(t.GetRegistryPolicyResponse={}));var et;(function(e){e.filterSensitiveLog=e=>({...e})})(et=t.GetRegistryScanningConfigurationRequest||(t.GetRegistryScanningConfigurationRequest={}));var tt;(function(e){e.filterSensitiveLog=e=>({...e})})(tt=t.RegistryScanningRule||(t.RegistryScanningRule={}));var ot;(function(e){e["BASIC"]="BASIC";e["ENHANCED"]="ENHANCED"})(ot=t.ScanType||(t.ScanType={}));var nt;(function(e){e.filterSensitiveLog=e=>({...e})})(nt=t.RegistryScanningConfiguration||(t.RegistryScanningConfiguration={}));var rt;(function(e){e.filterSensitiveLog=e=>({...e})})(rt=t.GetRegistryScanningConfigurationResponse||(t.GetRegistryScanningConfigurationResponse={}));var it;(function(e){e.filterSensitiveLog=e=>({...e})})(it=t.GetRepositoryPolicyRequest||(t.GetRepositoryPolicyRequest={}));var st;(function(e){e.filterSensitiveLog=e=>({...e})})(st=t.GetRepositoryPolicyResponse||(t.GetRepositoryPolicyResponse={}));var at;(function(e){e.filterSensitiveLog=e=>({...e})})(at=t.InitiateLayerUploadRequest||(t.InitiateLayerUploadRequest={}));var ct;(function(e){e.filterSensitiveLog=e=>({...e})})(ct=t.InitiateLayerUploadResponse||(t.InitiateLayerUploadResponse={}));var lt;(function(e){e.filterSensitiveLog=e=>({...e})})(lt=t.ListImagesFilter||(t.ListImagesFilter={}));var ut;(function(e){e.filterSensitiveLog=e=>({...e})})(ut=t.ListImagesRequest||(t.ListImagesRequest={}));var dt;(function(e){e.filterSensitiveLog=e=>({...e})})(dt=t.ListImagesResponse||(t.ListImagesResponse={}));var pt;(function(e){e.filterSensitiveLog=e=>({...e})})(pt=t.ListTagsForResourceRequest||(t.ListTagsForResourceRequest={}));var mt;(function(e){e.filterSensitiveLog=e=>({...e})})(mt=t.ListTagsForResourceResponse||(t.ListTagsForResourceResponse={}));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;var ft;(function(e){e.filterSensitiveLog=e=>({...e})})(ft=t.PutImageRequest||(t.PutImageRequest={}));var gt;(function(e){e.filterSensitiveLog=e=>({...e})})(gt=t.PutImageResponse||(t.PutImageResponse={}));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;var yt;(function(e){e.filterSensitiveLog=e=>({...e})})(yt=t.PutImageScanningConfigurationRequest||(t.PutImageScanningConfigurationRequest={}));var ht;(function(e){e.filterSensitiveLog=e=>({...e})})(ht=t.PutImageScanningConfigurationResponse||(t.PutImageScanningConfigurationResponse={}));var vt;(function(e){e.filterSensitiveLog=e=>({...e})})(vt=t.PutImageTagMutabilityRequest||(t.PutImageTagMutabilityRequest={}));var wt;(function(e){e.filterSensitiveLog=e=>({...e})})(wt=t.PutImageTagMutabilityResponse||(t.PutImageTagMutabilityResponse={}));var Et;(function(e){e.filterSensitiveLog=e=>({...e})})(Et=t.PutLifecyclePolicyRequest||(t.PutLifecyclePolicyRequest={}));var St;(function(e){e.filterSensitiveLog=e=>({...e})})(St=t.PutLifecyclePolicyResponse||(t.PutLifecyclePolicyResponse={}));var Ct;(function(e){e.filterSensitiveLog=e=>({...e})})(Ct=t.PutRegistryPolicyRequest||(t.PutRegistryPolicyRequest={}));var xt;(function(e){e.filterSensitiveLog=e=>({...e})})(xt=t.PutRegistryPolicyResponse||(t.PutRegistryPolicyResponse={}));var Rt;(function(e){e.filterSensitiveLog=e=>({...e})})(Rt=t.PutRegistryScanningConfigurationRequest||(t.PutRegistryScanningConfigurationRequest={}));var _t;(function(e){e.filterSensitiveLog=e=>({...e})})(_t=t.PutRegistryScanningConfigurationResponse||(t.PutRegistryScanningConfigurationResponse={}));var bt;(function(e){e.filterSensitiveLog=e=>({...e})})(bt=t.PutReplicationConfigurationRequest||(t.PutReplicationConfigurationRequest={}));var Pt;(function(e){e.filterSensitiveLog=e=>({...e})})(Pt=t.PutReplicationConfigurationResponse||(t.PutReplicationConfigurationResponse={}));var It;(function(e){e.filterSensitiveLog=e=>({...e})})(It=t.SetRepositoryPolicyRequest||(t.SetRepositoryPolicyRequest={}));var At;(function(e){e.filterSensitiveLog=e=>({...e})})(At=t.SetRepositoryPolicyResponse||(t.SetRepositoryPolicyResponse={}));var Tt;(function(e){e.filterSensitiveLog=e=>({...e})})(Tt=t.StartImageScanRequest||(t.StartImageScanRequest={}));var Nt;(function(e){e.filterSensitiveLog=e=>({...e})})(Nt=t.StartImageScanResponse||(t.StartImageScanResponse={}));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;var Lt;(function(e){e.filterSensitiveLog=e=>({...e})})(Lt=t.StartLifecyclePolicyPreviewRequest||(t.StartLifecyclePolicyPreviewRequest={}));var Dt;(function(e){e.filterSensitiveLog=e=>({...e})})(Dt=t.StartLifecyclePolicyPreviewResponse||(t.StartLifecyclePolicyPreviewResponse={}));var Ot;(function(e){e.filterSensitiveLog=e=>({...e})})(Ot=t.TagResourceRequest||(t.TagResourceRequest={}));var zt;(function(e){e.filterSensitiveLog=e=>({...e})})(zt=t.TagResourceResponse||(t.TagResourceResponse={}));var jt;(function(e){e.filterSensitiveLog=e=>({...e})})(jt=t.UntagResourceRequest||(t.UntagResourceRequest={}));var Mt;(function(e){e.filterSensitiveLog=e=>({...e})})(Mt=t.UntagResourceResponse||(t.UntagResourceResponse={}));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;var kt;(function(e){e.filterSensitiveLog=e=>({...e})})(kt=t.UploadLayerPartRequest||(t.UploadLayerPartRequest={}));var Ft;(function(e){e.filterSensitiveLog=e=>({...e})})(Ft=t.UploadLayerPartResponse||(t.UploadLayerPartResponse={}))},862:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageScanFindings=void 0;const n=o(2987);const r=o(9167);const i=o(3391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImageScanFindingsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImageScanFindings(t,...o);async function*paginateDescribeImageScanFindings(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeImageScanFindings=paginateDescribeImageScanFindings},1351:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const n=o(5353);const r=o(9167);const i=o(3391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImagesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeImages(t,...o);async function*paginateDescribeImages(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeImages=paginateDescribeImages},9589:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribePullThroughCacheRules=void 0;const n=o(1484);const r=o(9167);const i=o(3391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribePullThroughCacheRulesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describePullThroughCacheRules(t,...o);async function*paginateDescribePullThroughCacheRules(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribePullThroughCacheRules=paginateDescribePullThroughCacheRules},6404:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const n=o(1200);const r=o(9167);const i=o(3391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeRepositoriesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.describeRepositories(t,...o);async function*paginateDescribeRepositories(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateGetLifecyclePolicyPreview=void 0;const n=o(7006);const r=o(9167);const i=o(3391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.GetLifecyclePolicyPreviewCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.getLifecyclePolicyPreview(t,...o);async function*paginateGetLifecyclePolicyPreview(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;n=a.nextToken;s=!!n}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(9167);const i=o(3391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.ListImagesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listImages(t,...o);async function*paginateListImages(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECR){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.ECRClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateListImages=paginateListImages},5356:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(862),t);n.__exportStar(o(1351),t);n.__exportStar(o(9589),t);n.__exportStar(o(6404),t);n.__exportStar(o(987),t);n.__exportStar(o(9010),t);n.__exportStar(o(1066),t)},6704:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=t.deserializeAws_json1_1CreateRepositoryCommand=t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=t.deserializeAws_json1_1CompleteLayerUploadCommand=t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=t.deserializeAws_json1_1BatchGetImageCommand=t.deserializeAws_json1_1BatchDeleteImageCommand=t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=t.serializeAws_json1_1UploadLayerPartCommand=t.serializeAws_json1_1UntagResourceCommand=t.serializeAws_json1_1TagResourceCommand=t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=t.serializeAws_json1_1StartImageScanCommand=t.serializeAws_json1_1SetRepositoryPolicyCommand=t.serializeAws_json1_1PutReplicationConfigurationCommand=t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=t.serializeAws_json1_1PutRegistryPolicyCommand=t.serializeAws_json1_1PutLifecyclePolicyCommand=t.serializeAws_json1_1PutImageTagMutabilityCommand=t.serializeAws_json1_1PutImageScanningConfigurationCommand=t.serializeAws_json1_1PutImageCommand=t.serializeAws_json1_1ListTagsForResourceCommand=t.serializeAws_json1_1ListImagesCommand=t.serializeAws_json1_1InitiateLayerUploadCommand=t.serializeAws_json1_1GetRepositoryPolicyCommand=t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=t.serializeAws_json1_1GetRegistryPolicyCommand=t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=t.serializeAws_json1_1GetLifecyclePolicyCommand=t.serializeAws_json1_1GetDownloadUrlForLayerCommand=t.serializeAws_json1_1GetAuthorizationTokenCommand=t.serializeAws_json1_1DescribeRepositoriesCommand=t.serializeAws_json1_1DescribeRegistryCommand=t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=t.serializeAws_json1_1DescribeImageScanFindingsCommand=t.serializeAws_json1_1DescribeImagesCommand=t.serializeAws_json1_1DescribeImageReplicationStatusCommand=t.serializeAws_json1_1DeleteRepositoryPolicyCommand=t.serializeAws_json1_1DeleteRepositoryCommand=t.serializeAws_json1_1DeleteRegistryPolicyCommand=t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=t.serializeAws_json1_1DeleteLifecyclePolicyCommand=t.serializeAws_json1_1CreateRepositoryCommand=t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=t.serializeAws_json1_1CompleteLayerUploadCommand=t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=t.serializeAws_json1_1BatchGetImageCommand=t.serializeAws_json1_1BatchDeleteImageCommand=t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=void 0;t.deserializeAws_json1_1UploadLayerPartCommand=t.deserializeAws_json1_1UntagResourceCommand=t.deserializeAws_json1_1TagResourceCommand=t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=t.deserializeAws_json1_1StartImageScanCommand=t.deserializeAws_json1_1SetRepositoryPolicyCommand=t.deserializeAws_json1_1PutReplicationConfigurationCommand=t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=t.deserializeAws_json1_1PutRegistryPolicyCommand=t.deserializeAws_json1_1PutLifecyclePolicyCommand=t.deserializeAws_json1_1PutImageTagMutabilityCommand=t.deserializeAws_json1_1PutImageScanningConfigurationCommand=t.deserializeAws_json1_1PutImageCommand=t.deserializeAws_json1_1ListTagsForResourceCommand=t.deserializeAws_json1_1ListImagesCommand=t.deserializeAws_json1_1InitiateLayerUploadCommand=t.deserializeAws_json1_1GetRepositoryPolicyCommand=t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=t.deserializeAws_json1_1GetRegistryPolicyCommand=t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=t.deserializeAws_json1_1GetLifecyclePolicyCommand=t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=t.deserializeAws_json1_1GetAuthorizationTokenCommand=t.deserializeAws_json1_1DescribeRepositoriesCommand=t.deserializeAws_json1_1DescribeRegistryCommand=t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=t.deserializeAws_json1_1DescribeImageScanFindingsCommand=t.deserializeAws_json1_1DescribeImagesCommand=t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=t.deserializeAws_json1_1DeleteRepositoryCommand=t.deserializeAws_json1_1DeleteRegistryPolicyCommand=void 0;const n=o(223);const r=o(4963);const i=o(1610);const s=o(9088);const serializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability"};let n;n=JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1BatchCheckLayerAvailabilityCommand=serializeAws_json1_1BatchCheckLayerAvailabilityCommand;const serializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage"};let n;n=JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1BatchDeleteImageCommand=serializeAws_json1_1BatchDeleteImageCommand;const serializeAws_json1_1BatchGetImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetImage"};let n;n=JSON.stringify(serializeAws_json1_1BatchGetImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1BatchGetImageCommand=serializeAws_json1_1BatchGetImageCommand;const serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration"};let n;n=JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const serializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload"};let n;n=JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1CompleteLayerUploadCommand=serializeAws_json1_1CompleteLayerUploadCommand;const serializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule"};let n;n=JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1CreatePullThroughCacheRuleCommand=serializeAws_json1_1CreatePullThroughCacheRuleCommand;const serializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.CreateRepository"};let n;n=JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1CreateRepositoryCommand=serializeAws_json1_1CreateRepositoryCommand;const serializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy"};let n;n=JSON.stringify(serializeAws_json1_1DeleteLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeleteLifecyclePolicyCommand=serializeAws_json1_1DeleteLifecyclePolicyCommand;const serializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule"};let n;n=JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeletePullThroughCacheRuleCommand=serializeAws_json1_1DeletePullThroughCacheRuleCommand;const serializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1DeleteRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeleteRegistryPolicyCommand=serializeAws_json1_1DeleteRegistryPolicyCommand;const serializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepository"};let n;n=JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeleteRepositoryCommand=serializeAws_json1_1DeleteRepositoryCommand;const serializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DeleteRepositoryPolicyCommand=serializeAws_json1_1DeleteRepositoryPolicyCommand;const serializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus"};let n;n=JSON.stringify(serializeAws_json1_1DescribeImageReplicationStatusRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeImageReplicationStatusCommand=serializeAws_json1_1DescribeImageReplicationStatusCommand;const serializeAws_json1_1DescribeImagesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImages"};let n;n=JSON.stringify(serializeAws_json1_1DescribeImagesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeImagesCommand=serializeAws_json1_1DescribeImagesCommand;const serializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings"};let n;n=JSON.stringify(serializeAws_json1_1DescribeImageScanFindingsRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeImageScanFindingsCommand=serializeAws_json1_1DescribeImageScanFindingsCommand;const serializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules"};let n;n=JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribePullThroughCacheRulesCommand=serializeAws_json1_1DescribePullThroughCacheRulesCommand;const serializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRegistry"};let n;n=JSON.stringify(serializeAws_json1_1DescribeRegistryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeRegistryCommand=serializeAws_json1_1DescribeRegistryCommand;const serializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.DescribeRepositories"};let n;n=JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1DescribeRepositoriesCommand=serializeAws_json1_1DescribeRepositoriesCommand;const serializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken"};let n;n=JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetAuthorizationTokenCommand=serializeAws_json1_1GetAuthorizationTokenCommand;const serializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer"};let n;n=JSON.stringify(serializeAws_json1_1GetDownloadUrlForLayerRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetDownloadUrlForLayerCommand=serializeAws_json1_1GetDownloadUrlForLayerCommand;const serializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy"};let n;n=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetLifecyclePolicyCommand=serializeAws_json1_1GetLifecyclePolicyCommand;const serializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview"};let n;n=JSON.stringify(serializeAws_json1_1GetLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetLifecyclePolicyPreviewCommand=serializeAws_json1_1GetLifecyclePolicyPreviewCommand;const serializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1GetRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetRegistryPolicyCommand=serializeAws_json1_1GetRegistryPolicyCommand;const serializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration"};let n;n=JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetRegistryScanningConfigurationCommand=serializeAws_json1_1GetRegistryScanningConfigurationCommand;const serializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1GetRepositoryPolicyCommand=serializeAws_json1_1GetRepositoryPolicyCommand;const serializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload"};let n;n=JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1InitiateLayerUploadCommand=serializeAws_json1_1InitiateLayerUploadCommand;const serializeAws_json1_1ListImagesCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListImages"};let n;n=JSON.stringify(serializeAws_json1_1ListImagesRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1ListImagesCommand=serializeAws_json1_1ListImagesCommand;const serializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.ListTagsForResource"};let n;n=JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1ListTagsForResourceCommand=serializeAws_json1_1ListTagsForResourceCommand;const serializeAws_json1_1PutImageCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImage"};let n;n=JSON.stringify(serializeAws_json1_1PutImageRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutImageCommand=serializeAws_json1_1PutImageCommand;const serializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration"};let n;n=JSON.stringify(serializeAws_json1_1PutImageScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutImageScanningConfigurationCommand=serializeAws_json1_1PutImageScanningConfigurationCommand;const serializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability"};let n;n=JSON.stringify(serializeAws_json1_1PutImageTagMutabilityRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutImageTagMutabilityCommand=serializeAws_json1_1PutImageTagMutabilityCommand;const serializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy"};let n;n=JSON.stringify(serializeAws_json1_1PutLifecyclePolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutLifecyclePolicyCommand=serializeAws_json1_1PutLifecyclePolicyCommand;const serializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1PutRegistryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutRegistryPolicyCommand=serializeAws_json1_1PutRegistryPolicyCommand;const serializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration"};let n;n=JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutRegistryScanningConfigurationCommand=serializeAws_json1_1PutRegistryScanningConfigurationCommand;const serializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration"};let n;n=JSON.stringify(serializeAws_json1_1PutReplicationConfigurationRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1PutReplicationConfigurationCommand=serializeAws_json1_1PutReplicationConfigurationCommand;const serializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy"};let n;n=JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1SetRepositoryPolicyCommand=serializeAws_json1_1SetRepositoryPolicyCommand;const serializeAws_json1_1StartImageScanCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartImageScan"};let n;n=JSON.stringify(serializeAws_json1_1StartImageScanRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1StartImageScanCommand=serializeAws_json1_1StartImageScanCommand;const serializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview"};let n;n=JSON.stringify(serializeAws_json1_1StartLifecyclePolicyPreviewRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1StartLifecyclePolicyPreviewCommand=serializeAws_json1_1StartLifecyclePolicyPreviewCommand;const serializeAws_json1_1TagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.TagResource"};let n;n=JSON.stringify(serializeAws_json1_1TagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1TagResourceCommand=serializeAws_json1_1TagResourceCommand;const serializeAws_json1_1UntagResourceCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UntagResource"};let n;n=JSON.stringify(serializeAws_json1_1UntagResourceRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1UntagResourceCommand=serializeAws_json1_1UntagResourceCommand;const serializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{const o={"content-type":"application/x-amz-json-1.1","x-amz-target":"AmazonEC2ContainerRegistry_V20150921.UploadLayerPart"};let n;n=JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_json1_1UploadLayerPartCommand=serializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand=deserializeAws_json1_1BatchCheckLayerAvailabilityCommand;const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchDeleteImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1BatchDeleteImageResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1BatchDeleteImageCommand=deserializeAws_json1_1BatchDeleteImageCommand;const deserializeAws_json1_1BatchDeleteImageCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1BatchGetImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1BatchGetImageResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1BatchGetImageCommand=deserializeAws_json1_1BatchGetImageCommand;const deserializeAws_json1_1BatchGetImageCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand=deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CompleteLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1CompleteLayerUploadResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1CompleteLayerUploadCommand=deserializeAws_json1_1CompleteLayerUploadCommand;const deserializeAws_json1_1CompleteLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"EmptyUploadException":case"com.amazonaws.ecr#EmptyUploadException":throw await deserializeAws_json1_1EmptyUploadExceptionResponse(o,t);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await deserializeAws_json1_1InvalidLayerExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(o,t);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1CreatePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1CreatePullThroughCacheRuleResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1CreatePullThroughCacheRuleCommand=deserializeAws_json1_1CreatePullThroughCacheRuleCommand;const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1CreateRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1CreateRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1CreateRepositoryCommand=deserializeAws_json1_1CreateRepositoryCommand;const deserializeAws_json1_1CreateRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeleteLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeleteLifecyclePolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteLifecyclePolicyCommand=deserializeAws_json1_1DeleteLifecyclePolicyCommand;const deserializeAws_json1_1DeleteLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeletePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeletePullThroughCacheRuleResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeletePullThroughCacheRuleCommand=deserializeAws_json1_1DeletePullThroughCacheRuleCommand;const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeleteRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeleteRegistryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRegistryPolicyCommand=deserializeAws_json1_1DeleteRegistryPolicyCommand;const deserializeAws_json1_1DeleteRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeleteRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryCommand=deserializeAws_json1_1DeleteRepositoryCommand;const deserializeAws_json1_1DeleteRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DeleteRepositoryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DeleteRepositoryPolicyCommand=deserializeAws_json1_1DeleteRepositoryPolicyCommand;const deserializeAws_json1_1DeleteRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeImageReplicationStatusCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageReplicationStatusCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeImageReplicationStatusResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageReplicationStatusCommand=deserializeAws_json1_1DescribeImageReplicationStatusCommand;const deserializeAws_json1_1DescribeImageReplicationStatusCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImagesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeImagesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImagesCommand=deserializeAws_json1_1DescribeImagesCommand;const deserializeAws_json1_1DescribeImagesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeImageScanFindingsCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeImageScanFindingsCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeImageScanFindingsResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeImageScanFindingsCommand=deserializeAws_json1_1DescribeImageScanFindingsCommand;const deserializeAws_json1_1DescribeImageScanFindingsCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await deserializeAws_json1_1ScanNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribePullThroughCacheRulesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribePullThroughCacheRulesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribePullThroughCacheRulesCommand=deserializeAws_json1_1DescribePullThroughCacheRulesCommand;const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeRegistryCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRegistryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeRegistryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRegistryCommand=deserializeAws_json1_1DescribeRegistryCommand;const deserializeAws_json1_1DescribeRegistryCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1DescribeRepositoriesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1DescribeRepositoriesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1DescribeRepositoriesCommand=deserializeAws_json1_1DescribeRepositoriesCommand;const deserializeAws_json1_1DescribeRepositoriesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetAuthorizationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetAuthorizationTokenResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetAuthorizationTokenCommand=deserializeAws_json1_1GetAuthorizationTokenCommand;const deserializeAws_json1_1GetAuthorizationTokenCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetDownloadUrlForLayerCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetDownloadUrlForLayerCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetDownloadUrlForLayerResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetDownloadUrlForLayerCommand=deserializeAws_json1_1GetDownloadUrlForLayerCommand;const deserializeAws_json1_1GetDownloadUrlForLayerCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await deserializeAws_json1_1LayerInaccessibleExceptionResponse(o,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetLifecyclePolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetLifecyclePolicyCommand=deserializeAws_json1_1GetLifecyclePolicyCommand;const deserializeAws_json1_1GetLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetLifecyclePolicyPreviewResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand=deserializeAws_json1_1GetLifecyclePolicyPreviewCommand;const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetRegistryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryPolicyCommand=deserializeAws_json1_1GetRegistryPolicyCommand;const deserializeAws_json1_1GetRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetRegistryScanningConfigurationResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetRegistryScanningConfigurationCommand=deserializeAws_json1_1GetRegistryScanningConfigurationCommand;const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1GetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1GetRepositoryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1GetRepositoryPolicyCommand=deserializeAws_json1_1GetRepositoryPolicyCommand;const deserializeAws_json1_1GetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1InitiateLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1InitiateLayerUploadResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1InitiateLayerUploadCommand=deserializeAws_json1_1InitiateLayerUploadCommand;const deserializeAws_json1_1InitiateLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1ListImagesCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListImagesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1ListImagesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1ListImagesCommand=deserializeAws_json1_1ListImagesCommand;const deserializeAws_json1_1ListImagesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1ListTagsForResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1ListTagsForResourceResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1ListTagsForResourceCommand=deserializeAws_json1_1ListTagsForResourceCommand;const deserializeAws_json1_1ListTagsForResourceCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutImageResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageCommand=deserializeAws_json1_1PutImageCommand;const deserializeAws_json1_1PutImageCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageAlreadyExistsException":case"com.amazonaws.ecr#ImageAlreadyExistsException":throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(o,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(o,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutImageScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutImageScanningConfigurationResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageScanningConfigurationCommand=deserializeAws_json1_1PutImageScanningConfigurationCommand;const deserializeAws_json1_1PutImageScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutImageTagMutabilityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutImageTagMutabilityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutImageTagMutabilityResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutImageTagMutabilityCommand=deserializeAws_json1_1PutImageTagMutabilityCommand;const deserializeAws_json1_1PutImageTagMutabilityCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutLifecyclePolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutLifecyclePolicyCommand=deserializeAws_json1_1PutLifecyclePolicyCommand;const deserializeAws_json1_1PutLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutRegistryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryPolicyCommand=deserializeAws_json1_1PutRegistryPolicyCommand;const deserializeAws_json1_1PutRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutRegistryScanningConfigurationResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutRegistryScanningConfigurationCommand=deserializeAws_json1_1PutRegistryScanningConfigurationCommand;const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1PutReplicationConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1PutReplicationConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1PutReplicationConfigurationResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1PutReplicationConfigurationCommand=deserializeAws_json1_1PutReplicationConfigurationCommand;const deserializeAws_json1_1PutReplicationConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1SetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1SetRepositoryPolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1SetRepositoryPolicyCommand=deserializeAws_json1_1SetRepositoryPolicyCommand;const deserializeAws_json1_1SetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1StartImageScanCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartImageScanCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1StartImageScanResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1StartImageScanCommand=deserializeAws_json1_1StartImageScanCommand;const deserializeAws_json1_1StartImageScanCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await deserializeAws_json1_1ValidationExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1StartLifecyclePolicyPreviewResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand=deserializeAws_json1_1StartLifecyclePolicyPreviewCommand;const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(o,t);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1TagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1TagResourceResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1TagResourceCommand=deserializeAws_json1_1TagResourceCommand;const deserializeAws_json1_1TagResourceCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UntagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1UntagResourceResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1UntagResourceCommand=deserializeAws_json1_1UntagResourceCommand;const deserializeAws_json1_1UntagResourceCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await deserializeAws_json1_1TooManyTagsExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_json1_1UploadLayerPartCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_json1_1UploadLayerPartResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_json1_1UploadLayerPartCommand=deserializeAws_json1_1UploadLayerPartCommand;const deserializeAws_json1_1UploadLayerPartCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let s="UnknownError";s=loadRestJsonErrorCode(e,o.body);switch(s){case"InvalidLayerPartException":case"com.amazonaws.ecr#InvalidLayerPartException":throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await deserializeAws_json1_1InvalidParameterExceptionResponse(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await deserializeAws_json1_1KmsExceptionResponse(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await deserializeAws_json1_1LimitExceededExceptionResponse(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await deserializeAws_json1_1ServerExceptionResponse(o,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(o,t);default:const a=o.body;n=new i.ECRServiceException({name:a.code||a.Code||s,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_json1_1EmptyUploadExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1EmptyUploadException(o,t);const i=new s.EmptyUploadException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageAlreadyExistsException(o,t);const i=new s.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageDigestDoesNotMatchException(o,t);const i=new s.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageNotFoundException(o,t);const i=new s.ImageNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ImageTagAlreadyExistsException(o,t);const i=new s.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidLayerExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidLayerException(o,t);const i=new s.InvalidLayerException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidLayerPartExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidLayerPartException(o,t);const i=new s.InvalidLayerPartException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidParameterExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidParameterException(o,t);const i=new s.InvalidParameterException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1InvalidTagParameterExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1InvalidTagParameterException(o,t);const i=new s.InvalidTagParameterException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1KmsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1KmsException(o,t);const i=new s.KmsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayerAlreadyExistsException(o,t);const i=new s.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayerInaccessibleExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayerInaccessibleException(o,t);const i=new s.LayerInaccessibleException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayerPartTooSmallExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayerPartTooSmallException(o,t);const i=new s.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LayersNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LayersNotFoundException(o,t);const i=new s.LayersNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LifecyclePolicyNotFoundException(o,t);const i=new s.LifecyclePolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(o,t);const i=new s.LifecyclePolicyPreviewInProgressException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(o,t);const i=new s.LifecyclePolicyPreviewNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1LimitExceededExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1LimitExceededException(o,t);const i=new s.LimitExceededException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(o,t);const i=new s.PullThroughCacheRuleAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1PullThroughCacheRuleNotFoundException(o,t);const i=new s.PullThroughCacheRuleNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ReferencedImagesNotFoundException(o,t);const i=new s.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RegistryPolicyNotFoundException(o,t);const i=new s.RegistryPolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryAlreadyExistsException(o,t);const i=new s.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryNotEmptyException(o,t);const i=new s.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryNotFoundException(o,t);const i=new s.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1RepositoryPolicyNotFoundException(o,t);const i=new s.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ScanNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ScanNotFoundException(o,t);const i=new s.ScanNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ServerExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ServerException(o,t);const i=new s.ServerException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1TooManyTagsExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1TooManyTagsException(o,t);const i=new s.TooManyTagsException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1UnsupportedImageTypeException(o,t);const i=new s.UnsupportedImageTypeException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1UnsupportedUpstreamRegistryException(o,t);const i=new s.UnsupportedUpstreamRegistryException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1UploadNotFoundExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1UploadNotFoundException(o,t);const i=new s.UploadNotFoundException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_json1_1ValidationExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_json1_1ValidationException(o,t);const i=new s.ValidationException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const serializeAws_json1_1BatchCheckLayerAvailabilityRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1BatchedOperationLayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchDeleteImageRequest=(e,t)=>({...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchedOperationLayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1BatchGetImageRequest=(e,t)=>({...e.acceptedMediaTypes!==undefined&&e.acceptedMediaTypes!==null&&{acceptedMediaTypes:serializeAws_json1_1MediaTypeList(e.acceptedMediaTypes,t)},...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest=(e,t)=>({...e.repositoryNames!==undefined&&e.repositoryNames!==null&&{repositoryNames:serializeAws_json1_1ScanningConfigurationRepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1CompleteLayerUploadRequest=(e,t)=>({...e.layerDigests!==undefined&&e.layerDigests!==null&&{layerDigests:serializeAws_json1_1LayerDigestList(e.layerDigests,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const serializeAws_json1_1CreatePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!==undefined&&e.ecrRepositoryPrefix!==null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.upstreamRegistryUrl!==undefined&&e.upstreamRegistryUrl!==null&&{upstreamRegistryUrl:e.upstreamRegistryUrl}});const serializeAws_json1_1CreateRepositoryRequest=(e,t)=>({...e.encryptionConfiguration!==undefined&&e.encryptionConfiguration!==null&&{encryptionConfiguration:serializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t)},...e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.imageTagMutability!==undefined&&e.imageTagMutability!==null&&{imageTagMutability:e.imageTagMutability},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1DeleteLifecyclePolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeletePullThroughCacheRuleRequest=(e,t)=>({...e.ecrRepositoryPrefix!==undefined&&e.ecrRepositoryPrefix!==null&&{ecrRepositoryPrefix:e.ecrRepositoryPrefix},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId}});const serializeAws_json1_1DeleteRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1DeleteRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DeleteRepositoryRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageReplicationStatusRequest=(e,t)=>({...e.imageId!==undefined&&e.imageId!==null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImageScanFindingsRequest=(e,t)=>({...e.imageId!==undefined&&e.imageId!==null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribeImagesFilter=(e,t)=>({...e.tagStatus!==undefined&&e.tagStatus!==null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1DescribeImagesRequest=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:serializeAws_json1_1DescribeImagesFilter(e.filter,t)},...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1DescribePullThroughCacheRulesRequest=(e,t)=>({...e.ecrRepositoryPrefixes!==undefined&&e.ecrRepositoryPrefixes!==null&&{ecrRepositoryPrefixes:serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(e.ecrRepositoryPrefixes,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId}});const serializeAws_json1_1DescribeRegistryRequest=(e,t)=>({});const serializeAws_json1_1DescribeRepositoriesRequest=(e,t)=>({...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryNames!==undefined&&e.repositoryNames!==null&&{repositoryNames:serializeAws_json1_1RepositoryNameList(e.repositoryNames,t)}});const serializeAws_json1_1EncryptionConfiguration=(e,t)=>({...e.encryptionType!==undefined&&e.encryptionType!==null&&{encryptionType:e.encryptionType},...e.kmsKey!==undefined&&e.kmsKey!==null&&{kmsKey:e.kmsKey}});const serializeAws_json1_1GetAuthorizationTokenRegistryIdList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1GetAuthorizationTokenRequest=(e,t)=>({...e.registryIds!==undefined&&e.registryIds!==null&&{registryIds:serializeAws_json1_1GetAuthorizationTokenRegistryIdList(e.registryIds,t)}});const serializeAws_json1_1GetDownloadUrlForLayerRequest=(e,t)=>({...e.layerDigest!==undefined&&e.layerDigest!==null&&{layerDigest:e.layerDigest},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyPreviewRequest=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:serializeAws_json1_1LifecyclePolicyPreviewFilter(e.filter,t)},...e.imageIds!==undefined&&e.imageIds!==null&&{imageIds:serializeAws_json1_1ImageIdentifierList(e.imageIds,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetLifecyclePolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1GetRegistryPolicyRequest=(e,t)=>({});const serializeAws_json1_1GetRegistryScanningConfigurationRequest=(e,t)=>({});const serializeAws_json1_1GetRepositoryPolicyRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ImageIdentifier=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag}});const serializeAws_json1_1ImageIdentifierList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ImageIdentifier(e,t)}));const serializeAws_json1_1ImageScanningConfiguration=(e,t)=>({...e.scanOnPush!==undefined&&e.scanOnPush!==null&&{scanOnPush:e.scanOnPush}});const serializeAws_json1_1InitiateLayerUploadRequest=(e,t)=>({...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1LayerDigestList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1LifecyclePolicyPreviewFilter=(e,t)=>({...e.tagStatus!==undefined&&e.tagStatus!==null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesFilter=(e,t)=>({...e.tagStatus!==undefined&&e.tagStatus!==null&&{tagStatus:e.tagStatus}});const serializeAws_json1_1ListImagesRequest=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:serializeAws_json1_1ListImagesFilter(e.filter,t)},...e.maxResults!==undefined&&e.maxResults!==null&&{maxResults:e.maxResults},...e.nextToken!==undefined&&e.nextToken!==null&&{nextToken:e.nextToken},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1ListTagsForResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn}});const serializeAws_json1_1MediaTypeList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1PutImageRequest=(e,t)=>({...e.imageDigest!==undefined&&e.imageDigest!==null&&{imageDigest:e.imageDigest},...e.imageManifest!==undefined&&e.imageManifest!==null&&{imageManifest:e.imageManifest},...e.imageManifestMediaType!==undefined&&e.imageManifestMediaType!==null&&{imageManifestMediaType:e.imageManifestMediaType},...e.imageTag!==undefined&&e.imageTag!==null&&{imageTag:e.imageTag},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageScanningConfigurationRequest=(e,t)=>({...e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null&&{imageScanningConfiguration:serializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutImageTagMutabilityRequest=(e,t)=>({...e.imageTagMutability!==undefined&&e.imageTagMutability!==null&&{imageTagMutability:e.imageTagMutability},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutLifecyclePolicyRequest=(e,t)=>({...e.lifecyclePolicyText!==undefined&&e.lifecyclePolicyText!==null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1PutRegistryPolicyRequest=(e,t)=>({...e.policyText!==undefined&&e.policyText!==null&&{policyText:e.policyText}});const serializeAws_json1_1PutRegistryScanningConfigurationRequest=(e,t)=>({...e.rules!==undefined&&e.rules!==null&&{rules:serializeAws_json1_1RegistryScanningRuleList(e.rules,t)},...e.scanType!==undefined&&e.scanType!==null&&{scanType:e.scanType}});const serializeAws_json1_1PutReplicationConfigurationRequest=(e,t)=>({...e.replicationConfiguration!==undefined&&e.replicationConfiguration!==null&&{replicationConfiguration:serializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t)}});const serializeAws_json1_1RegistryScanningRule=(e,t)=>({...e.repositoryFilters!==undefined&&e.repositoryFilters!==null&&{repositoryFilters:serializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t)},...e.scanFrequency!==undefined&&e.scanFrequency!==null&&{scanFrequency:e.scanFrequency}});const serializeAws_json1_1RegistryScanningRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1RegistryScanningRule(e,t)}));const serializeAws_json1_1ReplicationConfiguration=(e,t)=>({...e.rules!==undefined&&e.rules!==null&&{rules:serializeAws_json1_1ReplicationRuleList(e.rules,t)}});const serializeAws_json1_1ReplicationDestination=(e,t)=>({...e.region!==undefined&&e.region!==null&&{region:e.region},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId}});const serializeAws_json1_1ReplicationDestinationList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ReplicationDestination(e,t)}));const serializeAws_json1_1ReplicationRule=(e,t)=>({...e.destinations!==undefined&&e.destinations!==null&&{destinations:serializeAws_json1_1ReplicationDestinationList(e.destinations,t)},...e.repositoryFilters!==undefined&&e.repositoryFilters!==null&&{repositoryFilters:serializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t)}});const serializeAws_json1_1ReplicationRuleList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ReplicationRule(e,t)}));const serializeAws_json1_1RepositoryFilter=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:e.filter},...e.filterType!==undefined&&e.filterType!==null&&{filterType:e.filterType}});const serializeAws_json1_1RepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1RepositoryFilter(e,t)}));const serializeAws_json1_1RepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1ScanningConfigurationRepositoryNameList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({...e.filter!==undefined&&e.filter!==null&&{filter:e.filter},...e.filterType!==undefined&&e.filterType!==null&&{filterType:e.filterType}});const serializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1ScanningRepositoryFilter(e,t)}));const serializeAws_json1_1SetRepositoryPolicyRequest=(e,t)=>({...e.force!==undefined&&e.force!==null&&{force:e.force},...e.policyText!==undefined&&e.policyText!==null&&{policyText:e.policyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartImageScanRequest=(e,t)=>({...e.imageId!==undefined&&e.imageId!==null&&{imageId:serializeAws_json1_1ImageIdentifier(e.imageId,t)},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1StartLifecyclePolicyPreviewRequest=(e,t)=>({...e.lifecyclePolicyText!==undefined&&e.lifecyclePolicyText!==null&&{lifecyclePolicyText:e.lifecyclePolicyText},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName}});const serializeAws_json1_1Tag=(e,t)=>({...e.Key!==undefined&&e.Key!==null&&{Key:e.Key},...e.Value!==undefined&&e.Value!==null&&{Value:e.Value}});const serializeAws_json1_1TagKeyList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return e}));const serializeAws_json1_1TagList=(e,t)=>e.filter((e=>e!=null)).map((e=>{if(e===null){return null}return serializeAws_json1_1Tag(e,t)}));const serializeAws_json1_1TagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tags!==undefined&&e.tags!==null&&{tags:serializeAws_json1_1TagList(e.tags,t)}});const serializeAws_json1_1UntagResourceRequest=(e,t)=>({...e.resourceArn!==undefined&&e.resourceArn!==null&&{resourceArn:e.resourceArn},...e.tagKeys!==undefined&&e.tagKeys!==null&&{tagKeys:serializeAws_json1_1TagKeyList(e.tagKeys,t)}});const serializeAws_json1_1UploadLayerPartRequest=(e,t)=>({...e.layerPartBlob!==undefined&&e.layerPartBlob!==null&&{layerPartBlob:t.base64Encoder(e.layerPartBlob)},...e.partFirstByte!==undefined&&e.partFirstByte!==null&&{partFirstByte:e.partFirstByte},...e.partLastByte!==undefined&&e.partLastByte!==null&&{partLastByte:e.partLastByte},...e.registryId!==undefined&&e.registryId!==null&&{registryId:e.registryId},...e.repositoryName!==undefined&&e.repositoryName!==null&&{repositoryName:e.repositoryName},...e.uploadId!==undefined&&e.uploadId!==null&&{uploadId:e.uploadId}});const deserializeAws_json1_1Attribute=(e,t)=>({key:r.expectString(e.key),value:r.expectString(e.value)});const deserializeAws_json1_1AttributeList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Attribute(e,t)}));return o};const deserializeAws_json1_1AuthorizationData=(e,t)=>({authorizationToken:r.expectString(e.authorizationToken),expiresAt:e.expiresAt!==undefined&&e.expiresAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.expiresAt))):undefined,proxyEndpoint:r.expectString(e.proxyEndpoint)});const deserializeAws_json1_1AuthorizationDataList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1AuthorizationData(e,t)}));return o};const deserializeAws_json1_1AwsEcrContainerImageDetails=(e,t)=>({architecture:r.expectString(e.architecture),author:r.expectString(e.author),imageHash:r.expectString(e.imageHash),imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagsList(e.imageTags,t):undefined,platform:r.expectString(e.platform),pushedAt:e.pushedAt!==undefined&&e.pushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.pushedAt))):undefined,registry:r.expectString(e.registry),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1LayerFailureList(e.failures,t):undefined,layers:e.layers!==undefined&&e.layers!==null?deserializeAws_json1_1LayerList(e.layers,t):undefined});const deserializeAws_json1_1BatchDeleteImageResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,imageIds:e.imageIds!==undefined&&e.imageIds!==null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined});const deserializeAws_json1_1BatchGetImageResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1ImageFailureList(e.failures,t):undefined,images:e.images!==undefined&&e.images!==null?deserializeAws_json1_1ImageList(e.images,t):undefined});const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse=(e,t)=>({failures:e.failures!==undefined&&e.failures!==null?deserializeAws_json1_1RepositoryScanningConfigurationFailureList(e.failures,t):undefined,scanningConfigurations:e.scanningConfigurations!==undefined&&e.scanningConfigurations!==null?deserializeAws_json1_1RepositoryScanningConfigurationList(e.scanningConfigurations,t):undefined});const deserializeAws_json1_1CompleteLayerUploadResponse=(e,t)=>({layerDigest:r.expectString(e.layerDigest),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1CreatePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,ecrRepositoryPrefix:r.expectString(e.ecrRepositoryPrefix),registryId:r.expectString(e.registryId),upstreamRegistryUrl:r.expectString(e.upstreamRegistryUrl)});const deserializeAws_json1_1CreateRepositoryResponse=(e,t)=>({repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1CvssScore=(e,t)=>({baseScore:r.limitedParseDouble(e.baseScore),scoringVector:r.expectString(e.scoringVector),source:r.expectString(e.source),version:r.expectString(e.version)});const deserializeAws_json1_1CvssScoreAdjustment=(e,t)=>({metric:r.expectString(e.metric),reason:r.expectString(e.reason)});const deserializeAws_json1_1CvssScoreAdjustmentList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScoreAdjustment(e,t)}));return o};const deserializeAws_json1_1CvssScoreDetails=(e,t)=>({adjustments:e.adjustments!==undefined&&e.adjustments!==null?deserializeAws_json1_1CvssScoreAdjustmentList(e.adjustments,t):undefined,score:r.limitedParseDouble(e.score),scoreSource:r.expectString(e.scoreSource),scoringVector:r.expectString(e.scoringVector),version:r.expectString(e.version)});const deserializeAws_json1_1CvssScoreList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1CvssScore(e,t)}));return o};const deserializeAws_json1_1DeleteLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!==undefined&&e.lastEvaluatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DeletePullThroughCacheRuleResponse=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,ecrRepositoryPrefix:r.expectString(e.ecrRepositoryPrefix),registryId:r.expectString(e.registryId),upstreamRegistryUrl:r.expectString(e.upstreamRegistryUrl)});const deserializeAws_json1_1DeleteRegistryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1DeleteRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DeleteRepositoryResponse=(e,t)=>({repository:e.repository!==undefined&&e.repository!==null?deserializeAws_json1_1Repository(e.repository,t):undefined});const deserializeAws_json1_1DescribeImageReplicationStatusResponse=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,replicationStatuses:e.replicationStatuses!==undefined&&e.replicationStatuses!==null?deserializeAws_json1_1ImageReplicationStatusList(e.replicationStatuses,t):undefined,repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DescribeImageScanFindingsResponse=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanFindings:e.imageScanFindings!==undefined&&e.imageScanFindings!==null?deserializeAws_json1_1ImageScanFindings(e.imageScanFindings,t):undefined,imageScanStatus:e.imageScanStatus!==undefined&&e.imageScanStatus!==null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,nextToken:r.expectString(e.nextToken),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1DescribeImagesResponse=(e,t)=>({imageDetails:e.imageDetails!==undefined&&e.imageDetails!==null?deserializeAws_json1_1ImageDetailList(e.imageDetails,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1DescribePullThroughCacheRulesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),pullThroughCacheRules:e.pullThroughCacheRules!==undefined&&e.pullThroughCacheRules!==null?deserializeAws_json1_1PullThroughCacheRuleList(e.pullThroughCacheRules,t):undefined});const deserializeAws_json1_1DescribeRegistryResponse=(e,t)=>({registryId:r.expectString(e.registryId),replicationConfiguration:e.replicationConfiguration!==undefined&&e.replicationConfiguration!==null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1DescribeRepositoriesResponse=(e,t)=>({nextToken:r.expectString(e.nextToken),repositories:e.repositories!==undefined&&e.repositories!==null?deserializeAws_json1_1RepositoryList(e.repositories,t):undefined});const deserializeAws_json1_1EmptyUploadException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1EncryptionConfiguration=(e,t)=>({encryptionType:r.expectString(e.encryptionType),kmsKey:r.expectString(e.kmsKey)});const deserializeAws_json1_1EnhancedImageScanFinding=(e,t)=>({awsAccountId:r.expectString(e.awsAccountId),description:r.expectString(e.description),findingArn:r.expectString(e.findingArn),firstObservedAt:e.firstObservedAt!==undefined&&e.firstObservedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.firstObservedAt))):undefined,lastObservedAt:e.lastObservedAt!==undefined&&e.lastObservedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.lastObservedAt))):undefined,packageVulnerabilityDetails:e.packageVulnerabilityDetails!==undefined&&e.packageVulnerabilityDetails!==null?deserializeAws_json1_1PackageVulnerabilityDetails(e.packageVulnerabilityDetails,t):undefined,remediation:e.remediation!==undefined&&e.remediation!==null?deserializeAws_json1_1Remediation(e.remediation,t):undefined,resources:e.resources!==undefined&&e.resources!==null?deserializeAws_json1_1ResourceList(e.resources,t):undefined,score:r.limitedParseDouble(e.score),scoreDetails:e.scoreDetails!==undefined&&e.scoreDetails!==null?deserializeAws_json1_1ScoreDetails(e.scoreDetails,t):undefined,severity:r.expectString(e.severity),status:r.expectString(e.status),title:r.expectString(e.title),type:r.expectString(e.type),updatedAt:e.updatedAt!==undefined&&e.updatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.updatedAt))):undefined});const deserializeAws_json1_1EnhancedImageScanFindingList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1EnhancedImageScanFinding(e,t)}));return o};const deserializeAws_json1_1FindingSeverityCounts=(e,t)=>Object.entries(e).reduce(((e,[t,o])=>{if(o===null){return e}return{...e,[t]:r.expectInt32(o)}}),{});const deserializeAws_json1_1GetAuthorizationTokenResponse=(e,t)=>({authorizationData:e.authorizationData!==undefined&&e.authorizationData!==null?deserializeAws_json1_1AuthorizationDataList(e.authorizationData,t):undefined});const deserializeAws_json1_1GetDownloadUrlForLayerResponse=(e,t)=>({downloadUrl:r.expectString(e.downloadUrl),layerDigest:r.expectString(e.layerDigest)});const deserializeAws_json1_1GetLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),nextToken:r.expectString(e.nextToken),previewResults:e.previewResults!==undefined&&e.previewResults!==null?deserializeAws_json1_1LifecyclePolicyPreviewResultList(e.previewResults,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),status:r.expectString(e.status),summary:e.summary!==undefined&&e.summary!==null?deserializeAws_json1_1LifecyclePolicyPreviewSummary(e.summary,t):undefined});const deserializeAws_json1_1GetLifecyclePolicyResponse=(e,t)=>({lastEvaluatedAt:e.lastEvaluatedAt!==undefined&&e.lastEvaluatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.lastEvaluatedAt))):undefined,lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1GetRegistryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1GetRegistryScanningConfigurationResponse=(e,t)=>({registryId:r.expectString(e.registryId),scanningConfiguration:e.scanningConfiguration!==undefined&&e.scanningConfiguration!==null?deserializeAws_json1_1RegistryScanningConfiguration(e.scanningConfiguration,t):undefined});const deserializeAws_json1_1GetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1Image=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageManifest:r.expectString(e.imageManifest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageDetail=(e,t)=>({artifactMediaType:r.expectString(e.artifactMediaType),imageDigest:r.expectString(e.imageDigest),imageManifestMediaType:r.expectString(e.imageManifestMediaType),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageScanFindingsSummary:e.imageScanFindingsSummary!==undefined&&e.imageScanFindingsSummary!==null?deserializeAws_json1_1ImageScanFindingsSummary(e.imageScanFindingsSummary,t):undefined,imageScanStatus:e.imageScanStatus!==undefined&&e.imageScanStatus!==null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,imageSizeInBytes:r.expectLong(e.imageSizeInBytes),imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1ImageDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageDetail(e,t)}));return o};const deserializeAws_json1_1ImageDigestDoesNotMatchException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined});const deserializeAws_json1_1ImageFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageFailure(e,t)}));return o};const deserializeAws_json1_1ImageIdentifier=(e,t)=>({imageDigest:r.expectString(e.imageDigest),imageTag:r.expectString(e.imageTag)});const deserializeAws_json1_1ImageIdentifierList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageIdentifier(e,t)}));return o};const deserializeAws_json1_1ImageList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Image(e,t)}));return o};const deserializeAws_json1_1ImageNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageReplicationStatus=(e,t)=>({failureCode:r.expectString(e.failureCode),region:r.expectString(e.region),registryId:r.expectString(e.registryId),status:r.expectString(e.status)});const deserializeAws_json1_1ImageReplicationStatusList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageReplicationStatus(e,t)}));return o};const deserializeAws_json1_1ImageScanFinding=(e,t)=>({attributes:e.attributes!==undefined&&e.attributes!==null?deserializeAws_json1_1AttributeList(e.attributes,t):undefined,description:r.expectString(e.description),name:r.expectString(e.name),severity:r.expectString(e.severity),uri:r.expectString(e.uri)});const deserializeAws_json1_1ImageScanFindingList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ImageScanFinding(e,t)}));return o};const deserializeAws_json1_1ImageScanFindings=(e,t)=>({enhancedFindings:e.enhancedFindings!==undefined&&e.enhancedFindings!==null?deserializeAws_json1_1EnhancedImageScanFindingList(e.enhancedFindings,t):undefined,findingSeverityCounts:e.findingSeverityCounts!==undefined&&e.findingSeverityCounts!==null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,findings:e.findings!==undefined&&e.findings!==null?deserializeAws_json1_1ImageScanFindingList(e.findings,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!==undefined&&e.imageScanCompletedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!==undefined&&e.vulnerabilitySourceUpdatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanFindingsSummary=(e,t)=>({findingSeverityCounts:e.findingSeverityCounts!==undefined&&e.findingSeverityCounts!==null?deserializeAws_json1_1FindingSeverityCounts(e.findingSeverityCounts,t):undefined,imageScanCompletedAt:e.imageScanCompletedAt!==undefined&&e.imageScanCompletedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imageScanCompletedAt))):undefined,vulnerabilitySourceUpdatedAt:e.vulnerabilitySourceUpdatedAt!==undefined&&e.vulnerabilitySourceUpdatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vulnerabilitySourceUpdatedAt))):undefined});const deserializeAws_json1_1ImageScanningConfiguration=(e,t)=>({scanOnPush:r.expectBoolean(e.scanOnPush)});const deserializeAws_json1_1ImageScanStatus=(e,t)=>({description:r.expectString(e.description),status:r.expectString(e.status)});const deserializeAws_json1_1ImageTagAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ImageTagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1ImageTagsList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1InitiateLayerUploadResponse=(e,t)=>({partSize:r.expectLong(e.partSize),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidLayerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidLayerPartException=(e,t)=>({lastValidByteReceived:r.expectLong(e.lastValidByteReceived),message:r.expectString(e.message),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1InvalidParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1InvalidTagParameterException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1KmsException=(e,t)=>({kmsError:r.expectString(e.kmsError),message:r.expectString(e.message)});const deserializeAws_json1_1Layer=(e,t)=>({layerAvailability:r.expectString(e.layerAvailability),layerDigest:r.expectString(e.layerDigest),layerSize:r.expectLong(e.layerSize),mediaType:r.expectString(e.mediaType)});const deserializeAws_json1_1LayerAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayerFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),layerDigest:r.expectString(e.layerDigest)});const deserializeAws_json1_1LayerFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LayerFailure(e,t)}));return o};const deserializeAws_json1_1LayerInaccessibleException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayerList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Layer(e,t)}));return o};const deserializeAws_json1_1LayerPartTooSmallException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LayersNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewInProgressException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1LifecyclePolicyPreviewResult=(e,t)=>({action:e.action!==undefined&&e.action!==null?deserializeAws_json1_1LifecyclePolicyRuleAction(e.action,t):undefined,appliedRulePriority:r.expectInt32(e.appliedRulePriority),imageDigest:r.expectString(e.imageDigest),imagePushedAt:e.imagePushedAt!==undefined&&e.imagePushedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.imagePushedAt))):undefined,imageTags:e.imageTags!==undefined&&e.imageTags!==null?deserializeAws_json1_1ImageTagList(e.imageTags,t):undefined});const deserializeAws_json1_1LifecyclePolicyPreviewResultList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1LifecyclePolicyPreviewResult(e,t)}));return o};const deserializeAws_json1_1LifecyclePolicyPreviewSummary=(e,t)=>({expiringImageTotalCount:r.expectInt32(e.expiringImageTotalCount)});const deserializeAws_json1_1LifecyclePolicyRuleAction=(e,t)=>({type:r.expectString(e.type)});const deserializeAws_json1_1LimitExceededException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ListImagesResponse=(e,t)=>({imageIds:e.imageIds!==undefined&&e.imageIds!==null?deserializeAws_json1_1ImageIdentifierList(e.imageIds,t):undefined,nextToken:r.expectString(e.nextToken)});const deserializeAws_json1_1ListTagsForResourceResponse=(e,t)=>({tags:e.tags!==undefined&&e.tags!==null?deserializeAws_json1_1TagList(e.tags,t):undefined});const deserializeAws_json1_1PackageVulnerabilityDetails=(e,t)=>({cvss:e.cvss!==undefined&&e.cvss!==null?deserializeAws_json1_1CvssScoreList(e.cvss,t):undefined,referenceUrls:e.referenceUrls!==undefined&&e.referenceUrls!==null?deserializeAws_json1_1ReferenceUrlsList(e.referenceUrls,t):undefined,relatedVulnerabilities:e.relatedVulnerabilities!==undefined&&e.relatedVulnerabilities!==null?deserializeAws_json1_1RelatedVulnerabilitiesList(e.relatedVulnerabilities,t):undefined,source:r.expectString(e.source),sourceUrl:r.expectString(e.sourceUrl),vendorCreatedAt:e.vendorCreatedAt!==undefined&&e.vendorCreatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vendorCreatedAt))):undefined,vendorSeverity:r.expectString(e.vendorSeverity),vendorUpdatedAt:e.vendorUpdatedAt!==undefined&&e.vendorUpdatedAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.vendorUpdatedAt))):undefined,vulnerabilityId:r.expectString(e.vulnerabilityId),vulnerablePackages:e.vulnerablePackages!==undefined&&e.vulnerablePackages!==null?deserializeAws_json1_1VulnerablePackagesList(e.vulnerablePackages,t):undefined});const deserializeAws_json1_1PullThroughCacheRule=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,ecrRepositoryPrefix:r.expectString(e.ecrRepositoryPrefix),registryId:r.expectString(e.registryId),upstreamRegistryUrl:r.expectString(e.upstreamRegistryUrl)});const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1PullThroughCacheRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1PullThroughCacheRule(e,t)}));return o};const deserializeAws_json1_1PullThroughCacheRuleNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1PutImageResponse=(e,t)=>({image:e.image!==undefined&&e.image!==null?deserializeAws_json1_1Image(e.image,t):undefined});const deserializeAws_json1_1PutImageScanningConfigurationResponse=(e,t)=>({imageScanningConfiguration:e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1PutImageTagMutabilityResponse=(e,t)=>({imageTagMutability:r.expectString(e.imageTagMutability),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1PutLifecyclePolicyResponse=(e,t)=>({lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1PutRegistryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1PutRegistryScanningConfigurationResponse=(e,t)=>({registryScanningConfiguration:e.registryScanningConfiguration!==undefined&&e.registryScanningConfiguration!==null?deserializeAws_json1_1RegistryScanningConfiguration(e.registryScanningConfiguration,t):undefined});const deserializeAws_json1_1PutReplicationConfigurationResponse=(e,t)=>({replicationConfiguration:e.replicationConfiguration!==undefined&&e.replicationConfiguration!==null?deserializeAws_json1_1ReplicationConfiguration(e.replicationConfiguration,t):undefined});const deserializeAws_json1_1Recommendation=(e,t)=>({text:r.expectString(e.text),url:r.expectString(e.url)});const deserializeAws_json1_1ReferencedImagesNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ReferenceUrlsList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1RegistryPolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RegistryScanningConfiguration=(e,t)=>({rules:e.rules!==undefined&&e.rules!==null?deserializeAws_json1_1RegistryScanningRuleList(e.rules,t):undefined,scanType:r.expectString(e.scanType)});const deserializeAws_json1_1RegistryScanningRule=(e,t)=>({repositoryFilters:e.repositoryFilters!==undefined&&e.repositoryFilters!==null?deserializeAws_json1_1ScanningRepositoryFilterList(e.repositoryFilters,t):undefined,scanFrequency:r.expectString(e.scanFrequency)});const deserializeAws_json1_1RegistryScanningRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RegistryScanningRule(e,t)}));return o};const deserializeAws_json1_1RelatedVulnerabilitiesList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return r.expectString(e)}));return o};const deserializeAws_json1_1Remediation=(e,t)=>({recommendation:e.recommendation!==undefined&&e.recommendation!==null?deserializeAws_json1_1Recommendation(e.recommendation,t):undefined});const deserializeAws_json1_1ReplicationConfiguration=(e,t)=>({rules:e.rules!==undefined&&e.rules!==null?deserializeAws_json1_1ReplicationRuleList(e.rules,t):undefined});const deserializeAws_json1_1ReplicationDestination=(e,t)=>({region:r.expectString(e.region),registryId:r.expectString(e.registryId)});const deserializeAws_json1_1ReplicationDestinationList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationDestination(e,t)}));return o};const deserializeAws_json1_1ReplicationRule=(e,t)=>({destinations:e.destinations!==undefined&&e.destinations!==null?deserializeAws_json1_1ReplicationDestinationList(e.destinations,t):undefined,repositoryFilters:e.repositoryFilters!==undefined&&e.repositoryFilters!==null?deserializeAws_json1_1RepositoryFilterList(e.repositoryFilters,t):undefined});const deserializeAws_json1_1ReplicationRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ReplicationRule(e,t)}));return o};const deserializeAws_json1_1Repository=(e,t)=>({createdAt:e.createdAt!==undefined&&e.createdAt!==null?r.expectNonNull(r.parseEpochTimestamp(r.expectNumber(e.createdAt))):undefined,encryptionConfiguration:e.encryptionConfiguration!==undefined&&e.encryptionConfiguration!==null?deserializeAws_json1_1EncryptionConfiguration(e.encryptionConfiguration,t):undefined,imageScanningConfiguration:e.imageScanningConfiguration!==undefined&&e.imageScanningConfiguration!==null?deserializeAws_json1_1ImageScanningConfiguration(e.imageScanningConfiguration,t):undefined,imageTagMutability:r.expectString(e.imageTagMutability),registryId:r.expectString(e.registryId),repositoryArn:r.expectString(e.repositoryArn),repositoryName:r.expectString(e.repositoryName),repositoryUri:r.expectString(e.repositoryUri)});const deserializeAws_json1_1RepositoryAlreadyExistsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryFilter=(e,t)=>({filter:r.expectString(e.filter),filterType:r.expectString(e.filterType)});const deserializeAws_json1_1RepositoryFilterList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryFilter(e,t)}));return o};const deserializeAws_json1_1RepositoryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Repository(e,t)}));return o};const deserializeAws_json1_1RepositoryNotEmptyException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryPolicyNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1RepositoryScanningConfiguration=(e,t)=>({appliedScanFilters:e.appliedScanFilters!==undefined&&e.appliedScanFilters!==null?deserializeAws_json1_1ScanningRepositoryFilterList(e.appliedScanFilters,t):undefined,repositoryArn:r.expectString(e.repositoryArn),repositoryName:r.expectString(e.repositoryName),scanFrequency:r.expectString(e.scanFrequency),scanOnPush:r.expectBoolean(e.scanOnPush)});const deserializeAws_json1_1RepositoryScanningConfigurationFailure=(e,t)=>({failureCode:r.expectString(e.failureCode),failureReason:r.expectString(e.failureReason),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1RepositoryScanningConfigurationFailureList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfigurationFailure(e,t)}));return o};const deserializeAws_json1_1RepositoryScanningConfigurationList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1RepositoryScanningConfiguration(e,t)}));return o};const deserializeAws_json1_1Resource=(e,t)=>({details:e.details!==undefined&&e.details!==null?deserializeAws_json1_1ResourceDetails(e.details,t):undefined,id:r.expectString(e.id),tags:e.tags!==undefined&&e.tags!==null?deserializeAws_json1_1Tags(e.tags,t):undefined,type:r.expectString(e.type)});const deserializeAws_json1_1ResourceDetails=(e,t)=>({awsEcrContainerImage:e.awsEcrContainerImage!==undefined&&e.awsEcrContainerImage!==null?deserializeAws_json1_1AwsEcrContainerImageDetails(e.awsEcrContainerImage,t):undefined});const deserializeAws_json1_1ResourceList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Resource(e,t)}));return o};const deserializeAws_json1_1ScanningRepositoryFilter=(e,t)=>({filter:r.expectString(e.filter),filterType:r.expectString(e.filterType)});const deserializeAws_json1_1ScanningRepositoryFilterList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1ScanningRepositoryFilter(e,t)}));return o};const deserializeAws_json1_1ScanNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ScoreDetails=(e,t)=>({cvss:e.cvss!==undefined&&e.cvss!==null?deserializeAws_json1_1CvssScoreDetails(e.cvss,t):undefined});const deserializeAws_json1_1ServerException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1SetRepositoryPolicyResponse=(e,t)=>({policyText:r.expectString(e.policyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1StartImageScanResponse=(e,t)=>({imageId:e.imageId!==undefined&&e.imageId!==null?deserializeAws_json1_1ImageIdentifier(e.imageId,t):undefined,imageScanStatus:e.imageScanStatus!==undefined&&e.imageScanStatus!==null?deserializeAws_json1_1ImageScanStatus(e.imageScanStatus,t):undefined,registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName)});const deserializeAws_json1_1StartLifecyclePolicyPreviewResponse=(e,t)=>({lifecyclePolicyText:r.expectString(e.lifecyclePolicyText),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),status:r.expectString(e.status)});const deserializeAws_json1_1Tag=(e,t)=>({Key:r.expectString(e.Key),Value:r.expectString(e.Value)});const deserializeAws_json1_1TagList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1Tag(e,t)}));return o};const deserializeAws_json1_1TagResourceResponse=(e,t)=>({});const deserializeAws_json1_1Tags=(e,t)=>Object.entries(e).reduce(((e,[t,o])=>{if(o===null){return e}return{...e,[t]:r.expectString(o)}}),{});const deserializeAws_json1_1TooManyTagsException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UnsupportedImageTypeException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UnsupportedUpstreamRegistryException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1UntagResourceResponse=(e,t)=>({});const deserializeAws_json1_1UploadLayerPartResponse=(e,t)=>({lastByteReceived:r.expectLong(e.lastByteReceived),registryId:r.expectString(e.registryId),repositoryName:r.expectString(e.repositoryName),uploadId:r.expectString(e.uploadId)});const deserializeAws_json1_1UploadNotFoundException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1ValidationException=(e,t)=>({message:r.expectString(e.message)});const deserializeAws_json1_1VulnerablePackage=(e,t)=>({arch:r.expectString(e.arch),epoch:r.expectInt32(e.epoch),filePath:r.expectString(e.filePath),name:r.expectString(e.name),packageManager:r.expectString(e.packageManager),release:r.expectString(e.release),sourceLayerHash:r.expectString(e.sourceLayerHash),version:r.expectString(e.version)});const deserializeAws_json1_1VulnerablePackagesList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_json1_1VulnerablePackage(e,t)}));return o};const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new n.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;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"])}return""}},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 i=o(2209);const s=o(6153);const a=o(5531);const c=o(7442);const l=o(6064);const u=o(7684);const d=o(8805);const p=o(8588);const m=o(4147);const f=o(8095);const g=o(6278);const y=o(542);const h=o(4963);const v=o(4243);const getRuntimeConfig=e=>{var t,o,n,w,E,S,C,x,R,_,b,P,I,A,T;const N=v.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const L=y.getRuntimeConfig(e);return{...L,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:p.toBase64,bodyLengthChecker:(n=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:m.calculateBodyLength,credentialDefaultProvider:(w=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&w!==void 0?w:i.decorateDefaultCredentialProvider(a.defaultProvider),defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:f.defaultUserAgent({serviceId:L.serviceId,clientVersion:r.default.version}),maxAttempts:(S=e===null||e===void 0?void 0:e.maxAttempts)!==null&&S!==void 0?S:u.loadConfig(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(C=e===null||e===void 0?void 0:e.region)!==null&&C!==void 0?C:u.loadConfig(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(x=e===null||e===void 0?void 0:e.requestHandler)!==null&&x!==void 0?x:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(R=e===null||e===void 0?void 0:e.retryMode)!==null&&R!==void 0?R:u.loadConfig({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(_=e===null||e===void 0?void 0:e.sha256)!==null&&_!==void 0?_:c.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:d.streamCollector,useDualstackEndpoint:(P=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&P!==void 0?P:u.loadConfig(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:u.loadConfig(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(A=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&A!==void 0?A:g.fromUtf8,utf8Encoder:(T=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&T!==void 0?T:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},542:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(2992);const r=o(3070);const getRuntimeConfig=e=>{var t,o,i,s,a;return{apiVersion:"2015-09-21",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"ECR",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:n.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},8406:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(8547),t);n.__exportStar(o(5723),t)},8547:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilImageScanComplete=t.waitForImageScanComplete=void 0;const n=o(1627);const r=o(2987);const checkState=async(e,t)=>{let o;try{const i=await e.send(new r.DescribeImageScanFindingsCommand(t));o=i;try{const returnComparator=()=>i.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:n.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>i.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 n.createWaiter({...o,...e},t,checkState)};t.waitForImageScanComplete=waitForImageScanComplete;const waitUntilImageScanComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};const r=await n.createWaiter({...o,...e},t,checkState);return n.checkExceptions(r)};t.waitUntilImageScanComplete=waitUntilImageScanComplete},5723:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilLifecyclePolicyPreviewComplete=t.waitForLifecyclePolicyPreviewComplete=void 0;const n=o(1627);const r=o(7006);const checkState=async(e,t)=>{let o;try{const i=await e.send(new r.GetLifecyclePolicyPreviewCommand(t));o=i;try{const returnComparator=()=>i.status;if(returnComparator()==="COMPLETE"){return{state:n.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>i.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 n.createWaiter({...o,...e},t,checkState)};t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};const r=await n.createWaiter({...o,...e},t,checkState);return n.checkExceptions(r)};t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete},9838:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const n=o(8972);const r=o(1513);const i=o(4296);const s=o(4511);const a=o(1057);class SSO extends a.SSOClient{getRoleCredentials(e,t,o){const r=new n.GetRoleCredentialsCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}listAccountRoles(e,t,o){const n=new r.ListAccountRolesCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}listAccounts(e,t,o){const n=new i.ListAccountsCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}logout(e,t,o){const n=new s.LogoutCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}}t.SSO=SSO},1057:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=void 0;const n=o(6153);const r=o(2245);const i=o(2545);const s=o(14);const a=o(6064);const c=o(4688);const l=o(4963);const u=o(9756);class SSOClient extends l.Client{constructor(e){const t=u.getRuntimeConfig(e);const o=n.resolveRegionConfig(t);const l=n.resolveEndpointsConfig(o);const d=a.resolveRetryConfig(l);const p=i.resolveHostHeaderConfig(d);const m=c.resolveUserAgentConfig(p);super(m);this.config=m;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(c.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},8972:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=void 0;const n=o(3631);const r=o(4963);const i=o(6390);const s=o(8507);class GetRoleCredentialsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="GetRoleCredentialsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.GetRoleCredentialsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_restJson1GetRoleCredentialsCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1GetRoleCredentialsCommand(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},1513:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=void 0;const n=o(3631);const r=o(4963);const i=o(6390);const s=o(8507);class ListAccountRolesCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="ListAccountRolesCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListAccountRolesResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_restJson1ListAccountRolesCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1ListAccountRolesCommand(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},4296:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=void 0;const n=o(3631);const r=o(4963);const i=o(6390);const s=o(8507);class ListAccountsCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="ListAccountsCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:i.ListAccountsResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_restJson1ListAccountsCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1ListAccountsCommand(e,t)}}t.ListAccountsCommand=ListAccountsCommand},4511:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=void 0;const n=o(3631);const r=o(4963);const i=o(6390);const s=o(8507);class LogoutCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="SSOClient";const c="LogoutCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_restJson1LogoutCommand(e,t)}deserialize(e,t){return s.deserializeAws_restJson1LogoutCommand(e,t)}}t.LogoutCommand=LogoutCommand},5706:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(8972),t);n.__exportStar(o(1513),t);n.__exportStar(o(4296),t);n.__exportStar(o(4511),t)},3546:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const n=o(6153);const r={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}};const i={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>n.getRegionInfo(e,{...t,signingService:"awsssoportal",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},2666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const n=o(4351);n.__exportStar(o(9838),t);n.__exportStar(o(1057),t);n.__exportStar(o(5706),t);n.__exportStar(o(4952),t);n.__exportStar(o(6773),t);var r=o(1517);Object.defineProperty(t,"SSOServiceException",{enumerable:true,get:function(){return r.SSOServiceException}})},1517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const n=o(4963);class SSOServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},4952:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(6390),t)},6390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutRequest=t.ListAccountsResponse=t.ListAccountsRequest=t.ListAccountRolesResponse=t.RoleInfo=t.ListAccountRolesRequest=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=t.GetRoleCredentialsResponse=t.RoleCredentials=t.GetRoleCredentialsRequest=t.AccountInfo=void 0;const n=o(4963);const r=o(1517);var i;(function(e){e.filterSensitiveLog=e=>({...e})})(i=t.AccountInfo||(t.AccountInfo={}));var s;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}})})(s=t.GetRoleCredentialsRequest||(t.GetRoleCredentialsRequest={}));var a;(function(e){e.filterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:n.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:n.SENSITIVE_STRING}})})(a=t.RoleCredentials||(t.RoleCredentials={}));var c;(function(e){e.filterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:a.filterSensitiveLog(e.roleCredentials)}})})(c=t.GetRoleCredentialsResponse||(t.GetRoleCredentialsResponse={}));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;var l;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}})})(l=t.ListAccountRolesRequest||(t.ListAccountRolesRequest={}));var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.RoleInfo||(t.RoleInfo={}));var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.ListAccountRolesResponse||(t.ListAccountRolesResponse={}));var p;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}})})(p=t.ListAccountsRequest||(t.ListAccountsRequest={}));var m;(function(e){e.filterSensitiveLog=e=>({...e})})(m=t.ListAccountsResponse||(t.ListAccountsResponse={}));var f;(function(e){e.filterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}})})(f=t.LogoutRequest||(t.LogoutRequest={}))},849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8460:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccountRoles=void 0;const n=o(1513);const r=o(9838);const i=o(1057);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.ListAccountRolesCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listAccountRoles(t,...o);async function*paginateListAccountRoles(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSO){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.SSOClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateListAccountRoles=paginateListAccountRoles},938:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccounts=void 0;const n=o(4296);const r=o(9838);const i=o(1057);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.ListAccountsCommand(t),...o);const makePagedRequest=async(e,t,...o)=>await e.listAccounts(t,...o);async function*paginateListAccounts(e,t,...o){let n=e.startingToken||undefined;let s=true;let a;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSO){a=await makePagedRequest(e.client,t,...o)}else if(e.client instanceof i.SSOClient){a=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield a;n=a.nextToken;s=!!n}return undefined}t.paginateListAccounts=paginateListAccounts},6773:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(849),t);n.__exportStar(o(8460),t);n.__exportStar(o(938),t)},8507:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_restJson1LogoutCommand=t.deserializeAws_restJson1ListAccountsCommand=t.deserializeAws_restJson1ListAccountRolesCommand=t.deserializeAws_restJson1GetRoleCredentialsCommand=t.serializeAws_restJson1LogoutCommand=t.serializeAws_restJson1ListAccountsCommand=t.serializeAws_restJson1ListAccountRolesCommand=t.serializeAws_restJson1GetRoleCredentialsCommand=void 0;const n=o(223);const r=o(4963);const i=o(6390);const s=o(1517);const serializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{const{hostname:o,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/federation/credentials";const l={...e.roleName!==undefined&&{role_name:e.roleName},...e.accountId!==undefined&&{account_id:e.accountId}};let u;return new n.HttpRequest({protocol:r,hostname:o,port:i,method:"GET",headers:a,path:c,query:l,body:u})};t.serializeAws_restJson1GetRoleCredentialsCommand=serializeAws_restJson1GetRoleCredentialsCommand;const serializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{const{hostname:o,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/assignment/roles";const l={...e.nextToken!==undefined&&{next_token:e.nextToken},...e.maxResults!==undefined&&{max_result:e.maxResults.toString()},...e.accountId!==undefined&&{account_id:e.accountId}};let u;return new n.HttpRequest({protocol:r,hostname:o,port:i,method:"GET",headers:a,path:c,query:l,body:u})};t.serializeAws_restJson1ListAccountRolesCommand=serializeAws_restJson1ListAccountRolesCommand;const serializeAws_restJson1ListAccountsCommand=async(e,t)=>{const{hostname:o,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/assignment/accounts";const l={...e.nextToken!==undefined&&{next_token:e.nextToken},...e.maxResults!==undefined&&{max_result:e.maxResults.toString()}};let u;return new n.HttpRequest({protocol:r,hostname:o,port:i,method:"GET",headers:a,path:c,query:l,body:u})};t.serializeAws_restJson1ListAccountsCommand=serializeAws_restJson1ListAccountsCommand;const serializeAws_restJson1LogoutCommand=async(e,t)=>{const{hostname:o,protocol:r="https",port:i,path:s}=await t.endpoint();const a={...isSerializableHeaderValue(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}};const c=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+"/logout";let l;return new n.HttpRequest({protocol:r,hostname:o,port:i,method:"POST",headers:a,path:c,body:l})};t.serializeAws_restJson1LogoutCommand=serializeAws_restJson1LogoutCommand;const deserializeAws_restJson1GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1GetRoleCredentialsCommandError(e,t)}const o={$metadata:deserializeMetadata(e),roleCredentials:undefined};const n=r.expectNonNull(r.expectObject(await parseBody(e.body,t)),"body");if(n.roleCredentials!==undefined&&n.roleCredentials!==null){o.roleCredentials=deserializeAws_restJson1RoleCredentials(n.roleCredentials,t)}return Promise.resolve(o)};t.deserializeAws_restJson1GetRoleCredentialsCommand=deserializeAws_restJson1GetRoleCredentialsCommand;const deserializeAws_restJson1GetRoleCredentialsCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadRestJsonErrorCode(e,o.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const a=o.body;n=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_restJson1ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountRolesCommandError(e,t)}const o={$metadata:deserializeMetadata(e),nextToken:undefined,roleList:undefined};const n=r.expectNonNull(r.expectObject(await parseBody(e.body,t)),"body");if(n.nextToken!==undefined&&n.nextToken!==null){o.nextToken=r.expectString(n.nextToken)}if(n.roleList!==undefined&&n.roleList!==null){o.roleList=deserializeAws_restJson1RoleListType(n.roleList,t)}return Promise.resolve(o)};t.deserializeAws_restJson1ListAccountRolesCommand=deserializeAws_restJson1ListAccountRolesCommand;const deserializeAws_restJson1ListAccountRolesCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadRestJsonErrorCode(e,o.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const a=o.body;n=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_restJson1ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1ListAccountsCommandError(e,t)}const o={$metadata:deserializeMetadata(e),accountList:undefined,nextToken:undefined};const n=r.expectNonNull(r.expectObject(await parseBody(e.body,t)),"body");if(n.accountList!==undefined&&n.accountList!==null){o.accountList=deserializeAws_restJson1AccountListType(n.accountList,t)}if(n.nextToken!==undefined&&n.nextToken!==null){o.nextToken=r.expectString(n.nextToken)}return Promise.resolve(o)};t.deserializeAws_restJson1ListAccountsCommand=deserializeAws_restJson1ListAccountsCommand;const deserializeAws_restJson1ListAccountsCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadRestJsonErrorCode(e,o.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const a=o.body;n=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_restJson1LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return deserializeAws_restJson1LogoutCommandError(e,t)}const o={$metadata:deserializeMetadata(e)};await collectBody(e.body,t);return Promise.resolve(o)};t.deserializeAws_restJson1LogoutCommand=deserializeAws_restJson1LogoutCommand;const deserializeAws_restJson1LogoutCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadRestJsonErrorCode(e,o.body);switch(i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await deserializeAws_restJson1InvalidRequestExceptionResponse(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await deserializeAws_restJson1UnauthorizedExceptionResponse(o,t);default:const a=o.body;n=new s.SSOServiceException({name:a.code||a.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,a)}};const deserializeAws_restJson1InvalidRequestExceptionResponse=async(e,t)=>{const o={};const n=e.body;if(n.message!==undefined&&n.message!==null){o.message=r.expectString(n.message)}const s=new i.InvalidRequestException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1ResourceNotFoundExceptionResponse=async(e,t)=>{const o={};const n=e.body;if(n.message!==undefined&&n.message!==null){o.message=r.expectString(n.message)}const s=new i.ResourceNotFoundException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1TooManyRequestsExceptionResponse=async(e,t)=>{const o={};const n=e.body;if(n.message!==undefined&&n.message!==null){o.message=r.expectString(n.message)}const s=new i.TooManyRequestsException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1UnauthorizedExceptionResponse=async(e,t)=>{const o={};const n=e.body;if(n.message!==undefined&&n.message!==null){o.message=r.expectString(n.message)}const s=new i.UnauthorizedException({$metadata:deserializeMetadata(e),...o});return r.decorateServiceException(s,e.body)};const deserializeAws_restJson1AccountInfo=(e,t)=>({accountId:r.expectString(e.accountId),accountName:r.expectString(e.accountName),emailAddress:r.expectString(e.emailAddress)});const deserializeAws_restJson1AccountListType=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1AccountInfo(e,t)}));return o};const deserializeAws_restJson1RoleCredentials=(e,t)=>({accessKeyId:r.expectString(e.accessKeyId),expiration:r.expectLong(e.expiration),secretAccessKey:r.expectString(e.secretAccessKey),sessionToken:r.expectString(e.sessionToken)});const deserializeAws_restJson1RoleInfo=(e,t)=>({accountId:r.expectString(e.accountId),roleName:r.expectString(e.roleName)});const deserializeAws_restJson1RoleListType=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>{if(e===null){return null}return deserializeAws_restJson1RoleInfo(e,t)}));return o};const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>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 loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;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"])}return""}},9756:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(4351);const r=n.__importDefault(o(1092));const i=o(6153);const s=o(7442);const a=o(6064);const c=o(7684);const l=o(8805);const u=o(8588);const d=o(4147);const p=o(8095);const m=o(6278);const f=o(4355);const g=o(4963);const y=o(4243);const getRuntimeConfig=e=>{var t,o,n,h,v,w,E,S,C,x,R,_,b,P;const I=y.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>I().then(g.loadConfigsForDefaultMode);const A=f.getRuntimeConfig(e);return{...A,...e,runtime:"node",defaultsMode:I,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:u.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:u.toBase64,bodyLengthChecker:(n=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:d.calculateBodyLength,defaultUserAgentProvider:(h=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&h!==void 0?h:p.defaultUserAgent({serviceId:A.serviceId,clientVersion:r.default.version}),maxAttempts:(v=e===null||e===void 0?void 0:e.maxAttempts)!==null&&v!==void 0?v:c.loadConfig(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(w=e===null||e===void 0?void 0:e.region)!==null&&w!==void 0?w:c.loadConfig(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(E=e===null||e===void 0?void 0:e.requestHandler)!==null&&E!==void 0?E:new l.NodeHttpHandler(defaultConfigProvider),retryMode:(S=e===null||e===void 0?void 0:e.retryMode)!==null&&S!==void 0?S:c.loadConfig({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||a.DEFAULT_RETRY_MODE}),sha256:(C=e===null||e===void 0?void 0:e.sha256)!==null&&C!==void 0?C:s.Hash.bind(null,"sha256"),streamCollector:(x=e===null||e===void 0?void 0:e.streamCollector)!==null&&x!==void 0?x:l.streamCollector,useDualstackEndpoint:(R=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&R!==void 0?R:c.loadConfig(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(_=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&_!==void 0?_:c.loadConfig(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(b=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&b!==void 0?b:m.fromUtf8,utf8Encoder:(P=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&P!==void 0?P:m.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},4355:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(2992);const r=o(3546);const getRuntimeConfig=e=>{var t,o,i,s,a;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"SSO",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:n.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},2605:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const n=o(9802);const r=o(2865);const i=o(7451);const s=o(4150);const a=o(9804);const c=o(4278);const l=o(7552);const u=o(3285);const d=o(4195);class STS extends d.STSClient{assumeRole(e,t,o){const r=new n.AssumeRoleCommand(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}}assumeRoleWithSAML(e,t,o){const n=new r.AssumeRoleWithSAMLCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}assumeRoleWithWebIdentity(e,t,o){const n=new i.AssumeRoleWithWebIdentityCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}decodeAuthorizationMessage(e,t,o){const n=new s.DecodeAuthorizationMessageCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getAccessKeyInfo(e,t,o){const n=new a.GetAccessKeyInfoCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getCallerIdentity(e,t,o){const n=new c.GetCallerIdentityCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getFederationToken(e,t,o){const n=new l.GetFederationTokenCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}getSessionToken(e,t,o){const n=new u.GetSessionTokenCommand(e);if(typeof t==="function"){this.send(n,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expect http options but get ${typeof t}`);this.send(n,t||{},o)}else{return this.send(n,t)}}}t.STS=STS},4195:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=void 0;const n=o(6153);const r=o(2245);const i=o(2545);const s=o(14);const a=o(6064);const c=o(5959);const l=o(4688);const u=o(4963);const d=o(3405);class STSClient extends u.Client{constructor(e){const t=d.getRuntimeConfig(e);const o=n.resolveRegionConfig(t);const u=n.resolveEndpointsConfig(o);const p=a.resolveRetryConfig(u);const m=i.resolveHostHeaderConfig(p);const f=c.resolveStsAuthConfig(m,{stsClientCtor:STSClient});const g=l.resolveUserAgentConfig(f);super(g);this.config=g;this.middlewareStack.use(a.getRetryPlugin(this.config));this.middlewareStack.use(r.getContentLengthPlugin(this.config));this.middlewareStack.use(i.getHostHeaderPlugin(this.config));this.middlewareStack.use(s.getLoggerPlugin(this.config));this.middlewareStack.use(l.getUserAgentPlugin(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},9802:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=void 0;const n=o(3631);const r=o(4935);const i=o(4963);const s=o(1780);const a=o(740);class AssumeRoleCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="AssumeRoleCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:s.AssumeRoleResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return a.serializeAws_queryAssumeRoleCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryAssumeRoleCommand(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},2865:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=void 0;const n=o(3631);const r=o(4963);const i=o(1780);const s=o(740);class AssumeRoleWithSAMLCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="STSClient";const c="AssumeRoleWithSAMLCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithSAMLResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_queryAssumeRoleWithSAMLCommand(e,t)}deserialize(e,t){return s.deserializeAws_queryAssumeRoleWithSAMLCommand(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},7451:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=void 0;const n=o(3631);const r=o(4963);const i=o(1780);const s=o(740);class AssumeRoleWithWebIdentityCommand extends r.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));const r=e.concat(this.middlewareStack);const{logger:s}=t;const a="STSClient";const c="AssumeRoleWithWebIdentityCommand";const l={logger:s,clientName:a,commandName:c,inputFilterSensitiveLog:i.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithWebIdentityResponse.filterSensitiveLog};const{requestHandler:u}=t;return r.resolve((e=>u.handle(e.request,o||{})),l)}serialize(e,t){return s.serializeAws_queryAssumeRoleWithWebIdentityCommand(e,t)}deserialize(e,t){return s.deserializeAws_queryAssumeRoleWithWebIdentityCommand(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},4150:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=void 0;const n=o(3631);const r=o(4935);const i=o(4963);const s=o(1780);const a=o(740);class DecodeAuthorizationMessageCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="DecodeAuthorizationMessageCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:s.DecodeAuthorizationMessageResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return a.serializeAws_queryDecodeAuthorizationMessageCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryDecodeAuthorizationMessageCommand(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},9804:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=void 0;const n=o(3631);const r=o(4935);const i=o(4963);const s=o(1780);const a=o(740);class GetAccessKeyInfoCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetAccessKeyInfoCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetAccessKeyInfoResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return a.serializeAws_queryGetAccessKeyInfoCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetAccessKeyInfoCommand(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},4278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=void 0;const n=o(3631);const r=o(4935);const i=o(4963);const s=o(1780);const a=o(740);class GetCallerIdentityCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetCallerIdentityCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetCallerIdentityResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return a.serializeAws_queryGetCallerIdentityCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetCallerIdentityCommand(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},7552:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=void 0;const n=o(3631);const r=o(4935);const i=o(4963);const s=o(1780);const a=o(740);class GetFederationTokenCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetFederationTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetFederationTokenResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return a.serializeAws_queryGetFederationTokenCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetFederationTokenCommand(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},3285:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=void 0;const n=o(3631);const r=o(4935);const i=o(4963);const s=o(1780);const a=o(740);class GetSessionTokenCommand extends i.Command{constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use(n.getSerdePlugin(t,this.serialize,this.deserialize));this.middlewareStack.use(r.getAwsAuthPlugin(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const l="GetSessionTokenCommand";const u={logger:a,clientName:c,commandName:l,inputFilterSensitiveLog:s.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:s.GetSessionTokenResponse.filterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),u)}serialize(e,t){return a.serializeAws_queryGetSessionTokenCommand(e,t)}deserialize(e,t){return a.deserializeAws_queryGetSessionTokenCommand(e,t)}}t.GetSessionTokenCommand=GetSessionTokenCommand},5716:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9802),t);n.__exportStar(o(2865),t);n.__exportStar(o(7451),t);n.__exportStar(o(4150),t);n.__exportStar(o(9804),t);n.__exportStar(o(4278),t);n.__exportStar(o(7552),t);n.__exportStar(o(3285),t)},8028:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const n=o(48);const r=o(4195);const getDefaultRoleAssumer=(e={})=>n.getDefaultRoleAssumer(e,r.STSClient);t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e={})=>n.getDefaultRoleAssumerWithWebIdentity(e,r.STSClient);t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:t.getDefaultRoleAssumer(o),roleAssumerWithWebIdentity:t.getDefaultRoleAssumerWithWebIdentity(o),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},48:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const n=o(9802);const r=o(7451);const i="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?i:e}return async()=>{try{return await e()}catch(e){return i}}};const getDefaultRoleAssumer=(e,t)=>{let o;let r;return async(i,s)=>{r=i;if(!o){const{logger:n,region:i,requestHandler:s}=e;o=new t({logger:n,credentialDefaultProvider:()=>async()=>r,region:decorateDefaultRegion(i||e.region),...s?{requestHandler:s}:{}})}const{Credentials:a}=await o.send(new n.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${s.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:i}=e;o=new t({logger:n,region:decorateDefaultRegion(r||e.region),...i?{requestHandler:i}:{}})}const{Credentials:i}=await o.send(new r.AssumeRoleWithWebIdentityCommand(n));if(!i||!i.AccessKeyId||!i.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`)}return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:t.getDefaultRoleAssumer(o,o.stsClientCtor),roleAssumerWithWebIdentity:t.getDefaultRoleAssumerWithWebIdentity(o,o.stsClientCtor),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},3571:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRegionInfoProvider=void 0;const n=o(6153);const r={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}};const i={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}};const defaultRegionInfoProvider=async(e,t)=>n.getRegionInfo(e,{...t,signingService:"sts",regionHash:r,partitionHash:i});t.defaultRegionInfoProvider=defaultRegionInfoProvider},2209:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const n=o(4351);n.__exportStar(o(2605),t);n.__exportStar(o(4195),t);n.__exportStar(o(5716),t);n.__exportStar(o(8028),t);n.__exportStar(o(106),t);var r=o(6450);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return r.STSServiceException}})},6450:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const n=o(4963);class STSServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},106:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(1780),t)},1780:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenResponse=t.GetSessionTokenRequest=t.GetFederationTokenResponse=t.FederatedUser=t.GetFederationTokenRequest=t.GetCallerIdentityResponse=t.GetCallerIdentityRequest=t.GetAccessKeyInfoResponse=t.GetAccessKeyInfoRequest=t.InvalidAuthorizationMessageException=t.DecodeAuthorizationMessageResponse=t.DecodeAuthorizationMessageRequest=t.IDPCommunicationErrorException=t.AssumeRoleWithWebIdentityResponse=t.AssumeRoleWithWebIdentityRequest=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.AssumeRoleWithSAMLResponse=t.AssumeRoleWithSAMLRequest=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=t.AssumeRoleResponse=t.Credentials=t.AssumeRoleRequest=t.Tag=t.PolicyDescriptorType=t.AssumedRoleUser=void 0;const n=o(6450);var r;(function(e){e.filterSensitiveLog=e=>({...e})})(r=t.AssumedRoleUser||(t.AssumedRoleUser={}));var i;(function(e){e.filterSensitiveLog=e=>({...e})})(i=t.PolicyDescriptorType||(t.PolicyDescriptorType={}));var s;(function(e){e.filterSensitiveLog=e=>({...e})})(s=t.Tag||(t.Tag={}));var a;(function(e){e.filterSensitiveLog=e=>({...e})})(a=t.AssumeRoleRequest||(t.AssumeRoleRequest={}));var c;(function(e){e.filterSensitiveLog=e=>({...e})})(c=t.Credentials||(t.Credentials={}));var l;(function(e){e.filterSensitiveLog=e=>({...e})})(l=t.AssumeRoleResponse||(t.AssumeRoleResponse={}));class ExpiredTokenException extends n.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 n.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 n.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 n.STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});this.name="RegionDisabledException";this.$fault="client";Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;var u;(function(e){e.filterSensitiveLog=e=>({...e})})(u=t.AssumeRoleWithSAMLRequest||(t.AssumeRoleWithSAMLRequest={}));var d;(function(e){e.filterSensitiveLog=e=>({...e})})(d=t.AssumeRoleWithSAMLResponse||(t.AssumeRoleWithSAMLResponse={}));class IDPRejectedClaimException extends n.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 n.STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});this.name="InvalidIdentityTokenException";this.$fault="client";Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;var p;(function(e){e.filterSensitiveLog=e=>({...e})})(p=t.AssumeRoleWithWebIdentityRequest||(t.AssumeRoleWithWebIdentityRequest={}));var m;(function(e){e.filterSensitiveLog=e=>({...e})})(m=t.AssumeRoleWithWebIdentityResponse||(t.AssumeRoleWithWebIdentityResponse={}));class IDPCommunicationErrorException extends n.STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});this.name="IDPCommunicationErrorException";this.$fault="client";Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException;var f;(function(e){e.filterSensitiveLog=e=>({...e})})(f=t.DecodeAuthorizationMessageRequest||(t.DecodeAuthorizationMessageRequest={}));var g;(function(e){e.filterSensitiveLog=e=>({...e})})(g=t.DecodeAuthorizationMessageResponse||(t.DecodeAuthorizationMessageResponse={}));class InvalidAuthorizationMessageException extends n.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;var y;(function(e){e.filterSensitiveLog=e=>({...e})})(y=t.GetAccessKeyInfoRequest||(t.GetAccessKeyInfoRequest={}));var h;(function(e){e.filterSensitiveLog=e=>({...e})})(h=t.GetAccessKeyInfoResponse||(t.GetAccessKeyInfoResponse={}));var v;(function(e){e.filterSensitiveLog=e=>({...e})})(v=t.GetCallerIdentityRequest||(t.GetCallerIdentityRequest={}));var w;(function(e){e.filterSensitiveLog=e=>({...e})})(w=t.GetCallerIdentityResponse||(t.GetCallerIdentityResponse={}));var E;(function(e){e.filterSensitiveLog=e=>({...e})})(E=t.GetFederationTokenRequest||(t.GetFederationTokenRequest={}));var S;(function(e){e.filterSensitiveLog=e=>({...e})})(S=t.FederatedUser||(t.FederatedUser={}));var C;(function(e){e.filterSensitiveLog=e=>({...e})})(C=t.GetFederationTokenResponse||(t.GetFederationTokenResponse={}));var x;(function(e){e.filterSensitiveLog=e=>({...e})})(x=t.GetSessionTokenRequest||(t.GetSessionTokenRequest={}));var R;(function(e){e.filterSensitiveLog=e=>({...e})})(R=t.GetSessionTokenResponse||(t.GetSessionTokenResponse={}))},740:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializeAws_queryGetSessionTokenCommand=t.deserializeAws_queryGetFederationTokenCommand=t.deserializeAws_queryGetCallerIdentityCommand=t.deserializeAws_queryGetAccessKeyInfoCommand=t.deserializeAws_queryDecodeAuthorizationMessageCommand=t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=t.deserializeAws_queryAssumeRoleWithSAMLCommand=t.deserializeAws_queryAssumeRoleCommand=t.serializeAws_queryGetSessionTokenCommand=t.serializeAws_queryGetFederationTokenCommand=t.serializeAws_queryGetCallerIdentityCommand=t.serializeAws_queryGetAccessKeyInfoCommand=t.serializeAws_queryDecodeAuthorizationMessageCommand=t.serializeAws_queryAssumeRoleWithWebIdentityCommand=t.serializeAws_queryAssumeRoleWithSAMLCommand=t.serializeAws_queryAssumeRoleCommand=void 0;const n=o(223);const r=o(4963);const i=o(3e3);const s=o(7448);const a=o(1780);const c=o(6450);const serializeAws_queryAssumeRoleCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryAssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryAssumeRoleCommand=serializeAws_queryAssumeRoleCommand;const serializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryAssumeRoleWithSAMLCommand=serializeAws_queryAssumeRoleWithSAMLCommand;const serializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryAssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryAssumeRoleWithWebIdentityCommand=serializeAws_queryAssumeRoleWithWebIdentityCommand;const serializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryDecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryDecodeAuthorizationMessageCommand=serializeAws_queryDecodeAuthorizationMessageCommand;const serializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryGetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryGetAccessKeyInfoCommand=serializeAws_queryGetAccessKeyInfoCommand;const serializeAws_queryGetCallerIdentityCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryGetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryGetCallerIdentityCommand=serializeAws_queryGetCallerIdentityCommand;const serializeAws_queryGetFederationTokenCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryGetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryGetFederationTokenCommand=serializeAws_queryGetFederationTokenCommand;const serializeAws_queryGetSessionTokenCommand=async(e,t)=>{const o={"content-type":"application/x-www-form-urlencoded"};let n;n=buildFormUrlencodedString({...serializeAws_queryGetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.serializeAws_queryGetSessionTokenCommand=serializeAws_queryGetSessionTokenCommand;const deserializeAws_queryAssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryAssumeRoleResponse(o.AssumeRoleResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleCommand=deserializeAws_queryAssumeRoleCommand;const deserializeAws_queryAssumeRoleCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;n=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,s.Error)}};const deserializeAws_queryAssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithSAMLCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryAssumeRoleWithSAMLResponse(o.AssumeRoleWithSAMLResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleWithSAMLCommand=deserializeAws_queryAssumeRoleWithSAMLCommand;const deserializeAws_queryAssumeRoleWithSAMLCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(o,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(o,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;n=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,s.Error)}};const deserializeAws_queryAssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryAssumeRoleWithWebIdentityResponse(o.AssumeRoleWithWebIdentityResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryAssumeRoleWithWebIdentityCommand=deserializeAws_queryAssumeRoleWithWebIdentityCommand;const deserializeAws_queryAssumeRoleWithWebIdentityCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await deserializeAws_queryExpiredTokenExceptionResponse(o,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(o,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(o,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(o,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;n=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,s.Error)}};const deserializeAws_queryDecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryDecodeAuthorizationMessageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryDecodeAuthorizationMessageResponse(o.DecodeAuthorizationMessageResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryDecodeAuthorizationMessageCommand=deserializeAws_queryDecodeAuthorizationMessageCommand;const deserializeAws_queryDecodeAuthorizationMessageCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(o,t);default:const s=o.body;n=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,s.Error)}};const deserializeAws_queryGetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetAccessKeyInfoCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryGetAccessKeyInfoResponse(o.GetAccessKeyInfoResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryGetAccessKeyInfoCommand=deserializeAws_queryGetAccessKeyInfoCommand;const deserializeAws_queryGetAccessKeyInfoCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){default:const t=o.body;n=new c.STSServiceException({name:t.Error.code||t.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,t.Error)}};const deserializeAws_queryGetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetCallerIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryGetCallerIdentityResponse(o.GetCallerIdentityResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryGetCallerIdentityCommand=deserializeAws_queryGetCallerIdentityCommand;const deserializeAws_queryGetCallerIdentityCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){default:const t=o.body;n=new c.STSServiceException({name:t.Error.code||t.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,t.Error)}};const deserializeAws_queryGetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetFederationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryGetFederationTokenResponse(o.GetFederationTokenResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryGetFederationTokenCommand=deserializeAws_queryGetFederationTokenCommand;const deserializeAws_queryGetFederationTokenCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(o,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;n=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,s.Error)}};const deserializeAws_queryGetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return deserializeAws_queryGetSessionTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=deserializeAws_queryGetSessionTokenResponse(o.GetSessionTokenResult,t);const r={$metadata:deserializeMetadata(e),...n};return Promise.resolve(r)};t.deserializeAws_queryGetSessionTokenCommand=deserializeAws_queryGetSessionTokenCommand;const deserializeAws_queryGetSessionTokenCommandError=async(e,t)=>{const o={...e,body:await parseBody(e.body,t)};let n;let i="UnknownError";i=loadQueryErrorCode(e,o.body);switch(i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await deserializeAws_queryRegionDisabledExceptionResponse(o,t);default:const s=o.body;n=new c.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:deserializeMetadata(e)});throw r.decorateServiceException(n,s.Error)}};const deserializeAws_queryExpiredTokenExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryExpiredTokenException(o.Error,t);const i=new a.ExpiredTokenException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryIDPCommunicationErrorExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryIDPCommunicationErrorException(o.Error,t);const i=new a.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryIDPRejectedClaimExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryIDPRejectedClaimException(o.Error,t);const i=new a.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryInvalidAuthorizationMessageException(o.Error,t);const i=new a.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryInvalidIdentityTokenExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryInvalidIdentityTokenException(o.Error,t);const i=new a.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryMalformedPolicyDocumentExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryMalformedPolicyDocumentException(o.Error,t);const i=new a.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryPackedPolicyTooLargeExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryPackedPolicyTooLargeException(o.Error,t);const i=new a.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const deserializeAws_queryRegionDisabledExceptionResponse=async(e,t)=>{const o=e.body;const n=deserializeAws_queryRegionDisabledException(o.Error,t);const i=new a.RegionDisabledException({$metadata:deserializeMetadata(e),...n});return r.decorateServiceException(i,o)};const serializeAws_queryAssumeRoleRequest=(e,t)=>{const o={};if(e.RoleArn!==undefined&&e.RoleArn!==null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!==undefined&&e.RoleSessionName!==null){o["RoleSessionName"]=e.RoleSessionName}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const n=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.Policy!==undefined&&e.Policy!==null){o["Policy"]=e.Policy}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!==undefined&&e.Tags!==null){const n=serializeAws_querytagListType(e.Tags,t);Object.entries(n).forEach((([e,t])=>{const n=`Tags.${e}`;o[n]=t}))}if(e.TransitiveTagKeys!==undefined&&e.TransitiveTagKeys!==null){const n=serializeAws_querytagKeyListType(e.TransitiveTagKeys,t);Object.entries(n).forEach((([e,t])=>{const n=`TransitiveTagKeys.${e}`;o[n]=t}))}if(e.ExternalId!==undefined&&e.ExternalId!==null){o["ExternalId"]=e.ExternalId}if(e.SerialNumber!==undefined&&e.SerialNumber!==null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!==undefined&&e.TokenCode!==null){o["TokenCode"]=e.TokenCode}if(e.SourceIdentity!==undefined&&e.SourceIdentity!==null){o["SourceIdentity"]=e.SourceIdentity}return o};const serializeAws_queryAssumeRoleWithSAMLRequest=(e,t)=>{const o={};if(e.RoleArn!==undefined&&e.RoleArn!==null){o["RoleArn"]=e.RoleArn}if(e.PrincipalArn!==undefined&&e.PrincipalArn!==null){o["PrincipalArn"]=e.PrincipalArn}if(e.SAMLAssertion!==undefined&&e.SAMLAssertion!==null){o["SAMLAssertion"]=e.SAMLAssertion}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const n=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.Policy!==undefined&&e.Policy!==null){o["Policy"]=e.Policy}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){o["DurationSeconds"]=e.DurationSeconds}return o};const serializeAws_queryAssumeRoleWithWebIdentityRequest=(e,t)=>{const o={};if(e.RoleArn!==undefined&&e.RoleArn!==null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!==undefined&&e.RoleSessionName!==null){o["RoleSessionName"]=e.RoleSessionName}if(e.WebIdentityToken!==undefined&&e.WebIdentityToken!==null){o["WebIdentityToken"]=e.WebIdentityToken}if(e.ProviderId!==undefined&&e.ProviderId!==null){o["ProviderId"]=e.ProviderId}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const n=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.Policy!==undefined&&e.Policy!==null){o["Policy"]=e.Policy}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){o["DurationSeconds"]=e.DurationSeconds}return o};const serializeAws_queryDecodeAuthorizationMessageRequest=(e,t)=>{const o={};if(e.EncodedMessage!==undefined&&e.EncodedMessage!==null){o["EncodedMessage"]=e.EncodedMessage}return o};const serializeAws_queryGetAccessKeyInfoRequest=(e,t)=>{const o={};if(e.AccessKeyId!==undefined&&e.AccessKeyId!==null){o["AccessKeyId"]=e.AccessKeyId}return o};const serializeAws_queryGetCallerIdentityRequest=(e,t)=>{const o={};return o};const serializeAws_queryGetFederationTokenRequest=(e,t)=>{const o={};if(e.Name!==undefined&&e.Name!==null){o["Name"]=e.Name}if(e.Policy!==undefined&&e.Policy!==null){o["Policy"]=e.Policy}if(e.PolicyArns!==undefined&&e.PolicyArns!==null){const n=serializeAws_querypolicyDescriptorListType(e.PolicyArns,t);Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!==undefined&&e.Tags!==null){const n=serializeAws_querytagListType(e.Tags,t);Object.entries(n).forEach((([e,t])=>{const n=`Tags.${e}`;o[n]=t}))}return o};const serializeAws_queryGetSessionTokenRequest=(e,t)=>{const o={};if(e.DurationSeconds!==undefined&&e.DurationSeconds!==null){o["DurationSeconds"]=e.DurationSeconds}if(e.SerialNumber!==undefined&&e.SerialNumber!==null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!==undefined&&e.TokenCode!==null){o["TokenCode"]=e.TokenCode}return o};const serializeAws_querypolicyDescriptorListType=(e,t)=>{const o={};let n=1;for(const r of e){if(r===null){continue}const e=serializeAws_queryPolicyDescriptorType(r,t);Object.entries(e).forEach((([e,t])=>{o[`member.${n}.${e}`]=t}));n++}return o};const serializeAws_queryPolicyDescriptorType=(e,t)=>{const o={};if(e.arn!==undefined&&e.arn!==null){o["arn"]=e.arn}return o};const serializeAws_queryTag=(e,t)=>{const o={};if(e.Key!==undefined&&e.Key!==null){o["Key"]=e.Key}if(e.Value!==undefined&&e.Value!==null){o["Value"]=e.Value}return o};const serializeAws_querytagKeyListType=(e,t)=>{const o={};let n=1;for(const t of e){if(t===null){continue}o[`member.${n}`]=t;n++}return o};const serializeAws_querytagListType=(e,t)=>{const o={};let n=1;for(const r of e){if(r===null){continue}const e=serializeAws_queryTag(r,t);Object.entries(e).forEach((([e,t])=>{o[`member.${n}.${e}`]=t}));n++}return o};const deserializeAws_queryAssumedRoleUser=(e,t)=>{const o={AssumedRoleId:undefined,Arn:undefined};if(e["AssumedRoleId"]!==undefined){o.AssumedRoleId=r.expectString(e["AssumedRoleId"])}if(e["Arn"]!==undefined){o.Arn=r.expectString(e["Arn"])}return o};const deserializeAws_queryAssumeRoleResponse=(e,t)=>{const o={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=r.expectString(e["SourceIdentity"])}return o};const deserializeAws_queryAssumeRoleWithSAMLResponse=(e,t)=>{const o={Credentials:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Subject:undefined,SubjectType:undefined,Issuer:undefined,Audience:undefined,NameQualifier:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}if(e["Subject"]!==undefined){o.Subject=r.expectString(e["Subject"])}if(e["SubjectType"]!==undefined){o.SubjectType=r.expectString(e["SubjectType"])}if(e["Issuer"]!==undefined){o.Issuer=r.expectString(e["Issuer"])}if(e["Audience"]!==undefined){o.Audience=r.expectString(e["Audience"])}if(e["NameQualifier"]!==undefined){o.NameQualifier=r.expectString(e["NameQualifier"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=r.expectString(e["SourceIdentity"])}return o};const deserializeAws_queryAssumeRoleWithWebIdentityResponse=(e,t)=>{const o={Credentials:undefined,SubjectFromWebIdentityToken:undefined,AssumedRoleUser:undefined,PackedPolicySize:undefined,Provider:undefined,Audience:undefined,SourceIdentity:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){o.SubjectFromWebIdentityToken=r.expectString(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=deserializeAws_queryAssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}if(e["Provider"]!==undefined){o.Provider=r.expectString(e["Provider"])}if(e["Audience"]!==undefined){o.Audience=r.expectString(e["Audience"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=r.expectString(e["SourceIdentity"])}return o};const deserializeAws_queryCredentials=(e,t)=>{const o={AccessKeyId:undefined,SecretAccessKey:undefined,SessionToken:undefined,Expiration:undefined};if(e["AccessKeyId"]!==undefined){o.AccessKeyId=r.expectString(e["AccessKeyId"])}if(e["SecretAccessKey"]!==undefined){o.SecretAccessKey=r.expectString(e["SecretAccessKey"])}if(e["SessionToken"]!==undefined){o.SessionToken=r.expectString(e["SessionToken"])}if(e["Expiration"]!==undefined){o.Expiration=r.expectNonNull(r.parseRfc3339DateTime(e["Expiration"]))}return o};const deserializeAws_queryDecodeAuthorizationMessageResponse=(e,t)=>{const o={DecodedMessage:undefined};if(e["DecodedMessage"]!==undefined){o.DecodedMessage=r.expectString(e["DecodedMessage"])}return o};const deserializeAws_queryExpiredTokenException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryFederatedUser=(e,t)=>{const o={FederatedUserId:undefined,Arn:undefined};if(e["FederatedUserId"]!==undefined){o.FederatedUserId=r.expectString(e["FederatedUserId"])}if(e["Arn"]!==undefined){o.Arn=r.expectString(e["Arn"])}return o};const deserializeAws_queryGetAccessKeyInfoResponse=(e,t)=>{const o={Account:undefined};if(e["Account"]!==undefined){o.Account=r.expectString(e["Account"])}return o};const deserializeAws_queryGetCallerIdentityResponse=(e,t)=>{const o={UserId:undefined,Account:undefined,Arn:undefined};if(e["UserId"]!==undefined){o.UserId=r.expectString(e["UserId"])}if(e["Account"]!==undefined){o.Account=r.expectString(e["Account"])}if(e["Arn"]!==undefined){o.Arn=r.expectString(e["Arn"])}return o};const deserializeAws_queryGetFederationTokenResponse=(e,t)=>{const o={Credentials:undefined,FederatedUser:undefined,PackedPolicySize:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){o.FederatedUser=deserializeAws_queryFederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=r.strictParseInt32(e["PackedPolicySize"])}return o};const deserializeAws_queryGetSessionTokenResponse=(e,t)=>{const o={Credentials:undefined};if(e["Credentials"]!==undefined){o.Credentials=deserializeAws_queryCredentials(e["Credentials"],t)}return o};const deserializeAws_queryIDPCommunicationErrorException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryIDPRejectedClaimException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryInvalidAuthorizationMessageException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryInvalidIdentityTokenException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryMalformedPolicyDocumentException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryPackedPolicyTooLargeException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeAws_queryRegionDisabledException=(e,t)=>{const o={message:undefined};if(e["message"]!==undefined){o.message=r.expectString(e["message"])}return o};const deserializeMetadata=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};const collectBody=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return Promise.resolve(e)}return t.streamCollector(e)||Promise.resolve(new Uint8Array)};const collectBodyString=(e,t)=>collectBody(e,t).then((e=>t.utf8Encoder(e)));const buildHttpRpcRequest=async(e,t,o,r,i)=>{const{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint();const u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+o:l+o,headers:t};if(r!==undefined){u.hostname=r}if(i!==undefined){u.body=i}return new n.HttpRequest(u)};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=s.parse(e,{attributeNamePrefix:"",ignoreAttributes:false,parseNodeValue:false,trimValues:false,tagValueProcessor:e=>e.trim()===""&&e.includes("\n")?"":i.decodeHTML(e)});const o="#text";const n=Object.keys(t)[0];const a=t[n];if(a[o]){a[n]=a[o];delete a[o]}return r.getValueFromTextNode(a)}return{}}));const buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>r.extendedEncodeURIComponent(e)+"="+r.extendedEncodeURIComponent(t))).join("&");const loadQueryErrorCode=(e,t)=>{if(t.Error.Code!==undefined){return t.Error.Code}if(e.statusCode==404){return"NotFound"}return""}},3405:(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 i=o(48);const s=o(6153);const a=o(5531);const c=o(7442);const l=o(6064);const u=o(7684);const d=o(8805);const p=o(8588);const m=o(4147);const f=o(8095);const g=o(6278);const y=o(2642);const h=o(4963);const v=o(4243);const getRuntimeConfig=e=>{var t,o,n,w,E,S,C,x,R,_,b,P,I,A,T;const N=v.resolveDefaultsModeConfig(e);const defaultConfigProvider=()=>N().then(h.loadConfigsForDefaultMode);const L=y.getRuntimeConfig(e);return{...L,...e,runtime:"node",defaultsMode:N,base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:p.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:p.toBase64,bodyLengthChecker:(n=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:m.calculateBodyLength,credentialDefaultProvider:(w=e===null||e===void 0?void 0:e.credentialDefaultProvider)!==null&&w!==void 0?w:i.decorateDefaultCredentialProvider(a.defaultProvider),defaultUserAgentProvider:(E=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&E!==void 0?E:f.defaultUserAgent({serviceId:L.serviceId,clientVersion:r.default.version}),maxAttempts:(S=e===null||e===void 0?void 0:e.maxAttempts)!==null&&S!==void 0?S:u.loadConfig(l.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(C=e===null||e===void 0?void 0:e.region)!==null&&C!==void 0?C:u.loadConfig(s.NODE_REGION_CONFIG_OPTIONS,s.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(x=e===null||e===void 0?void 0:e.requestHandler)!==null&&x!==void 0?x:new d.NodeHttpHandler(defaultConfigProvider),retryMode:(R=e===null||e===void 0?void 0:e.retryMode)!==null&&R!==void 0?R:u.loadConfig({...l.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||l.DEFAULT_RETRY_MODE}),sha256:(_=e===null||e===void 0?void 0:e.sha256)!==null&&_!==void 0?_:c.Hash.bind(null,"sha256"),streamCollector:(b=e===null||e===void 0?void 0:e.streamCollector)!==null&&b!==void 0?b:d.streamCollector,useDualstackEndpoint:(P=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&P!==void 0?P:u.loadConfig(s.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(I=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&I!==void 0?I:u.loadConfig(s.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(A=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&A!==void 0?A:g.fromUtf8,utf8Encoder:(T=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&T!==void 0?T:g.toUtf8}};t.getRuntimeConfig=getRuntimeConfig},2642:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(2992);const r=o(3571);const getRuntimeConfig=e=>{var t,o,i,s,a;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:false,logger:(o=e===null||e===void 0?void 0:e.logger)!==null&&o!==void 0?o:{},regionInfoProvider:(i=e===null||e===void 0?void 0:e.regionInfoProvider)!==null&&i!==void 0?i:r.defaultRegionInfoProvider,serviceId:(s=e===null||e===void 0?void 0:e.serviceId)!==null&&s!==void 0?s:"STS",urlParser:(a=e===null||e===void 0?void 0:e.urlParser)!==null&&a!==void 0?a:n.parseUrl}};t.getRuntimeConfig=getRuntimeConfig},4723:(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(6168);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=>n.booleanSelector(e,t.ENV_USE_DUALSTACK_ENDPOINT,n.SelectorType.ENV),configFileSelector:e=>n.booleanSelector(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,n.SelectorType.CONFIG),default:false}},2478:(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(6168);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=>n.booleanSelector(e,t.ENV_USE_FIPS_ENDPOINT,n.SelectorType.ENV),configFileSelector:e=>n.booleanSelector(e,t.CONFIG_USE_FIPS_ENDPOINT,n.SelectorType.CONFIG),default:false}},7392:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(4723),t);n.__exportStar(o(2478),t);n.__exportStar(o(2108),t);n.__exportStar(o(2327),t)},2108:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const n=o(2164);const r=o(9815);const resolveCustomEndpointsConfig=e=>{var t;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:r.normalizeEndpoint(e),isCustomEndpoint:true,useDualstackEndpoint:n.normalizeBoolean(e.useDualstackEndpoint)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},2327:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const n=o(4159);const r=o(2164);const i=o(9815);const resolveEndpointsConfig=e=>{var t;const o=r.normalizeBoolean(e.useDualstackEndpoint);const{endpoint:s,useFipsEndpoint:a}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:s?i.normalizeEndpoint({...e,endpoint:s}):()=>n.getEndpointFromRegion({...e,useDualstackEndpoint:o,useFipsEndpoint:a}),isCustomEndpoint:s?true:false,useDualstackEndpoint:o}};t.resolveEndpointsConfig=resolveEndpointsConfig},4159:(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 i=await e.useDualstackEndpoint();const s=await e.useFipsEndpoint();const{hostname:a}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:i,useFipsEndpoint:s}))!==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},2164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeBoolean=void 0;const normalizeBoolean=e=>{if(typeof e==="boolean"){const t=Promise.resolve(e);return()=>t}return e};t.normalizeBoolean=normalizeBoolean},9815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeEndpoint=void 0;const normalizeEndpoint=({endpoint:e,urlParser:t})=>{if(typeof e==="string"){const o=Promise.resolve(t(e));return()=>o}else if(typeof e==="object"){const t=Promise.resolve(e);return()=>t}return e};t.normalizeEndpoint=normalizeEndpoint},6153:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(7392),t);n.__exportStar(o(5441),t);n.__exportStar(o(6258),t)},422:(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"}},2844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const n=o(2440);const getRealRegion=e=>n.isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},5441:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(422),t);n.__exportStar(o(1595),t)},2440:(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},1595:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const n=o(2844);const r=o(2440);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 n.getRealRegion(t)}const e=await t();return n.getRealRegion(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(r.isFipsRegion(e)){return true}return typeof o==="boolean"?Promise.resolve(o):o()}}};t.resolveRegionConfig=resolveRegionConfig},3566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},6057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5280:(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},6167:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const n=o(5280);const r=o(3877);const i=o(7642);const s=o(3517);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:a,regionHash:c,partitionHash:l})=>{var u,d,p,m,f,g;const y=i.getResolvedPartition(e,{partitionHash:l});const h=e in c?e:(d=(u=l[y])===null||u===void 0?void 0:u.endpoint)!==null&&d!==void 0?d:e;const v={useFipsEndpoint:t,useDualstackEndpoint:o};const w=n.getHostnameFromVariants((p=c[h])===null||p===void 0?void 0:p.variants,v);const E=n.getHostnameFromVariants((m=l[y])===null||m===void 0?void 0:m.variants,v);const S=r.getResolvedHostname(h,{regionHostname:w,partitionHostname:E});if(S===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const C=s.getResolvedSigningRegion(S,{signingRegion:(f=c[h])===null||f===void 0?void 0:f.signingRegion,regionRegex:l[y].regionRegex,useFipsEndpoint:t});return{partition:y,signingService:a,hostname:S,...C&&{signingRegion:C},...((g=c[h])===null||g===void 0?void 0:g.signingService)&&{signingService:c[h].signingService}}};t.getRegionInfo=getRegionInfo},3877:(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},7642:(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},3517:(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},6258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(3566),t);n.__exportStar(o(6057),t);n.__exportStar(o(6167),t)},255:(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(4462);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 i=process.env[t.ENV_EXPIRATION];if(e&&o){return{accessKeyId:e,secretAccessKey:o,...r&&{sessionToken:r},...i&&{expiration:new Date(i)}}}throw new n.CredentialsProviderError("Unable to find environment variable credentials.")};t.fromEnv=fromEnv},5972:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(255),t)},3736:(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={}))},8438:(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}},1695:(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={}))},7824:(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(1695);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}},5232:(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(4462);const r=o(7310);const i=o(1303);const s=o(1467);const a=o(2314);const c=o(9912);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}=a.providerConfigFromInit(e);return()=>c.retry((async()=>{const e=await getCmdsUri();const o=JSON.parse(await requestFromEcsImds(t,e));if(!s.isImdsCredentials(o)){throw new n.CredentialsProviderError("Invalid response received from instance metadata service.")}return s.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 i.httpRequest({...o,timeout:e});return n.toString()};const l="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const d={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:l,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=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 d)){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)}},5813:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const n=o(4462);const r=o(1303);const i=o(1467);const s=o(2314);const a=o(9912);const c=o(1206);const l="/latest/meta-data/iam/security-credentials/";const u="/latest/api/token";const fromInstanceMetadata=(e={})=>{let t=false;const{timeout:o,maxRetries:n}=s.providerConfigFromInit(e);const getCredentials=async(e,o)=>{const n=(await 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 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 c.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})}}};t.fromInstanceMetadata=fromInstanceMetadata;const getMetadataToken=async e=>r.httpRequest({...e,path:u,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await r.httpRequest({...e,path:l})).toString();const getCredentialsFromProfile=async(e,t)=>{const o=JSON.parse((await r.httpRequest({...t,path:l+e})).toString());if(!i.isImdsCredentials(o)){throw new n.CredentialsProviderError("Invalid response received from instance metadata service.")}return i.fromImdsCredentials(o)}},5898:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const n=o(4351);n.__exportStar(o(5232),t);n.__exportStar(o(5813),t);n.__exportStar(o(2314),t);var r=o(1303);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return r.httpRequest}});var i=o(1206);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return i.getInstanceMetadataEndpoint}})},1467:(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},2314:(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},1303:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const n=o(4462);const r=o(4300);const i=o(3685);function httpRequest(e){return new Promise(((t,o)=>{var s;const a=i.request({method:"GET",...e,hostname:(s=e.hostname)===null||s===void 0?void 0:s.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:i=400}=e;if(i<200||300<=i){o(Object.assign(new n.ProviderError("Error response received from instance metadata service"),{statusCode:i}));a.destroy()}const s=[];e.on("data",(e=>{s.push(e)}));e.on("end",(()=>{t(r.Buffer.concat(s));a.destroy()}))}));a.end()}))}t.httpRequest=httpRequest},9912:(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},1206:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const n=o(7684);const r=o(2992);const i=o(3736);const s=o(8438);const a=o(1695);const c=o(7824);const getInstanceMetadataEndpoint=async()=>r.parseUrl(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>n.loadConfig(s.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await n.loadConfig(c.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case a.EndpointMode.IPv4:return i.Endpoint.IPv4;case a.EndpointMode.IPv6:return i.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(a.EndpointMode)}`)}}},5442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const n=o(8598);const r=o(5653);const fromIni=(e={})=>async()=>{const t=await n.parseKnownFiles(e);return r.resolveProfileData(n.getMasterProfileName(e),t,e)};t.fromIni=fromIni},4203:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(5442),t)},853:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveAssumeRoleCredentials=t.isAssumeRoleProfile=void 0;const n=o(4462);const r=o(8598);const i=o(2458);const s=o(5653);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 c=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:l}=c;if(l&&l in a){throw new n.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${r.getMasterProfileName(o)}. Profiles visited: `+Object.keys(a).join(", "),false)}const u=l?s.resolveProfileData(l,t,o,{...a,[l]:true}):i.resolveCredentialSource(c.credential_source,e)();const d={RoleArn:c.role_arn,RoleSessionName:c.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:c.external_id};const{mfa_serial:p}=c;if(p){if(!o.mfaCodeProvider){throw new n.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,false)}d.SerialNumber=p;d.TokenCode=await o.mfaCodeProvider(p)}const m=await u;return o.roleAssumer(m,d)};t.resolveAssumeRoleCredentials=resolveAssumeRoleCredentials},2458:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCredentialSource=void 0;const n=o(5972);const r=o(5898);const i=o(4462);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 i.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`)}};t.resolveCredentialSource=resolveCredentialSource},5653:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProfileData=void 0;const n=o(4462);const r=o(853);const i=o(9867);const s=o(3071);const a=o(8342);const resolveProfileData=async(e,t,o,c={})=>{const l=t[e];if(Object.keys(c).length>0&&s.isStaticCredsProfile(l)){return s.resolveStaticCredentials(l)}if(r.isAssumeRoleProfile(l)){return r.resolveAssumeRoleCredentials(e,t,o,c)}if(s.isStaticCredsProfile(l)){return s.resolveStaticCredentials(l)}if(a.isWebIdentityProfile(l)){return a.resolveWebIdentityCredentials(l,o)}if(i.isSsoProfile(l)){return i.resolveSsoCredentials(l)}throw new n.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};t.resolveProfileData=resolveProfileData},9867:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSsoCredentials=t.isSsoProfile=void 0;const n=o(6414);var r=o(6414);Object.defineProperty(t,"isSsoProfile",{enumerable:true,get:function(){return r.isSsoProfile}});const resolveSsoCredentials=e=>{const{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:i}=n.validateSsoProfile(e);return n.fromSSO({ssoStartUrl:t,ssoAccountId:o,ssoRegion:r,ssoRoleName:i})()};t.resolveSsoCredentials=resolveSsoCredentials},3071:(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},8342:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWebIdentityCredentials=t.isWebIdentityProfile=void 0;const n=o(5646);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)=>n.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();t.resolveWebIdentityCredentials=resolveWebIdentityCredentials},5560:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultProvider=void 0;const n=o(5972);const r=o(4203);const i=o(9969);const s=o(6414);const a=o(5646);const c=o(4462);const l=o(7387);const u=o(8598);const d=o(626);const defaultProvider=(e={})=>{const t={profile:process.env[u.ENV_PROFILE],...e,...!e.loadedConfig&&{loadedConfig:l.loadSharedConfigFiles(e)}};const o=c.chain(...t.profile?[]:[n.fromEnv()],s.fromSSO(t),r.fromIni(t),i.fromProcess(t),a.fromTokenFile(t),d.remoteProvider(t),(async()=>{throw new c.CredentialsProviderError("Could not load credentials from any providers",false)}));return c.memoize(o,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined))};t.defaultProvider=defaultProvider},5531:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(5560),t)},626:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteProvider=t.ENV_IMDS_DISABLED=void 0;const n=o(5898);const r=o(4462);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 n.fromContainerMetadata(e)}if(process.env[t.ENV_IMDS_DISABLED]){return async()=>{throw new r.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}}return n.fromInstanceMetadata(e)};t.remoteProvider=remoteProvider},2650:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const n=o(8598);const r=o(4926);const fromProcess=(e={})=>async()=>{const t=await n.parseKnownFiles(e);return r.resolveProcessCredentials(n.getMasterProfileName(e),t)};t.fromProcess=fromProcess},1104:(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},9969:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(2650),t)},4926:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=void 0;const n=o(4462);const r=o(2081);const i=o(3837);const s=o(1104);const resolveProcessCredentials=async(e,t)=>{const o=t[e];if(t[e]){const t=o["credential_process"];if(t!==undefined){const o=i.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 s.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},5184:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const n=o(4462);const r=o(8598);const i=o(2572);const s=o(4729);const a=o(8098);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:u}=e;if(!t&&!o&&!c&&!l){const t=await r.parseKnownFiles(e);const o=r.getMasterProfileName(e);const c=t[o];if(!i.isSsoProfile(c)){throw new n.CredentialsProviderError(`Profile ${o} is not configured with SSO credentials.`)}const{sso_start_url:l,sso_account_id:d,sso_region:p,sso_role_name:m}=a.validateSsoProfile(c);return s.resolveSSOCredentials({ssoStartUrl:l,ssoAccountId:d,ssoRegion:p,ssoRoleName:m,ssoClient:u})}else if(!t||!o||!c||!l){throw new n.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",'+' "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return s.resolveSSOCredentials({ssoStartUrl:t,ssoAccountId:o,ssoRegion:c,ssoRoleName:l,ssoClient:u})}};t.fromSSO=fromSSO},6414:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(5184),t);n.__exportStar(o(2572),t);n.__exportStar(o(6623),t);n.__exportStar(o(8098),t)},2572:(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_region==="string"||typeof e.sso_role_name==="string");t.isSsoProfile=isSsoProfile},4729:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSSOCredentials=void 0;const n=o(2666);const r=o(4462);const i=o(7387);const s=o(6113);const a=o(7147);const c=o(1017);const l=15*60*1e3;const u=false;const{readFile:d}=a.promises;const resolveSSOCredentials=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:o,ssoRoleName:a,ssoClient:p})=>{const m=s.createHash("sha1");const f=m.update(e).digest("hex");const g=c.join(i.getHomeDir(),".aws","sso","cache",`${f}.json`);let y;const h=`To refresh this SSO session run aws sso login with the corresponding profile.`;try{y=JSON.parse(await d(g,"utf8"))}catch(e){throw new r.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${h}`,u)}if(new Date(y.expiresAt).getTime()-Date.now()<=l){throw new r.CredentialsProviderError(`The SSO session associated with this profile has expired. ${h}`,u)}const{accessToken:v}=y;const w=p||new n.SSOClient({region:o});let E;try{E=await w.send(new n.GetRoleCredentialsCommand({accountId:t,roleName:a,accessToken:v}))}catch(e){throw r.CredentialsProviderError.from(e,u)}const{roleCredentials:{accessKeyId:S,secretAccessKey:C,sessionToken:x,expiration:R}={}}=E;if(!S||!C||!x||!R){throw new r.CredentialsProviderError("SSO returns an invalid temporary credential.",u)}return{accessKeyId:S,secretAccessKey:C,sessionToken:x,expiration:new Date(R)}};t.resolveSSOCredentials=resolveSSOCredentials},6623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8098:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSsoProfile=void 0;const n=o(4462);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:i}=e;if(!t||!o||!r||!i){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},5614:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const n=o(4462);const r=o(7147);const i=o(7905);const s="AWS_WEB_IDENTITY_TOKEN_FILE";const a="AWS_ROLE_ARN";const c="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async()=>resolveTokenFile(e);t.fromTokenFile=fromTokenFile;const resolveTokenFile=e=>{var t,o,l;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[s];const d=(o=e===null||e===void 0?void 0:e.roleArn)!==null&&o!==void 0?o:process.env[a];const p=(l=e===null||e===void 0?void 0:e.roleSessionName)!==null&&l!==void 0?l:process.env[c];if(!u||!d){throw new n.CredentialsProviderError("Web identity configuration not specified")}return i.fromWebToken({...e,webIdentityToken:r.readFileSync(u,{encoding:"ascii"}),roleArn:d,roleSessionName:p})()}},7905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const n=o(4462);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:o,webIdentityToken:r,providerId:i,policyArns:s,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l){throw new n.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return l({RoleArn:t,RoleSessionName:o!==null&&o!==void 0?o:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:a,DurationSeconds:c})};t.fromWebToken=fromWebToken},5646:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(5614),t);n.__exportStar(o(7905),t)},7442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const n=o(6010);const r=o(4300);const i=o(6113);class Hash{constructor(e,t){this.hash=t?i.createHmac(e,castSourceData(t)):i.createHash(e)}update(e,t){this.hash.update(castSourceData(e,t))}digest(){return Promise.resolve(this.hash.digest())}}t.Hash=Hash;function castSourceData(e,t){if(r.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return n.fromString(e,t)}if(ArrayBuffer.isView(e)){return n.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return n.fromArrayBuffer(e)}},9126:(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},2245:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const n=o(223);const r="content-length";function contentLengthMiddleware(e){return t=>async o=>{const i=o.request;if(n.HttpRequest.isInstance(i)){const{body:t,headers:o}=i;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(r)===-1){const o=e(t);if(o!==undefined){i.headers={...i.headers,[r]:String(o)}}}}return t({...o,request:i})}}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},2545:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const n=o(223);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:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"]){delete r.headers["host"];r.headers[":authority"]=""}else if(!r.headers["host"]){r.headers["host"]=r.hostname}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(t.hostHeaderMiddleware(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},14:(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=>{const{clientName:n,commandName:r,inputFilterSensitiveLog:i,logger:s,outputFilterSensitiveLog:a}=t;const c=await e(o);if(!s){return c}if(typeof s.info==="function"){const{$metadata:e,...t}=c.output;s.info({clientName:n,commandName:r,input:i(o.input),output:a(t),metadata:e})}return c};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(t.loggerMiddleware(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},7328:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const n=o(5192);const r=o(6402);const i=o(533);class AdaptiveRetryStrategy extends i.StandardRetryStrategy{constructor(e,t){const{rateLimiter:o,...i}=t!==null&&t!==void 0?t:{};super(e,i);this.rateLimiter=o!==null&&o!==void 0?o:new r.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},6402:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const n=o(1921);class DefaultRateLimiter{constructor(e){var t,o,n,r,i;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=(i=e===null||e===void 0?void 0:e.smooth)!==null&&i!==void 0?i:.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/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(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},533:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const n=o(223);const r=o(1921);const i=o(5840);const s=o(5192);const a=o(41);const c=o(2568);const l=o(5940);const u=o(9572);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:u.defaultRetryDecider;this.delayDecider=(n=t===null||t===void 0?void 0:t.delayDecider)!==null&&n!==void 0?n:l.defaultDelayDecider;this.retryQuota=(r=t===null||t===void 0?void 0:t.retryQuota)!==null&&r!==void 0?r:c.getDefaultRetryQuota(a.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 s;let c=0;let l=0;const u=await this.getMaxAttempts();const{request:d}=t;if(n.HttpRequest.isInstance(d)){d.headers[a.INVOCATION_ID_HEADER]=i.v4()}while(true){try{if(n.HttpRequest.isInstance(d)){d.headers[a.REQUEST_HEADER]=`attempt=${c+1}; max=${u}`}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(s);i.$metadata.attempts=c+1;i.$metadata.totalRetryDelay=l;return{response:r,output:i}}catch(e){const t=asSdkError(e);c++;if(this.shouldRetry(t,c,u)){s=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider(r.isThrottlingError(t)?a.THROTTLING_RETRY_DELAY_BASE:a.DEFAULT_RETRY_DELAY_BASE,c);l+=e;await new Promise((t=>setTimeout(t,e)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=c;t.$metadata.totalRetryDelay=l;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;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}`)}},5192:(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},6160:(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(7328);const r=o(5192);const i=o(533);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=>{const t=normalizeMaxAttempts(e.maxAttempts);return{...e,maxAttempts:t,retryStrategy:async()=>{if(e.retryStrategy){return e.retryStrategy}const o=await getRetryMode(e.retryMode);if(o===r.RETRY_MODES.ADAPTIVE){return new n.AdaptiveRetryStrategy(t)}return new i.StandardRetryStrategy(t)}}};t.resolveRetryConfig=resolveRetryConfig;const getRetryMode=async e=>{if(typeof e==="string"){return e}return await e()};const normalizeMaxAttempts=(e=r.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e==="number"){const t=Promise.resolve(e);return()=>t}return e};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}},41:(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"},2568:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const n=o(41);const getDefaultRetryQuota=(e,t)=>{var o,r,i;const s=e;const a=(o=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&o!==void 0?o:n.NO_RETRY_INCREMENT;const c=(r=t===null||t===void 0?void 0:t.retryCost)!==null&&r!==void 0?r:n.RETRY_COST;const l=(i=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:n.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?l:c;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,s)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},5940:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const n=o(41);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(n.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},6064:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(7328),t);n.__exportStar(o(6402),t);n.__exportStar(o(533),t);n.__exportStar(o(5192),t);n.__exportStar(o(6160),t);n.__exportStar(o(5940),t);n.__exportStar(o(3521),t);n.__exportStar(o(9572),t);n.__exportStar(o(1806),t);n.__exportStar(o(8580),t)},3521:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const n=o(223);const r=o(41);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(t.omitRetryHeadersMiddleware(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},9572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const n=o(1921);const defaultRetryDecider=e=>{if(!e){return false}return n.isRetryableByTrait(e)||n.isClockSkewError(e)||n.isThrottlingError(e)||n.isTransientError(e)};t.defaultRetryDecider=defaultRetryDecider},1806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const retryMiddleware=e=>(t,o)=>async n=>{const r=await e.retryStrategy();if(r===null||r===void 0?void 0:r.mode)o.userAgent=[...o.userAgent||[],["cfg/retry-mode",r.mode]];return r.retry(t,n)};t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:o=>{o.add(t.retryMiddleware(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin},8580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5959:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStsAuthConfig=void 0;const n=o(4935);const resolveStsAuthConfig=(e,{stsClientCtor:t})=>n.resolveAwsAuthConfig({...e,stsClientCtor:t});t.resolveStsAuthConfig=resolveStsAuthConfig},5648:(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){throw Object.assign(e,{$response:r})}};t.deserializerMiddleware=deserializerMiddleware},3631:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(5648),t);n.__exportStar(o(9328),t);n.__exportStar(o(9511),t)},9328:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const n=o(5648);const r=o(9511);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,o,i){return{applyToStack:s=>{s.add(n.deserializerMiddleware(e,i),t.deserializerMiddlewareOption);s.add(r.serializerMiddleware(e,o),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},9511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(o,n)=>async n=>{const r=await t(n.input,e);return o({...n,request:r})};t.serializerMiddleware=serializerMiddleware},3061:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const n=o(4462);const r=o(7776);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 s;if(e.signer){s=normalizeProvider(e.signer)}else{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:c}=n;e.signingRegion=e.signingRegion||a||s;e.signingName=e.signingName||c||e.serviceId;const l={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const u=e.signerConstructor||r.SignatureV4;return new u(l)}))}return{...e,systemClockOffset:n,signingEscapePath:o,credentials:t,signer:s}};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 s;if(e.signer){s=normalizeProvider(e.signer)}else{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:s}};t.resolveSigV4AuthConfig=resolveSigV4AuthConfig;const normalizeProvider=e=>{if(typeof e==="object"){const t=Promise.resolve(e);return()=>t}return e};const normalizeCredentialProvider=e=>{if(typeof e==="function"){return n.memoize(e,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<i),(e=>e.expiration!==undefined))}return normalizeProvider(e)}},4935:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(3061),t);n.__exportStar(o(2509),t)},2509:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const n=o(223);const r=o(8253);const i=o(5863);const awsAuthMiddleware=e=>(t,o)=>async function(s){if(!n.HttpRequest.isInstance(s.request))return t(s);const a=await e.signer();const c=await t({...s,request:await a.sign(s.request,{signingDate:r.getSkewCorrectedDate(e.systemClockOffset),signingRegion: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=i.getUpdatedSystemClockOffset(n,e.systemClockOffset)}throw t}));const l=getDateHeader(c.response);if(l){e.systemClockOffset=i.getUpdatedSystemClockOffset(l,e.systemClockOffset)}return c};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(t.awsAuthMiddleware(e),t.awsAuthMiddlewareOptions)}});t.getAwsAuthPlugin=getAwsAuthPlugin;t.getSigV4AuthPlugin=t.getAwsAuthPlugin},8253:(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},5863:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUpdatedSystemClockOffset=void 0;const n=o(5301);const getUpdatedSystemClockOffset=(e,t)=>{const o=Date.parse(e);if(n.isClockSkewed(o,t)){return o-Date.now()}return t};t.getUpdatedSystemClockOffset=getUpdatedSystemClockOffset},5301:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isClockSkewed=void 0;const n=o(8253);const isClockSkewed=(e,t)=>Math.abs(n.getSkewCorrectedDate(t).getTime()-e)>=3e5;t.isClockSkewed=isClockSkewed},8399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let r=[];const i=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;i.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)i.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=()=>{const t=[];const o=[];const n={};e.forEach((e=>{const o={...e,before:[],after:[]};if(o.name)n[o.name]=o;t.push(o)}));r.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)n[t.name]=t;o.push(t)}));o.forEach((e=>{if(e.toMiddleware){const t=n[e.toMiddleware];if(t===undefined){throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const i=sort(t).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i.map((e=>e.middleware))};const s={add:(t,o={})=>{const{name:n,override:r}=o;const s={step:"initialize",priority:"normal",middleware:t,...o};if(n){if(i.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!==s.step||o.priority!==s.priority){throw new Error(`"${n}" middleware with ${o.priority} priority in ${o.step} step cannot be `+`overridden by same-name middleware with ${s.priority} priority in ${s.step} step.`)}e.splice(t,1)}i.add(n)}e.push(s)},addRelativeTo:(e,t)=>{const{name:o,override:n}=t;const s={middleware:e,...t};if(o){if(i.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!==s.toMiddleware||t.relation!==s.relation){throw new Error(`"${o}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${s.relation} "${s.toMiddleware}" middleware.`)}r.splice(e,1)}i.add(o)}r.push(s)},clone:()=>cloneTo(t.constructStack()),use:e=>{e.applyToStack(s)},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)i.delete(r);o=true;return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return o},concat:e=>{const o=cloneTo(t.constructStack());o.use(e);return o},applyToStack:cloneTo,resolve:(e,t)=>{for(const o of getMiddlewareList().reverse()){e=o(e,t)}return e}};return s};t.constructStack=constructStack;const o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const n={high:3,normal:2,low:1}},1461:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(8399),t)},6546:(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},8025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_REGEX=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_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g},4688:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(6546),t);n.__exportStar(o(6236),t)},6236:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const n=o(223);const r=o(8025);const userAgentMiddleware=e=>(t,o)=>async i=>{var s,a;const{request:c}=i;if(!n.HttpRequest.isInstance(c))return t(i);const{headers:l}=c;const u=((s=o===null||o===void 0?void 0:o.userAgent)===null||s===void 0?void 0:s.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const p=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const m=[...d,...u,...p].join(r.SPACE);const f=[...d.filter((e=>e.startsWith("aws-sdk-"))),...p].join(r.SPACE);if(e.runtime!=="browser"){if(f){l[r.X_AMZ_USER_AGENT]=l[r.X_AMZ_USER_AGENT]?`${l[r.USER_AGENT]} ${f}`:f}l[r.USER_AGENT]=m}else{l[r.X_AMZ_USER_AGENT]=m}return t({...i,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=([e,t])=>{const o=e.indexOf("/");const n=e.substring(0,o);let i=e.substring(o+1);if(n==="api"){i=i.toLowerCase()}return[n,i,t].filter((e=>e&&e.length>0)).map((e=>e===null||e===void 0?void 0:e.replace(r.UA_ESCAPE_REGEX,"_"))).join("/")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:o=>{o.add(t.userAgentMiddleware(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},2175:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const n=o(4462);const r=o(6161);const i=o(3905);const s=o(5881);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},a={})=>n.memoize(n.chain(r.fromEnv(e),i.fromSharedConfigFiles(t,a),s.fromStatic(o)));t.loadConfig=loadConfig},6161:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const n=o(4462);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},3905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=t.ENV_PROFILE=void 0;const n=o(4462);const r=o(7387);const i="default";t.ENV_PROFILE="AWS_PROFILE";const fromSharedConfigFiles=(e,{preferredFile:o="config",...s}={})=>async()=>{const{loadedConfig:a=r.loadSharedConfigFiles(s),profile:c=process.env[t.ENV_PROFILE]||i}=s;const{configFile:l,credentialsFile:u}=await a;const d=u[c]||{};const p=l[c]||{};const m=o==="config"?{...d,...p}:{...p,...d};try{const t=e(m);if(t===undefined){throw new Error}return t}catch(t){throw new n.CredentialsProviderError(t.message||`Cannot load config for profile ${c} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},5881:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const n=o(4462);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():n.fromStatic(e);t.fromStatic=fromStatic},7684:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(2175),t)},3647:(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"]},6225:(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},8805:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(2298),t);n.__exportStar(o(2533),t);n.__exportStar(o(2198),t)},2298:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=void 0;const n=o(223);const r=o(3402);const i=o(3685);const s=o(5687);const a=o(3647);const c=o(6225);const l=o(3598);const u=o(4751);const d=o(5248);class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};if(typeof e==="function"){this.configProvider=async()=>this.resolveDefaultConfig(await e())}else{this.config=this.resolveDefaultConfig(e)}}resolveDefaultConfig(e){const{connectionTimeout:t,socketTimeout:o,httpAgent:n,httpsAgent:r}=e||{};const a=true;const c=50;return{connectionTimeout:t,socketTimeout:o,httpAgent:n||new i.Agent({keepAlive:a,maxSockets:c}),httpsAgent:r||new s.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.configProvider){this.config=await this.configProvider()}return new Promise(((o,p)=>{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";p(e);return}const m=e.protocol==="https:";const f=r.buildQueryString(e.query||{});const g={headers:e.headers,host:e.hostname,method:e.method,path:f?`${e.path}?${f}`:e.path,port:e.port,agent:m?this.config.httpsAgent:this.config.httpAgent};const y=m?s.request:i.request;const h=y(g,(e=>{const t=new n.HttpResponse({statusCode:e.statusCode||-1,headers:c.getTransformedHeaders(e.headers),body:e});o({response:t})}));h.on("error",(e=>{if(a.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){p(Object.assign(e,{name:"TimeoutError"}))}else{p(e)}}));l.setConnectionTimeout(h,p,this.config.connectionTimeout);u.setSocketTimeout(h,p,this.config.socketTimeout);if(t){t.onabort=()=>{h.abort();const e=new Error("Request aborted");e.name="AbortError";p(e)}}d.writeRequestBody(h,e)}))}}t.NodeHttpHandler=NodeHttpHandler},2533:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const n=o(223);const r=o(3402);const i=o(5158);const s=o(6225);const a=o(5248);class NodeHttp2Handler{constructor({requestTimeout:e,sessionTimeout:t,disableConcurrentStreams:o}={}){this.metadata={handlerProtocol:"h2"};this.requestTimeout=e;this.sessionTimeout=t;this.disableConcurrentStreams=o;this.sessionCache=new Map}destroy(){for(const e of this.sessionCache.values()){e.forEach((e=>this.destroySession(e)))}this.sessionCache.clear()}handle(e,{abortSignal:t}={}){return new Promise(((o,c)=>{let l=false;if(t===null||t===void 0?void 0:t.aborted){l=true;const e=new Error("Request aborted");e.name="AbortError";c(e);return}const{hostname:u,method:d,port:p,protocol:m,path:f,query:g}=e;const y=`${m}//${u}${p?`:${p}`:""}`;const h=this.getSession(y,this.disableConcurrentStreams||false);const reject=e=>{if(this.disableConcurrentStreams){this.destroySession(h)}l=true;c(e)};const v=r.buildQueryString(g||{});const w=h.request({...e.headers,[i.constants.HTTP2_HEADER_PATH]:v?`${f}?${v}`:f,[i.constants.HTTP2_HEADER_METHOD]:d});w.on("response",(e=>{const t=new n.HttpResponse({statusCode:e[":status"]||-1,headers:s.getTransformedHeaders(e),body:w});l=true;o({response:t});if(this.disableConcurrentStreams){h.close();this.deleteSessionFromCache(y,h)}}));const E=this.requestTimeout;if(E){w.setTimeout(E,(()=>{w.close();const e=new Error(`Stream timed out because of no activity for ${E} ms`);e.name="TimeoutError";reject(e)}))}if(t){t.onabort=()=>{w.close();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}w.on("frameError",((e,t,o)=>{reject(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));w.on("error",reject);w.on("aborted",(()=>{reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${w.rstCode}.`))}));w.on("close",(()=>{if(this.disableConcurrentStreams){h.destroy()}if(!l){reject(new Error("Unexpected error: http2 request did not get a response"))}}));a.writeRequestBody(w,e)}))}getSession(e,t){const o=this.sessionCache;const n=o.get(e)||[];if(n.length>0&&!t)return n[0];const r=i.connect(e);const destroySessionCb=()=>{this.destroySession(r);this.deleteSessionFromCache(e,r)};r.on("goaway",destroySessionCb);r.on("error",destroySessionCb);r.on("frameError",destroySessionCb);const s=this.sessionTimeout;if(s){r.setTimeout(s,destroySessionCb)}n.push(r);o.set(e,n);return r}destroySession(e){if(!e.destroyed){e.destroy()}}deleteSessionFromCache(e,t){const o=this.sessionCache.get(e)||[];if(!o.includes(t)){return}this.sessionCache.set(e,o.filter((e=>e!==t)))}}t.NodeHttp2Handler=NodeHttp2Handler},3598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return}e.on("socket",(n=>{if(n.connecting){const r=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${o} ms`),{name:"TimeoutError"}))}),o);n.on("connect",(()=>{clearTimeout(r)}))}}))};t.setConnectionTimeout=setConnectionTimeout},4751:(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},4362:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const n=o(2781);class Collector extends n.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,o){this.bufferedBytes.push(e);o()}}t.Collector=Collector},2198:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const n=o(4362);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},5248:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const n=o(2781);function writeRequestBody(e,t){const o=t.headers["Expect"]||t.headers["expect"];if(o==="100-continue"){e.on("continue",(()=>{writeBody(e,t.body)}))}else{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()}}},1786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t}static from(e,t=true){Object.defineProperty(e,"tryNextLink",{value:t,configurable:false,enumerable:false,writable:false});return e}}t.ProviderError=ProviderError;class CredentialsProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="CredentialsProviderError"}static from(e,t=true){Object.defineProperty(e,"tryNextLink",{value:t,configurable:false,enumerable:false,writable:false});return e}}t.CredentialsProviderError=CredentialsProviderError},1444:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const n=o(1786);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},529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},4462:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(1786),t);n.__exportStar(o(1444),t);n.__exportStar(o(529),t);n.__exportStar(o(714),t)},714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let n;let r;let i;const coalesceProvider=async()=>{if(!r){r=e()}try{n=await r;i=true}finally{r=undefined}return n};if(t===undefined){return async()=>{if(!i){n=await coalesceProvider()}return n}}let s=false;return async()=>{if(!i){n=await coalesceProvider()}if(s){return n}if(o&&!o(n)){s=true;return n}if(t(n)){await coalesceProvider();return n}return n}};t.memoize=memoize},6779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},2872:(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.substr(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/"}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}}),{})}},2348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;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},223:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(6779),t);n.__exportStar(o(2872),t);n.__exportStar(o(2348),t);n.__exportStar(o(5694),t)},5694:(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},3402:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const n=o(7952);function buildQueryString(e){const t=[];for(let o of Object.keys(e).sort()){const r=e[o];o=n.escapeUri(o);if(Array.isArray(r)){for(let e=0,i=r.length;e<i;e++){t.push(`${o}=${n.escapeUri(r[e])}`)}}else{let e=o;if(r||typeof r==="string"){e+=`=${n.escapeUri(r)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},7424:(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},7352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]},1921:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const n=o(7352);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.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError},7363:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const n=o(2037);const r=o(1017);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}`;return n.homedir()};t.getHomeDir=getHomeDir},7387:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(7363),t);n.__exportStar(o(7871),t);n.__exportStar(o(4105),t)},7871:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=t.ENV_CONFIG_PATH=t.ENV_CREDENTIALS_PATH=void 0;const n=o(1017);const r=o(7363);const i=o(9307);const s=o(2806);const a=o(9242);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:o=process.env[t.ENV_CREDENTIALS_PATH]||n.join(r.getHomeDir(),".aws","credentials"),configFilepath:c=process.env[t.ENV_CONFIG_PATH]||n.join(r.getHomeDir(),".aws","config")}=e;const l=await Promise.all([a.slurpFile(c).then(s.parseIni).then(i.normalizeConfigFile).catch(swallowError),a.slurpFile(o).then(s.parseIni).catch(swallowError)]);return{configFile:l[0],credentialsFile:l[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},9307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeConfigFile=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const normalizeConfigFile=e=>{const t={};for(const n of Object.keys(e)){let r;if(n==="default"){t.default=e.default}else if(r=o.exec(n)){const[o,i,s]=r;if(s){t[s]=e[n]}}}return t};t.normalizeConfigFile=normalizeConfigFile},2806:(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];const e=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(e){n=e[1];if(o.includes(n)){throw new Error(`Found invalid profile name "${n}"`)}}else if(n){const e=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);if(e){t[n]=t[n]||{};t[n][e[1]]=e[2]}}}return t};t.parseIni=parseIni},9242:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const n=o(7147);const{readFile:r}=n.promises;const i={};const slurpFile=e=>new Promise(((t,o)=>{if(!i[e]){i[e]={isReading:true,contents:"",requestQueue:[]};i[e].requestQueue.push({resolve:t,reject:o});r(e,"utf8").then((t=>{i[e].isReading=false;i[e].contents=t;const{requestQueue:o}=i[e];while(o.length){const{resolve:e}=o.pop();e(t)}})).catch((t=>{i[e].isReading=false;const{requestQueue:o}=i[e];while(o.length){const{reject:e}=o.pop();e(t)}}))}else if(i[e].isReading){i[e].requestQueue.push({resolve:t,reject:o})}else{t(i[e].contents)}}));t.slurpFile=slurpFile},4105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5086:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const n=o(1968);const r=o(342);const i=o(8023);const s=o(3590);const a=o(2019);const c=o(7080);const l=o(4120);const u=o(8201);const d=o(7027);const p=o(5772);const m=o(4799);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:o,service:n,sha256:r,uriEscapePath:i=true}){this.service=n;this.sha256=r;this.uriEscapePath=i;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=d.normalizeRegionProvider(o);this.credentialProvider=d.normalizeCredentialsProvider(t)}async presign(e,t={}){const{signingDate:o=new Date,expiresIn:n=3600,unsignableHeaders:a,unhoistableHeaders:l,signableHeaders:d,signingRegion:m,signingService:f}=t;const g=await this.credentialProvider();const y=m!==null&&m!==void 0?m:await this.regionProvider();const{longDate:h,shortDate:v}=formatDate(o);if(n>r.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const w=i.createScope(v,y,f!==null&&f!==void 0?f:this.service);const E=u.moveHeadersToQuery(p.prepareRequest(e),{unhoistableHeaders:l});if(g.sessionToken){E.query[r.TOKEN_QUERY_PARAM]=g.sessionToken}E.query[r.ALGORITHM_QUERY_PARAM]=r.ALGORITHM_IDENTIFIER;E.query[r.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${w}`;E.query[r.AMZ_DATE_QUERY_PARAM]=h;E.query[r.EXPIRES_QUERY_PARAM]=n.toString(10);const S=s.getCanonicalHeaders(E,a,d);E.query[r.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(S);E.query[r.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,w,this.getSigningKey(g,y,v,f),this.createCanonicalRequest(E,S,await c.getPayloadHash(e,this.sha256)));return E}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{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:o=new Date,priorSignature:s,signingRegion:a,signingService:l}){const u=a!==null&&a!==void 0?a:await this.regionProvider();const{shortDate:d,longDate:p}=formatDate(o);const m=i.createScope(d,u,l!==null&&l!==void 0?l:this.service);const f=await c.getPayloadHash({headers:{},body:t},this.sha256);const g=new this.sha256;g.update(e);const y=n.toHex(await g.digest());const h=[r.EVENT_ALGORITHM_IDENTIFIER,p,m,s,y,f].join("\n");return this.signString(h,{signingDate:o,signingRegion:u,signingService:l})}async signString(e,{signingDate:t=new Date,signingRegion:o,signingService:r}={}){const i=await this.credentialProvider();const s=o!==null&&o!==void 0?o:await this.regionProvider();const{shortDate:a}=formatDate(t);const c=new this.sha256(await this.getSigningKey(i,s,a,r));c.update(e);return n.toHex(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:o,unsignableHeaders:n,signingRegion:a,signingService:u}={}){const d=await this.credentialProvider();const m=a!==null&&a!==void 0?a:await this.regionProvider();const f=p.prepareRequest(e);const{longDate:g,shortDate:y}=formatDate(t);const h=i.createScope(y,m,u!==null&&u!==void 0?u:this.service);f.headers[r.AMZ_DATE_HEADER]=g;if(d.sessionToken){f.headers[r.TOKEN_HEADER]=d.sessionToken}const v=await c.getPayloadHash(f,this.sha256);if(!l.hasHeader(r.SHA256_HEADER,f.headers)&&this.applyChecksum){f.headers[r.SHA256_HEADER]=v}const w=s.getCanonicalHeaders(f,n,o);const E=await this.getSignature(g,h,this.getSigningKey(d,m,y,u),this.createCanonicalRequest(f,w,v));f.headers[r.AUTH_HEADER]=`${r.ALGORITHM_IDENTIFIER} `+`Credential=${d.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(w)}, `+`Signature=${E}`;return f}createCanonicalRequest(e,t,o){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${a.getCanonicalQuery(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${o}`}async createStringToSign(e,t,o){const i=new this.sha256;i.update(o);const s=await i.digest();return`${r.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${n.toHex(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=encodeURIComponent(e.replace(/^\//,""));return`/${t.replace(/%2F/g,"/")}`}return e}async getSignature(e,t,o,r){const i=await this.createStringToSign(e,t,r);const s=new this.sha256(await o);s.update(i);return n.toHex(await s.digest())}getSigningKey(e,t,o,n){return i.getSigningKey(this.sha256,e,o,t,n||this.service)}}t.SignatureV4=SignatureV4;const formatDate=e=>{const t=m.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},3141:(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?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},342:(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},8023:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const n=o(1968);const r=o(342);const i={};const s=[];const createScope=(e,t,o)=>`${e}/${t}/${o}/${r.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,o,a,c)=>{const l=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${o}:${a}:${c}:${n.toHex(l)}:${t.sessionToken}`;if(u in i){return i[u]}s.push(u);while(s.length>r.MAX_CACHE_SIZE){delete i[s.shift()]}let d=`AWS4${t.secretAccessKey}`;for(const t of[o,a,c,r.KEY_TYPE_IDENTIFIER]){d=await hmac(e,d,t)}return i[u]=d};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{s.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(o);return n.digest()}},3590:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const n=o(342);const getCanonicalHeaders=({headers:e},t,o)=>{const r={};for(const i of Object.keys(e).sort()){const s=i.toLowerCase();if(s in n.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(s))||n.PROXY_HEADER_PATTERN.test(s)||n.SEC_HEADER_PATTERN.test(s)){if(!o||o&&!o.has(s)){continue}}r[s]=e[i].trim().replace(/\s+/g," ")}return r};t.getCanonicalHeaders=getCanonicalHeaders},2019:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const n=o(7952);const r=o(342);const getCanonicalQuery=({query:e={}})=>{const t=[];const o={};for(const i of Object.keys(e).sort()){if(i.toLowerCase()===r.SIGNATURE_HEADER){continue}t.push(i);const s=e[i];if(typeof s==="string"){o[i]=`${n.escapeUri(i)}=${n.escapeUri(s)}`}else if(Array.isArray(s)){o[i]=s.slice(0).sort().reduce(((e,t)=>e.concat([`${n.escapeUri(i)}=${n.escapeUri(t)}`])),[]).join("&")}}return t.map((e=>o[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},7080:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const n=o(9126);const r=o(1968);const i=o(342);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)||n.isArrayBuffer(t)){const e=new o;e.update(t);return r.toHex(await e.digest())}return i.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},4120:(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},7776:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeRegionProvider=t.normalizeCredentialsProvider=t.prepareRequest=t.moveHeadersToQuery=t.getPayloadHash=t.getCanonicalQuery=t.getCanonicalHeaders=void 0;const n=o(4351);n.__exportStar(o(5086),t);var r=o(3590);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return r.getCanonicalHeaders}});var i=o(2019);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return i.getCanonicalQuery}});var s=o(7080);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return s.getPayloadHash}});var a=o(8201);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return a.moveHeadersToQuery}});var c=o(5772);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return c.prepareRequest}});var l=o(7027);Object.defineProperty(t,"normalizeCredentialsProvider",{enumerable:true,get:function(){return l.normalizeCredentialsProvider}});Object.defineProperty(t,"normalizeRegionProvider",{enumerable:true,get:function(){return l.normalizeRegionProvider}});n.__exportStar(o(8023),t)},8201:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const n=o(3141);const moveHeadersToQuery=(e,t={})=>{var o;const{headers:r,query:i={}}=typeof e.clone==="function"?e.clone():n.cloneRequest(e);for(const e of Object.keys(r)){const n=e.toLowerCase();if(n.substr(0,6)==="x-amz-"&&!((o=t.unhoistableHeaders)===null||o===void 0?void 0:o.has(n))){i[e]=r[e];delete r[e]}}return{...e,headers:r,query:i}};t.moveHeadersToQuery=moveHeadersToQuery},7027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeCredentialsProvider=t.normalizeRegionProvider=void 0;const normalizeRegionProvider=e=>{if(typeof e==="string"){const t=Promise.resolve(e);return()=>t}else{return e}};t.normalizeRegionProvider=normalizeRegionProvider;const normalizeCredentialsProvider=e=>{if(typeof e==="object"){const t=Promise.resolve(e);return()=>t}else{return e}};t.normalizeCredentialsProvider=normalizeCredentialsProvider},5772:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const n=o(3141);const r=o(342);const prepareRequest=e=>{e=typeof e.clone==="function"?e.clone():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},4799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDate=t.iso8601=void 0;const iso8601=e=>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},6034:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const n=o(1461);class Client{constructor(e){this.middlewareStack=n.constructStack();this.config=e}send(e,t,o){const n=typeof t!=="function"?t:undefined;const r=typeof t==="function"?t:o;const i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(r){i(e).then((e=>r(null,e.output)),(e=>r(e))).catch((()=>{}))}else{return i(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},4014:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const n=o(1461);class Command{constructor(){this.middlewareStack=n.constructStack()}}t.Command=Command},8392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},4695:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const n=o(4809);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const i=["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 s=e.getUTCDate();const a=e.getUTCHours();const c=e.getUTCMinutes();const l=e.getUTCSeconds();const u=s<10?`0${s}`:`${s}`;const d=a<10?`0${a}`:`${a}`;const p=c<10?`0${c}`:`${c}`;const m=l<10?`0${l}`:`${l}`;return`${r[n]}, ${u} ${i[o]} ${t} ${d}:${p}:${m} GMT`}t.dateToUtcString=dateToUtcString;const s=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=s.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,r,i,a,c,l,u,d]=t;const p=n.strictParseShort(stripLeadingZeroes(r));const m=parseDateValue(i,"month",1,12);const f=parseDateValue(a,"day",1,31);return buildDate(p,m,f,{hours:c,minutes:l,seconds:u,fractionalMilliseconds:d})};t.parseRfc3339DateTime=parseRfc3339DateTime;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{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{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const l=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{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,i,s,a,c,l]=t;return buildDate(n.strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(r),parseDateValue(o,"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:l})}t=c.exec(e);if(t){const[e,o,n,r,i,s,a,c]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(r),parseMonthByShortName(n),parseDateValue(o,"day",1,31),{hours:i,minutes:s,seconds:a,fractionalMilliseconds:c}))}t=l.exec(e);if(t){const[e,o,r,i,s,a,c,l]=t;return buildDate(n.strictParseShort(stripLeadingZeroes(l)),parseMonthByShortName(o),parseDateValue(r.trimLeft(),"day",1,31),{hours:i,minutes:s,seconds:a,fractionalMilliseconds:c})}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=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+n.strictParseShort(stripLeadingZeroes(e));if(o<t){return o+100}return o};const u=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>u){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=i.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 ${i[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,r)=>{const i=n.strictParseByte(stripLeadingZeroes(e));if(i<o||i>r){throw new TypeError(`${t} must be between ${o} and ${r}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return n.strictParseFloat32("0."+e)*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)}},3088:(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},2363:(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(".")))<12){o=true;process.emitWarning(`The AWS SDK for JavaScript (v3) will\n`+`no longer support Node.js ${e} as of January 1, 2022.\n`+`To continue receiving updates to AWS services, bug fixes, and security\n`+`updates please upgrade to Node.js 12.x or later.\n\n`+`More information can be found at: https://a.co/1l6FLnu`,`NodeDeprecationWarning`)}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},7778:(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},1927:(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},6457:(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},5830:(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]=t.getValueFromTextNode(e[n])}}return e};t.getValueFromTextNode=getValueFromTextNode},4963:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(6034),t);n.__exportStar(o(4014),t);n.__exportStar(o(8392),t);n.__exportStar(o(4695),t);n.__exportStar(o(3088),t);n.__exportStar(o(2363),t);n.__exportStar(o(7778),t);n.__exportStar(o(1927),t);n.__exportStar(o(6457),t);n.__exportStar(o(5830),t);n.__exportStar(o(3613),t);n.__exportStar(o(4809),t);n.__exportStar(o(8e3),t);n.__exportStar(o(8730),t)},3613:(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},4809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}`)};t.expectNumber=expectNumber;const o=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const n=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}`)};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=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}throw new TypeError(`Expected object, got ${typeof e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}throw new TypeError(`Expected string, got ${typeof e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const o=t.expectObject(e);const n=Object.entries(o).filter((([e,t])=>t!==null&&t!==undefined)).map((([e,t])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member`)}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 t.expectNumber(parseNumber(e))}return t.expectNumber(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return t.expectFloat32(parseNumber(e))}return 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 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 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 t.expectLong(parseNumber(e))}return t.expectLong(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return t.expectInt32(parseNumber(e))}return t.expectInt32(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return t.expectShort(parseNumber(e))}return t.expectShort(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return t.expectByte(parseNumber(e))}return t.expectByte(e)};t.strictParseByte=strictParseByte},8e3:(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},8730:(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 i="";for(let e=0;e<n.length;e++){if(i===""){i=n[e]}else{i+=t+n[e]}if((e+1)%o===0){r.push(i);i=""}}if(i!==""){r.push(i)}return r}t.splitEvery=splitEvery},2992:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const n=o(7424);const parseUrl=e=>{const{hostname:t,pathname:o,port:r,protocol:i,search:s}=new URL(e);let a;if(s){a=n.parseQueryString(s)}return{hostname:t,port:r?parseInt(r):undefined,protocol:i,path:o,query:a}};t.parseUrl=parseUrl},8588:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=t.fromBase64=void 0;const n=o(6010);const r=/^[A-Za-z0-9+/]*={0,2}$/;function 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=n.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}t.fromBase64=fromBase64;function toBase64(e){return n.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}t.toBase64=toBase64},4147:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const n=o(7147);function 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.path==="string"){return n.lstatSync(e.path).size}}t.calculateBodyLength=calculateBodyLength},6010:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const n=o(9126);const r=o(4300);const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!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},9509:(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},6168:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9509),t)},9349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getMasterProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getMasterProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getMasterProfileName=getMasterProfileName},8598:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9349),t);n.__exportStar(o(6329),t)},6329:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const n=o(7387);const parseKnownFiles=async e=>{const{loadedConfig:t=n.loadSharedConfigFiles(e)}=e;const o=await t;return{...o.configFile,...o.credentialsFile}};t.parseKnownFiles=parseKnownFiles},6488:(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"},8450:(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"}},4243:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(8238),t)},8238:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const n=o(6153);const r=o(5898);const i=o(7684);const s=o(4462);const a=o(6488);const c=o(8450);const resolveDefaultsModeConfig=({region:e=i.loadConfig(n.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig(c.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>s.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 r.getInstanceMetadataEndpoint();return(await r.httpRequest({...e,path:a.IMDS_REGION_PATH})).toString()}catch(e){}}}},1968:(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.substr(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},5774:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const n=o(4652);const escapeUriPath=e=>e.split("/").map(n.escapeUri).join("/");t.escapeUriPath=escapeUriPath},4652:(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()}`},7952:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(4652),t);n.__exportStar(o(5774),t)},8095:(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(7684);const r=o(2037);const i=o(7282);const s=o(8390);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],[`os/${r.platform()}`,r.release()],["lang/js"],["md/nodejs",`${i.versions.node}`]];const c=s.isCrtAvailable();if(c){a.push(c)}if(e){a.push([`api/${e}`,o])}if(i.env.AWS_EXECUTION_ENV){a.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const l=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 l;u=e?[...a,[`app/${e}`]]:[...a]}return u}};t.defaultUserAgent=defaultUserAgent},8390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&o(7578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},6278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const n=o(6010);const fromUtf8=e=>{const t=n.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8;const toUtf8=e=>n.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},8880:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createWaiter=void 0;const n=o(2105);const r=o(6001);const i=o(4996);const abortTimeout=async e=>new Promise((t=>{e.onabort=()=>t({state:i.WaiterState.ABORTED})}));const createWaiter=async(e,t,o)=>{const s={...i.waiterServiceDefaults,...e};r.validateWaiterOptions(s);const a=[n.runPolling(s,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},1627:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(8880),t);n.__exportStar(o(4996),t)},2105:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPolling=void 0;const n=o(7397);const r=o(4996);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:i,client:s,abortSignal:a},c,l)=>{var u;const{state:d}=await l(s,c);if(d!==r.WaiterState.RETRY){return{state:d}}let p=1;const m=Date.now()+o*1e3;const f=Math.log(t/e)/Math.log(2)+1;while(true){if(((u=i===null||i===void 0?void 0:i.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,f,p);if(Date.now()+o*1e3>m){return{state:r.WaiterState.TIMEOUT}}await n.sleep(o);const{state:d}=await l(s,c);if(d!==r.WaiterState.RETRY){return{state:d}}p+=1}};t.runPolling=runPolling},6001:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(7397),t);n.__exportStar(o(3931),t)},7397:(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},3931:(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},4996:(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},1040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function once(e,t,{signal:o}={}){return new Promise(((n,r)=>{function cleanup(){o===null||o===void 0?void 0:o.removeEventListener("abort",cleanup);e.removeListener(t,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();n(e)}function onError(e){cleanup();r(e)}o===null||o===void 0?void 0:o.addEventListener("abort",cleanup);e.on(t,onEvent);e.on("error",onError)}))}t["default"]=once},9690:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=o(2361);const i=n(o(8237));const s=n(o(6570));const a=i.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends r.EventEmitter{constructor(e,t){super();let o=t;if(typeof e==="function"){this.callback=e}else if(e){o=e}this.timeout=null;if(o&&typeof o.timeout==="number"){this.timeout=o.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const o=Object.assign({},t);if(typeof o.secureEndpoint!=="boolean"){o.secureEndpoint=isSecureEndpoint()}if(o.host==null){o.host="localhost"}if(o.port==null){o.port=o.secureEndpoint?443:80}if(o.protocol==null){o.protocol=o.secureEndpoint?"https:":"http:"}if(o.host&&o.path){delete o.path}delete o.agent;delete o.hostname;delete o._defaultAgent;delete o.defaultPort;delete o.createConnection;e._last=true;e.shouldKeepAlive=false;let n=false;let r=null;const i=o.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{r=null;n=true;const e=new Error(`A "socket" was not created for HTTP request before ${i}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(n)return;if(r!==null){clearTimeout(r);r=null}onerror(e)};const onsocket=t=>{if(n)return;if(r!=null){clearTimeout(r);r=null}if(isAgent(t)){a("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,o);return}if(t){t.once("free",(()=>{this.freeSocket(t,o)}));e.onSocket(t);return}const i=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(i)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){a("Converting legacy callback function to promise");this.promisifiedCallback=s.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof i==="number"&&i>0){r=setTimeout(ontimeout,i)}if("port"in o&&typeof o.port!=="number"){o.port=Number(o.port)}try{a("Resolving socket for %o request: %o",o.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,o)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){a("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){a("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},6570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,o){return new Promise(((n,r)=>{e.call(this,t,o,((e,t)=>{if(e){r(e)}else{n(t)}}))}))}}t["default"]=promisify},8222:(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(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(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(900);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 i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}i++;const r=createDebug.formatters[n];if(typeof r==="function"){const n=e[i];t=r.call(o,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(o,e);const s=o.log||createDebug.log;s.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},8237:(e,t,o)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=o(8222)}else{e.exports=o(4874)}},4874:(e,t,o)=>{const n=o(6224);const r=o(3837);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(9318);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 i=` ${r};1m${o} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(r+"m+"+e.exports.humanize(this.diff)+"")}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(6243)(t);const{formatters:i}=e.exports;i.o=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts)}},5107: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.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var r=n(o(9323));var i=n(o(9591));var s=n(o(2586));var a=n(o(1227));var c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;t.decodeXML=getStrictDecoder(s.default);t.decodeHTMLStrict=getStrictDecoder(r.default);function getStrictDecoder(e){var t=getReplacer(e);return function(e){return String(e).replace(c,t)}}var sorter=function(e,t){return e<t?1:-1};t.decodeHTML=function(){var e=Object.keys(i.default).sort(sorter);var t=Object.keys(r.default).sort(sorter);for(var o=0,n=0;o<t.length;o++){if(e[n]===t[o]){t[o]+=";?";n++}else{t[o]+=";"}}var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g");var a=getReplacer(r.default);function replacer(e){if(e.substr(-1)!==";")e+=";";return a(e)}return function(e){return String(e).replace(s,replacer)}}();function getReplacer(e){return function replace(t){if(t.charAt(1)==="#"){var o=t.charAt(2);if(o==="X"||o==="x"){return a.default(parseInt(t.substr(3),16))}return a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}},1227: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});var r=n(o(3600));var i=String.fromCodePoint||function(e){var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function decodeCodePoint(e){if(e>=55296&&e<=57343||e>1114111){return"<22>"}if(e in r.default){e=r.default[e]}return i(e)}t["default"]=decodeCodePoint},2006: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.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var r=n(o(2586));var i=getInverseObj(r.default);var s=getInverseReplacer(i);t.encodeXML=getASCIIEncoder(i);var a=n(o(9323));var c=getInverseObj(a.default);var l=getInverseReplacer(c);t.encodeHTML=getInverse(c,l);t.encodeNonAsciiHTML=getASCIIEncoder(c);function getInverseObj(e){return Object.keys(e).sort().reduce((function(t,o){t[e[o]]="&"+o+";";return t}),{})}function getInverseReplacer(e){var t=[];var o=[];for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(i.length===1){t.push("\\"+i)}else{o.push(i)}}t.sort();for(var s=0;s<t.length-1;s++){var a=s;while(a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1)){a+=1}var c=1+a-s;if(c<3)continue;t.splice(s,c,t[s]+"-"+t[a])}o.unshift("["+t.join("")+"]");return new RegExp(o.join("|"),"g")}var u=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;var d=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function singleCharReplacer(e){return"&#x"+(e.length>1?d(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function getInverse(e,t){return function(o){return o.replace(t,(function(t){return e[t]})).replace(u,singleCharReplacer)}}var p=new RegExp(s.source+"|"+u.source,"g");function escape(e){return e.replace(p,singleCharReplacer)}t.escape=escape;function escapeUTF8(e){return e.replace(s,singleCharReplacer)}t.escapeUTF8=escapeUTF8;function getASCIIEncoder(e){return function(t){return t.replace(p,(function(t){return e[t]||singleCharReplacer(t)}))}}},3e3:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=o(5107);var r=o(2006);function decode(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)}t.decode=decode;function decodeStrict(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)}t.decodeStrict=decodeStrict;function encode(e,t){return(!t||t<=0?r.encodeXML:r.encodeHTML)(e)}t.encode=encode;var i=o(2006);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return i.encodeXML}});Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return i.encodeHTML}});Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:true,get:function(){return i.encodeNonAsciiHTML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return i.escape}});Object.defineProperty(t,"escapeUTF8",{enumerable:true,get:function(){return i.escapeUTF8}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return i.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return i.encodeHTML}});var s=o(5107);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return s.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return s.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return s.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return s.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return s.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return s.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return s.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return s.decodeXML}})},5152:(e,t,o)=>{"use strict";const n=o(8280).buildOptions;const r={attributeNamePrefix:"@_",attrNodeName:false,textNodeName:"#text",ignoreAttributes:true,cdataTagName:false,cdataPositionChar:"\\c",format:false,indentBy:" ",supressEmptyNode:false,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}};const i=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function Parser(e){this.options=n(e,r,i);if(this.options.ignoreAttributes||this.options.attrNodeName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}if(this.options.cdataTagName){this.isCDATA=isCDATA}else{this.isCDATA=function(){return false}}this.replaceCDATAstr=replaceCDATAstr;this.replaceCDATAarr=replaceCDATAarr;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}if(this.options.supressEmptyNode){this.buildTextNode=buildEmptyTextNode;this.buildObjNode=buildEmptyObjNode}else{this.buildTextNode=buildTextValNode;this.buildObjNode=buildObjectNode}this.buildTextValNode=buildTextValNode;this.buildObjectNode=buildObjectNode}Parser.prototype.parse=function(e){return this.j2x(e,0).val};Parser.prototype.j2x=function(e,t){let o="";let n="";const r=Object.keys(e);const i=r.length;for(let s=0;s<i;s++){const i=r[s];if(typeof e[i]==="undefined"){}else if(e[i]===null){n+=this.indentate(t)+"<"+i+"/"+this.tagEndChar}else if(e[i]instanceof Date){n+=this.buildTextNode(e[i],i,"",t)}else if(typeof e[i]!=="object"){const r=this.isAttribute(i);if(r){o+=" "+r+'="'+this.options.attrValueProcessor(""+e[i])+'"'}else if(this.isCDATA(i)){if(e[this.options.textNodeName]){n+=this.replaceCDATAstr(e[this.options.textNodeName],e[i])}else{n+=this.replaceCDATAstr("",e[i])}}else{if(i===this.options.textNodeName){if(e[this.options.cdataTagName]){}else{n+=this.options.tagValueProcessor(""+e[i])}}else{n+=this.buildTextNode(e[i],i,"",t)}}}else if(Array.isArray(e[i])){if(this.isCDATA(i)){n+=this.indentate(t);if(e[this.options.textNodeName]){n+=this.replaceCDATAarr(e[this.options.textNodeName],e[i])}else{n+=this.replaceCDATAarr("",e[i])}}else{const o=e[i].length;for(let r=0;r<o;r++){const o=e[i][r];if(typeof o==="undefined"){}else if(o===null){n+=this.indentate(t)+"<"+i+"/"+this.tagEndChar}else if(typeof o==="object"){const e=this.j2x(o,t+1);n+=this.buildObjNode(e.val,i,e.attrStr,t)}else{n+=this.buildTextNode(o,i,"",t)}}}}else{if(this.options.attrNodeName&&i===this.options.attrNodeName){const t=Object.keys(e[i]);const n=t.length;for(let r=0;r<n;r++){o+=" "+t[r]+'="'+this.options.attrValueProcessor(""+e[i][t[r]])+'"'}}else{const o=this.j2x(e[i],t+1);n+=this.buildObjNode(o.val,i,o.attrStr,t)}}}return{attrStr:o,val:n}};function replaceCDATAstr(e,t){e=this.options.tagValueProcessor(""+e);if(this.options.cdataPositionChar===""||e===""){return e+"<![CDATA["+t+"]]"+this.tagEndChar}else{return e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}}function replaceCDATAarr(e,t){e=this.options.tagValueProcessor(""+e);if(this.options.cdataPositionChar===""||e===""){return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar}else{for(let o in t){e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[o]+"]]>")}return e+this.newLine}}function buildObjectNode(e,t,o,n){if(o&&!e.includes("<")){return this.indentate(n)+"<"+t+o+">"+e+"</"+t+this.tagEndChar}else{return this.indentate(n)+"<"+t+o+this.tagEndChar+e+this.indentate(n)+"</"+t+this.tagEndChar}}function buildEmptyObjNode(e,t,o,n){if(e!==""){return this.buildObjectNode(e,t,o,n)}else{return this.indentate(n)+"<"+t+o+"/"+this.tagEndChar}}function buildTextValNode(e,t,o,n){return this.indentate(n)+"<"+t+o+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function buildEmptyTextNode(e,t,o,n){if(e!==""){return this.buildTextValNode(e,t,o,n)}else{return this.indentate(n)+"<"+t+o+"/"+this.tagEndChar}}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}}function isCDATA(e){return e===this.options.cdataTagName}e.exports=Parser},1901:(e,t,o)=>{"use strict";const char=function(e){return String.fromCharCode(e)};const n={nilChar:char(176),missingChar:char(201),nilPremitive:char(175),missingPremitive:char(200),emptyChar:char(178),emptyValue:char(177),boundryChar:char(179),objStart:char(198),arrStart:char(204),arrayEnd:char(185)};const r=[n.nilChar,n.nilPremitive,n.missingChar,n.missingPremitive,n.boundryChar,n.emptyChar,n.emptyValue,n.arrayEnd,n.objStart,n.arrStart];const _e=function(e,t,o){if(typeof t==="string"){if(e&&e[0]&&e[0].val!==undefined){return getValue(e[0].val,t)}else{return getValue(e,t)}}else{const r=hasData(e);if(r===true){let r="";if(Array.isArray(t)){r+=n.arrStart;const i=t[0];const s=e.length;if(typeof i==="string"){for(let t=0;t<s;t++){const o=getValue(e[t].val,i);r=processValue(r,o)}}else{for(let t=0;t<s;t++){const n=_e(e[t],i,o);r=processValue(r,n)}}r+=n.arrayEnd}else{r+=n.objStart;const i=Object.keys(t);if(Array.isArray(e)){e=e[0]}for(let n in i){const s=i[n];let a;if(!o.ignoreAttributes&&e.attrsMap&&e.attrsMap[s]){a=_e(e.attrsMap[s],t[s],o)}else if(s===o.textNodeName){a=_e(e.val,t[s],o)}else{a=_e(e.child[s],t[s],o)}r=processValue(r,a)}}return r}else{return r}}};const getValue=function(e){switch(e){case undefined:return n.missingPremitive;case null:return n.nilPremitive;case"":return n.emptyValue;default:return e}};const processValue=function(e,t){if(!isAppChar(t[0])&&!isAppChar(e[e.length-1])){e+=n.boundryChar}return e+t};const isAppChar=function(e){return r.indexOf(e)!==-1};function hasData(e){if(e===undefined){return n.missingChar}else if(e===null){return n.nilChar}else if(e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)){return n.emptyChar}else{return true}}const i=o(6712);const s=o(8280).buildOptions;const convert2nimn=function(e,t,o){o=s(o,i.defaultOptions,i.props);return _e(e,t,o)};t.convert2nimn=convert2nimn},8270:(e,t,o)=>{"use strict";const n=o(8280);const convertToJson=function(e,t,o){const r={};if((!e.child||n.isEmptyObject(e.child))&&(!e.attrsMap||n.isEmptyObject(e.attrsMap))){return n.isExist(e.val)?e.val:""}if(n.isExist(e.val)&&!(typeof e.val==="string"&&(e.val===""||e.val===t.cdataPositionChar))){const i=n.isTagNameInArrayMode(e.tagname,t.arrayMode,o);r[t.textNodeName]=i?[e.val]:e.val}n.merge(r,e.attrsMap,t.arrayMode);const i=Object.keys(e.child);for(let s=0;s<i.length;s++){const a=i[s];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let o in e.child[a]){if(e.child[a].hasOwnProperty(o)){r[a].push(convertToJson(e.child[a][o],t,a))}}}else{const i=convertToJson(e.child[a][0],t,a);const s=t.arrayMode===true&&typeof i==="object"||n.isTagNameInArrayMode(a,t.arrayMode,o);r[a]=s?[i]:i}}return r};t.convertToJson=convertToJson},6014:(e,t,o)=>{"use strict";const n=o(8280);const r=o(8280).buildOptions;const i=o(6712);const convertToJsonString=function(e,t){t=r(t,i.defaultOptions,i.props);t.indentBy=t.indentBy||"";return _cToJsonStr(e,t,0)};const _cToJsonStr=function(e,t,o){let r="{";const i=Object.keys(e.child);for(let o=0;o<i.length;o++){var s=i[o];if(e.child[s]&&e.child[s].length>1){r+='"'+s+'" : [ ';for(var a in e.child[s]){r+=_cToJsonStr(e.child[s][a],t)+" , "}r=r.substr(0,r.length-1)+" ] "}else{r+='"'+s+'" : '+_cToJsonStr(e.child[s][0],t)+" ,"}}n.merge(r,e.attrsMap);if(n.isEmptyObject(r)){return n.isExist(e.val)?e.val:""}else{if(n.isExist(e.val)){if(!(typeof e.val==="string"&&(e.val===""||e.val===t.cdataPositionChar))){r+='"'+t.textNodeName+'" : '+stringval(e.val)}}}if(r[r.length-1]===","){r=r.substr(0,r.length-2)}return r+"}"};function stringval(e){if(e===true||e===false||!isNaN(e)){return e}else{return'"'+e+'"'}}function indentate(e,t){return e.indentBy.repeat(t)}t.convertToJsonString=convertToJsonString},7448:(e,t,o)=>{"use strict";const n=o(8270);const r=o(6712);const i=o(6712);const s=o(8280).buildOptions;const a=o(1739);t.parse=function(e,t,o){if(o){if(o===true)o={};const t=a.validate(e,o);if(t!==true){throw Error(t.err.msg)}}t=s(t,i.defaultOptions,i.props);const c=r.getTraversalObj(e,t);return n.convertToJson(c,t)};t.convertTonimn=o(1901).convert2nimn;t.getTraversalObj=r.getTraversalObj;t.convertToJson=n.convertToJson;t.convertToJsonString=o(6014).convertToJsonString;t.validate=a.validate;t.j2xParser=o(5152);t.parseToNimn=function(e,o,n){return t.convertTonimn(t.getTraversalObj(e,n),o,n)};function print(e,t){if(e){console.log(t+"{");console.log(t+' "tagName": "'+e.tagname+'", ');if(e.parent){console.log(t+' "parent": "'+e.parent.tagname+'", ')}console.log(t+' "val": "'+e.val+'", ');console.log(t+' "attrs": '+JSON.stringify(e.attrsMap,null,4)+", ");if(e.child){console.log(t+'"child": {');const o=t+t;Object.keys(e.child).forEach((function(n){const r=e.child[n];if(Array.isArray(r)){console.log(t+'"'+n+'" :[');r.forEach((function(e,t){print(e,o)}));console.log(t+"],")}else{console.log(t+' "'+n+'" : {');print(r,o);console.log(t+"},")}}));console.log(t+"},")}console.log(t+"},")}}},8280:(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 i=new RegExp("^"+r+"$");const getAllMatches=function(e,t){const o=[];let n=t.exec(e);while(n){const r=[];const i=n.length;for(let e=0;e<i;e++){r.push(n[e])}o.push(r);n=t.exec(e)}return o};const isName=function(e){const t=i.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 i=0;i<r;i++){if(o==="strict"){e[n[i]]=[t[n[i]]]}else{e[n[i]]=t[n[i]]}}}};t.getValue=function(e){if(t.isExist(e)){return e}else{return""}};t.buildOptions=function(e,t,o){var n={};if(!e){return t}for(let r=0;r<o.length;r++){if(e[o[r]]!==undefined){n[o[r]]=e[o[r]]}else{n[o[r]]=t[o[r]]}}return n};t.isTagNameInArrayMode=function(e,t,o){if(t===false){return false}else if(t instanceof RegExp){return t.test(e)}else if(typeof t==="function"){return!!t(e,o)}return t==="strict"};t.isName=isName;t.getAllMatches=getAllMatches;t.nameRegexp=r},1739:(e,t,o)=>{"use strict";const n=o(8280);const r={allowBooleanAttributes:false};const i=["allowBooleanAttributes"];t.validate=function(e,t){t=n.buildOptions(t,r,i);const o=[];let s=false;let a=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let n=0;n<e.length;n++){if(e[n]==="<"&&e[n+1]==="?"){n+=2;n=readPI(e,n);if(n.err)return n}else if(e[n]==="<"){n++;if(e[n]==="!"){n=readCommentAndCDATA(e,n);continue}else{let r=false;if(e[n]==="/"){r=true;n++}let i="";for(;n<e.length&&e[n]!==">"&&e[n]!==" "&&e[n]!=="\t"&&e[n]!=="\n"&&e[n]!=="\r";n++){i+=e[n]}i=i.trim();if(i[i.length-1]==="/"){i=i.substring(0,i.length-1);n--}if(!validateTagName(i)){let t;if(i.trim().length===0){t="There is an unnecessary space between tag name and backward slash '</ ..'."}else{t="Tag '"+i+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,n))}const c=readAttributeStr(e,n);if(c===false){return getErrorObject("InvalidAttr","Attributes for '"+i+"' have open quote.",getLineNumberForPosition(e,n))}let l=c.value;n=c.index;if(l[l.length-1]==="/"){l=l.substring(0,l.length-1);const o=validateAttributeString(l,t);if(o===true){s=true}else{return getErrorObject(o.err.code,o.err.msg,getLineNumberForPosition(e,n-l.length+o.err.line))}}else if(r){if(!c.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+i+"' doesn't have proper closing.",getLineNumberForPosition(e,n))}else if(l.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+i+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,n))}else{const t=o.pop();if(i!==t){return getErrorObject("InvalidTag","Closing tag '"+t+"' is expected inplace of '"+i+"'.",getLineNumberForPosition(e,n))}if(o.length==0){a=true}}}else{const r=validateAttributeString(l,t);if(r!==true){return getErrorObject(r.err.code,r.err.msg,getLineNumberForPosition(e,n-l.length+r.err.line))}if(a===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,n))}else{o.push(i)}s=true}for(n++;n<e.length;n++){if(e[n]==="<"){if(e[n+1]==="!"){n++;n=readCommentAndCDATA(e,n);continue}else if(e[n+1]==="?"){n=readPI(e,++n);if(n.err)return n}else{break}}else if(e[n]==="&"){const t=validateAmpersand(e,n);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,n));n=t}}if(e[n]==="<"){n--}}}else{if(e[n]===" "||e[n]==="\t"||e[n]==="\n"||e[n]==="\r"){continue}return getErrorObject("InvalidChar","char '"+e[n]+"' is not expected.",getLineNumberForPosition(e,n))}}if(!s){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(o.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(o,null,4).replace(/\r?\n/g,"")+"' found.",1)}return true};function readPI(e,t){var o=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){var 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}var s='"';var a="'";function readAttributeStr(e,t){let o="";let n="";let r=false;for(;t<e.length;t++){if(e[t]===s||e[t]===a){if(n===""){n=e[t]}else if(n!==e[t]){continue}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 c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const o=n.getAllMatches(e,c);const r={};for(let n=0;n<o.length;n++){if(o[n][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+o[n][2]+"' has no space in starting.",getPositionFromMatch(e,o[n][0]))}else if(o[n][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+o[n][2]+"' is not allowed.",getPositionFromMatch(e,o[n][0]))}const i=o[n][2];if(!validateAttrName(i)){return getErrorObject("InvalidAttr","Attribute '"+i+"' is an invalid name.",getPositionFromMatch(e,o[n][0]))}if(!r.hasOwnProperty(i)){r[i]=1}else{return getErrorObject("InvalidAttr","Attribute '"+i+"' is repeated.",getPositionFromMatch(e,o[n][0]))}}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}}}function validateAttrName(e){return n.isName(e)}function validateTagName(e){return n.isName(e)}function getLineNumberForPosition(e,t){var o=e.substring(0,t).split(/\r?\n/);return o.length}function getPositionFromMatch(e,t){return e.indexOf(t)+t.length}},9539:e=>{"use strict";e.exports=function(e,t,o){this.tagname=e;this.parent=t;this.child={};this.attrsMap={};this.val=o;this.addChild=function(e){if(Array.isArray(this.child[e.tagname])){this.child[e.tagname].push(e)}else{this.child[e.tagname]=[e]}}}},6712:(e,t,o)=>{"use strict";const n=o(8280);const r=o(8280).buildOptions;const i=o(9539);const s="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}const a={attributeNamePrefix:"@_",attrNodeName:false,textNodeName:"#text",ignoreAttributes:true,ignoreNameSpace:false,allowBooleanAttributes:false,parseNodeValue:true,parseAttributeValue:false,arrayMode:false,trimValues:true,cdataTagName:false,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};t.defaultOptions=a;const c=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];t.props=c;function processTagValue(e,t,o){if(t){if(o.trimValues){t=t.trim()}t=o.tagValueProcessor(t,e);t=parseValue(t,o.parseNodeValue,o.parseTrueNumberOnly)}return t}function resolveNameSpace(e,t){if(t.ignoreNameSpace){const t=e.split(":");const o=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=o+t[1]}}return e}function parseValue(e,t,o){if(t&&typeof e==="string"){let t;if(e.trim()===""||isNaN(e)){t=e==="true"?true:e==="false"?false:e}else{if(e.indexOf("0x")!==-1){t=Number.parseInt(e,16)}else if(e.indexOf(".")!==-1){t=Number.parseFloat(e);e=e.replace(/\.?0+$/,"")}else{t=Number.parseInt(e,10)}if(o){t=String(t)===e?t:e}}return t}else{if(n.isExist(e)){return e}else{return""}}}const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function buildAttributesMap(e,t){if(!t.ignoreAttributes&&typeof e==="string"){e=e.replace(/\r?\n/g," ");const o=n.getAllMatches(e,l);const r=o.length;const i={};for(let e=0;e<r;e++){const n=resolveNameSpace(o[e][1],t);if(n.length){if(o[e][4]!==undefined){if(t.trimValues){o[e][4]=o[e][4].trim()}o[e][4]=t.attrValueProcessor(o[e][4],n);i[t.attributeNamePrefix+n]=parseValue(o[e][4],t.parseAttributeValue,t.parseTrueNumberOnly)}else if(t.allowBooleanAttributes){i[t.attributeNamePrefix+n]=true}}}if(!Object.keys(i).length){return}if(t.attrNodeName){const e={};e[t.attrNodeName]=i;return e}return i}}const getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n");t=r(t,a,c);const o=new i("!xml");let s=o;let l="";for(let o=0;o<e.length;o++){const r=e[o];if(r==="<"){if(e[o+1]==="/"){const r=findClosingIndex(e,">",o,"Closing Tag is not closed.");let i=e.substring(o+2,r).trim();if(t.ignoreNameSpace){const e=i.indexOf(":");if(e!==-1){i=i.substr(e+1)}}if(s){if(s.val){s.val=n.getValue(s.val)+""+processTagValue(i,l,t)}else{s.val=processTagValue(i,l,t)}}if(t.stopNodes.length&&t.stopNodes.includes(s.tagname)){s.child=[];if(s.attrsMap==undefined){s.attrsMap={}}s.val=e.substr(s.startIndex+1,o-s.startIndex-1)}s=s.parent;l="";o=r}else if(e[o+1]==="?"){o=findClosingIndex(e,"?>",o,"Pi Tag is not closed.")}else if(e.substr(o+1,3)==="!--"){o=findClosingIndex(e,"--\x3e",o,"Comment is not closed.")}else if(e.substr(o+1,2)==="!D"){const t=findClosingIndex(e,">",o,"DOCTYPE is not closed.");const n=e.substring(o,t);if(n.indexOf("[")>=0){o=e.indexOf("]>",o)+1}else{o=t}}else if(e.substr(o+1,2)==="!["){const r=findClosingIndex(e,"]]>",o,"CDATA is not closed.")-2;const a=e.substring(o+9,r);if(l){s.val=n.getValue(s.val)+""+processTagValue(s.tagname,l,t);l=""}if(t.cdataTagName){const e=new i(t.cdataTagName,s,a);s.addChild(e);s.val=n.getValue(s.val)+t.cdataPositionChar;if(a){e.val=a}}else{s.val=(s.val||"")+(a||"")}o=r+2}else{const r=closingIndexForOpeningTag(e,o+1);let a=r.data;const c=r.index;const u=a.indexOf(" ");let d=a;let p=true;if(u!==-1){d=a.substr(0,u).replace(/\s\s*$/,"");a=a.substr(u+1)}if(t.ignoreNameSpace){const e=d.indexOf(":");if(e!==-1){d=d.substr(e+1);p=d!==r.data.substr(e+1)}}if(s&&l){if(s.tagname!=="!xml"){s.val=n.getValue(s.val)+""+processTagValue(s.tagname,l,t)}}if(a.length>0&&a.lastIndexOf("/")===a.length-1){if(d[d.length-1]==="/"){d=d.substr(0,d.length-1);a=d}else{a=a.substr(0,a.length-1)}const e=new i(d,s,"");if(d!==a){e.attrsMap=buildAttributesMap(a,t)}s.addChild(e)}else{const e=new i(d,s);if(t.stopNodes.length&&t.stopNodes.includes(e.tagname)){e.startIndex=c}if(d!==a&&p){e.attrsMap=buildAttributesMap(a,t)}s.addChild(e);s=e}l="";o=c}}else{l+=e[o]}}return o};function closingIndexForOpeningTag(e,t){let o;let n="";for(let r=t;r<e.length;r++){let t=e[r];if(o){if(t===o)o=""}else if(t==='"'||t==="'"){o=t}else if(t===">"){return{data:n,index:r}}else if(t==="\t"){t=" "}n+=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}}t.getTraversalObj=getTraversalObj},1621: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)}},7492:function(e,t,o){"use strict";var n=this&&this.__awaiter||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())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(o(1808));const s=r(o(4404));const a=r(o(7310));const c=r(o(8237));const l=r(o(1040));const u=o(9690);const d=(0,c.default)("http-proxy-agent");function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}class HttpProxyAgent extends u.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}d("Creating new HttpProxyAgent instance: %o",t);super(t);const o=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(o.protocol);o.host=o.hostname||o.host;if(typeof o.port==="string"){o.port=parseInt(o.port,10)}if(!o.port&&o.host){o.port=this.secureProxy?443:80}if(o.host&&o.path){delete o.path;delete o.pathname}this.proxy=o}callback(e,t){return n(this,void 0,void 0,(function*(){const{proxy:o,secureProxy:n}=this;const r=a.default.parse(e.path);if(!r.protocol){r.protocol="http:"}if(!r.hostname){r.hostname=t.hostname||t.host||null}if(r.port==null&&typeof t.port){r.port=String(t.port)}if(r.port==="80"){r.port=""}e.path=a.default.format(r);if(o.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(o.auth).toString("base64")}`)}let c;if(n){d("Creating `tls.Socket`: %o",o);c=s.default.connect(o)}else{d("Creating `net.Socket`: %o",o);c=i.default.connect(o)}if(e._header){let t;let o;d("Regenerating stored HTTP header string for request");e._header=null;e._implicitHeader();if(e.output&&e.output.length>0){d("Patching connection write() output buffer with updated header");t=e.output[0];o=t.indexOf("\r\n\r\n")+4;e.output[0]=e._header+t.substring(o);d("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){d("Patching connection write() output buffer with updated header");t=e.outputData[0].data;o=t.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+t.substring(o);d("Output buffer: %o",e.outputData[0].data)}}yield(0,l.default)(c,"connect");return c}))}}t["default"]=HttpProxyAgent},3764:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=n(o(7492));function createHttpProxyAgent(e){return new r.default(e)}(function(e){e.HttpProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},5098:function(e,t,o){"use strict";var n=this&&this.__awaiter||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())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(o(1808));const s=r(o(4404));const a=r(o(7310));const c=r(o(9491));const l=r(o(8237));const u=o(9690);const d=r(o(595));const p=l.default("https-proxy-agent:agent");class HttpsProxyAgent extends u.Agent{constructor(e){let t;if(typeof e==="string"){t=a.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}p("creating new HttpsProxyAgent instance: %o",t);super(t);const o=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(o.protocol);o.host=o.hostname||o.host;if(typeof o.port==="string"){o.port=parseInt(o.port,10)}if(!o.port&&o.host){o.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in o)){o.ALPNProtocols=["http 1.1"]}if(o.host&&o.path){delete o.path;delete o.pathname}this.proxy=o}callback(e,t){return n(this,void 0,void 0,(function*(){const{proxy:o,secureProxy:n}=this;let r;if(n){p("Creating `tls.Socket`: %o",o);r=s.default.connect(o)}else{p("Creating `net.Socket`: %o",o);r=i.default.connect(o)}const a=Object.assign({},o.headers);const l=`${t.host}:${t.port}`;let u=`CONNECT ${l} HTTP/1.1\r\n`;if(o.auth){a["Proxy-Authorization"]=`Basic ${Buffer.from(o.auth).toString("base64")}`}let{host:m,port:f,secureEndpoint:g}=t;if(!isDefaultPort(f,g)){m+=`:${f}`}a.Host=m;a.Connection="close";for(const e of Object.keys(a)){u+=`${e}: ${a[e]}\r\n`}const y=d.default(r);r.write(`${u}\r\n`);const{statusCode:h,buffered:v}=yield y;if(h===200){e.once("socket",resume);if(t.secureEndpoint){p("Upgrading socket connection to TLS");const e=t.servername||t.host;return s.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:r,servername:e}))}return r}r.destroy();const w=new i.default.Socket({writable:false});w.readable=true;e.once("socket",(e=>{p("replaying proxy buffer for failed request");c.default(e.listenerCount("data")>0);e.push(v);e.push(null)}));return w}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const o={};let n;for(n in e){if(!t.includes(n)){o[n]=e[n]}}return o}},7219:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=n(o(5098));function createHttpsProxyAgent(e){return new r.default(e)}(function(e){e.HttpsProxyAgent=r.default;e.prototype=r.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},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});const r=n(o(8237));const i=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("close",onclose);e.removeListener("readable",read)}function onclose(e){i("onclose had error %o",e)}function onend(){i("onend")}function onerror(e){cleanup();i("onerror %o",e);o(e)}function ondata(e){r.push(e);n+=e.length;const o=Buffer.concat(r,n);const s=o.indexOf("\r\n\r\n");if(s===-1){i("have not received end of HTTP headers yet...");read();return}const a=o.toString("ascii",0,o.indexOf("\r\n"));const c=+a.split(" ")[1];i("got proxy server response: %o",a);t({statusCode:c,buffered:o})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},900:e=>{var t=1e3;var o=t*60;var n=o*60;var r=n*24;var i=r*7;var s=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 c=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*o;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=r){return Math.round(e/r)+"d"}if(i>=n){return Math.round(e/n)+"h"}if(i>=o){return Math.round(e/o)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=r){return plural(e,i,r,"day")}if(i>=n){return plural(e,i,n,"hour")}if(i>=o){return plural(e,i,o,"minute")}if(i>=t){return plural(e,i,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":"")}},9318:(e,t,o)=>{"use strict";const n=o(2037);const r=o(6224);const i=o(1621);const{env:s}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.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(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const o=a||0;if(s.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 s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return o}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){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=>{
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var t;var o;var n;var r;var i;var s;var a;var c;var l;var u;var d;var p;var m;var f;var g;var y;var h;var v;var w;var E;var S;var C;var x;var R;(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 _=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");_(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,i=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)if(s=e[a])i=(r<3?s(i):r>3?s(t,o,i):s(t,o))||i;return r>3&&i&&Object.defineProperty(t,o,i),i};i=function(e,t){return function(o,n){t(o,n,e)}};s=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())}))};c=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,r&&(i=s[0]&2?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;r=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1];i=s;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(s);break}if(i[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];r=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};l=function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))R(t,e,o)};R=Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[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.")};d=function(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,i=[],s;try{while((t===void 0||t-- >0)&&!(r=n.next()).done)i.push(r.value)}catch(e){s={error:e}}finally{try{if(r&&!r.done&&(o=n["return"]))o.call(n)}finally{if(s)throw s.error}}return i};p=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e};m=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 i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n};f=function(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};g=function(e){return this instanceof g?(this.v=e,this):new g(e)};y=function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o.apply(e,t||[]),r,i=[];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){i.push([e,t,o,n])>1||resume(e,t)}))}}function resume(e,t){try{step(n[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof g?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),i.shift(),i.length)resume(i[0][0],i[0][1])}};h=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:g(e[n](t)),done:n==="return"}:r?r(t):t}:r}};v=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)}};w=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var b=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};E=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))R(t,e,o);b(t,e);return t};S=function(e){return e&&e.__esModule?e:{default:e}};C=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)};x=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};e("__extends",t);e("__assign",o);e("__rest",n);e("__decorate",r);e("__param",i);e("__metadata",s);e("__awaiter",a);e("__generator",c);e("__exportStar",l);e("__createBinding",R);e("__values",u);e("__read",d);e("__spread",p);e("__spreadArrays",m);e("__spreadArray",f);e("__await",g);e("__asyncGenerator",y);e("__asyncDelegator",h);e("__asyncValues",v);e("__makeTemplateObject",w);e("__importStar",E);e("__importDefault",S);e("__classPrivateFieldGet",C);e("__classPrivateFieldSet",x)}))},4294:(e,t,o)=>{e.exports=o(4219)},4219:(e,t,o)=>{"use strict";var n=o(1808);var r=o(4404);var i=o(3685);var s=o(5687);var a=o(2361);var c=o(9491);var l=o(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=s.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||i.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,o,n,r){var i=toOptions(o,n,r);for(var s=0,a=t.requests.length;s<a;++s){var c=t.requests[s];if(c.host===i.host&&c.port===i.port){t.requests.splice(s,1);c.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}l.inherits(TunnelingAgent,a.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,o,n){var r=this;var i=mergeOptions({request:e},r.options,toOptions(t,o,n));if(r.sockets.length>=this.maxSockets){r.requests.push(i);return}r.createSocket(i,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,i)}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 i=o.request(r);i.useChunkedEncodingByDefault=false;i.once("response",onResponse);i.once("upgrade",onUpgrade);i.once("connect",onConnect);i.once("error",onError);i.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,o){process.nextTick((function(){onConnect(e,t,o)}))}function onConnect(r,s,a){i.removeAllListeners();s.removeAllListeners();if(r.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",r.statusCode);s.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);c.code="ECONNRESET";e.request.emit("error",c);o.removeSocket(n);return}if(a.length>0){u("got illegal response body from proxy");s.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);o.removeSocket(n);return}u("tunneling connection has established");o.sockets[o.sockets.indexOf(n)]=s;return t(s)}function onError(t){i.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 i=e.request.getHeader("host");var s=mergeOptions({},o.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host});var a=r.connect(0,s);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 i=0,s=r.length;i<s;++i){var a=r[i];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},5840:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return r.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return l.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return d.default}});var n=_interopRequireDefault(o(8628));var r=_interopRequireDefault(o(6409));var i=_interopRequireDefault(o(5122));var s=_interopRequireDefault(o(9120));var a=_interopRequireDefault(o(5332));var c=_interopRequireDefault(o(2414));var l=_interopRequireDefault(o(6900));var u=_interopRequireDefault(o(8950));var d=_interopRequireDefault(o(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4569:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var r=md5;t["default"]=r},5332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o="00000000-0000-0000-0000-000000000000";t["default"]=o},2746:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const o=new Uint8Array(16);o[0]=(t=parseInt(e.slice(0,8),16))>>>24;o[1]=t>>>16&255;o[2]=t>>>8&255;o[3]=t&255;o[4]=(t=parseInt(e.slice(9,13),16))>>>8;o[5]=t&255;o[6]=(t=parseInt(e.slice(14,18),16))>>>8;o[7]=t&255;o[8]=(t=parseInt(e.slice(19,23),16))>>>8;o[9]=t&255;o[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;o[11]=t/4294967296&255;o[12]=t>>>24&255;o[13]=t>>>16&255;o[14]=t>>>8&255;o[15]=t&255;return o}var r=parse;t["default"]=r},814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=o},807:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(o(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r=new Uint8Array(256);let i=r.length;function rng(){if(i>r.length-16){n.default.randomFillSync(r);i=0}return r.slice(i,i+=16)}},5274:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var r=sha1;t["default"]=r},8950:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const r=[];for(let e=0;e<256;++e){r.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const o=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,n.default)(o)){throw TypeError("Stringified UUID is invalid")}return o}var i=stringify;t["default"]=i},8628:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(807));var r=_interopRequireDefault(o(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let i;let s;let a=0;let c=0;function v1(e,t,o){let l=t&&o||0;const u=t||new Array(16);e=e||{};let d=e.node||i;let p=e.clockseq!==undefined?e.clockseq:s;if(d==null||p==null){const t=e.random||(e.rng||n.default)();if(d==null){d=i=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(p==null){p=s=(t[6]<<8|t[7])&16383}}let m=e.msecs!==undefined?e.msecs:Date.now();let f=e.nsecs!==undefined?e.nsecs:c+1;const g=m-a+(f-c)/1e4;if(g<0&&e.clockseq===undefined){p=p+1&16383}if((g<0||m>a)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=m;c=f;s=p;m+=122192928e5;const y=((m&268435455)*1e4+f)%4294967296;u[l++]=y>>>24&255;u[l++]=y>>>16&255;u[l++]=y>>>8&255;u[l++]=y&255;const h=m/4294967296*1e4&268435455;u[l++]=h>>>8&255;u[l++]=h&255;u[l++]=h>>>24&15|16;u[l++]=h>>>16&255;u[l++]=p>>>8|128;u[l++]=p&255;for(let e=0;e<6;++e){u[l+e]=d[e]}return t||(0,r.default)(u)}var l=v1;t["default"]=l},6409:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(5998));var r=_interopRequireDefault(o(4569));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=(0,n.default)("v3",48,r.default);var s=i;t["default"]=s},5998:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(o(8950));var r=_interopRequireDefault(o(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let o=0;o<e.length;++o){t.push(e.charCodeAt(o))}return t}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s;function _default(e,t,o){function generateUUID(e,i,s,a){if(typeof e==="string"){e=stringToBytes(e)}if(typeof i==="string"){i=(0,r.default)(i)}if(i.length!==16){throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)")}let c=new Uint8Array(16+e.length);c.set(i);c.set(e,i.length);c=o(c);c[6]=c[6]&15|t;c[8]=c[8]&63|128;if(s){a=a||0;for(let e=0;e<16;++e){s[a+e]=c[e]}return s}return(0,n.default)(c)}try{generateUUID.name=e}catch(e){}generateUUID.DNS=i;generateUUID.URL=s;return generateUUID}},5122:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(807));var r=_interopRequireDefault(o(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,o){e=e||{};const i=e.random||(e.rng||n.default)();i[6]=i[6]&15|64;i[8]=i[8]&63|128;if(t){o=o||0;for(let e=0;e<16;++e){t[o+e]=i[e]}return t}return(0,r.default)(i)}var i=v4;t["default"]=i},9120:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(5998));var r=_interopRequireDefault(o(5274));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=(0,n.default)("v5",80,r.default);var s=i;t["default"]=s},6900:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var r=validate;t["default"]=r},2414:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(o(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var r=version;t["default"]=r},6949:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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 s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getRegistriesData=t.getAccountIDs=t.getRegion=t.isPubECR=t.isECR=void 0;const a=i(o(2186));const c=o(8923);const l=o(2308);const u=o(8805);const d=o(3764);const p=o(7219);const m=/^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/;const isECR=e=>m.test(e)||(0,t.isPubECR)(e);t.isECR=isECR;const isPubECR=e=>e==="public.ecr.aws";t.isPubECR=isPubECR;const getRegion=e=>{if((0,t.isPubECR)(e)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const o=e.match(m);if(!o){return""}return o[3]};t.getRegion=getRegion;const getAccountIDs=e=>{if((0,t.isPubECR)(e)){return[]}const o=e.match(m);if(!o){return[]}const n=[o[2]];if(process.env.AWS_ACCOUNT_IDS){n.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return n.filter(((e,t)=>n.indexOf(e)===t))};t.getAccountIDs=getAccountIDs;const getRegistriesData=(e,o,n)=>s(void 0,void 0,void 0,(function*(){const r=(0,t.getRegion)(e);const i=(0,t.getAccountIDs)(e);const s={};if(i.length>0){a.debug(`Requesting AWS ECR auth token for ${i.join(", ")}`);s["registryIds"]=i}let m;const f=process.env.http_proxy||process.env.HTTP_PROXY||"";if(f){a.debug(`Using http proxy ${f}`);m=new d.HttpProxyAgent(f)}let g;const y=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(y){a.debug(`Using https proxy ${y}`);g=new p.HttpsProxyAgent(y)}const h=o&&n?{accessKeyId:o,secretAccessKey:n}:undefined;if((0,t.isPubECR)(e)){a.info(`AWS Public ECR detected with ${r} region`);const e=new l.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:g})});const t=yield e.getAuthorizationToken(s);if(!t.authorizationData||!t.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const o=Buffer.from(t.authorizationData.authorizationToken,"base64").toString("utf-8");const n=o.split(":",2);return[{registry:"public.ecr.aws",username:n[0],password:n[1]}]}else{a.info(`AWS ECR detected with ${r} region`);const e=new c.ECR({customUserAgent:"docker-login-action",credentials:h,region:r,requestHandler:new u.NodeHttpHandler({httpAgent:m,httpsAgent:g})});const t=yield e.getAuthorizationToken(s);if(!Array.isArray(t.authorizationData)||!t.authorizationData.length){throw new Error("Could not retrieve an authorization token from AWS ECR")}const o=[];for(const e of t.authorizationData){const t=Buffer.from(e.authorizationToken||"","base64").toString("utf-8");const n=t.split(":",2);o.push({registry:e.proxyEndpoint||"",username:n[0],password:n[1]})}return o}}));t.getRegistriesData=getRegistriesData},8954:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.getInputs=void 0;const s=i(o(2186));function getInputs(){return{registry:s.getInput("registry"),username:s.getInput("username"),password:s.getInput("password"),ecr:s.getInput("ecr"),logout:s.getBooleanInput("logout")}}t.getInputs=getInputs},6512:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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 s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.loginECR=t.loginStandard=t.logout=t.login=void 0;const a=i(o(6949));const c=i(o(2186));const l=i(o(1514));function login(e,t,o,n){return s(this,void 0,void 0,(function*(){if(/true/i.test(n)||n=="auto"&&a.isECR(e)){yield loginECR(e,t,o)}else{yield loginStandard(e,t,o)}}))}t.login=login;function logout(e){return s(this,void 0,void 0,(function*(){yield l.getExecOutput("docker",["logout",e],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){c.warning(e.stderr.trim())}}))}))}t.logout=logout;function loginStandard(e,t,o){return s(this,void 0,void 0,(function*(){if(!t||!o){throw new Error("Username and password required")}const n=["login","--password-stdin"];n.push("--username",t);n.push(e);if(e){c.info(`Logging into ${e}...`)}else{c.info(`Logging into Docker Hub...`)}yield l.getExecOutput("docker",n,{ignoreReturnCode:true,silent:true,input:Buffer.from(o)}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}c.info(`Login Succeeded!`)}))}))}t.loginStandard=loginStandard;function loginECR(e,t,o){return s(this,void 0,void 0,(function*(){c.info(`Retrieving registries data through AWS SDK...`);const n=yield a.getRegistriesData(e,t,o);for(const e of n){c.info(`Logging into ${e.registry}...`);yield l.getExecOutput("docker",["login","--password-stdin","--username",e.username,e.registry],{ignoreReturnCode:true,silent:true,input:Buffer.from(e.password)}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}c.info("Login Succeeded!")}))}}))}t.loginECR=loginECR},399:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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 s=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;const a=i(o(2186));const c=i(o(8954));const l=i(o(6512));const u=i(o(963));function run(){return s(this,void 0,void 0,(function*(){try{const e=c.getInputs();u.setRegistry(e.registry);u.setLogout(e.logout);yield l.login(e.registry,e.username,e.password,e.ecr)}catch(e){a.setFailed(e.message)}}))}t.run=run;function logout(){return s(this,void 0,void 0,(function*(){if(!u.logout){return}yield l.logout(u.registry)}))}if(!u.IsPost){run()}else{logout()}},963:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[o]}})}: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 i=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.setLogout=t.setRegistry=t.logout=t.registry=t.IsPost=void 0;const s=i(o(2186));t.IsPost=!!process.env["STATE_isPost"];t.registry=process.env["STATE_registry"]||"";t.logout=/true/i.test(process.env["STATE_logout"]||"");function setRegistry(e){s.saveState("registry",e)}t.setRegistry=setRegistry;function setLogout(e){s.saveState("logout",e)}t.setLogout=setLogout;if(!t.IsPost){s.saveState("isPost","true")}},7578:module=>{module.exports=eval("require")("aws-crt")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5158:e=>{"use strict";e.exports=require("http2")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},7282:e=>{"use strict";e.exports=require("process")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},5929:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.53.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.53.0","@aws-sdk/config-resolver":"3.53.0","@aws-sdk/credential-provider-node":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-signing":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}')},4289:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.53.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.53.0","@aws-sdk/config-resolver":"3.53.0","@aws-sdk/credential-provider-node":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-signing":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","@aws-sdk/util-waiter":"3.53.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}')},1092:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.53.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}')},7947:e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.53.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.53.0","@aws-sdk/credential-provider-node":"3.53.0","@aws-sdk/fetch-http-handler":"3.53.0","@aws-sdk/hash-node":"3.53.0","@aws-sdk/invalid-dependency":"3.53.0","@aws-sdk/middleware-content-length":"3.53.0","@aws-sdk/middleware-host-header":"3.53.0","@aws-sdk/middleware-logger":"3.53.0","@aws-sdk/middleware-retry":"3.53.0","@aws-sdk/middleware-sdk-sts":"3.53.0","@aws-sdk/middleware-serde":"3.53.0","@aws-sdk/middleware-signing":"3.53.0","@aws-sdk/middleware-stack":"3.53.0","@aws-sdk/middleware-user-agent":"3.53.0","@aws-sdk/node-config-provider":"3.53.0","@aws-sdk/node-http-handler":"3.53.0","@aws-sdk/protocol-http":"3.53.0","@aws-sdk/smithy-client":"3.53.0","@aws-sdk/types":"3.53.0","@aws-sdk/url-parser":"3.53.0","@aws-sdk/util-base64-browser":"3.52.0","@aws-sdk/util-base64-node":"3.52.0","@aws-sdk/util-body-length-browser":"3.52.0","@aws-sdk/util-body-length-node":"3.52.0","@aws-sdk/util-defaults-mode-browser":"3.53.0","@aws-sdk/util-defaults-mode-node":"3.53.0","@aws-sdk/util-user-agent-browser":"3.53.0","@aws-sdk/util-user-agent-node":"3.53.0","@aws-sdk/util-utf8-browser":"3.52.0","@aws-sdk/util-utf8-node":"3.52.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.52.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}')},3600:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"","backsim":"∽","backsimeq":"⋍","Backslash":"","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"","Bernoullis":"","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"","caps":"∩︀","caret":"","caron":"ˇ","Cayleys":"","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"","dd":"","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":"","emsp14":"","emsp":"","ENG":"Ŋ","eng":"ŋ","ensp":"","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"","Escr":"","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"","exponentiale":"","ExponentialE":"","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"","frown":"⌢","fscr":"𝒻","Fscr":"","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":"","half":"½","hamilt":"","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"","HilbertSpace":"","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"","hyphen":"","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"","Igrave":"Ì","igrave":"ì","ii":"","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"","ImaginaryI":"","imagline":"","imagpart":"","imath":"ı","Im":"","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"","lscr":"𝓁","Lscr":"","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"","lsquor":"","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":"","Mellintrf":"","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"","middot":"·","minusb":"⊟","minus":"","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":"","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"","ord":"⩝","order":"","orderof":"","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"","pointint":"⨕","popf":"𝕡","Popf":"","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"","Prime":"″","primes":"","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":"","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"","rationals":"","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"","realine":"","realpart":"","reals":"","Re":"","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"","rscr":"𝓇","Rscr":"","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"","rsquor":"","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"","setmn":"","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"","smashp":"⨳","smeparsl":"⧤","smid":"","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"","ThickSpace":"","ThinSpace":"","thinsp":"","thkap":"≈","thksim":"","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"","Vee":"","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":"","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},9591:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2586:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var o=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(o.exports,o,o.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(399);module.exports=__webpack_exports__})();
//# sourceMappingURL=index.js.map