@kya-os/mcp-i 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/149.js +1 -0
- package/dist/189.js +1 -0
- package/dist/261.js +1 -0
- package/dist/28.js +1 -0
- package/dist/295.js +1 -1
- package/dist/460.js +1 -0
- package/dist/570.js +1 -0
- package/dist/634.js +1 -0
- package/dist/647.js +1 -0
- package/dist/67.js +1 -1
- package/dist/739.js +1 -0
- package/dist/742.js +1 -0
- package/dist/904.js +1 -0
- package/dist/938.js +1 -0
- package/dist/runtime/adapter-express.js +1 -7
- package/dist/runtime/adapter-express.js.LICENSE.txt +2 -7
- package/dist/runtime/adapter-nextjs.js +1 -7
- package/dist/runtime/adapter-nextjs.js.LICENSE.txt +1 -188
- package/dist/runtime/http.js +1 -7
- package/dist/runtime/http.js.LICENSE.txt +2 -7
- package/dist/runtime/stdio.js +1 -7
- package/dist/runtime/stdio.js.LICENSE.txt +1 -234
- package/dist/runtime/utils/server.d.ts +0 -17
- package/package.json +3 -3
- package/dist/207.js +0 -1
- package/dist/25.js +0 -1
- package/dist/387.js +0 -1
- package/dist/406.js +0 -1
- package/dist/448.js +0 -1
- package/dist/478.js +0 -1
- package/dist/482.js +0 -1
- package/dist/575.js +0 -1
- package/dist/743.js +0 -1
- package/dist/784.js +0 -1
- package/dist/844.js +0 -1
- package/dist/866.js +0 -1
- package/dist/936.js +0 -1
- package/dist/941.js +0 -1
- package/dist/988.js +0 -1
package/dist/207.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=207,exports.ids=[207],exports.modules={2914:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(25272);const s=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,r.Q)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},4866:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var r=n(96440),s=n(86880),i=n(77337),o=n(52445);class a extends o.t{async serializeRequest(e,t,n){const i=this.serializer,o={},a={},c=await n.endpoint(),u=r.l.of(e?.input),l=u.getSchema();let d;const p=new s.K({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});c&&(this.updateServiceEndpoint(p,c),this.setHostPrefix(p,e,t));const m={...t};if(t){const e=u.getEventStreamMember();if(e){if(m[e]){const t={};for(const[n,r]of u.structIterator())n!==e&&m[n]&&(i.write(r,m[n]),t[n]=i.flush());d=await this.serializeEventStream({eventStream:m[e],requestSchema:u,initialRequest:t})}}else i.write(l,m),d=i.flush()}return p.headers=a,p.query=o,p.body=d,p.method="POST",p}async deserializeResponse(e,t,n){const s=this.deserializer,o=r.l.of(e.output),a={};if(n.statusCode>=300){const r=await(0,i.P)(n.body,t);throw r.byteLength>0&&Object.assign(a,await s.read(15,r)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}const c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{const e=await(0,i.P)(n.body,t);e.byteLength>0&&Object.assign(a,await s.read(o,e))}return a.$metadata=this.deserializeMetadata(n),a}}},6141:(e,t,n)=>{"use strict";var r;n.d(t,{Gz:()=>s,L0:()=>i,cm:()=>r}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(r||(r={}));const s=3,i=r.STANDARD},7317:(e,t,n)=>{"use strict";n.d(t,{vK:()=>o});var r=n(86880);const s="content-length",i={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},o=e=>({applyToStack:t=>{var n;t.add((n=e.bodyLengthChecker,e=>async t=>{const i=t.request;if(r.K.isInstance(i)){const{body:e,headers:t}=i;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(s))try{const t=n(e);i.headers={...i.headers,[s]:String(t)}}catch(e){}}return e({...t,request:i})}),i)}})},7940:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r=n(23034),s=n(33938),i=n(58611),o=n(65692);const a=["ECONNRESET","EPIPE","ETIMEDOUT"],c=e=>{const t={};for(const n of Object.keys(e)){const r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t},u=(e,t)=>setTimeout(e,t),l=e=>clearTimeout(e);var d=n(2203);class p{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return"function"==typeof e?.handle?e:new p(e)}static checkSocketUsage(e,t,n=console){const{sockets:r,requests:s,maxSockets:i}=e;if("number"!=typeof i||i===1/0)return t;if(Date.now()-15e3<t)return t;if(r&&s)for(const e in r){const t=r[e]?.length??0,o=s[e]?.length??0;if(t>=i&&o>=2*i)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${o} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{"function"==typeof e?e().then(e=>{t(this.resolveDefaultConfig(e))}).catch(n):t(this.resolveDefaultConfig(e))})}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:n,socketTimeout:r,socketAcquisitionWarningTimeout:s,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:u}=e||{},l=!0;return{connectionTimeout:n,requestTimeout:t,socketTimeout:r,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgent:(()=>a instanceof i.Agent||"function"==typeof a?.destroy?(this.externalAgent=!0,a):new i.Agent({keepAlive:l,maxSockets:50,...a}))(),httpsAgent:(()=>c instanceof o.Agent||"function"==typeof c?.destroy?(this.externalAgent=!0,c):new o.Agent({keepAlive:l,maxSockets:50,...c}))(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){return this.config||(this.config=await this.configProvider),new Promise((m,h)=>{const f=this.config;let g;const y=[],b=async e=>{await g,y.forEach(l),h(e)};if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",void b(e)}const E="https:"===e.protocol,S=e.headers??{},T="100-continue"===(S.Expect??S.expect);let C=E?f.httpsAgent:f.httpAgent;T&&!this.externalAgent&&(C=new(E?o.Agent:i.Agent)({keepAlive:!1,maxSockets:1/0})),y.push(u(()=>{this.socketWarningTimestamp=p.checkSocketUsage(C,this.socketWarningTimestamp,f.logger)},f.socketAcquisitionWarningTimeout??(f.requestTimeout??2e3)+(f.connectionTimeout??1e3)));const I=function(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=(0,s.o)(n),Array.isArray(r))for(let e=0,i=r.length;e<i;e++)t.push(`${n}=${(0,s.o)(r[e])}`);else{let e=n;(r||"string"==typeof r)&&(e+=`=${(0,s.o)(r)}`),t.push(e)}}return t.join("&")}(e.query||{});let D;null==e.username&&null==e.password||(D=`${e.username??""}:${e.password??""}`);let A=e.path;I&&(A+=`?${I}`),e.fragment&&(A+=`#${e.fragment}`);let w=e.hostname??"";w="["===w[0]&&w.endsWith("]")?e.hostname.slice(1,-1):e.hostname;const v={headers:e.headers,host:w,method:e.method,path:A,port:e.port,agent:C,auth:D},x=(E?o.request:i.request)(v,e=>{(async e=>{await g,y.forEach(l),m(e)})({response:new r.c({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:c(e.headers),body:e})})});if(x.on("error",e=>{a.includes(e.code)?b(Object.assign(e,{name:"TimeoutError"})):b(e)}),t){const e=()=>{x.destroy();const e=new Error("Request aborted");e.name="AbortError",b(e)};if("function"==typeof t.addEventListener){const n=t;n.addEventListener("abort",e,{once:!0}),x.once("close",()=>n.removeEventListener("abort",e))}else t.onabort=e}const R=n??f.requestTimeout;y.push(((e,t,n=0)=>{if(!n)return-1;const r=r=>{const s=u(()=>{e.destroy(),t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-r),i=e=>{e?.connecting?e.on("connect",()=>{l(s)}):l(s)};e.socket?i(e.socket):e.on("socket",i)};return n<2e3?(r(0),0):u(r.bind(null,1e3),1e3)})(x,b,f.connectionTimeout)),y.push(((e,t,n=0,r,s)=>n?u(()=>{let i=`@smithy/node-http-handler - [${r?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(r){const n=Object.assign(new Error(i),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n),t(n)}else i+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(i)},n):-1)(x,b,R,f.throwOnRequestTimeout,f.logger??console)),y.push(((e,t,n=0)=>{const r=r=>{const s=n-r,i=()=>{e.destroy(),t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};e.socket?(e.socket.setTimeout(s,i),e.on("close",()=>e.socket?.removeListener("timeout",i))):e.setTimeout(s,i)};return 0<n&&n<6e3?(r(0),0):u(r.bind(null,0===n?0:3e3),3e3)})(x,b,f.socketTimeout));const P=v.agent;"object"==typeof P&&"keepAlive"in P&&y.push(((e,{keepAlive:t,keepAliveMsecs:n},r=3e3)=>{if(!0!==t)return-1;const s=()=>{e.socket?e.socket.setKeepAlive(t,n||0):e.on("socket",e=>{e.setKeepAlive(t,n||0)})};return 0===r?(s(),0):u(s,r)})(x,{keepAlive:P.keepAlive,keepAliveMsecs:P.keepAliveMsecs})),g=async function(e,t,n=6e3,r=!1){const s=t.headers??{},i=s.Expect||s.expect;let o=-1,a=!0;r||"100-continue"!==i||(a=await Promise.race([new Promise(e=>{o=Number(u(()=>e(!0),Math.max(6e3,n)))}),new Promise(t=>{e.on("continue",()=>{l(o),t(!0)}),e.on("response",()=>{l(o),t(!1)}),e.on("error",()=>{l(o),t(!1)})})])),a&&function(e,t){if(t instanceof d.Readable)t.pipe(e);else{if(t){if(Buffer.isBuffer(t)||"string"==typeof t)return void e.end(t);const n=t;return"object"==typeof n&&n.buffer&&"number"==typeof n.byteOffset&&"number"==typeof n.byteLength?void e.end(Buffer.from(n.buffer,n.byteOffset,n.byteLength)):void e.end(Buffer.from(t))}e.end()}}(e,t.body)}(x,e,R,this.externalAgent).catch(e=>(y.forEach(l),h(e)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:t}))}httpHandlerConfigs(){return this.config??{}}}},10669:(e,t)=>{var n=Math.pow(2,8)-1,r=Math.pow(2,16)-1,s=Math.pow(2,32)-1,i=Math.pow(2,7)-1,o=Math.pow(2,15)-1,a=Math.pow(2,31)-1;t.getPointerArray=function(e){var t=e-1;return t<=n?Uint8Array:t<=r?Uint16Array:t<=s?Uint32Array:Float64Array},t.getSignedPointerArray=function(e){var t=e-1;return t<=i?Int8Array:t<=o?Int16Array:t<=a?Int32Array:Float64Array},t.getNumberType=function(e){return e===(0|e)?-1===Math.sign(e)?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var c={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(e,n){var r,s,i,o,a,u=null,l=0;for(o=0,a=e.length;o<a;o++)i=n?n(e[o]):e[o],s=t.getNumberType(i),(r=c[s.name])>l&&(l=r,u=s);return u},t.isTypedArray=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView(e)},t.concat=function(){var e,t,n,r=0;for(e=0,n=arguments.length;e<n;e++)r+=arguments[e].length;var s=new arguments[0].constructor(r);for(e=0,t=0;e<n;e++)s.set(arguments[e],t),t+=arguments[e].length;return s},t.indices=function(e){for(var n=new(t.getPointerArray(e))(e),r=0;r<e;r++)n[r]=r;return n}},11904:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(18431);const s=e=>e[r.V]||(e[r.V]={})},12544:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(25272);const s=/^[A-Za-z0-9+/]*={0,2}$/,i=e=>{if(3*e.length%4!=0)throw new TypeError("Incorrect padding on base64 string.");if(!s.exec(e))throw new TypeError("Invalid base64 string.");const t=(0,r.s)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}},14497:(e,t,n)=>{var r=n(53924),s=n(10669);function i(e){return"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:void 0}t.isArrayLike=function(e){return Array.isArray(e)||s.isTypedArray(e)},t.guessLength=i,t.toArray=function(e){var t=i(e),n="number"==typeof t?new Array(t):[],s=0;return r(e,function(e){n[s++]=e}),n},t.toArrayWithIndices=function(e){var t=i(e),n="number"==typeof t?s.getPointerArray(t):Array,o="number"==typeof t?new Array(t):[],a="number"==typeof t?new n(t):[],c=0;return r(e,function(e){o[c]=e,a[c]=c++}),[o,a]}},17209:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});class r{trace(){}debug(){}info(){}warn(){}error(){}}},17735:(e,t,n)=>{"use strict";function r(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:s,httpQuery:i}=e.getMergedTraits();return(t.httpBindings?"string"==typeof r||Boolean(s)?6:Boolean(i)||Boolean(n)?5:void 0:void 0)??t.timestampFormat.default}n.d(t,{V:()=>r})},17801:(e,t,n)=>{"use strict";n.d(t,{r:()=>p});var r=n(11904);const s=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,i=/(\d+\.){3}\d+/,o=/\.\./,a=(e,t,n)=>{const r=async()=>{const r=n[e]??n[t];return"function"==typeof r?r():r};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===n.isCustomEndpoint)return;const e=await r();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:n,port:r,path:s}=e;return`${t}//${n}${r?":"+r:""}${s}`}}return e}:r};var c=n(92255),u=n(23204);const l=async(e,t,n)=>{const r={},c=t?.getEndpointParameterInstructions?.()||{};for(const[t,s]of Object.entries(c))switch(s.type){case"staticContextParams":r[t]=s.value;break;case"contextParams":r[t]=e[s.name];break;case"clientContextParams":case"builtInParams":r[t]=await a(s.name,t,n)();break;case"operationContextParams":r[t]=s.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return 0===Object.keys(c).length&&Object.assign(r,n),"s3"===String(n.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),(e=>{const[t,n,r,,,s]=e.split(":"),i="arn"===t&&e.split(":").length>=6,o=Boolean(i&&n&&r&&s);if(i&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o})(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else n=t,(!s.test(n)||i.test(n)||o.test(n)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);var n;return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(r),r},d={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},p=(e,t)=>({applyToStack:n=>{n.addRelativeTo((({config:e,instructions:t})=>(n,s)=>async i=>{e.isCustomEndpoint&&function(e){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features.ENDPOINT_OVERRIDE="N"}(s);const o=await(async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await(0,c.k)(n.serviceId),e&&(n.endpoint=()=>Promise.resolve((0,u.a)(e)),n.isCustomEndpoint=!0)}const s=await l(e,t,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");return n.endpointProvider(s,r)})(i.input,{getEndpointParameterInstructions:()=>t},{...e},s);s.endpointV2=o,s.authSchemes=o.properties?.authSchemes;const a=s.authSchemes?.[0];if(a){s.signing_region=a.signingRegion,s.signing_service=a.signingName;const e=(0,r.u)(s),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return n({...i})})({config:e,instructions:t}),d)}})},18241:(e,t,n)=>{"use strict";var r;n.d(t,{c:()=>r}),function(e){e.ENV="env",e.CONFIG="shared config entry"}(r||(r={}))},18431:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r="__smithy_context"},19849:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r=(e,t,n)=>{let r,s,i,o=!1;const a=async()=>{s||(s=e());try{r=await s,i=!0,o=!1}finally{s=void 0}return r};return void 0===t?async e=>(i&&!e?.forceRefresh||(r=await a()),r):async e=>(i&&!e?.forceRefresh||(r=await a()),o?r:n&&!n(r)?(o=!0,r):t(r)?(await a(),r):r)}},21055:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});const r=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const e of t)n.push(e);return n},s=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,i=()=>{let e=[],t=[],n=!1;const c=new Set,u=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(p.identifyOnResolve()),n),l=e=>{const t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...l(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...l(e))}),t},d=(n=!1)=>{const i=[],c=[],u={};var d;return e.forEach(e=>{const t={...e,before:[],after:[]};for(const e of r(t.name,t.aliases))u[e]=t;i.push(t)}),t.forEach(e=>{const t={...e,before:[],after:[]};for(const e of r(t.name,t.aliases))u[e]=t;c.push(t)}),c.forEach(e=>{if(e.toMiddleware){const t=u[e.toMiddleware];if(void 0===t){if(n)return;throw new Error(`${e.toMiddleware} is not found when adding ${s(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),(d=i,d.sort((e,t)=>o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"])).map(l).reduce((e,t)=>(e.push(...t),e),[])},p={add:(t,n={})=>{const{name:i,override:o,aliases:a}=n,u={step:"initialize",priority:"normal",middleware:t,...n},l=r(i,a);if(l.length>0){if(l.some(e=>c.has(e))){if(!o)throw new Error(`Duplicate middleware name '${s(i,a)}'`);for(const t of l){const n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===n)continue;const r=e[n];if(r.step!==u.step||u.priority!==r.priority)throw new Error(`"${s(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${s(i,a)}" middleware with ${u.priority} priority in ${u.step} step.`);e.splice(n,1)}}for(const e of l)c.add(e)}e.push(u)},addRelativeTo:(e,n)=>{const{name:i,override:o,aliases:a}=n,u={middleware:e,...n},l=r(i,a);if(l.length>0){if(l.some(e=>c.has(e))){if(!o)throw new Error(`Duplicate middleware name '${s(i,a)}'`);for(const e of l){const n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===n)continue;const r=t[n];if(r.toMiddleware!==u.toMiddleware||r.relation!==u.relation)throw new Error(`"${s(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${s(i,a)}" middleware ${u.relation} "${u.toMiddleware}" middleware.`);t.splice(n,1)}}for(const e of l)c.add(e)}t.push(u)},clone:()=>u(i()),use:e=>{e.applyToStack(p)},remove:n=>"string"==typeof n?(n=>{let s=!1;const i=e=>{const t=r(e.name,e.aliases);if(t.includes(n)){s=!0;for(const e of t)c.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),s})(n):(n=>{let s=!1;const i=e=>{if(e.middleware===n){s=!0;for(const t of r(e.name,e.aliases))c.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),s})(n),removeByTag:n=>{let s=!1;const i=e=>{const{tags:t,name:i,aliases:o}=e;if(t&&t.includes(n)){const e=r(i,o);for(const t of e)c.delete(t);return s=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),s},concat:e=>{const t=u(i());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:u,identify:()=>d(!0).map(e=>{const t=e.step??e.relation+" "+e.toMiddleware;return s(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(n=e),n),resolve:(e,t)=>{for(const n of d().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(p.identify()),e}};return p},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1}},21954:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});class r{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const n=this.hash(e);if(!1===n)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(0===n.length)return!1;for(const r of n){const n=String(e[r]??"");if(n.includes("|;"))return!1;t+=n+"|;"}return t}}},22461:(e,t,n)=>{"use strict";n.d(t,{cJ:()=>o,Y2:()=>i});var r=n(77337),s=n(2914);const i=(e,t)=>((e,t)=>(0,r.P)(e,t).then(e=>(t?.utf8Encoder??s.P)(e)))(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),o=(e,t)=>{const n=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},s=n(e.headers,"x-amzn-errortype");if(void 0!==s)return r(e.headers[s]);if(t&&"object"==typeof t){const e=n(t,"code");if(e&&void 0!==t[e])return r(t[e]);if(void 0!==t.__type)return r(t.__type)}}},23034:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});class r{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}},23204:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(71918);const s=e=>"object"==typeof e?"url"in e?(0,r.D)(e.url):e:(0,r.D)(e)},25272:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,s:()=>o});var r=n(82752),s=n(20181);const i=(e,t=0,n=e.byteLength-t)=>{if(!(0,r.m)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return s.Buffer.from(e,t,n)},o=(e,t)=>{if("string"!=typeof e)throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?s.Buffer.from(e,t):s.Buffer.from(e)}},26433:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(16928),s=n(51362);const i=()=>process.env.AWS_CONFIG_FILE||(0,r.join)((0,s.R)(),".aws","config")},28075:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(19849),s=n(76896),i=n(84122);function o(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete("CONFIG"),t.delete("CONFIG_PREFIX_SEPARATOR"),t.delete("ENV"),[...t].join(", ")}catch(t){return e}}var a=n(76682),c=n(64549);const u=({environmentVariableSelector:e,configFileSelector:t,default:n},u={})=>{const{signingName:l,logger:d}=u,p={signingName:l,logger:d};return(0,r.B)((0,s.c)((m=e,h=p,async()=>{try{const e=m(process.env,h);if(void 0===e)throw new Error;return e}catch(e){throw new i.C(e.message||`Not found in ENV: ${o(m.toString())}`,{logger:h?.logger})}}),((e,{preferredFile:t="config",...n}={})=>async()=>{const r=(0,a.Bz)(n),{configFile:s,credentialsFile:u}=await(0,c.p)(n),l=u[r]||{},d=s[r]||{},p="config"===t?{...l,...d}:{...d,...l};try{const n=e(p,"config"===t?s:u);if(void 0===n)throw new Error;return n}catch(t){throw new i.C(t.message||`Not found in config files w/ profile [${r}]: ${o(e.toString())}`,{logger:n.logger})}})(t,u),(e=>{return"function"==typeof e?async()=>await e():(t=e,()=>Promise.resolve(t));var t})(n)));var m,h}},29624:(e,t,n)=>{"use strict";n.d(t,{GQ:()=>l,Qb:()=>c,bV:()=>u});const r=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],s=["TimeoutError","RequestTimeout","RequestTimeoutException"],i=[500,502,503,504],o=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],a=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],c=e=>429===e.$metadata?.httpStatusCode||r.includes(e.name)||1==e.$retryable?.throttling,u=(e,t=0)=>(e=>void 0!==e?.$retryable)(e)||(e=>e.$metadata?.clockSkewCorrected)(e)||s.includes(e.name)||o.includes(e?.code||"")||a.includes(e?.code||"")||i.includes(e.$metadata?.httpStatusCode||0)||(e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)})(e)||void 0!==e.cause&&t<=10&&u(e.cause,t+1),l=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!u(e)}return!1}},30379:(e,t,n)=>{"use strict";n.d(t,{h:()=>W});var r=n(53243),s=n(75289);const i=function(e){return o(e)&&e.expiration.getTime()-Date.now()<3e5};const o=e=>void 0!==e.expiration;var a=n(92278),c=n(87140);const u="X-Amz-Date",l="X-Amz-Signature",d="X-Amz-Security-Token",p="authorization",m=u.toLowerCase(),h=[p,m,"date"],f=l.toLowerCase(),g="x-amz-content-sha256",y=d.toLowerCase(),b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},E=/^proxy-/,S=/^sec-/,T="AWS4-HMAC-SHA256",C="AWS4-HMAC-SHA256-PAYLOAD",I="aws4_request",D={},A=[],w=(e,t,n)=>`${e}/${t}/${n}/${I}`,v=(e,t,n)=>{const r=new e(t);return r.update((0,c.F)(n)),r.digest()},x=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(null==e[s])continue;const i=s.toLowerCase();(i in b||t?.has(i)||E.test(i)||S.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r};var R=n(82752);const P=async({headers:e,body:t},n)=>{for(const t of Object.keys(e))if(t.toLowerCase()===g)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,R.m)(t)){const e=new n;return e.update((0,c.F)(t)),(0,a.n)(await e.digest())}return"UNSIGNED-PAYLOAD"};var N,O=n(40935);class L{format(e){const t=[];for(const n of Object.keys(e)){const r=(0,O.a)(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":const o=(0,O.a)(e.value),c=new DataView(new ArrayBuffer(3+o.byteLength));c.setUint8(0,7),c.setUint16(1,o.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(o,3),u;case"timestamp":const l=new Uint8Array(9);return l[0]=8,l.set(_.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!B.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set((0,a.a)(e.value.replace(/\-/g,"")),1),d}}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(N||(N={}));const B=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&k(t),new _(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&k(e),parseInt((0,a.n)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function k(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var U=n(86880);const $=e=>{e=U.K.clone(e);for(const t of Object.keys(e.headers))h.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};var M=n(98367),G=n(33938);class F{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i=!0}){this.service=r,this.sha256=s,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,M.t)(n),this.credentialProvider=(0,M.t)(t)}createCanonicalRequest(e,t,n){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===f)continue;const s=(0,G.o)(r);t.push(s);const i=e[r];"string"==typeof i?n[s]=`${s}=${(0,G.o)(i)}`:Array.isArray(i)&&(n[s]=i.slice(0).reduce((e,t)=>e.concat([`${s}=${(0,G.o)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>n[e]).filter(e=>e).join("&")})(e)}\n${r.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${r.join(";")}\n${n}`}async createStringToSign(e,t,n,r){const s=new this.sha256;s.update((0,c.F)(n));const i=await s.digest();return`${r}\n${e}\n${t}\n${(0,a.n)(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==n?.length&&"."!==n&&(".."===n?t.pop():t.push(n));const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,G.o)(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}formatDate(e){const t=(n=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(n).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var n;return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class j extends F{headerFormatter=new L;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:s,uriEscapePath:i})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:o,hoistableHeaders:a,signingRegion:c,signingService:p}=t,m=await this.credentialProvider();this.validateResolvedCredentials(m);const h=c??await this.regionProvider(),{longDate:f,shortDate:g}=this.formatDate(n);if(r>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const y=w(g,h,p??this.service),b=((e,t={})=>{const{headers:n,query:r={}}=U.K.clone(e);for(const e of Object.keys(n)){const s=e.toLowerCase();("x-amz-"===s.slice(0,6)&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(r[e]=n[e],delete n[e])}return{...e,headers:n,query:r}})($(e),{unhoistableHeaders:i,hoistableHeaders:a});m.sessionToken&&(b.query[d]=m.sessionToken),b.query["X-Amz-Algorithm"]=T,b.query["X-Amz-Credential"]=`${m.accessKeyId}/${y}`,b.query[u]=f,b.query["X-Amz-Expires"]=r.toString(10);const E=x(b,s,o);return b.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(E),b.query[l]=await this.getSignature(f,y,this.getSigningKey(m,h,g,p),this.createCanonicalRequest(b,E,await P(e,this.sha256))),b}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:r,signingRegion:s,signingService:i}){const o=s??await this.regionProvider(),{shortDate:c,longDate:u}=this.formatDate(n),l=w(c,o,i??this.service),d=await P({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);const m=(0,a.n)(await p.digest()),h=[C,u,l,r,m,d].join("\n");return this.signString(h,{signingDate:n,signingRegion:o,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:r}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const i=n??await this.regionProvider(),{shortDate:o}=this.formatDate(t),u=new this.sha256(await this.getSigningKey(s,i,o,r));return u.update((0,c.F)(e)),(0,a.n)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:s,signingService:i}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const a=s??await this.regionProvider(),c=$(e),{longDate:u,shortDate:l}=this.formatDate(t),d=w(l,a,i??this.service);c.headers[m]=u,o.sessionToken&&(c.headers[y]=o.sessionToken);const h=await P(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1})(g,c.headers)&&this.applyChecksum&&(c.headers[g]=h);const f=x(c,r,n),b=await this.getSignature(u,d,this.getSigningKey(o,a,l,i),this.createCanonicalRequest(c,f,h));return c.headers[p]=`${T} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(f)}, Signature=${b}`,c}async getSignature(e,t,n,r){const s=await this.createStringToSign(e,t,r,T),i=new this.sha256(await n);return i.update((0,c.F)(s)),(0,a.n)(await i.digest())}getSigningKey(e,t,n,r){return(async(e,t,n,r,s)=>{const i=await v(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${s}:${(0,a.n)(i)}:${t.sessionToken}`;if(o in D)return D[o];for(A.push(o);A.length>50;)delete D[A.shift()];let c=`AWS4${t.secretAccessKey}`;for(const t of[n,r,s,I])c=await v(e,c,t);return D[o]=c})(this.sha256,e,n,t,r||this.service)}}const W=e=>{let t,n=e.credentials,a=!!e.credentials;Object.defineProperty(e,"credentials",{set(c){c&&c!==n&&c!==t&&(a=!0),n=c;const u=function(e,{credentials:t,credentialDefaultProvider:n}){let r;return r=t?t?.memoized?t:((e,t,n)=>{if(void 0===e)return;const r="function"!=typeof e?async()=>Promise.resolve(e):e;let s,i,o,a=!1;const c=async e=>{i||(i=r(e));try{s=await i,o=!0,a=!1}finally{i=void 0}return s};return void 0===t?async e=>(o&&!e?.forceRefresh||(s=await c(e)),s):async e=>(o&&!e?.forceRefresh||(s=await c(e)),a?s:n(s)?t(s)?(await c(e),s):s:(a=!0,s))})(t,i,o):n?(0,s.t)(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}(e,{credentials:n,credentialDefaultProvider:e.credentialDefaultProvider}),l=function(e,t){if(t.configBound)return t;const n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}(e,u);a&&!l.attributed?(t=async e=>l(e).then(e=>(0,r.g)(e,"CREDENTIALS_CODE","e")),t.memoized=l.memoized,t.configBound=l.configBound,t.attributed=!0):t=l},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=n;const{signingEscapePath:c=!0,systemClockOffset:u=e.systemClockOffset||0,sha256:l}=e;let d;return d=e.signer?(0,s.t)(e.signer):e.regionInfoProvider?()=>(0,s.t)(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{const{signingRegion:r,signingService:s}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||s||e.serviceId;const i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:c};return new(e.signerConstructor||j)(i)}):async t=>{const n=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,s.t)(e.region)(),properties:{}},t)).signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;const i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:l,uriEscapePath:c};return new(e.signerConstructor||j)(i)},Object.assign(e,{systemClockOffset:u,signingEscapePath:c,signer:d})}},30970:(e,t,n)=>{"use strict";n.d(t,{Df:()=>o,G8:()=>s,Rn:()=>c,XP:()=>u,XS:()=>a,bp:()=>r,jh:()=>i,l5:()=>l,ok:()=>d});const r=100,s=2e4,i=500,o=500,a=5,c=10,u=1,l="amz-sdk-invocation-id",d="amz-sdk-request"},31965:(e,t,n)=>{"use strict";n.d(t,{qs:()=>m,kN:()=>f,$z:()=>h});var r=n(98367),s=n(6141),i=n(29624);class o{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,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){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(e=>o.setTimeoutFn(e,t))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),(0,i.Qb)(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(n)}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=!0}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(),t=Math.floor(2*e)/2;if(this.requestCount++,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))}}var a=n(30970);const c=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(a.G8,e),getRetryCost:()=>n});class u{maxAttempts;mode=s.cm.STANDARD;capacity=a.Df;retryBackoffStrategy=(()=>{let e=a.bp;return{computeNextBackoffDelay:t=>Math.floor(Math.min(a.G8,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return c({retryDelay:a.bp,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===n?a.jh:a.bp);const r=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,r):r,i=this.getCapacityCost(n);return this.capacity-=i,c({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(a.Df,this.capacity+(e.getRetryCost()??a.XP))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${s.Gz}`),s.Gz}}shouldRetry(e,t,n){return e.getRetryCount()+1<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?a.Rn:a.XS}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class l{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=s.cm.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new o,this.standardRetryStrategy=new u(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const d="AWS_MAX_ATTEMPTS",p="max_attempts",m={environmentVariableSelector:e=>{const t=e[d];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${d} mast be a number, got "${t}"`);return n},configFileSelector:e=>{const t=e[p];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${p} mast be a number, got "${t}"`);return n},default:s.Gz},h=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:i}=e,o=(0,r.t)(i??s.Gz);return Object.assign(e,{maxAttempts:o,retryStrategy:async()=>t||(await(0,r.t)(n)()===s.cm.ADAPTIVE?new l(o):new u(o))})},f={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:s.L0}},33938:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r=e=>encodeURIComponent(e).replace(/[!'()*]/g,s),s=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},33939:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(62022),s=n(45223);const i=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,o=["__proto__","profile __proto__"],a=e=>{const t={};let n,a;for(const c of e.split(/\r?\n/)){const e=c.split(/(^|\s)[;#]/)[0].trim();if("["===e[0]&&"]"===e[e.length-1]){n=void 0,a=void 0;const t=e.substring(1,e.length-1),c=i.exec(t);if(c){const[,e,,t]=c;Object.values(r.I).includes(e)&&(n=[e,t].join(s.Q))}else n=t;if(o.includes(t))throw new Error(`Found invalid profile name "${t}"`)}else if(n){const r=e.indexOf("=");if(![0,-1].includes(r)){const[i,o]=[e.substring(0,r).trim(),e.substring(r+1).trim()];if(""===o)a=i;else{a&&c.trimStart()===c&&(a=void 0),t[n]=t[n]||{};const e=a?[a,i].join(s.Q):i;t[n][e]=o}}}}return t}},34708:(e,t,n)=>{"use strict";n.d(t,{v4:()=>a});var r=n(76982),s=n.n(r);const i=s().randomUUID.bind(s()),o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),a=()=>{if(i)return i();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,o[e[0]]+o[e[1]]+o[e[2]]+o[e[3]]+"-"+o[e[4]]+o[e[5]]+"-"+o[e[6]]+o[e[7]]+"-"+o[e[8]]+o[e[9]]+"-"+o[e[10]]+o[e[11]]+o[e[12]]+o[e[13]]+o[e[14]]+o[e[15]]}},37882:(e,t,n)=>{"use strict";n.d(t,{JV:()=>h,l3:()=>I,EI:()=>g,t_:()=>b,xE:()=>C});const r=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&d.warn(l(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},s=Math.ceil(2**127*(2-2**-23)),i=(e,t)=>{const n=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==n&&o(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},o=(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]}},a=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,c=e=>{const t=e.match(a);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},u=e=>(e=>i(e,16))("string"==typeof e?c(e):e),l=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),d={warn:console.warn},p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),i=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,u=i<10?`0${i}`:`${i}`,l=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`;return`${p[r]}, ${c} ${m[n]} ${t} ${u}:${l}:${d} GMT`}const f=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),g=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=f.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,i,o,a,c,l]=t,d=u(B(r)),p=N(s,"month",1,12),m=N(i,"day",1,31);return D(d,p,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})},y=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),b=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=y.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,i,o,a,c,l,d]=t,p=u(B(r)),m=N(s,"month",1,12),h=N(i,"day",1,31),f=D(p,m,h,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l});return"Z"!=d.toUpperCase()&&f.setTime(f.getTime()-L(d)),f},E=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),S=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),T=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),C=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=E.exec(e);if(t){const[e,n,r,s,i,o,a,c]=t;return D(u(B(s)),v(r),N(n,"day",1,31),{hours:i,minutes:o,seconds:a,fractionalMilliseconds:c})}if(t=S.exec(e),t){const[e,n,r,s,i,o,a,c]=t;return w(D(A(s),v(r),N(n,"day",1,31),{hours:i,minutes:o,seconds:a,fractionalMilliseconds:c}))}if(t=T.exec(e),t){const[e,n,r,s,i,o,a,c]=t;return D(u(B(c)),v(n),N(r.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:o,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")},I=e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else if("string"==typeof e)t=(e=>r("string"==typeof e?c(e):e))(e);else{if("object"!=typeof e||1!==e.tag)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=e.value}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))},D=(e,t,n,r)=>{const s=t-1;return R(e,s,n),new Date(Date.UTC(e,s,n,N(r.hours,"hour",0,23),N(r.minutes,"minute",0,59),N(r.seconds,"seconds",0,60),O(r.fractionalMilliseconds)))},A=e=>{const t=(new Date).getUTCFullYear(),n=100*Math.floor(t/100)+u(B(e));return n<t?n+100:n},w=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,v=e=>{const t=m.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},x=[31,28,31,30,31,30,31,31,30,31,30,31],R=(e,t,n)=>{let r=x[t];if(1===t&&P(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${m[t]} in ${e}: ${n}`)},P=e=>e%4==0&&(e%100!=0||e%400==0),N=(e,t,n,r)=>{const s=(e=>(e=>i(e,8))("string"==typeof e?c(e):e))(B(e));if(s<n||s>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return s},O=e=>null==e?0:1e3*(e=>(e=>{const t=r(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>s)throw new TypeError(`Expected 32-bit float, got ${e}`);return t})("string"==typeof e?c(e):e))("0."+e),L=e=>{const t=e[0];let n=1;if("+"==t)n=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);n=-1}return n*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},B=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},38796:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});class r{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(e){return r.registries.has(e)||r.registries.set(e,new r(e)),r.registries.get(e)}register(e,t){const n=this.normalizeShapeId(e);r.for(n.split("#")[0]).schemas.set(n,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw new Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(e,t){const n=e,s=r.for(n[1]);s.schemas.set(n[1]+"#"+n[2],n),s.exceptions.set(n,t)}getErrorCtor(e){const t=e;return r.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,n]=e,r=t+"#"+n;if(r.startsWith("smithy.ts.sdk.synthetic.")&&r.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}},39181:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(25272),s=n(40935);const i=e=>{let t;if(t="string"==typeof e?(0,s.a)(e):e,"object"!=typeof t||"number"!=typeof t.byteOffset||"number"!=typeof t.byteLength)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,r.Q)(t.buffer,t.byteOffset,t.byteLength).toString("base64")}},40935:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(25272);const s=e=>{const t=(0,r.s)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}},41206:e=>{function t(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}t.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e},"undefined"!=typeof Symbol&&(t.prototype[Symbol.iterator]=function(){return this}),t.of=function(){var e=arguments,n=e.length,r=0;return new t(function(){return r>=n?{done:!0}:{done:!1,value:e[r++]}})},t.empty=function(){var e=new t(null);return e.done=!0,e},t.is=function(e){return e instanceof t||"object"==typeof e&&null!==e&&"function"==typeof e.next},e.exports=t},42355:(e,t,n)=>{"use strict";n.d(t,{OV:()=>s,TC:()=>o});var r=n(86880);function s(e){return e}const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},o=e=>({applyToStack:t=>{t.add((e=>t=>async n=>{if(!r.K.isInstance(n.request))return t(n);const{request:s}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let e=s.hostname;null!=s.port&&(e+=`:${s.port}`),s.headers.host=e}return t(n)})(e),i)}})},42829:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(21055),s=n(18431),i=n(96440);const o="***SensitiveInformation***";function a(e,t){if(null==t)return t;const n=i.l.of(e);if(n.getMergedTraits().sensitive)return o;if(n.isListSchema()){if(n.getValueSchema().getMergedTraits().sensitive)return o}else if(n.isMapSchema()){if(n.getKeySchema().getMergedTraits().sensitive||n.getValueSchema().getMergedTraits().sensitive)return o}else if(n.isStructSchema()&&"object"==typeof t){const e=t,r={};for(const[t,s]of n.structIterator())null!=e[t]&&(r[t]=a(s,e[t]));return r}return t}class c{middlewareStack=(0,r.o)();schema;static classBuilder(){return new u}resolveMiddlewareWithContext(e,t,n,{middlewareFn:r,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:l,CommandCtor:d}){for(const s of r.bind(this)(d,e,t,n))this.middlewareStack.use(s);const p=e.concat(this.middlewareStack),{logger:m}=t,h={logger:m,clientName:i,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,[s.V]:{commandInstance:this,...u},...l},{requestHandler:f}=t;return p.resolve(e=>f.handle(e.request,n||{}),h)}}class u{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,n={}){return this._smithyContext={service:e,operation:t,...n},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends c{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,r,s){const i=e._operationSchema,o=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,r,s,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?a.bind(null,o):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?a.bind(null,c):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}},43162:(e,t,n)=>{"use strict";n.d(t,{ey:()=>f});var r=n(86880),s=n(23034),i=n(29624),o=n(17209),a=n(30970),c=n(34708),u=n(2203);const l=e=>e?.body instanceof u.Readable||"undefined"!=typeof ReadableStream&&e?.body instanceof ReadableStream,d=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),p=e=>{const t={error:e,errorType:m(e)},n=g(e.$response);return n&&(t.retryAfterHint=n),t},m=e=>(0,i.Qb)(e)?"THROTTLING":(0,i.bV)(e)?"TRANSIENT":(0,i.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",h={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},f=e=>({applyToStack:t=>{t.add((e=>(t,n)=>async s=>{let i=await e.retryStrategy();const u=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(i))return i?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,s);{let e=await i.acquireInitialRetryToken(n.partition_id),m=new Error,h=0,f=0;const{request:g}=s,y=r.K.isInstance(g);for(y&&(g.headers[a.l5]=(0,c.v4)());;)try{y&&(g.headers[a.ok]=`attempt=${h+1}; max=${u}`);const{response:n,output:r}=await t(s);return i.recordSuccess(e),r.$metadata.attempts=h+1,r.$metadata.totalRetryDelay=f,{response:n,output:r}}catch(t){const r=p(t);if(m=d(t),y&&l(g))throw(n.logger instanceof o.N?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),m;try{e=await i.refreshRetryTokenForRetry(e,r)}catch(e){throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=h+1,m.$metadata.totalRetryDelay=f,m}h=e.getRetryCount();const s=e.getRetryDelay();f+=s,await new Promise(e=>setTimeout(e,s))}}})(e),h)}}),g=e=>{if(!s.c.isInstance(e))return;const t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(1e3*r)}},45223:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r="."},51011:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var r=n(38796),s=n(60763);class i{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r){return r.getMergedTraits().mediaType||(r.isStringSchema()?"text/plain":r.isBlobSchema()?"application/octet-stream":e)}if(!t.isUnitSchema()&&Object.values(n).find(e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:s,httpPrefixHeaders:i}=e.getMergedTraits();return!(t||n||r||s||void 0!==i)}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,s,i,o){let a=t,c=e;e.includes("#")&&([a,c]=e.split("#"));const u={$metadata:i,$fault:n.statusCode<500?"client":"server"},l=r.O.for(a);try{return{errorSchema:o?.(l,c)??l.getSchema(e),errorMetadata:u}}catch(e){s.message=s.message??s.Message??"UnknownError";const t=r.O.for("smithy.ts.sdk.synthetic."+a),n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:c}),u),s)}throw this.decorateServiceException(Object.assign(new Error(c),u),s)}}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message,r=(0,s.M)(e,t);return n&&(r.Message=n,r.message=n),r}return(0,s.M)(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=n){const[t,r]=n.split(";"),s=Object.entries(e),i={Code:t,Type:r};Object.assign(e,i);for(const[e,t]of s)i[e]=t;delete i.__type,e.Error=i}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}}},51362:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(70857),s=n(16928);const i={},o=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:o=`C:${s.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${o}${n}`;const a=process&&process.geteuid?`${process.geteuid()}`:"DEFAULT";return i[a]||(i[a]=(0,r.homedir)()),i[a]}},52123:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});const r=/^-?\d*(\.\d+)?$/;class s{string;type;constructor(e,t){if(this.string=e,this.type=t,!r.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!=typeof e)return!1;const t=e;return s.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&r.test(t.string)}}},52445:(e,t,n)=>{"use strict";n.d(t,{t:()=>c});var r=n(96440),s=n(83623),i=n(86880),o=n(23034),a=n(79037);class c extends a.f{options;constructor(e){super(),this.options=e}getRequestType(){return i.K}getResponseType(){return o.c}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});for(const[n,r]of t.url.searchParams.entries())e.query[n]=r;return e}return e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},e}setHostPrefix(e,t,n){const i=r.l.of(t.input),o=(0,s.c)(t.traits??{});if(o.endpoint){let t=o.endpoint?.[0];if("string"==typeof t){const r=[...i.structIterator()].filter(([,e])=>e.getMergedTraits().hostLabel);for(const[e]of r){const r=n[e];if("string"!=typeof r)throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,r)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(941).then(n.bind(n,79941));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,r,s){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}},52989:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(25272),s=n(87140),i=n(20181),o=n(76982);class a{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update((0,s.F)(c(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,o.createHmac)(this.algorithmIdentifier,c(this.secret)):(0,o.createHash)(this.algorithmIdentifier)}}function c(e,t){return i.Buffer.isBuffer(e)?e:"string"==typeof e?(0,r.s)(e,t):ArrayBuffer.isView(e)?(0,r.Q)(e.buffer,e.byteOffset,e.byteLength):(0,r.Q)(e)}},53243:(e,t,n)=>{"use strict";function r(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}n.d(t,{g:()=>r})},53872:(e,t,n)=>{"use strict";n.d(t,{GG:()=>r,zH:()=>s});const r={environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>{throw new Error("Region is missing")}},s={preferredFile:"credentials"}},53924:e=>{var t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof Symbol;function r(e,r){var s,i,o,a,c;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if("function"!=typeof r)throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(o=0,a=e.length;o<a;o++)r(e[o],o);else if("function"!=typeof e.forEach)if(n&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(i in e)e.hasOwnProperty(i)&&r(e[i],i);else for(s=e,o=0;!0!==(c=s.next()).done;)r(c.value,o),o++;else e.forEach(r)}r.forEachWithNullKeys=function(e,r){var s,i,o,a,c;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if("function"!=typeof r)throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString())for(o=0,a=e.length;o<a;o++)r(e[o],null);else if(e instanceof Set)e.forEach(function(e){r(e,null)});else if("function"!=typeof e.forEach)if(n&&Symbol.iterator in e&&"function"!=typeof e.next&&(e=e[Symbol.iterator]()),"function"!=typeof e.next)for(i in e)e.hasOwnProperty(i)&&r(e[i],i);else for(s=e,o=0;!0!==(c=s.next()).done;)r(c.value,null),o++;else e.forEach(r)},e.exports=r},55343:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});const r={warningEmitted:!1},s=e=>{e&&!r.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<18&&(r.warningEmitted=!0,process.emitWarning("NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js 16.x on January 6, 2025.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/74kJMmI"))}},55425:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(73024);const s=e=>{if(!e)return 0;if("string"==typeof e)return Buffer.byteLength(e);if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;if("number"==typeof e.start&&"number"==typeof e.end)return e.end+1-e.start;if(e instanceof r.ReadStream){if(null!=e.path)return(0,r.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,r.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)}},55845:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(98367),s=n(92255),i=n(23204);const o=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:a}=e,c=null!=n?async()=>(0,i.a)(await(0,r.t)(n)()):void 0,u=!!n,l=Object.assign(e,{endpoint:c,tls:t,isCustomEndpoint:u,useDualstackEndpoint:(0,r.t)(o??!1),useFipsEndpoint:(0,r.t)(a??!1)});let d;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!d&&(d=(0,s.k)(e.serviceId)),d),l}},56564:(e,t,n)=>{"use strict";n.d(t,{hV:()=>r});const r={environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e.sdk_ua_app_id??e["sdk-ua-app-id"],default:n(58093).b}},56602:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});let r=!1;const s=e=>{e&&!r&&parseInt(e.substring(1,e.indexOf(".")))<16&&(r=!0)}},57007:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});class r{serdeContext;setSerdeContext(e){this.serdeContext=e}}},58093:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,b:()=>s});var r=n(75289);const s=void 0;function i(e){const t=(0,r.t)(e.userAgentAppId??s),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:"string"==typeof n?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(n)){const t="NoOpLogger"!==e.logger?.constructor?.name&&e.logger?e.logger:console;"string"!=typeof n?t?.warn("userAgentAppId must be a string or undefined."):n.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}},59537:(e,t,n)=>{"use strict";n.d(t,{n:()=>p});const r={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},s={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");i||(globalThis.awslambda=globalThis.awslambda||{});class o{static PROTECTED_KEYS=s;isProtectedKey(e){return Object.values(s).includes(e)}getRequestId(){return this.get(s.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(s.X_RAY_TRACE_ID)}getTenantId(){return this.get(s.TENANT_ID)}}class a extends o{currentContext;getContext(){return this.currentContext}hasContext(){return void 0!==this.currentContext}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=t}run(e,t){this.currentContext=e;try{return t()}finally{this.currentContext=void 0}}}class c extends o{als;static async create(){const e=new c,t=await Promise.resolve().then(n.t.bind(n,16698,23));return e.als=new t.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return void 0!==this.als.getStore()}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);const n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=t}run(e,t){return this.als.run(e,t)}}var u;!function(e){let t=null;e.getInstanceAsync=async function(){return t||(t=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await c.create():new a;return!i&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:!i&&globalThis.awslambda?(globalThis.awslambda.InvokeStore=e,e):e})()),t},e._testing="1"===process.env.AWS_LAMBDA_BENCHMARK_MODE?{reset:()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={}}}:void 0}(u||(u={}));var l=n(86880);const d="X-Amzn-Trace-Id",p=e=>({applyToStack:e=>{e.add(e=>async t=>{const{request:n}=t;if(!l.K.isInstance(n))return e(t);const r=Object.keys(n.headers??{}).find(e=>e.toLowerCase()===d.toLowerCase())??d;if(n.headers.hasOwnProperty(r))return e(t);const s=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,o=await u.getInstanceAsync(),a=o?.getXRayTraceId(),c=a??i,p=e=>"string"==typeof e&&e.length>0;return p(s)&&p(c)&&(n.headers[d]=c),e({...t,request:n})},r)}})},60763:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,T:()=>r});class r extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return r.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===r?r.isInstance(e):!!r.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const s=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,n])=>{null!=e[t]&&""!==e[t]||(e[t]=n)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e}},62022:(e,t,n)=>{"use strict";var r;n.d(t,{I:()=>r}),function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(r||(r={}))},62306:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var r=n(86880),s=n(11904);const i=e=>e=>{throw e},o=(e,t)=>{},a={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=e=>({applyToStack:e=>{e.addRelativeTo((e,t)=>async n=>{if(!r.K.isInstance(n.request))return e(n);const a=(0,s.u)(t).selectedHttpAuthScheme;if(!a)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:c={}},identity:u,signer:l}=a,d=await e({...n,request:await l.sign(n.request,u,c)}).catch((l.errorHandler||i)(c));return(l.successHandler||o)(d.response,c),d},a)}})},64238:(e,t,n)=>{var r=n(41206),s=n(53924),i=n(10669),o=n(14497);function a(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,"number"!=typeof this.capacity||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=i.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K="function"==typeof e?new e(n):new Array(n),this.V="function"==typeof t?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}a.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},a.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this},a.prototype.set=function(e,t){var n=this.items[e];if(void 0!==n)return this.splayOnTop(n),void(this.V[n]=t);this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n},a.prototype.setpop=function(e,t){var n=null,r=null,s=this.items[e];return void 0!==s?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],r=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,r?{evicted:!0,key:r,value:n}:null)},a.prototype.has=function(e){return e in this.items},a.prototype.get=function(e){var t=this.items[e];if(void 0!==t)return this.splayOnTop(t),this.V[t]},a.prototype.peek=function(e){var t=this.items[e];if(void 0!==t)return this.V[t]},a.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,s=this.head,i=this.K,o=this.V,a=this.forward;n<r;)e.call(t,o[s],i[s],this),s=a[s],n++},a.prototype.keys=function(){var e=0,t=this.size,n=this.head,s=this.K,i=this.forward;return new r(function(){if(e>=t)return{done:!0};var r=s[n];return++e<t&&(n=i[n]),{done:!1,value:r}})},a.prototype.values=function(){var e=0,t=this.size,n=this.head,s=this.V,i=this.forward;return new r(function(){if(e>=t)return{done:!0};var r=s[n];return++e<t&&(n=i[n]),{done:!1,value:r}})},a.prototype.entries=function(){var e=0,t=this.size,n=this.head,s=this.K,i=this.V,o=this.forward;return new r(function(){if(e>=t)return{done:!0};var r=s[n],a=i[n];return++e<t&&(n=o[n]),{done:!1,value:[r,a]}})},"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=function(){for(var e,t=new Map,n=this.entries();!(e=n.next()).done;)t.set(e.value[0],e.value[1]);return Object.defineProperty(t,"constructor",{value:a,enumerable:!1}),t},"undefined"!=typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.from=function(e,t,n,r){if(arguments.length<2){if("number"!=typeof(r=o.guessLength(e)))throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else 2===arguments.length&&(r=t,t=null,n=null);var i=new a(t,n,r);return s(e,function(e,t){i.set(t,e)}),i},e.exports=a},64549:(e,t,n)=>{"use strict";n.d(t,{p:()=>m});var r=n(16928),s=n(62022),i=n(45223);const o=e=>Object.entries(e).filter(([e])=>{const t=e.indexOf(i.Q);return-1!==t&&Object.values(s.I).includes(e.substring(0,t))}).reduce((e,[t,n])=>{const r=t.indexOf(i.Q);return e[t.substring(0,r)===s.I.PROFILE?t.substring(r+1):t]=n,e},{...e.default&&{default:e.default}});var a=n(26433),c=n(51362);const u=()=>process.env.AWS_SHARED_CREDENTIALS_FILE||(0,r.join)((0,c.R)(),".aws","credentials");var l=n(33939),d=n(71078);const p=()=>({}),m=async(e={})=>{const{filepath:t=u(),configFilepath:n=(0,a.g)()}=e,s=(0,c.R)();let i=t;t.startsWith("~/")&&(i=(0,r.join)(s,t.slice(2)));let m=n;n.startsWith("~/")&&(m=(0,r.join)(s,n.slice(2)));const h=await Promise.all([(0,d.TA)(m,{ignoreCache:e.ignoreCache}).then(l.A).then(o).catch(p),(0,d.TA)(i,{ignoreCache:e.ignoreCache}).then(l.A).catch(p)]);return{configFile:h[0],credentialsFile:h[1]}}},66391:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(2203);class s extends r.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}const i=e=>o(e)?async function(e){const t=[],n=e.getReader();let r=!1,s=0;for(;!r;){const{done:e,value:i}=await n.read();i&&(t.push(i),s+=i.length),r=e}const i=new Uint8Array(s);let o=0;for(const e of t)i.set(e,o),o+=e.length;return i}(e):new Promise((t,n)=>{const r=new s;e.pipe(r),e.on("error",e=>{r.end(),n(e)}),r.on("error",n),r.on("finish",function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)})}),o=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream},67285:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});const r=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),s=e=>r.test(e)||e.startsWith("[")&&e.endsWith("]")},71078:(e,t,n)=>{"use strict";n.d(t,{Jj:()=>i,TA:()=>o});var r=n(51455);const s={},i={},o=(e,t)=>void 0!==i[e]?i[e]:(s[e]&&!t?.ignoreCache||(s[e]=(0,r.readFile)(e,"utf8")),s[e])},71918:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r=e=>{if("string"==typeof e)return r(new URL(e));const{hostname:t,pathname:n,port:s,protocol:i,search:o}=e;let a;return o&&(a=function(e){const t={};if(e=e.replace(/^\?/,""))for(const n of e.split("&")){let[e,r=null]=n.split("=");e=decodeURIComponent(e),r&&(r=decodeURIComponent(r)),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}(o)),{hostname:t,port:s?parseInt(s):void 0,protocol:i,path:n,query:a}}},73882:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});const r=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),s=(e,t=!1)=>{if(!t)return r.test(e);const n=e.split(".");for(const e of n)if(!s(e))return!1;return!0}},74783:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}},74910:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};r.from=e=>e&&"object"==typeof e&&(e instanceof r||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?r(String(e)):r(JSON.stringify(e)),r.fromObject=r.from},75289:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});const r=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},76682:(e,t,n)=>{"use strict";n.d(t,{Bz:()=>s,Ch:()=>r});const r="AWS_PROFILE",s=e=>e.profile||process.env[r]||"default"},76896:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(88816);const s=(...e)=>async()=>{if(0===e.length)throw new r.m("No providers in chain");let t;for(const n of e)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t}},77337:(e,t,n)=>{"use strict";n.d(t,{P:()=>c});var r=n(12544),s=n(39181),i=n(40935),o=n(2914);class a extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return"base64"===t?a.mutate((0,r.E)(e)):a.mutate((0,i.a)(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,a.prototype),e}transformToString(e="utf-8"){return"base64"===e?(0,s.n)(this):(0,o.P)(this)}}const c=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return a.mutate(e);if(!e)return a.mutate(new Uint8Array);const n=t.streamCollector(e);return a.mutate(await n)}},77702:(e,t,n)=>{"use strict";n.d(t,{Ko:()=>i});var r=n(91349),s=n(18241);const i={environmentVariableSelector:e=>(0,r.Q)(e,"AWS_USE_FIPS_ENDPOINT",s.c.ENV),configFileSelector:e=>(0,r.Q)(e,"use_fips_endpoint",s.c.CONFIG),default:!1}},78487:(e,t,n)=>{"use strict";n.d(t,{pi:()=>o,sF:()=>a,yG:()=>i});var r=n(53243),s=n(84122);const i="AWS_ACCESS_KEY_ID",o="AWS_SECRET_ACCESS_KEY",a=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[i],n=process.env[o],a=process.env.AWS_SESSION_TOKEN,c=process.env.AWS_CREDENTIAL_EXPIRATION,u=process.env.AWS_CREDENTIAL_SCOPE,l=process.env.AWS_ACCOUNT_ID;if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...a&&{sessionToken:a},...c&&{expiration:new Date(c)},...u&&{credentialScope:u},...l&&{accountId:l}};return(0,r.g)(e,"CREDENTIALS_ENV_VARS","g"),e}throw new s.C("Unable to find environment variable credentials.",{logger:e?.logger})}},79037:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});class r{serdeContext;setSerdeContext(e){this.serdeContext=e}}},79532:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,R:()=>r});const r=e=>({setRegion(t){e.region=t},region:()=>e.region}),s=e=>({region:e.region()})},79749:(e,t,n)=>{"use strict";n.d(t,{Y7:()=>s});const r={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},s=e=>({applyToStack:e=>{e.add((e,t)=>async n=>{try{const r=await e(n),{clientName:s,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:p,...m}=r.output;return o?.info?.({clientName:s,commandName:i,input:l(n.input),output:d(m),metadata:p}),r}catch(e){const{clientName:r,commandName:s,logger:i,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:a}=o,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:r,commandName:s,input:c(n.input),error:e,metadata:e.$metadata}),e}},r)}})},79931:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=e=>"function"==typeof e?e():e},81355:(e,t,n)=>{"use strict";n.d(t,{e:()=>r,j:()=>s});const r=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}),s=e=>({httpHandler:e.httpHandler()})},82112:(e,t,n)=>{"use strict";n.d(t,{pf:()=>i});var r=n(70857),s=n(932);const i=({serviceId:e,clientVersion:t})=>async n=>{const i=[["aws-sdk-js",t],["ua","2.1"],[`os/${(0,r.platform)()}`,(0,r.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];e&&i.push([`api/${e}`,t]),s.env.AWS_EXECUTION_ENV&&i.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`]);const o=await(n?.userAgentAppId?.());return o?[...i,[`app/${o}`]]:[...i]}},82752:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)},83046:(e,t,n)=>{"use strict";n.d(t,{wq:()=>d});var r=n(23034),s=n(11904);const i=(e,t,n,r,s)=>({name:t,namespace:e,traits:n,input:r,output:s}),o=e=>(t,n)=>async o=>{const{response:c}=await t(o),{operationSchema:u}=(0,s.u)(n),[,l,d,p,m,h]=u??[];try{return{response:c,output:await e.protocol.deserializeResponse(i(l,d,p,m,h),{...e,...n},c)}}catch(e){if(Object.defineProperty(e,"$response",{value:c,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n "+t}catch(e){n.logger&&"NoOpLogger"!==n.logger?.constructor?.name?n.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(r.c.isInstance(c)){const{headers:t={}}=c,n=Object.entries(t);e.$metadata={httpStatusCode:c.statusCode,requestId:a(/^x-[\w-]+-request-?id$/,n),extendedRequestId:a(/^x-[\w-]+-id-2$/,n),cfId:a(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}},a=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],c=e=>(t,n)=>async r=>{const{operationSchema:o}=(0,s.u)(n),[,a,c,u,l,d]=o??[],p=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint,m=await e.protocol.serializeRequest(i(a,c,u,l,d),r.input,{...e,...n,endpoint:p});return t({...r,request:m})},u={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},l={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function d(e){return{applyToStack:t=>{t.add(c(e),l),t.add(o(e),u),e.protocol.setSerdeContext(e)}}}},83623:(e,t,n)=>{"use strict";function r(e){if("object"==typeof e)return e;e|=0;const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>n++&1)&&(t[r]=1);return t}n.d(t,{c:()=>r})},83749:(e,t,n)=>{"use strict";n.d(t,{f2:()=>u});var r=n(86880);const s=e=>new Date(Date.now()+e);var i=n(23034);const o=e=>i.c.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,a=(e,t)=>{const n=Date.parse(e);return((e,t)=>Math.abs(s(t).getTime()-e)>=3e5)(n,t)?n-Date.now():t},c=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class u{async sign(e,t,n){if(!r.K.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await(async e=>{const t=c("context",e.context),n=c("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],s=c("signer",n.signer),i=await s(r),o=e?.signingRegion,a=e?.signingRegionSet,u=e?.signingName;return{config:n,signer:i,signingRegion:o,signingRegionSet:a,signingName:u}})(n),{config:o,signer:a}=i;let{signingRegion:u,signingName:l}=i;const d=n.context;if(d?.authSchemes?.length){const[e,t]=d.authSchemes;"sigv4a"===e?.name&&"sigv4"===t?.name&&(u=t?.signingRegion??u,l=t?.signingName??l)}return await a.sign(e,{signingDate:s(o.systemClockOffset),signingRegion:u,signingService:l})}errorHandler(e){return t=>{const n=t.ServerTime??o(t.$response);if(n){const r=c("config",e.config),s=r.systemClockOffset;r.systemClockOffset=a(n,r.systemClockOffset),r.systemClockOffset!==s&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const n=o(e);if(n){const e=c("config",t.config);e.systemClockOffset=a(n,e.systemClockOffset)}}}},84122:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(88816);class s extends r.m{name="CredentialsProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,s.prototype)}}},85397:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(53872),s=n(28075),i=n(19849);const o="AWS_REGION",a="AWS_DEFAULT_REGION",c=["in-region","cross-region","mobile","standard","legacy"],u={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},l=({region:e=(0,s.Z)(r.GG),defaultsMode:t=(0,s.Z)(u)}={})=>(0,i.B)(async()=>{const n="function"==typeof t?await t():t;switch(n?.toLowerCase()){case"auto":return d(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${c.join(", ")}, got ${n}`)}}),d=async e=>{if(e){const t="function"==typeof e?await e():e,n=await p();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},p=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[o]||process.env[a]))return process.env[o]??process.env[a];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await n.e(387).then(n.bind(n,35387)),r=await e();return(await t({...r,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}}},85766:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(11904);const s={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},i=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:i=>{i.addRelativeTo(((e,t)=>(n,s)=>async i=>{const o=((e,t)=>{if(!t||0===t.length)return e;const n=[];for(const r of t)for(const t of e)t.schemeId.split("#")[1]===r&&n.push(t);for(const t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n})(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,s,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),a=function(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}(e.httpAuthSchemes),c=(0,r.u)(s),u=[];for(const n of o){const r=a.get(n.schemeId);if(!r){u.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const i=r.identityProvider(await t.identityProviderConfigProvider(e));if(!i){u.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:o={},signingProperties:l={}}=n.propertiesExtractor?.(e,s)||{};n.identityProperties=Object.assign(n.identityProperties||{},o),n.signingProperties=Object.assign(n.signingProperties||{},l),c.selectedHttpAuthScheme={httpAuthOption:n,identity:await i(n.identityProperties),signer:r.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(u.join("\n"));return n(i)})(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),s)}})},86880:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});class r{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new r({...e,headers:{...e.headers}});var n;return t.query&&(t.query=(n=t.query,Object.keys(n).reduce((e,t)=>{const r=n[t];return{...e,[t]:Array.isArray(r)?[...r]:r}},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return r.clone(this)}}},87140:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(40935);const s=e=>"string"==typeof e?(0,r.a)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},88414:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var r=n(21055);class s{config;middlewareStack=(0,r.o)();initConfig;handlers;constructor(e){this.config=e}send(e,t,n){const r="function"!=typeof t?t:void 0,s="function"==typeof t?t:n;let i;if(void 0===r&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!s)return i(e).then(e=>e.output);i(e).then(e=>s(null,e.output),e=>s(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},88816:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});class r extends Error{name="ProviderError";tryNextLink;constructor(e,t=!0){let n,s=!0;"boolean"==typeof t?(n=void 0,s=t):null!=t&&"object"==typeof t&&(n=t.logger,s=t.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,r.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}},90933:(e,t,n)=>{"use strict";n.d(t,{sM:()=>m});var r=n(99609),s=n(86880);function i(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const o=/\d{12}\.ddb/,a="user-agent",c="x-amz-user-agent",u=/[^!$%&'*+\-.^_`|~\w]/g,l=/[^!$%&'*+\-.^_`|~\w#]/g,d=e=>{const t=e[0].split("/").map(e=>e.replace(u,"-")).join("/"),n=e[1]?.replace(l,"-"),r=t.indexOf("/"),s=t.substring(0,r);let i=t.substring(r+1);return"api"===s&&(i=i.toLowerCase()),[s,i,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},p={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},m=e=>({applyToStack:t=>{var n;t.add((n=e,(e,t)=>async u=>{const{request:l}=u;if(!s.K.isInstance(l))return e(u);const{headers:p}=l,m=t?.userAgent?.map(d)||[],h=(await n.defaultUserAgentProvider()).map(d);await async function(e,t,n){const r=n.request;if("rpc-v2-cbor"===r?.headers?.["smithy-protocol"]&&i(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){const n=await t.retryStrategy();"function"==typeof n.acquireInitialRetryToken?n.constructor?.name?.includes("Adaptive")?i(e,"RETRY_MODE_ADAPTIVE","F"):i(e,"RETRY_MODE_STANDARD","E"):i(e,"RETRY_MODE_LEGACY","D")}if("function"==typeof t.accountIdEndpointMode){const n=e.endpointV2;switch(String(n?.url?.hostname).match(o)&&i(e,"ACCOUNT_ID_ENDPOINT","O"),await(t.accountIdEndpointMode?.())){case"disabled":i(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":i(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":i(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}const s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const t=s;t.accountId&&i(e,"RESOLVED_ACCOUNT_ID","T");for(const[n,r]of Object.entries(t.$source??{}))i(e,n,r)}}(t,n,u);const f=t;h.push(`m/${function(e){let t="";for(const n in e){const r=e[n];if(!(t.length+r.length+1<=1024))break;t.length?t+=","+r:t+=r}return t}(Object.assign({},t.__smithy_context?.features,f.__aws_sdk_context?.features))}`);const g=n?.customUserAgent?.map(d)||[],y=await n.userAgentAppId();y&&h.push(d(["app",`${y}`]));const b=(0,r.vL)(),E=(b?[b]:[]).concat([...h,...m,...g]).join(" "),S=[...h.filter(e=>e.startsWith("aws-sdk-")),...g].join(" ");return"browser"!==n.runtime?(S&&(p[c]=p[c]?`${p[a]} ${S}`:S),p[a]=E):p[c]=E,e({...u,request:l})}),p)}})},91207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>P.u,ApproximateCreationDateTimePrecision:()=>Gh,AttributeAction:()=>Fh,BackupInUseException:()=>_,BackupNotFoundException:()=>k,BackupStatus:()=>Wh,BackupType:()=>qh,BackupTypeFilter:()=>Zh,BatchExecuteStatementCommand:()=>lm,BatchGetItemCommand:()=>dm,BatchStatementErrorCodeEnum:()=>tf,BatchWriteItemCommand:()=>pm,BillingMode:()=>zh,ComparisonOperator:()=>rf,ConditionalCheckFailedException:()=>he,ConditionalOperator:()=>sf,ContinuousBackupsStatus:()=>of,ContinuousBackupsUnavailableException:()=>z,ContributorInsightsAction:()=>cf,ContributorInsightsMode:()=>uf,ContributorInsightsStatus:()=>lf,CreateBackupCommand:()=>mm,CreateGlobalTableCommand:()=>hm,CreateTableCommand:()=>fm,DeleteBackupCommand:()=>gm,DeleteItemCommand:()=>ym,DeleteResourcePolicyCommand:()=>bm,DeleteTableCommand:()=>Em,DescribeBackupCommand:()=>Sm,DescribeContinuousBackupsCommand:()=>Tm,DescribeContributorInsightsCommand:()=>Cm,DescribeEndpointsCommand:()=>md,DescribeExportCommand:()=>Im,DescribeGlobalTableCommand:()=>Dm,DescribeGlobalTableSettingsCommand:()=>Am,DescribeImportCommand:()=>wm,DescribeKinesisStreamingDestinationCommand:()=>vm,DescribeLimitsCommand:()=>xm,DescribeTableCommand:()=>Rm,DescribeTableReplicaAutoScalingCommand:()=>Pm,DescribeTimeToLiveCommand:()=>Nm,DestinationStatus:()=>vf,DisableKinesisStreamingDestinationCommand:()=>Om,DuplicateItemException:()=>ne,DynamoDB:()=>mh,DynamoDBClient:()=>um,DynamoDBServiceException:()=>B,EnableKinesisStreamingDestinationCommand:()=>Lm,ExecuteStatementCommand:()=>Bm,ExecuteTransactionCommand:()=>_m,ExportConflictException:()=>ie,ExportFormat:()=>Ef,ExportNotFoundException:()=>X,ExportStatus:()=>Sf,ExportTableToPointInTimeCommand:()=>km,ExportType:()=>Tf,ExportViewType:()=>Cf,GetItemCommand:()=>Um,GetResourcePolicyCommand:()=>$m,GlobalTableAlreadyExistsException:()=>Y,GlobalTableNotFoundException:()=>ee,GlobalTableStatus:()=>df,IdempotentParameterMismatchException:()=>re,ImportConflictException:()=>ce,ImportNotFoundException:()=>te,ImportStatus:()=>Df,ImportTableCommand:()=>Mm,IndexNotFoundException:()=>me,IndexStatus:()=>pf,InputCompressionType:()=>Af,InputFormat:()=>wf,InternalServerError:()=>U,InvalidEndpointException:()=>G,InvalidExportTimeException:()=>oe,InvalidRestoreTimeException:()=>le,ItemCollectionSizeLimitExceededException:()=>W,KeyType:()=>Vh,LimitExceededException:()=>V,ListBackupsCommand:()=>Gm,ListContributorInsightsCommand:()=>Fm,ListExportsCommand:()=>jm,ListGlobalTablesCommand:()=>Wm,ListImportsCommand:()=>qm,ListTablesCommand:()=>zm,ListTagsOfResourceCommand:()=>Vm,MultiRegionConsistency:()=>yf,PointInTimeRecoveryStatus:()=>af,PointInTimeRecoveryUnavailableException:()=>ae,PolicyNotFoundException:()=>Z,ProjectionType:()=>Hh,ProvisionedThroughputExceededException:()=>F,PutItemCommand:()=>Hm,PutResourcePolicyCommand:()=>Km,QueryCommand:()=>Ym,ReplicaAlreadyExistsException:()=>de,ReplicaNotFoundException:()=>pe,ReplicaStatus:()=>mf,ReplicatedWriteConflictException:()=>q,RequestLimitExceeded:()=>$,ResourceInUseException:()=>Q,ResourceNotFoundException:()=>j,RestoreTableFromBackupCommand:()=>Qm,RestoreTableToPointInTimeCommand:()=>Jm,ReturnConsumedCapacity:()=>Xh,ReturnItemCollectionMetrics:()=>nf,ReturnValue:()=>bf,ReturnValuesOnConditionCheckFailure:()=>ef,S3SseAlgorithm:()=>If,SSEStatus:()=>Yh,SSEType:()=>Kh,ScalarAttributeType:()=>jh,ScanCommand:()=>Zm,Select:()=>xf,StreamViewType:()=>Qh,TableAlreadyExistsException:()=>ue,TableClass:()=>hf,TableInUseException:()=>H,TableNotFoundException:()=>K,TableStatus:()=>ff,TagResourceCommand:()=>Xm,ThrottlingException:()=>M,TimeToLiveStatus:()=>Jh,TransactGetItemsCommand:()=>eh,TransactWriteItemsCommand:()=>th,TransactionCanceledException:()=>fe,TransactionConflictException:()=>J,TransactionInProgressException:()=>se,UntagResourceCommand:()=>nh,UpdateContinuousBackupsCommand:()=>rh,UpdateContributorInsightsCommand:()=>sh,UpdateGlobalTableCommand:()=>ih,UpdateGlobalTableSettingsCommand:()=>oh,UpdateItemCommand:()=>ah,UpdateKinesisStreamingDestinationCommand:()=>ch,UpdateTableCommand:()=>uh,UpdateTableReplicaAutoScalingCommand:()=>lh,UpdateTimeToLiveCommand:()=>dh,WitnessStatus:()=>gf,__Client:()=>D.K,paginateListContributorInsights:()=>yh,paginateListExports:()=>bh,paginateListImports:()=>Eh,paginateListTables:()=>Sh,paginateQuery:()=>Th,paginateScan:()=>Ch,waitForTableExists:()=>_h,waitForTableNotExists:()=>$h,waitUntilTableExists:()=>kh,waitUntilTableNotExists:()=>Mh});var r=n(98367);const s="preferred",i=["disabled","preferred","required"];function o(e){return i.includes(e)}var a=n(64238),c=n.n(a);class u{cache;constructor(e){this.cache=new(c())(e)}getEndpoint(e){const t=this.get(e);if(!t||0===t.length)return;const n=t.map(e=>e.Address);return n[Math.floor(Math.random()*n.length)]}get(e){if(!this.has(e))return;const t=this.cache.get(e);if(!t)return;const n=Date.now(),r=t.filter(e=>n<e.Expires);if(0!==r.length)return r;this.delete(e)}set(e,t){const n=Date.now();this.cache.set(e,t.map(({Address:e,CachePeriodInMinutes:t})=>({Address:e,Expires:n+60*t*1e3})))}delete(e){this.cache.set(e,[])}has(e){if(!this.cache.has(e))return!1;const t=this.cache.peek(e);return!!t&&t.length>0}clear(){this.cache.clear()}}var l=n(42355),d=n(79749),p=n(59537),m=n(58093),h=n(90933),f=n(93786),g=n(85766),y=n(99522),b=n(62306),E=n(83046),S=n(7317),T=n(55845),C=n(31965),I=n(43162),D=n(88414),A=n(30379),w=n(11904);const v=async(e,t,n)=>({operation:(0,w.u)(t).operation,region:await(0,r.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),x=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"dynamodb",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t};var R=n(17801),P=n(42829);const N={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},AccountId:{type:"builtInParams",name:"accountId"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"},AccountIdEndpointMode:{type:"builtInParams",name:"accountIdEndpointMode"}};var O=n(38796),L=n(60763);class B extends L.T{constructor(e){super(e),Object.setPrototypeOf(this,B.prototype)}}class _ extends B{name="BackupInUseException";$fault="client";constructor(e){super({name:"BackupInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,_.prototype)}}class k extends B{name="BackupNotFoundException";$fault="client";constructor(e){super({name:"BackupNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,k.prototype)}}class U extends B{name="InternalServerError";$fault="server";constructor(e){super({name:"InternalServerError",$fault:"server",...e}),Object.setPrototypeOf(this,U.prototype)}}class $ extends B{name="RequestLimitExceeded";$fault="client";ThrottlingReasons;constructor(e){super({name:"RequestLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,$.prototype),this.ThrottlingReasons=e.ThrottlingReasons}}class M extends B{name="ThrottlingException";$fault="client";throttlingReasons;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,M.prototype),this.throttlingReasons=e.throttlingReasons}}class G extends B{name="InvalidEndpointException";$fault="client";Message;constructor(e){super({name:"InvalidEndpointException",$fault:"client",...e}),Object.setPrototypeOf(this,G.prototype),this.Message=e.Message}}class F extends B{name="ProvisionedThroughputExceededException";$fault="client";ThrottlingReasons;constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,F.prototype),this.ThrottlingReasons=e.ThrottlingReasons}}class j extends B{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,j.prototype)}}class W extends B{name="ItemCollectionSizeLimitExceededException";$fault="client";constructor(e){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,W.prototype)}}class q extends B{name="ReplicatedWriteConflictException";$fault="client";$retryable={};constructor(e){super({name:"ReplicatedWriteConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,q.prototype)}}class z extends B{name="ContinuousBackupsUnavailableException";$fault="client";constructor(e){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...e}),Object.setPrototypeOf(this,z.prototype)}}class V extends B{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,V.prototype)}}class H extends B{name="TableInUseException";$fault="client";constructor(e){super({name:"TableInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,H.prototype)}}class K extends B{name="TableNotFoundException";$fault="client";constructor(e){super({name:"TableNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,K.prototype)}}class Y extends B{name="GlobalTableAlreadyExistsException";$fault="client";constructor(e){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,Y.prototype)}}class Q extends B{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,Q.prototype)}}class J extends B{name="TransactionConflictException";$fault="client";constructor(e){super({name:"TransactionConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,J.prototype)}}class Z extends B{name="PolicyNotFoundException";$fault="client";constructor(e){super({name:"PolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Z.prototype)}}class X extends B{name="ExportNotFoundException";$fault="client";constructor(e){super({name:"ExportNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,X.prototype)}}class ee extends B{name="GlobalTableNotFoundException";$fault="client";constructor(e){super({name:"GlobalTableNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,ee.prototype)}}class te extends B{name="ImportNotFoundException";$fault="client";constructor(e){super({name:"ImportNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,te.prototype)}}class ne extends B{name="DuplicateItemException";$fault="client";constructor(e){super({name:"DuplicateItemException",$fault:"client",...e}),Object.setPrototypeOf(this,ne.prototype)}}class re extends B{name="IdempotentParameterMismatchException";$fault="client";Message;constructor(e){super({name:"IdempotentParameterMismatchException",$fault:"client",...e}),Object.setPrototypeOf(this,re.prototype),this.Message=e.Message}}class se extends B{name="TransactionInProgressException";$fault="client";Message;constructor(e){super({name:"TransactionInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,se.prototype),this.Message=e.Message}}class ie extends B{name="ExportConflictException";$fault="client";constructor(e){super({name:"ExportConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ie.prototype)}}class oe extends B{name="InvalidExportTimeException";$fault="client";constructor(e){super({name:"InvalidExportTimeException",$fault:"client",...e}),Object.setPrototypeOf(this,oe.prototype)}}class ae extends B{name="PointInTimeRecoveryUnavailableException";$fault="client";constructor(e){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...e}),Object.setPrototypeOf(this,ae.prototype)}}class ce extends B{name="ImportConflictException";$fault="client";constructor(e){super({name:"ImportConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ce.prototype)}}class ue extends B{name="TableAlreadyExistsException";$fault="client";constructor(e){super({name:"TableAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,ue.prototype)}}class le extends B{name="InvalidRestoreTimeException";$fault="client";constructor(e){super({name:"InvalidRestoreTimeException",$fault:"client",...e}),Object.setPrototypeOf(this,le.prototype)}}class de extends B{name="ReplicaAlreadyExistsException";$fault="client";constructor(e){super({name:"ReplicaAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,de.prototype)}}class pe extends B{name="ReplicaNotFoundException";$fault="client";constructor(e){super({name:"ReplicaNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,pe.prototype)}}class me extends B{name="IndexNotFoundException";$fault="client";constructor(e){super({name:"IndexNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,me.prototype)}}class he extends B{name="ConditionalCheckFailedException";$fault="client";Item;constructor(e){super({name:"ConditionalCheckFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,he.prototype),this.Item=e.Item}}class fe extends B{name="TransactionCanceledException";$fault="client";Message;CancellationReasons;constructor(e){super({name:"TransactionCanceledException",$fault:"client",...e}),Object.setPrototypeOf(this,fe.prototype),this.Message=e.Message,this.CancellationReasons=e.CancellationReasons}}const ge="ApproximateCreationDateTimePrecision",ye="AttributeDefinitions",be="AttributeName",Ee="ArchivalSummary",Se="AutoScalingDisabled",Te="AutoScalingRoleArn",Ce="AttributesToGet",Ie="AttributeUpdates",De="AttributeValueList",Ae="Attributes",we="BackupArn",ve="BackupCreationDateTime",xe="BackupDescription",Re="BackupDetails",Pe="BackupExpiryDateTime",Ne="BillingMode",Oe="BillingModeOverride",Le="BillingModeSummary",Be="BackupName",_e="BackupStatus",ke="BackupSizeBytes",Ue="BackupSummaries",$e="BackupType",Me="Code",Ge="ContinuousBackupsDescription",Fe="ConsumedCapacity",je="ConditionCheck",We="CreationDateTime",qe="ConditionExpression",ze="ContributorInsightsMode",Ve="ContributorInsightsStatus",He="ContributorInsightsSummaries",Ke="ComparisonOperator",Ye="ConditionalOperator",Qe="ConsistentRead",Je="ClientRequestToken",Ze="ClientToken",Xe="CapacityUnits",et="CloudWatchLogGroupArn",tt="Count",nt="Create",rt="DeletionProtectionEnabled",st="DeleteRequest",it="DestinationStatus",ot="DisableScaleIn",at="Delete",ct="ExportArn",ut="ExpressionAttributeNames",lt="ExpressionAttributeValues",dt="ExportDescription",pt="ExportFormat",mt="EnableKinesisStreamingConfiguration",ht="ExpectedRevisionId",ft="ExportStatus",gt="ExclusiveStartKey",yt="ExportSummaries",bt="EndTime",Et="ExportTime",St="ExportType",Tt="Endpoints",Ct="Enabled",It="Expected",Dt="FailureCode",At="FailureException",wt="FilterExpression",vt="FailureMessage",xt="GlobalSecondaryIndexes",Rt="GlobalSecondaryIndexOverride",Pt="GlobalSecondaryIndexUpdates",Nt="GlobalTableDescription",Ot="GlobalTableGlobalSecondaryIndexSettingsUpdate",Lt="GlobalTableName",Bt="Item",_t="ImportArn",kt="IndexArn",Ut="ItemCount",$t="ItemCollectionMetrics",Mt="InputCompressionType",Gt="IncrementalExportSpecification",Ft="InputFormat",jt="InputFormatOptions",Wt="IndexName",qt="IndexStatus",zt="IndexSizeBytes",Vt="ImportSummaryList",Ht="ImportStatus",Kt="ImportTableDescription",Yt="Items",Qt="Key",Jt="KeyConditions",Zt="KinesisDataStreamDestinations",Xt="KMSMasterKeyId",en="KeySchema",tn="Limit",nn="LastEvaluatedKey",rn="LocalSecondaryIndexes",sn="LocalSecondaryIndexOverride",on="LastUpdateDateTime",an="Message",cn="MaxResults",un="MultiRegionConsistency",ln="MaxReadRequestUnits",dn="MinimumUnits",pn="MaximumUnits",mn="NextToken",hn="OnDemandThroughput",fn="OnDemandThroughputOverride",gn="Parameters",yn="ProjectionExpression",bn="PointInTimeRecoveryDescription",En="PointInTimeRecoverySpecification",Sn="PolicyName",Tn="PutRequest",Cn="ProvisionedReadCapacityAutoScalingSettings",In="ProvisionedReadCapacityUnits",Dn="ProvisionedThroughput",An="ProvisionedThroughputOverride",wn="ProvisionedWriteCapacityAutoScalingSettings",vn="ProvisionedWriteCapacityAutoScalingUpdate",xn="ProvisionedWriteCapacityUnits",Rn="Policy",Pn="Projection",Nn="Responses",On="ResourceArn",Ln="ReturnConsumedCapacity",Bn="ReadCapacityUnits",_n="RestoreDateTime",kn="ReplicationGroup",Un="ReplicaGlobalSecondaryIndexSettingsUpdate",$n="RequestItems",Mn="ReturnItemCollectionMetrics",Gn="RevisionId",Fn="RegionName",jn="RecoveryPeriodInDays",Wn="ReplicaProvisionedReadCapacityAutoScalingSettings",qn="ReplicaProvisionedReadCapacityUnits",zn="ReplicaProvisionedWriteCapacityAutoScalingSettings",Vn="ReplicaSettings",Hn="ReplicaSettingsUpdate",Kn="ReplicaStatus",Yn="RestoreSummary",Qn="ReplicaTableClassSummary",Jn="ReadUnitsPerSecond",Zn="ReplicaUpdates",Xn="ReturnValues",er="ReturnValuesOnConditionCheckFailure",tr="Replicas",nr="StreamArn",rr="S3Bucket",sr="S3BucketOwner",ir="S3BucketSource",or="ScannedCount",ar="ScaleInCooldown",cr="ScaleOutCooldown",ur="S3Prefix",lr="StreamSpecification",dr="S3SseAlgorithm",pr="SSEDescription",mr="SSESpecification",hr="SSESpecificationOverride",fr="SSEType",gr="S3SseKmsKeyId",yr="StartTime",br="SourceTableArn",Er="SourceTableDetails",Sr="SourceTableFeatureDetails",Tr="Select",Cr="Statement",Ir="Status",Dr="Table",Ar="TableArn",wr="TableAutoScalingDescription",vr="TableClass",xr="TableClassOverride",Rr="TableCreationParameters",Pr="TableClassSummary",Nr="TableDescription",Or="TableId",Lr="TransactItems",Br="TableName",_r="ThrottlingReasons",kr="TableSizeBytes",Ur="TableStatus",$r="TimeToLiveDescription",Mr="TimeToLiveSpecification",Gr="TargetTableName",Fr="TargetTrackingScalingPolicyConfiguration",jr="TargetValue",Wr="Tags",qr="Update",zr="UpdateExpression",Vr="UpdateKinesisStreamingConfiguration",Hr="Value",Kr="WriteCapacityUnits",Yr="WarmThroughput",Qr="WriteUnitsPerSecond",Jr="awsQueryError",Zr="client",Xr="error",es="httpError",ts="httpHeader",ns="message",rs="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb",ss="com.amazonaws.dynamodb";var is=[3,ss,Ee,0,["ArchivalDateTime","ArchivalReason","ArchivalBackupArn"],[4,0,0]],os=[3,ss,"AttributeDefinition",0,[be,"AttributeType"],[0,0]],as=[3,ss,"AttributeValueUpdate",0,[Hr,"Action"],[()=>ul,0]],cs=[3,ss,"AutoScalingPolicyDescription",0,[Sn,Fr],[0,()=>ps]],us=[3,ss,"AutoScalingPolicyUpdate",0,[Sn,Fr],[0,()=>ms]],ls=[3,ss,"AutoScalingSettingsDescription",0,[dn,pn,Se,Te,"ScalingPolicies"],[1,1,2,0,()=>Zc]],ds=[3,ss,"AutoScalingSettingsUpdate",0,[dn,pn,Se,Te,"ScalingPolicyUpdate"],[1,1,2,0,()=>us]],ps=[3,ss,"AutoScalingTargetTrackingScalingPolicyConfigurationDescription",0,[ot,ar,cr,jr],[2,1,1,1]],ms=[3,ss,"AutoScalingTargetTrackingScalingPolicyConfigurationUpdate",0,[ot,ar,cr,jr],[2,1,1,1]],hs=[3,ss,xe,0,[Re,Er,Sr],[()=>fs,()=>Ya,()=>Qa]],fs=[3,ss,Re,0,[we,Be,ke,_e,$e,ve,Pe],[0,0,1,0,0,4,4]],gs=[-3,ss,"BackupInUseException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(gs,_);var ys=[-3,ss,"BackupNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(ys,k);var bs=[3,ss,"BackupSummary",0,[Br,Or,Ar,we,Be,ve,Pe,_e,$e,ke],[0,0,0,0,0,4,4,0,0,1]],Es=[3,ss,"BatchExecuteStatementInput",0,["Statements",Ln],[()=>wu,0]],Ss=[3,ss,"BatchExecuteStatementOutput",0,[Nn,Fe],[()=>vu,()=>tu]],Ts=[3,ss,"BatchGetItemInput",0,[$n,Ln],[()=>Qu,0]],Cs=[3,ss,"BatchGetItemOutput",0,[Nn,"UnprocessedKeys",Fe],[()=>Ju,()=>Qu,()=>tu]],Is=[3,ss,"BatchStatementError",0,[Me,an,Bt],[0,0,()=>Ku]],Ds=[3,ss,"BatchStatementRequest",0,[Cr,gn,Qe,er],[0,()=>xu,2,0]],As=[3,ss,"BatchStatementResponse",0,["Error",Br,Bt],[()=>Is,0,()=>Ku]],ws=[3,ss,"BatchWriteItemInput",0,[$n,Ln,Mn],[()=>Zu,0,0]],vs=[3,ss,"BatchWriteItemOutput",0,["UnprocessedItems",$t,Fe],[()=>Zu,()=>rl,()=>tu]],xs=[3,ss,Le,0,[Ne,"LastUpdateToPayPerRequestDateTime"],[0,4]],Rs=[3,ss,"CancellationReason",0,[Bt,Me,an],[()=>Ku,0,0]],Ps=[3,ss,"Capacity",0,[Bn,Kr,Xe],[1,1,1]],Ns=[3,ss,"Condition",0,[De,Ke],[()=>Jc,0]],Os=[-3,ss,"ConditionalCheckFailedException",{[Xr]:Zr},[ns,Bt],[0,()=>Ku]];O.O.for(ss).registerError(Os,he);var Ls=[3,ss,je,0,[Qt,Br,qe,ut,lt,er],[()=>sl,0,0,128,()=>el,0]],Bs=[3,ss,Fe,0,[Br,Xe,Bn,Kr,Dr,rn,xt],[0,1,1,1,()=>Ps,()=>cl,()=>cl]],_s=[3,ss,Ge,0,["ContinuousBackupsStatus",bn],[0,()=>sa]],ks=[-3,ss,"ContinuousBackupsUnavailableException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(ks,z);var Us=[3,ss,"ContributorInsightsSummary",0,[Br,Wt,Ve,ze],[0,0,0,0]],$s=[3,ss,"CreateBackupInput",0,[Br,Be],[0,0]],Ms=[3,ss,"CreateBackupOutput",0,[Re],[()=>fs]],Gs=[3,ss,"CreateGlobalSecondaryIndexAction",0,[Wt,en,Pn,Dn,hn,Yr],[0,()=>Eu,()=>ca,()=>ua,()=>ta,()=>Vc]],Fs=[3,ss,"CreateGlobalTableInput",0,[Lt,kn],[0,()=>$u]],js=[3,ss,"CreateGlobalTableOutput",0,[Nt],[()=>uo]],Ws=[3,ss,"CreateGlobalTableWitnessGroupMemberAction",0,[Fn],[0]],qs=[3,ss,"CreateReplicaAction",0,[Fn],[0]],zs=[3,ss,"CreateReplicationGroupMemberAction",0,[Fn,Xt,An,fn,xt,xr],[0,0,()=>pa,()=>na,()=>_u,0]],Vs=[3,ss,"CreateTableInput",0,[ye,Br,en,rn,xt,Ne,Dn,lr,mr,Wr,vr,rt,Yr,"ResourcePolicy",hn],[()=>Qc,0,()=>Eu,()=>Du,()=>cu,0,()=>ua,()=>Xa,()=>Za,()=>Wu,0,2,()=>Vc,0,()=>ta]],Hs=[3,ss,"CreateTableOutput",0,[Nr],[()=>sc]],Ks=[3,ss,"CsvOptions",0,["Delimiter","HeaderList"],[0,64]],Ys=[3,ss,at,0,[Qt,Br,qe,ut,lt,er],[()=>sl,0,0,128,()=>el,0]],Qs=[3,ss,"DeleteBackupInput",0,[we],[0]],Js=[3,ss,"DeleteBackupOutput",0,[xe],[()=>hs]],Zs=[3,ss,"DeleteGlobalSecondaryIndexAction",0,[Wt],[0]],Xs=[3,ss,"DeleteGlobalTableWitnessGroupMemberAction",0,[Fn],[0]],ei=[3,ss,"DeleteItemInput",0,[Br,Qt,It,Ye,Xn,Ln,Mn,qe,ut,lt,er],[0,()=>sl,()=>Xu,0,0,0,0,0,128,()=>el,0]],ti=[3,ss,"DeleteItemOutput",0,[Ae,Fe,$t],[()=>Ku,()=>Bs,()=>Ro]],ni=[3,ss,"DeleteReplicaAction",0,[Fn],[0]],ri=[3,ss,"DeleteReplicationGroupMemberAction",0,[Fn],[0]],si=[3,ss,st,0,[Qt],[()=>sl]],ii=[3,ss,"DeleteResourcePolicyInput",0,[On,ht],[0,0]],oi=[3,ss,"DeleteResourcePolicyOutput",0,[Gn],[0]],ai=[3,ss,"DeleteTableInput",0,[Br],[0]],ci=[3,ss,"DeleteTableOutput",0,[Nr],[()=>sc]],ui=[3,ss,"DescribeBackupInput",0,[we],[0]],li=[3,ss,"DescribeBackupOutput",0,[xe],[()=>hs]],di=[3,ss,"DescribeContinuousBackupsInput",0,[Br],[0]],pi=[3,ss,"DescribeContinuousBackupsOutput",0,[Ge],[()=>_s]],mi=[3,ss,"DescribeContributorInsightsInput",0,[Br,Wt],[0,0]],hi=[3,ss,"DescribeContributorInsightsOutput",0,[Br,Wt,"ContributorInsightsRuleList",Ve,on,At,ze],[0,0,64,0,4,()=>Yi,0]],fi=[3,ss,"DescribeEndpointsRequest",0,[],[]],gi=[3,ss,"DescribeEndpointsResponse",0,[Tt],[()=>ru]],yi=[3,ss,"DescribeExportInput",0,[ct],[0]],bi=[3,ss,"DescribeExportOutput",0,[dt],[()=>qi]],Ei=[3,ss,"DescribeGlobalTableInput",0,[Lt],[0]],Si=[3,ss,"DescribeGlobalTableOutput",0,[Nt],[()=>uo]],Ti=[3,ss,"DescribeGlobalTableSettingsInput",0,[Lt],[0]],Ci=[3,ss,"DescribeGlobalTableSettingsOutput",0,[Lt,Vn],[0,()=>Mu]],Ii=[3,ss,"DescribeImportInput",0,[_t],[0]],Di=[3,ss,"DescribeImportOutput",0,[Kt],[()=>Eo]],Ai=[3,ss,"DescribeKinesisStreamingDestinationInput",0,[Br],[0]],wi=[3,ss,"DescribeKinesisStreamingDestinationOutput",0,[Br,Zt],[0,()=>Su]],vi=[3,ss,"DescribeLimitsInput",0,[],[]],xi=[3,ss,"DescribeLimitsOutput",0,["AccountMaxReadCapacityUnits","AccountMaxWriteCapacityUnits","TableMaxReadCapacityUnits","TableMaxWriteCapacityUnits"],[1,1,1,1]],Ri=[3,ss,"DescribeTableInput",0,[Br],[0]],Pi=[3,ss,"DescribeTableOutput",0,[Dr],[()=>sc]],Ni=[3,ss,"DescribeTableReplicaAutoScalingInput",0,[Br],[0]],Oi=[3,ss,"DescribeTableReplicaAutoScalingOutput",0,[wr],[()=>tc]],Li=[3,ss,"DescribeTimeToLiveInput",0,[Br],[0]],Bi=[3,ss,"DescribeTimeToLiveOutput",0,[$r],[()=>pc]],_i=[-3,ss,"DuplicateItemException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(_i,ne);var ki=[3,ss,mt,0,[ge],[0]],Ui=[3,ss,"Endpoint",0,["Address","CachePeriodInMinutes"],[0,1]],$i=[3,ss,"ExecuteStatementInput",0,[Cr,gn,Qe,mn,Ln,tn,er],[0,()=>xu,2,0,0,1,0]],Mi=[3,ss,"ExecuteStatementOutput",0,[Yt,mn,Fe,nn],[()=>gu,0,()=>Bs,()=>sl]],Gi=[3,ss,"ExecuteTransactionInput",0,["TransactStatements",Je,Ln],[()=>Au,[0,4],0]],Fi=[3,ss,"ExecuteTransactionOutput",0,[Nn,Fe],[()=>yu,()=>tu]],ji=[3,ss,"ExpectedAttributeValue",0,[Hr,"Exists",Ke,De],[()=>ul,2,0,()=>Jc]],Wi=[-3,ss,"ExportConflictException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Wi,ie);var qi=[3,ss,dt,0,[ct,ft,yr,bt,"ExportManifest",Ar,Or,Et,Ze,rr,sr,ur,dr,gr,Dt,vt,pt,"BilledSizeBytes",Ut,St,Gt],[0,0,4,4,0,0,0,4,0,0,0,0,0,0,0,0,0,1,1,0,()=>Co]],zi=[-3,ss,"ExportNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(zi,X);var Vi=[3,ss,"ExportSummary",0,[ct,ft,St],[0,0,0]],Hi=[3,ss,"ExportTableToPointInTimeInput",0,[Ar,Et,Ze,rr,sr,ur,dr,gr,pt,St,Gt],[0,4,[0,4],0,0,0,0,0,0,0,()=>Co]],Ki=[3,ss,"ExportTableToPointInTimeOutput",0,[dt],[()=>qi]],Yi=[3,ss,At,0,["ExceptionName","ExceptionDescription"],[0,0]],Qi=[3,ss,"Get",0,[Qt,Br,yn,ut],[()=>sl,0,0,128]],Ji=[3,ss,"GetItemInput",0,[Br,Qt,Ce,Qe,Ln,yn,ut],[0,()=>sl,64,2,0,0,128]],Zi=[3,ss,"GetItemOutput",0,[Bt,Fe],[()=>Ku,()=>Bs]],Xi=[3,ss,"GetResourcePolicyInput",0,[On],[0]],eo=[3,ss,"GetResourcePolicyOutput",0,[Rn,Gn],[0,0]],to=[3,ss,"GlobalSecondaryIndex",0,[Wt,en,Pn,Dn,hn,Yr],[0,()=>Eu,()=>ca,()=>ua,()=>ta,()=>Vc]],no=[3,ss,"GlobalSecondaryIndexAutoScalingUpdate",0,[Wt,vn],[0,()=>ds]],ro=[3,ss,"GlobalSecondaryIndexDescription",0,[Wt,en,Pn,qt,"Backfilling",Dn,zt,Ut,kt,hn,Yr],[0,()=>Eu,()=>ca,0,2,()=>la,1,1,0,()=>ta,()=>oo]],so=[3,ss,"GlobalSecondaryIndexInfo",0,[Wt,en,Pn,Dn,hn],[0,()=>Eu,()=>ca,()=>ua,()=>ta]],io=[3,ss,"GlobalSecondaryIndexUpdate",0,[qr,nt,at],[()=>Rc,()=>Gs,()=>Zs]],oo=[3,ss,"GlobalSecondaryIndexWarmThroughputDescription",0,[Jn,Qr,Ir],[1,1,0]],ao=[3,ss,"GlobalTable",0,[Lt,kn],[0,()=>$u]],co=[-3,ss,"GlobalTableAlreadyExistsException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(co,Y);var uo=[3,ss,Nt,0,[kn,"GlobalTableArn",We,"GlobalTableStatus",Lt],[()=>Nu,0,4,0,0]],lo=[3,ss,Ot,0,[Wt,xn,"ProvisionedWriteCapacityAutoScalingSettingsUpdate"],[0,1,()=>ds]],po=[-3,ss,"GlobalTableNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(po,ee);var mo=[3,ss,"GlobalTableWitnessDescription",0,[Fn,"WitnessStatus"],[0,0]],ho=[3,ss,"GlobalTableWitnessGroupUpdate",0,[nt,at],[()=>Ws,()=>Xs]],fo=[-3,ss,"IdempotentParameterMismatchException",{[Xr]:Zr},[an],[0]];O.O.for(ss).registerError(fo,re);var go=[-3,ss,"ImportConflictException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(go,ce);var yo=[-3,ss,"ImportNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(yo,te);var bo=[3,ss,"ImportSummary",0,[_t,Ht,Ar,ir,et,Ft,yr,bt],[0,0,0,()=>Va,0,0,4,4]],Eo=[3,ss,Kt,0,[_t,Ht,Ar,Or,Ze,ir,"ErrorCount",et,Ft,jt,Mt,Rr,yr,bt,"ProcessedSizeBytes","ProcessedItemCount","ImportedItemCount",Dt,vt],[0,0,0,0,0,()=>Va,1,0,0,()=>Do,0,()=>rc,4,4,1,1,1,0,0]],So=[3,ss,"ImportTableInput",0,[Ze,ir,Ft,jt,Mt,Rr],[[0,4],()=>Va,0,()=>Do,0,()=>rc]],To=[3,ss,"ImportTableOutput",0,[Kt],[()=>Eo]],Co=[3,ss,Gt,0,["ExportFromTime","ExportToTime","ExportViewType"],[4,4,0]],Io=[-3,ss,"IndexNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Io,me);var Do=[3,ss,jt,0,["Csv"],[()=>Ks]],Ao=[-3,ss,"InternalServerError",{[Xr]:"server"},[ns],[0]];O.O.for(ss).registerError(Ao,U);var wo=[-3,ss,"InvalidEndpointException",{[Xr]:Zr,[es]:421},[an],[0]];O.O.for(ss).registerError(wo,G);var vo=[-3,ss,"InvalidExportTimeException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(vo,oe);var xo=[-3,ss,"InvalidRestoreTimeException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(xo,le);var Ro=[3,ss,$t,0,["ItemCollectionKey","SizeEstimateRangeGB"],[()=>nl,65]],Po=[-3,ss,"ItemCollectionSizeLimitExceededException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Po,W);var No=[3,ss,"ItemResponse",0,[Bt],[()=>Ku]],Oo=[3,ss,"KeysAndAttributes",0,["Keys",Ce,Qe,yn,ut],[()=>bu,64,2,0,128]],Lo=[3,ss,"KeySchemaElement",0,[be,"KeyType"],[0,0]],Bo=[3,ss,"KinesisDataStreamDestination",0,[nr,it,"DestinationStatusDescription",ge],[0,0,0,0]],_o=[3,ss,"KinesisStreamingDestinationInput",0,[Br,nr,mt],[0,0,()=>ki]],ko=[3,ss,"KinesisStreamingDestinationOutput",0,[Br,nr,it,mt],[0,0,0,()=>ki]],Uo=[-3,ss,"LimitExceededException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Uo,V);var $o=[3,ss,"ListBackupsInput",0,[Br,tn,"TimeRangeLowerBound","TimeRangeUpperBound","ExclusiveStartBackupArn",$e],[0,1,4,4,0,0]],Mo=[3,ss,"ListBackupsOutput",0,[Ue,"LastEvaluatedBackupArn"],[()=>Xc,0]],Go=[3,ss,"ListContributorInsightsInput",0,[Br,mn,cn],[0,0,1]],Fo=[3,ss,"ListContributorInsightsOutput",0,[He,mn],[()=>nu,0]],jo=[3,ss,"ListExportsInput",0,[Ar,cn,mn],[0,1,0]],Wo=[3,ss,"ListExportsOutput",0,[yt,mn],[()=>su,0]],qo=[3,ss,"ListGlobalTablesInput",0,["ExclusiveStartGlobalTableName",tn,Fn],[0,1,0]],zo=[3,ss,"ListGlobalTablesOutput",0,["GlobalTables","LastEvaluatedGlobalTableName"],[()=>du,0]],Vo=[3,ss,"ListImportsInput",0,[Ar,"PageSize",mn],[0,1,0]],Ho=[3,ss,"ListImportsOutput",0,[Vt,mn],[()=>hu,0]],Ko=[3,ss,"ListTablesInput",0,["ExclusiveStartTableName",tn],[0,1]],Yo=[3,ss,"ListTablesOutput",0,["TableNames","LastEvaluatedTableName"],[64,0]],Qo=[3,ss,"ListTagsOfResourceInput",0,[On,mn],[0,0]],Jo=[3,ss,"ListTagsOfResourceOutput",0,[Wr,mn],[()=>Wu,0]],Zo=[3,ss,"LocalSecondaryIndex",0,[Wt,en,Pn],[0,()=>Eu,()=>ca]],Xo=[3,ss,"LocalSecondaryIndexDescription",0,[Wt,en,Pn,zt,Ut,kt],[0,()=>Eu,()=>ca,1,1,0]],ea=[3,ss,"LocalSecondaryIndexInfo",0,[Wt,en,Pn],[0,()=>Eu,()=>ca]],ta=[3,ss,hn,0,[ln,"MaxWriteRequestUnits"],[1,1]],na=[3,ss,fn,0,[ln],[1]],ra=[3,ss,"ParameterizedStatement",0,[Cr,gn,er],[0,()=>xu,0]],sa=[3,ss,bn,0,["PointInTimeRecoveryStatus",jn,"EarliestRestorableDateTime","LatestRestorableDateTime"],[0,1,4,4]],ia=[3,ss,En,0,["PointInTimeRecoveryEnabled",jn],[2,1]],oa=[-3,ss,"PointInTimeRecoveryUnavailableException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(oa,ae);var aa=[-3,ss,"PolicyNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(aa,Z);var ca=[3,ss,Pn,0,["ProjectionType","NonKeyAttributes"],[0,64]],ua=[3,ss,Dn,0,[Bn,Kr],[1,1]],la=[3,ss,"ProvisionedThroughputDescription",0,["LastIncreaseDateTime","LastDecreaseDateTime","NumberOfDecreasesToday",Bn,Kr],[4,4,1,1,1]],da=[-3,ss,"ProvisionedThroughputExceededException",{[Xr]:Zr},[ns,_r],[0,()=>qu]];O.O.for(ss).registerError(da,F);var pa=[3,ss,An,0,[Bn],[1]],ma=[3,ss,"Put",0,[Bt,Br,qe,ut,lt,er],[()=>al,0,0,128,()=>el,0]],ha=[3,ss,"PutItemInput",0,[Br,Bt,It,Xn,Ln,Mn,Ye,qe,ut,lt,er],[0,()=>al,()=>Xu,0,0,0,0,0,128,()=>el,0]],fa=[3,ss,"PutItemOutput",0,[Ae,Fe,$t],[()=>Ku,()=>Bs,()=>Ro]],ga=[3,ss,Tn,0,[Bt],[()=>al]],ya=[3,ss,"PutResourcePolicyInput",0,[On,Rn,ht,"ConfirmRemoveSelfResourceAccess"],[0,0,0,[2,{[ts]:"x-amz-confirm-remove-self-resource-access"}]]],ba=[3,ss,"PutResourcePolicyOutput",0,[Gn],[0]],Ea=[3,ss,"QueryInput",0,[Br,Wt,Tr,Ce,tn,Qe,Jt,"QueryFilter",Ye,"ScanIndexForward",gt,Ln,yn,wt,"KeyConditionExpression",ut,lt],[0,0,0,64,1,2,()=>il,()=>tl,0,2,()=>sl,0,0,0,0,128,()=>el]],Sa=[3,ss,"QueryOutput",0,[Yt,tt,or,nn,Fe],[()=>gu,1,1,()=>sl,()=>Bs]],Ta=[3,ss,"Replica",0,[Fn],[0]],Ca=[-3,ss,"ReplicaAlreadyExistsException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Ca,de);var Ia=[3,ss,"ReplicaAutoScalingDescription",0,[Fn,xt,Wn,zn,Kn],[0,()=>Ou,()=>ls,()=>ls,0]],Da=[3,ss,"ReplicaAutoScalingUpdate",0,[Fn,"ReplicaGlobalSecondaryIndexUpdates","ReplicaProvisionedReadCapacityAutoScalingUpdate"],[0,()=>Lu,()=>ds]],Aa=[3,ss,"ReplicaDescription",0,[Fn,Kn,"ReplicaStatusDescription","ReplicaStatusPercentProgress",Xt,An,fn,Yr,xt,"ReplicaInaccessibleDateTime",Qn],[0,0,0,0,0,()=>pa,()=>na,()=>ac,()=>Bu,4,()=>nc]],wa=[3,ss,"ReplicaGlobalSecondaryIndex",0,[Wt,An,fn],[0,()=>pa,()=>na]],va=[3,ss,"ReplicaGlobalSecondaryIndexAutoScalingDescription",0,[Wt,qt,Cn,wn],[0,0,()=>ls,()=>ls]],xa=[3,ss,"ReplicaGlobalSecondaryIndexAutoScalingUpdate",0,[Wt,"ProvisionedReadCapacityAutoScalingUpdate"],[0,()=>ds]],Ra=[3,ss,"ReplicaGlobalSecondaryIndexDescription",0,[Wt,An,fn,Yr],[0,()=>pa,()=>na,()=>oo]],Pa=[3,ss,"ReplicaGlobalSecondaryIndexSettingsDescription",0,[Wt,qt,In,Cn,xn,wn],[0,0,1,()=>ls,1,()=>ls]],Na=[3,ss,Un,0,[Wt,In,"ProvisionedReadCapacityAutoScalingSettingsUpdate"],[0,1,()=>ds]],Oa=[-3,ss,"ReplicaNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Oa,pe);var La=[3,ss,"ReplicaSettingsDescription",0,[Fn,Kn,"ReplicaBillingModeSummary",qn,Wn,"ReplicaProvisionedWriteCapacityUnits",zn,"ReplicaGlobalSecondaryIndexSettings",Qn],[0,0,()=>xs,1,()=>ls,1,()=>ls,()=>ku,()=>nc]],Ba=[3,ss,Hn,0,[Fn,qn,"ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate",Un,"ReplicaTableClass"],[0,1,()=>ds,()=>Uu,0]],_a=[-3,ss,"ReplicatedWriteConflictException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(_a,q);var ka=[3,ss,"ReplicationGroupUpdate",0,[nt,qr,at],[()=>zs,()=>Mc,()=>ri]],Ua=[3,ss,"ReplicaUpdate",0,[nt,at],[()=>qs,()=>ni]],$a=[-3,ss,"RequestLimitExceeded",{[Xr]:Zr},[ns,_r],[0,()=>qu]];O.O.for(ss).registerError($a,$);var Ma=[-3,ss,"ResourceInUseException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Ma,Q);var Ga=[-3,ss,"ResourceNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(Ga,j);var Fa=[3,ss,Yn,0,["SourceBackupArn",br,_n,"RestoreInProgress"],[0,0,4,2]],ja=[3,ss,"RestoreTableFromBackupInput",0,[Gr,we,Oe,Rt,sn,An,fn,hr],[0,0,0,()=>cu,()=>Du,()=>ua,()=>ta,()=>Za]],Wa=[3,ss,"RestoreTableFromBackupOutput",0,[Nr],[()=>sc]],qa=[3,ss,"RestoreTableToPointInTimeInput",0,[br,"SourceTableName",Gr,"UseLatestRestorableTime",_n,Oe,Rt,sn,An,fn,hr],[0,0,0,2,4,0,()=>cu,()=>Du,()=>ua,()=>ta,()=>Za]],za=[3,ss,"RestoreTableToPointInTimeOutput",0,[Nr],[()=>sc]],Va=[3,ss,ir,0,[sr,rr,"S3KeyPrefix"],[0,0,0]],Ha=[3,ss,"ScanInput",0,[Br,Wt,Ce,tn,Tr,"ScanFilter",Ye,gt,Ln,"TotalSegments","Segment",yn,wt,ut,lt,Qe],[0,0,64,1,0,()=>tl,0,()=>sl,0,1,1,0,0,128,()=>el,2]],Ka=[3,ss,"ScanOutput",0,[Yt,tt,or,nn,Fe],[()=>gu,1,1,()=>sl,()=>Bs]],Ya=[3,ss,Er,0,[Br,Or,Ar,kr,en,"TableCreationDateTime",Dn,hn,Ut,Ne],[0,0,0,1,()=>Eu,4,()=>ua,()=>ta,1,0]],Qa=[3,ss,Sr,0,[rn,xt,"StreamDescription",$r,pr],[()=>Iu,()=>au,()=>Xa,()=>pc,()=>Ja]],Ja=[3,ss,pr,0,[Ir,fr,"KMSMasterKeyArn","InaccessibleEncryptionDateTime"],[0,0,0,4]],Za=[3,ss,mr,0,[Ct,fr,Xt],[2,0,0]],Xa=[3,ss,lr,0,["StreamEnabled","StreamViewType"],[2,0]],ec=[-3,ss,"TableAlreadyExistsException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(ec,ue);var tc=[3,ss,wr,0,[Br,Ur,tr],[0,0,()=>Ru]],nc=[3,ss,Pr,0,[vr,on],[0,4]],rc=[3,ss,Rr,0,[Br,ye,en,Ne,Dn,hn,mr,xt],[0,()=>Qc,()=>Eu,0,()=>ua,()=>ta,()=>Za,()=>cu]],sc=[3,ss,Nr,0,[ye,Br,en,Ur,We,Dn,kr,Ut,Ar,Or,Le,rn,xt,lr,"LatestStreamLabel","LatestStreamArn","GlobalTableVersion",tr,"GlobalTableWitnesses",Yn,pr,Ee,Pr,rt,hn,Yr,un],[()=>Qc,0,()=>Eu,0,4,()=>la,1,1,0,0,()=>xs,()=>Cu,()=>ou,()=>Xa,0,0,0,()=>Nu,()=>pu,()=>Fa,()=>Ja,()=>is,()=>nc,2,()=>ta,()=>ac,0]],ic=[-3,ss,"TableInUseException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(ic,H);var oc=[-3,ss,"TableNotFoundException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(oc,K);var ac=[3,ss,"TableWarmThroughputDescription",0,[Jn,Qr,Ir],[1,1,0]],cc=[3,ss,"Tag",0,[Qt,Hr],[0,0]],uc=[3,ss,"TagResourceInput",0,[On,Wr],[0,()=>Wu]],lc=[-3,ss,"ThrottlingException",{[Xr]:Zr,[es]:400,[Jr]:["Throttling",400]},[ns,"throttlingReasons"],[0,()=>qu]];O.O.for(ss).registerError(lc,M);var dc=[3,ss,"ThrottlingReason",0,["reason","resource"],[0,0]],pc=[3,ss,$r,0,["TimeToLiveStatus",be],[0,0]],mc=[3,ss,Mr,0,[Ct,be],[2,0]],hc=[3,ss,"TransactGetItem",0,["Get"],[()=>Qi]],fc=[3,ss,"TransactGetItemsInput",0,[Lr,Ln],[()=>zu,0]],gc=[3,ss,"TransactGetItemsOutput",0,[Fe,Nn],[()=>tu,()=>yu]],yc=[-3,ss,"TransactionCanceledException",{[Xr]:Zr},[an,"CancellationReasons"],[0,()=>eu]];O.O.for(ss).registerError(yc,fe);var bc=[-3,ss,"TransactionConflictException",{[Xr]:Zr},[ns],[0]];O.O.for(ss).registerError(bc,J);var Ec=[-3,ss,"TransactionInProgressException",{[Xr]:Zr},[an],[0]];O.O.for(ss).registerError(Ec,se);var Sc=[3,ss,"TransactWriteItem",0,[je,"Put",at,qr],[()=>Ls,()=>ma,()=>Ys,()=>Dc]],Tc=[3,ss,"TransactWriteItemsInput",0,[Lr,Ln,Mn,Je],[()=>Vu,0,0,[0,4]]],Cc=[3,ss,"TransactWriteItemsOutput",0,[Fe,$t],[()=>tu,()=>rl]],Ic=[3,ss,"UntagResourceInput",0,[On,"TagKeys"],[0,64]],Dc=[3,ss,qr,0,[Qt,zr,Br,qe,ut,lt,er],[()=>sl,0,0,0,128,()=>el,0]],Ac=[3,ss,"UpdateContinuousBackupsInput",0,[Br,En],[0,()=>ia]],wc=[3,ss,"UpdateContinuousBackupsOutput",0,[Ge],[()=>_s]],vc=[3,ss,"UpdateContributorInsightsInput",0,[Br,Wt,"ContributorInsightsAction",ze],[0,0,0,0]],xc=[3,ss,"UpdateContributorInsightsOutput",0,[Br,Wt,Ve,ze],[0,0,0,0]],Rc=[3,ss,"UpdateGlobalSecondaryIndexAction",0,[Wt,Dn,hn,Yr],[0,()=>ua,()=>ta,()=>Vc]],Pc=[3,ss,"UpdateGlobalTableInput",0,[Lt,Zn],[0,()=>ju]],Nc=[3,ss,"UpdateGlobalTableOutput",0,[Nt],[()=>uo]],Oc=[3,ss,"UpdateGlobalTableSettingsInput",0,[Lt,"GlobalTableBillingMode","GlobalTableProvisionedWriteCapacityUnits","GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate",Ot,Hn],[0,0,1,()=>ds,()=>lu,()=>Gu]],Lc=[3,ss,"UpdateGlobalTableSettingsOutput",0,[Lt,Vn],[0,()=>Mu]],Bc=[3,ss,"UpdateItemInput",0,[Br,Qt,Ie,It,Ye,Xn,Ln,Mn,zr,qe,ut,lt,er],[0,()=>sl,()=>Yu,()=>Xu,0,0,0,0,0,0,128,()=>el,0]],_c=[3,ss,"UpdateItemOutput",0,[Ae,Fe,$t],[()=>Ku,()=>Bs,()=>Ro]],kc=[3,ss,Vr,0,[ge],[0]],Uc=[3,ss,"UpdateKinesisStreamingDestinationInput",0,[Br,nr,Vr],[0,0,()=>kc]],$c=[3,ss,"UpdateKinesisStreamingDestinationOutput",0,[Br,nr,it,Vr],[0,0,0,()=>kc]],Mc=[3,ss,"UpdateReplicationGroupMemberAction",0,[Fn,Xt,An,fn,xt,xr],[0,0,()=>pa,()=>na,()=>_u,0]],Gc=[3,ss,"UpdateTableInput",0,[ye,Br,Ne,Dn,Pt,lr,mr,Zn,vr,rt,un,"GlobalTableWitnessUpdates",hn,Yr],[()=>Qc,0,0,()=>ua,()=>uu,()=>Xa,()=>Za,()=>Fu,0,2,0,()=>mu,()=>ta,()=>Vc]],Fc=[3,ss,"UpdateTableOutput",0,[Nr],[()=>sc]],jc=[3,ss,"UpdateTableReplicaAutoScalingInput",0,[Pt,Br,vn,Zn],[()=>iu,0,()=>ds,()=>Pu]],Wc=[3,ss,"UpdateTableReplicaAutoScalingOutput",0,[wr],[()=>tc]],qc=[3,ss,"UpdateTimeToLiveInput",0,[Br,Mr],[0,()=>mc]],zc=[3,ss,"UpdateTimeToLiveOutput",0,[Mr],[()=>mc]],Vc=[3,ss,Yr,0,[Jn,Qr],[1,1]],Hc=[3,ss,"WriteRequest",0,[Tn,st],[()=>ga,()=>si]],Kc="unit",Yc=[-3,rs,"DynamoDBServiceException",0,[],[]];O.O.for(rs).registerError(Yc,B);var Qc=[1,ss,ye,0,()=>os],Jc=[1,ss,De,0,()=>ul],Zc=[1,ss,"AutoScalingPolicyDescriptionList",0,()=>cs],Xc=[1,ss,Ue,0,()=>bs],eu=[1,ss,"CancellationReasonList",0,()=>Rs],tu=[1,ss,"ConsumedCapacityMultiple",0,()=>Bs],nu=[1,ss,He,0,()=>Us],ru=[1,ss,Tt,0,()=>Ui],su=[1,ss,yt,0,()=>Vi],iu=[1,ss,"GlobalSecondaryIndexAutoScalingUpdateList",0,()=>no],ou=[1,ss,"GlobalSecondaryIndexDescriptionList",0,()=>ro],au=[1,ss,xt,0,()=>so],cu=[1,ss,"GlobalSecondaryIndexList",0,()=>to],uu=[1,ss,"GlobalSecondaryIndexUpdateList",0,()=>io],lu=[1,ss,"GlobalTableGlobalSecondaryIndexSettingsUpdateList",0,()=>lo],du=[1,ss,"GlobalTableList",0,()=>ao],pu=[1,ss,"GlobalTableWitnessDescriptionList",0,()=>mo],mu=[1,ss,"GlobalTableWitnessGroupUpdateList",0,()=>ho],hu=[1,ss,Vt,0,()=>bo],fu=[1,ss,"ItemCollectionMetricsMultiple",0,()=>Ro],gu=[1,ss,"ItemList",0,()=>Ku],yu=[1,ss,"ItemResponseList",0,()=>No],bu=[1,ss,"KeyList",0,()=>sl],Eu=[1,ss,en,0,()=>Lo],Su=[1,ss,Zt,0,()=>Bo],Tu=[1,ss,"ListAttributeValue",0,()=>ul],Cu=[1,ss,"LocalSecondaryIndexDescriptionList",0,()=>Xo],Iu=[1,ss,rn,0,()=>ea],Du=[1,ss,"LocalSecondaryIndexList",0,()=>Zo],Au=[1,ss,"ParameterizedStatements",0,()=>ra],wu=[1,ss,"PartiQLBatchRequest",0,()=>Ds],vu=[1,ss,"PartiQLBatchResponse",0,()=>As],xu=[1,ss,"PreparedStatementParameters",0,()=>ul],Ru=[1,ss,"ReplicaAutoScalingDescriptionList",0,()=>Ia],Pu=[1,ss,"ReplicaAutoScalingUpdateList",0,()=>Da],Nu=[1,ss,"ReplicaDescriptionList",0,()=>Aa],Ou=[1,ss,"ReplicaGlobalSecondaryIndexAutoScalingDescriptionList",0,()=>va],Lu=[1,ss,"ReplicaGlobalSecondaryIndexAutoScalingUpdateList",0,()=>xa],Bu=[1,ss,"ReplicaGlobalSecondaryIndexDescriptionList",0,()=>Ra],_u=[1,ss,"ReplicaGlobalSecondaryIndexList",0,()=>wa],ku=[1,ss,"ReplicaGlobalSecondaryIndexSettingsDescriptionList",0,()=>Pa],Uu=[1,ss,"ReplicaGlobalSecondaryIndexSettingsUpdateList",0,()=>Na],$u=[1,ss,"ReplicaList",0,()=>Ta],Mu=[1,ss,"ReplicaSettingsDescriptionList",0,()=>La],Gu=[1,ss,"ReplicaSettingsUpdateList",0,()=>Ba],Fu=[1,ss,"ReplicationGroupUpdateList",0,()=>ka],ju=[1,ss,"ReplicaUpdateList",0,()=>Ua],Wu=[1,ss,"TagList",0,()=>cc],qu=[1,ss,"ThrottlingReasonList",0,()=>dc],zu=[1,ss,"TransactGetItemList",0,()=>hc],Vu=[1,ss,"TransactWriteItemList",0,()=>Sc],Hu=[1,ss,"WriteRequests",0,()=>Hc],Ku=[2,ss,"AttributeMap",0,0,()=>ul],Yu=[2,ss,Ie,0,0,()=>as],Qu=[2,ss,"BatchGetRequestMap",0,0,()=>Oo],Ju=[2,ss,"BatchGetResponseMap",0,0,()=>gu],Zu=[2,ss,"BatchWriteItemRequestMap",0,0,()=>Hu],Xu=[2,ss,"ExpectedAttributeMap",0,0,()=>ji],el=[2,ss,"ExpressionAttributeValueMap",0,0,()=>ul],tl=[2,ss,"FilterConditionMap",0,0,()=>Ns],nl=[2,ss,"ItemCollectionKeyAttributeMap",0,0,()=>ul],rl=[2,ss,"ItemCollectionMetricsPerTable",0,0,()=>fu],sl=[2,ss,Qt,0,0,()=>ul],il=[2,ss,Jt,0,0,()=>Ns],ol=[2,ss,"MapAttributeValue",0,0,()=>ul],al=[2,ss,"PutItemInputAttributeMap",0,0,()=>ul],cl=[2,ss,"SecondaryIndexesCapacityMap",0,0,()=>Ps],ul=[3,ss,"AttributeValue",0,["S","N","B","SS","NS","BS","M","L","NULL","BOOL"],[0,0,21,64,64,85,()=>ol,()=>Tu,2,2]],ll=[9,ss,"BatchExecuteStatement",0,()=>Es,()=>Ss],dl=[9,ss,"BatchGetItem",0,()=>Ts,()=>Cs],pl=[9,ss,"BatchWriteItem",0,()=>ws,()=>vs],ml=[9,ss,"CreateBackup",0,()=>$s,()=>Ms],hl=[9,ss,"CreateGlobalTable",0,()=>Fs,()=>js],fl=[9,ss,"CreateTable",0,()=>Vs,()=>Hs],gl=[9,ss,"DeleteBackup",0,()=>Qs,()=>Js],yl=[9,ss,"DeleteItem",0,()=>ei,()=>ti],bl=[9,ss,"DeleteResourcePolicy",0,()=>ii,()=>oi],El=[9,ss,"DeleteTable",0,()=>ai,()=>ci],Sl=[9,ss,"DescribeBackup",0,()=>ui,()=>li],Tl=[9,ss,"DescribeContinuousBackups",0,()=>di,()=>pi],Cl=[9,ss,"DescribeContributorInsights",0,()=>mi,()=>hi],Il=[9,ss,"DescribeEndpoints",0,()=>fi,()=>gi],Dl=[9,ss,"DescribeExport",0,()=>yi,()=>bi],Al=[9,ss,"DescribeGlobalTable",0,()=>Ei,()=>Si],wl=[9,ss,"DescribeGlobalTableSettings",0,()=>Ti,()=>Ci],vl=[9,ss,"DescribeImport",0,()=>Ii,()=>Di],xl=[9,ss,"DescribeKinesisStreamingDestination",0,()=>Ai,()=>wi],Rl=[9,ss,"DescribeLimits",0,()=>vi,()=>xi],Pl=[9,ss,"DescribeTable",0,()=>Ri,()=>Pi],Nl=[9,ss,"DescribeTableReplicaAutoScaling",0,()=>Ni,()=>Oi],Ol=[9,ss,"DescribeTimeToLive",0,()=>Li,()=>Bi],Ll=[9,ss,"DisableKinesisStreamingDestination",0,()=>_o,()=>ko],Bl=[9,ss,"EnableKinesisStreamingDestination",0,()=>_o,()=>ko],_l=[9,ss,"ExecuteStatement",0,()=>$i,()=>Mi],kl=[9,ss,"ExecuteTransaction",0,()=>Gi,()=>Fi],Ul=[9,ss,"ExportTableToPointInTime",0,()=>Hi,()=>Ki],$l=[9,ss,"GetItem",0,()=>Ji,()=>Zi],Ml=[9,ss,"GetResourcePolicy",0,()=>Xi,()=>eo],Gl=[9,ss,"ImportTable",0,()=>So,()=>To],Fl=[9,ss,"ListBackups",0,()=>$o,()=>Mo],jl=[9,ss,"ListContributorInsights",0,()=>Go,()=>Fo],Wl=[9,ss,"ListExports",0,()=>jo,()=>Wo],ql=[9,ss,"ListGlobalTables",0,()=>qo,()=>zo],zl=[9,ss,"ListImports",0,()=>Vo,()=>Ho],Vl=[9,ss,"ListTables",0,()=>Ko,()=>Yo],Hl=[9,ss,"ListTagsOfResource",0,()=>Qo,()=>Jo],Kl=[9,ss,"PutItem",0,()=>ha,()=>fa],Yl=[9,ss,"PutResourcePolicy",0,()=>ya,()=>ba],Ql=[9,ss,"Query",0,()=>Ea,()=>Sa],Jl=[9,ss,"RestoreTableFromBackup",0,()=>ja,()=>Wa],Zl=[9,ss,"RestoreTableToPointInTime",0,()=>qa,()=>za],Xl=[9,ss,"Scan",0,()=>Ha,()=>Ka],ed=[9,ss,"TagResource",0,()=>uc,()=>Kc],td=[9,ss,"TransactGetItems",0,()=>fc,()=>gc],nd=[9,ss,"TransactWriteItems",0,()=>Tc,()=>Cc],rd=[9,ss,"UntagResource",0,()=>Ic,()=>Kc],sd=[9,ss,"UpdateContinuousBackups",0,()=>Ac,()=>wc],id=[9,ss,"UpdateContributorInsights",0,()=>vc,()=>xc],od=[9,ss,"UpdateGlobalTable",0,()=>Pc,()=>Nc],ad=[9,ss,"UpdateGlobalTableSettings",0,()=>Oc,()=>Lc],cd=[9,ss,"UpdateItem",0,()=>Bc,()=>_c],ud=[9,ss,"UpdateKinesisStreamingDestination",0,()=>Uc,()=>$c],ld=[9,ss,"UpdateTable",0,()=>Gc,()=>Fc],dd=[9,ss,"UpdateTableReplicaAutoScaling",0,()=>jc,()=>Wc],pd=[9,ss,"UpdateTimeToLive",0,()=>qc,()=>zc];class md extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeEndpoints",{}).n("DynamoDBClient","DescribeEndpointsCommand").sc(Il).build()){}var hd=n(55343),fd=n(91677);const gd="Invalid AccountIdEndpointMode value",yd=e=>{throw new Error(e)},bd={environmentVariableSelector:e=>{const t=e.AWS_ACCOUNT_ID_ENDPOINT_MODE;return t&&!o(t)&&yd(gd),t},configFileSelector:e=>{const t=e.account_id_endpoint_mode;return t&&!o(t)&&yd(gd),t},default:s};var Ed=n(78487),Sd=n(84122),Td=n(76682),Cd=n(76896);const Id="AWS_EC2_METADATA_DISABLED";let Dd=!1;const Ad=(e={})=>function(e,t){const n=(e=>async t=>{let n;for(const r of e)try{return await r(t)}catch(e){if(n=e,e?.tryNextLink)continue;throw e}throw n})(e);let r,s,i;const o=async e=>{if(e?.forceRefresh)return await n(e);if(i?.expiration&&i?.expiration?.getTime()<Date.now()&&(i=void 0),r)await r;else if(!i||t?.(i)){if(!i)return r=n(e).then(e=>{i=e,r=void 0}),o(e);s||(s=n(e).then(e=>{i=e,s=void 0}))}return i};return o}([async()=>{if(e.profile??process.env[Td.Ch])throw process.env[Ed.yG]&&process.env[Ed.pi]&&!Dd&&((e.logger?.warn&&"NoOpLogger"!==e.logger?.constructor?.name?e.logger.warn.bind(e.logger):console.warn)("@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n"),Dd=!0),new Sd.C("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0});return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),(0,Ed.sF)(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:r,ssoAccountId:s,ssoRegion:i,ssoRoleName:o,ssoSession:a}=e;if(!(r||s||i||o||a))throw new Sd.C("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});const{fromSSO:c}=await n.e(406).then(n.bind(n,49406));return c(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:r}=await n.e(784).then(n.bind(n,85784));return r(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:r}=await n.e(448).then(n.bind(n,68448));return r(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:r}=await n.e(988).then(n.bind(n,48988));return r(e)(t)},async()=>(e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await(async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:s,fromInstanceMetadata:i}=await n.e(387).then(n.bind(n,35387));if(process.env[r]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await n.e(866).then(n.bind(n,57866));return(0,Cd.c)(t(e),s(e))}return process.env[Id]&&"false"!==process.env[Id]?async()=>{throw new Sd.C("EC2 Instance Metadata Service access disabled",{logger:e.logger})}:(e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),i(e))})(e))()),async()=>{throw new Sd.C("Could not load credentials from any providers",{tryNextLink:!1,logger:e.logger})}],wd),wd=e=>void 0!==e?.expiration&&e.expiration.getTime()-Date.now()<3e5,vd=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],xd="endpoint_discovery_enabled",Rd=e=>["false","0"].indexOf(e)>=0,Pd={environmentVariableSelector:e=>{for(let t=0;t<vd.length;t++){const n=vd[t];if(n in e){const t=e[n];if(""===t)throw Error(`Environment variable ${n} can't be empty of undefined, got "${t}"`);return!Rd(t)}}},configFileSelector:e=>{if(xd in e){const t=e[xd];if(void 0===t)throw Error(`Shared config entry ${xd} can't be undefined, got "${t}"`);return!Rd(t)}},default:void 0};var Nd=n(82112),Od=n(56564),Ld=n(53872),Bd=n(92052),_d=n(77702),kd=n(52989),Ud=n(28075),$d=n(7940),Md=n(66391),Gd=n(55425),Fd=n(6141),jd=n(83749),Wd=n(4866),qd=n(79931),zd=n(96440),Vd=n(51011),Hd=n(93501),Kd=n(22461);class Yd extends Wd.M{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n}){super({defaultNamespace:e}),this.serviceTarget=t,this.codec=new Hd.V({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!n,this.mixin=new Vd.U(this.awsQueryCompatible)}async serializeRequest(e,t,n){const r=await super.serializeRequest(e,t,n);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),"unit"!==(0,qd.L)(e.input)&&r.body||(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,n);const i=(0,Kd.cJ)(n,r)??"Unknown",{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,r,s),c=zd.l.of(o),u=r.message??r.Message??"Unknown",l=new(O.O.for(o[1]).getErrorCtor(o)??Error)(u),d={};for(const[e,t]of c.structIterator()){const n=t.getMergedTraits().jsonName??e;d[e]=this.codec.createDeserializer().readObject(t,r[n])}throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,d),this.mixin.decorateServiceException(Object.assign(l,a,{$fault:c.getMergedTraits().error,message:u},d),r)}}class Qd extends Yd{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:n})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}var Jd=n(17209),Zd=n(71918),Xd=n(12544),ep=n(39181),tp=n(40935),np=n(2914),rp=n(99609),sp=n(21954),ip=n(92385),op=n(97979);const ap="required",cp="type",up="rules",lp="conditions",dp="fn",pp="argv",mp="ref",hp="assign",fp="url",gp="properties",yp="headers",bp="metricValues",Ep="error",Sp="stringEquals",Tp="https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",Cp="endpoint",Ip="tree",Dp="dynamodb",Ap={[ap]:!1,[cp]:"string"},wp={[ap]:!0,default:!1,[cp]:"boolean"},vp={[dp]:"isSet",[pp]:[{[mp]:"Endpoint"}]},xp={[mp]:"Endpoint"},Rp={[dp]:"isSet",[pp]:[{[mp]:"Region"}]},Pp={[mp]:"Region"},Np={[dp]:"aws.partition",[pp]:[Pp],[hp]:"PartitionResult"},Op={[lp]:[{[dp]:"booleanEquals",[pp]:[{[mp]:"UseFIPS"},!0]}],[Ep]:"Invalid Configuration: FIPS and custom endpoint are not supported",[cp]:Ep},Lp={[dp]:"booleanEquals",[pp]:[{[mp]:"UseFIPS"},!0]},Bp={[lp]:[{[dp]:"booleanEquals",[pp]:[{[mp]:"UseDualStack"},!0]}],[Ep]:"Invalid Configuration: Dualstack and custom endpoint are not supported",[cp]:Ep},_p={[dp]:"booleanEquals",[pp]:[{[mp]:"UseDualStack"},!0]},kp={[Cp]:{[fp]:"{Endpoint}",[gp]:{},[yp]:{}},[cp]:Cp},Up={},$p={[dp]:"booleanEquals",[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"PartitionResult"},"supportsFIPS"]},!0]},Mp={[dp]:"booleanEquals",[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"PartitionResult"},"supportsDualStack"]},!0]},Gp={[lp]:[{[dp]:"isSet",[pp]:[{[mp]:"AccountIdEndpointMode"}]},{[dp]:Sp,[pp]:[{[mp]:"AccountIdEndpointMode"},"required"]}],[up]:[{[Ep]:"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",[cp]:Ep}],[cp]:Ip},Fp={[dp]:"getAttr",[pp]:[{[mp]:"PartitionResult"},"name"]},jp={[Cp]:{[fp]:"https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",[gp]:{},[yp]:{}},[cp]:Cp},Wp={[fp]:"https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",[gp]:{[bp]:["O"]},[yp]:{}},qp={[bp]:["O"]},zp={[Ep]:"Credentials-sourced account ID parameter is invalid",[cp]:Ep},Vp={[lp]:[{[dp]:"isSet",[pp]:[{[mp]:"AccountIdEndpointMode"}]},{[dp]:Sp,[pp]:[{[mp]:"AccountIdEndpointMode"},"required"]}],[up]:[{[lp]:[{[dp]:"not",[pp]:[Lp]}],[up]:[{[lp]:[{[dp]:Sp,[pp]:[Fp,"aws"]}],[up]:[{[Ep]:"AccountIdEndpointMode is required but no AccountID was provided or able to be loaded",[cp]:Ep}],[cp]:Ip},{[Ep]:"Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition",[cp]:Ep}],[cp]:Ip},{[Ep]:"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",[cp]:Ep}],[cp]:Ip},Hp={[fp]:"https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",[gp]:qp,[yp]:{}},Kp=[Lp],Yp=[_p],Qp=[{[dp]:"isSet",[pp]:[{[mp]:"AccountIdEndpointMode"}]},{[dp]:"not",[pp]:[{[dp]:Sp,[pp]:[{[mp]:"AccountIdEndpointMode"},"disabled"]}]},{[dp]:Sp,[pp]:[Fp,"aws"]},{[dp]:"not",[pp]:[Lp]},{[dp]:"isSet",[pp]:[{[mp]:"ResourceArn"}]},{[dp]:"aws.parseArn",[pp]:[{[mp]:"ResourceArn"}],[hp]:"ParsedArn"},{[dp]:Sp,[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"service"]},Dp]},{[dp]:"isValidHostLabel",[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"region"]},!1]},{[dp]:Sp,[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"region"]},"{Region}"]},{[dp]:"isValidHostLabel",[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"accountId"]},!1]}],Jp=[{[dp]:"isSet",[pp]:[{[mp]:"AccountIdEndpointMode"}]},{[dp]:"not",[pp]:[{[dp]:Sp,[pp]:[{[mp]:"AccountIdEndpointMode"},"disabled"]}]},{[dp]:Sp,[pp]:[Fp,"aws"]},{[dp]:"not",[pp]:[Lp]},{[dp]:"isSet",[pp]:[{[mp]:"ResourceArnList"}]},{[dp]:"getAttr",[pp]:[{[mp]:"ResourceArnList"},"[0]"],[hp]:"FirstArn"},{[dp]:"aws.parseArn",[pp]:[{[mp]:"FirstArn"}],[hp]:"ParsedArn"},{[dp]:Sp,[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"service"]},Dp]},{[dp]:"isValidHostLabel",[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"region"]},!1]},{[dp]:Sp,[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"region"]},"{Region}"]},{[dp]:"isValidHostLabel",[pp]:[{[dp]:"getAttr",[pp]:[{[mp]:"ParsedArn"},"accountId"]},!1]}],Zp=[{[dp]:"isSet",[pp]:[{[mp]:"AccountIdEndpointMode"}]},{[dp]:"not",[pp]:[{[dp]:Sp,[pp]:[{[mp]:"AccountIdEndpointMode"},"disabled"]}]},{[dp]:Sp,[pp]:[Fp,"aws"]},{[dp]:"not",[pp]:[Lp]},{[dp]:"isSet",[pp]:[{[mp]:"AccountId"}]}],Xp=[{[dp]:"isValidHostLabel",[pp]:[{[mp]:"AccountId"},!1]}],em={version:"1.0",parameters:{Region:Ap,UseDualStack:wp,UseFIPS:wp,Endpoint:Ap,AccountId:Ap,AccountIdEndpointMode:Ap,ResourceArn:Ap,ResourceArnList:{[ap]:!1,[cp]:"stringArray"}},[up]:[{[lp]:[vp,Rp,Np],[up]:[Op,Bp,{[lp]:[{[dp]:Sp,[pp]:[xp,Tp]}],error:"Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html",[cp]:Ep},kp],[cp]:Ip},{[lp]:[vp],[up]:[Op,Bp,kp],[cp]:Ip},{[lp]:[Rp],[up]:[{[lp]:[Np],[up]:[{[lp]:[{[dp]:Sp,[pp]:[Pp,"local"]}],[up]:[{[lp]:Kp,error:"Invalid Configuration: FIPS and local endpoint are not supported",[cp]:Ep},{[lp]:Yp,error:"Invalid Configuration: Dualstack and local endpoint are not supported",[cp]:Ep},{endpoint:{[fp]:"http://localhost:8000",[gp]:{authSchemes:[{name:"sigv4",signingName:Dp,signingRegion:"us-east-1"}]},[yp]:Up},[cp]:Cp}],[cp]:Ip},{[lp]:[Lp,_p],[up]:[{[lp]:[$p,Mp],[up]:[Gp,{endpoint:{[fp]:"https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[gp]:Up,[yp]:Up},[cp]:Cp}],[cp]:Ip},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[cp]:Ep}],[cp]:Ip},{[lp]:Kp,[up]:[{[lp]:[$p],[up]:[{[lp]:[{[dp]:Sp,[pp]:[Fp,"aws-us-gov"]}],[up]:[Gp,jp],[cp]:Ip},Gp,{endpoint:{[fp]:"https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",[gp]:Up,[yp]:Up},[cp]:Cp}],[cp]:Ip},{error:"FIPS is enabled but this partition does not support FIPS",[cp]:Ep}],[cp]:Ip},{[lp]:Yp,[up]:[{[lp]:[Mp],[up]:[{[lp]:Qp,endpoint:Wp,[cp]:Cp},{[lp]:Jp,endpoint:Wp,[cp]:Cp},{[lp]:Zp,[up]:[{[lp]:Xp,[up]:[{endpoint:{[fp]:"https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",[gp]:qp,[yp]:Up},[cp]:Cp}],[cp]:Ip},zp],[cp]:Ip},Vp,{endpoint:{[fp]:Tp,[gp]:Up,[yp]:Up},[cp]:Cp}],[cp]:Ip},{error:"DualStack is enabled but this partition does not support DualStack",[cp]:Ep}],[cp]:Ip},{[lp]:Qp,endpoint:Hp,[cp]:Cp},{[lp]:Jp,endpoint:Hp,[cp]:Cp},{[lp]:Zp,[up]:[{[lp]:Xp,[up]:[{endpoint:{[fp]:"https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",[gp]:qp,[yp]:Up},[cp]:Cp}],[cp]:Ip},zp],[cp]:Ip},Vp,jp],[cp]:Ip}],[cp]:Ip},{error:"Invalid Configuration: Missing Region",[cp]:Ep}]},tm=new sp.k({size:50,params:["AccountId","AccountIdEndpointMode","Endpoint","Region","ResourceArn","ResourceArnList","UseDualStack","UseFIPS"]}),nm=(e,t={})=>tm.get(e,()=>(0,ip.s)(em,{endpointParams:e,logger:t.logger}));op.m.aws=rp.UF;var rm=n(74783),sm=n(85397),im=n(56602);var om=n(79532),am=n(81355),cm=n(91415);class um extends D.K{config;constructor(...[e]){const t=(e=>{(0,im.I)(process.version);const t=(0,sm.I)(e),n=()=>t().then(rm.l),r=(e=>({apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??Xd.E,base64Encoder:e?.base64Encoder??ep.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??nm,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??x,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new jd.f2}],logger:e?.logger??new Jd.N,protocol:e?.protocol??new Qd({defaultNamespace:"com.amazonaws.dynamodb",serviceTarget:"DynamoDB_20120810",awsQueryCompatible:!1}),serviceId:e?.serviceId??"DynamoDB",urlParser:e?.urlParser??Zd.D,utf8Decoder:e?.utf8Decoder??tp.a,utf8Encoder:e?.utf8Encoder??np.P}))(e);(0,hd.I)(process.version);const s={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:"node",defaultsMode:t,accountIdEndpointMode:e?.accountIdEndpointMode??(0,Ud.Z)(bd,s),authSchemePreference:e?.authSchemePreference??(0,Ud.Z)(fd.$,s),bodyLengthChecker:e?.bodyLengthChecker??Gd.n,credentialDefaultProvider:e?.credentialDefaultProvider??Ad,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Nd.pf)({serviceId:r.serviceId,clientVersion:"3.940.0"}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??(0,Ud.Z)(Pd,s),maxAttempts:e?.maxAttempts??(0,Ud.Z)(C.qs,e),region:e?.region??(0,Ud.Z)(Ld.GG,{...Ld.zH,...s}),requestHandler:$d.$.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,Ud.Z)({...C.kN,default:async()=>(await n()).retryMode||Fd.L0},e),sha256:e?.sha256??kd.V.bind(null,"sha256"),streamCollector:e?.streamCollector??Md.k,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Ud.Z)(Bd.e$,s),useFipsEndpoint:e?.useFipsEndpoint??(0,Ud.Z)(_d.Ko,s),userAgentAppId:e?.userAgentAppId??(0,Ud.Z)(Od.hV,s)}})(e||{});var n;super(t),this.initConfig=t;const i=(e=>{const{accountIdEndpointMode:t}=e,n=(0,r.t)(t??s);return Object.assign(e,{accountIdEndpointMode:async()=>{const e=await n();if(!o(e))throw new Error(`Invalid value for accountIdEndpointMode: ${e}. Valid values are: "required", "preferred", "disabled".`);return e}})})((n=t,Object.assign(n,{useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"dynamodb"}))),a=(0,m.D)(i),c=(0,C.$z)(a),D=(0,f.T)(c),w=(0,l.OV)(D),R=((e,t)=>{const n=Object.assign((0,om.R)(e),(0,cm.xA)(e),(0,am.e)(e),(e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex(t=>t.schemeId===e.schemeId);-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){r=e},credentials:()=>r}})(e));return t.forEach(e=>e.configure(n)),Object.assign(e,(0,om.$)(n),(0,cm.uv)(n),(0,am.j)(n),{httpAuthSchemes:(r=n).httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()});var r})(((e,{endpointDiscoveryCommandCtor:t})=>{const{endpointCacheSize:n,endpointDiscoveryEnabled:r,endpointDiscoveryEnabledProvider:s}=e;return Object.assign(e,{endpointDiscoveryCommandCtor:t,endpointCache:new u(n??1e3),endpointDiscoveryEnabled:void 0!==r?()=>Promise.resolve(r):s,isClientEndpointDiscoveryEnabled:void 0!==r})})((e=>{const t=(0,A.h)(e);return Object.assign(t,{authSchemePreference:(0,r.t)(e.authSchemePreference??[])})})((0,T.C)(w)),{endpointDiscoveryCommandCtor:md}),e?.extensions||[]);this.config=R,this.middlewareStack.use((0,E.wq)(this.config)),this.middlewareStack.use((0,h.sM)(this.config)),this.middlewareStack.use((0,I.ey)(this.config)),this.middlewareStack.use((0,S.vK)(this.config)),this.middlewareStack.use((0,l.TC)(this.config)),this.middlewareStack.use((0,d.Y7)(this.config)),this.middlewareStack.use((0,p.n)(this.config)),this.middlewareStack.use((0,g.w)(this.config,{httpAuthSchemeParametersProvider:v,identityProviderConfigProvider:async e=>new y.h({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,b.l)(this.config))}destroy(){super.destroy()}}class lm extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchExecuteStatement",{}).n("DynamoDBClient","BatchExecuteStatementCommand").sc(ll).build()){}class dm extends(P.u.classBuilder().ep({...N,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchGetItem",{}).n("DynamoDBClient","BatchGetItemCommand").sc(dl).build()){}class pm extends(P.u.classBuilder().ep({...N,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchWriteItem",{}).n("DynamoDBClient","BatchWriteItemCommand").sc(pl).build()){}class mm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","CreateBackup",{}).n("DynamoDBClient","CreateBackupCommand").sc(ml).build()){}class hm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","CreateGlobalTable",{}).n("DynamoDBClient","CreateGlobalTableCommand").sc(hl).build()){}class fm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","CreateTable",{}).n("DynamoDBClient","CreateTableCommand").sc(fl).build()){}class gm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"BackupArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteBackup",{}).n("DynamoDBClient","DeleteBackupCommand").sc(gl).build()){}class ym extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteItem",{}).n("DynamoDBClient","DeleteItemCommand").sc(yl).build()){}class bm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteResourcePolicy",{}).n("DynamoDBClient","DeleteResourcePolicyCommand").sc(bl).build()){}class Em extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteTable",{}).n("DynamoDBClient","DeleteTableCommand").sc(El).build()){}class Sm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"BackupArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeBackup",{}).n("DynamoDBClient","DescribeBackupCommand").sc(Sl).build()){}class Tm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeContinuousBackups",{}).n("DynamoDBClient","DescribeContinuousBackupsCommand").sc(Tl).build()){}class Cm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeContributorInsights",{}).n("DynamoDBClient","DescribeContributorInsightsCommand").sc(Cl).build()){}class Im extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ExportArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeExport",{}).n("DynamoDBClient","DescribeExportCommand").sc(Dl).build()){}class Dm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeGlobalTable",{}).n("DynamoDBClient","DescribeGlobalTableCommand").sc(Al).build()){}class Am extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeGlobalTableSettings",{}).n("DynamoDBClient","DescribeGlobalTableSettingsCommand").sc(wl).build()){}class wm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ImportArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeImport",{}).n("DynamoDBClient","DescribeImportCommand").sc(vl).build()){}class vm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeKinesisStreamingDestination",{}).n("DynamoDBClient","DescribeKinesisStreamingDestinationCommand").sc(xl).build()){}class xm extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeLimits",{}).n("DynamoDBClient","DescribeLimitsCommand").sc(Rl).build()){}class Rm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeTable",{}).n("DynamoDBClient","DescribeTableCommand").sc(Pl).build()){}class Pm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeTableReplicaAutoScaling",{}).n("DynamoDBClient","DescribeTableReplicaAutoScalingCommand").sc(Nl).build()){}class Nm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeTimeToLive",{}).n("DynamoDBClient","DescribeTimeToLiveCommand").sc(Ol).build()){}class Om extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DisableKinesisStreamingDestination",{}).n("DynamoDBClient","DisableKinesisStreamingDestinationCommand").sc(Ll).build()){}class Lm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","EnableKinesisStreamingDestination",{}).n("DynamoDBClient","EnableKinesisStreamingDestinationCommand").sc(Bl).build()){}class Bm extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExecuteStatement",{}).n("DynamoDBClient","ExecuteStatementCommand").sc(_l).build()){}class _m extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExecuteTransaction",{}).n("DynamoDBClient","ExecuteTransactionCommand").sc(kl).build()){}class km extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExportTableToPointInTime",{}).n("DynamoDBClient","ExportTableToPointInTimeCommand").sc(Ul).build()){}class Um extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","GetItem",{}).n("DynamoDBClient","GetItemCommand").sc($l).build()){}class $m extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","GetResourcePolicy",{}).n("DynamoDBClient","GetResourcePolicyCommand").sc(Ml).build()){}class Mm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"operationContextParams",get:e=>e?.TableCreationParameters?.TableName}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ImportTable",{}).n("DynamoDBClient","ImportTableCommand").sc(Gl).build()){}class Gm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListBackups",{}).n("DynamoDBClient","ListBackupsCommand").sc(Fl).build()){}class Fm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListContributorInsights",{}).n("DynamoDBClient","ListContributorInsightsCommand").sc(jl).build()){}class jm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListExports",{}).n("DynamoDBClient","ListExportsCommand").sc(Wl).build()){}class Wm extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListGlobalTables",{}).n("DynamoDBClient","ListGlobalTablesCommand").sc(ql).build()){}class qm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListImports",{}).n("DynamoDBClient","ListImportsCommand").sc(zl).build()){}class zm extends(P.u.classBuilder().ep(N).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListTables",{}).n("DynamoDBClient","ListTablesCommand").sc(Vl).build()){}class Vm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ListTagsOfResource",{}).n("DynamoDBClient","ListTagsOfResourceCommand").sc(Hl).build()){}class Hm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","PutItem",{}).n("DynamoDBClient","PutItemCommand").sc(Kl).build()){}class Km extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","PutResourcePolicy",{}).n("DynamoDBClient","PutResourcePolicyCommand").sc(Yl).build()){}class Ym extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","Query",{}).n("DynamoDBClient","QueryCommand").sc(Ql).build()){}class Qm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TargetTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","RestoreTableFromBackup",{}).n("DynamoDBClient","RestoreTableFromBackupCommand").sc(Jl).build()){}class Jm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TargetTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","RestoreTableToPointInTime",{}).n("DynamoDBClient","RestoreTableToPointInTimeCommand").sc(Zl).build()){}class Zm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","Scan",{}).n("DynamoDBClient","ScanCommand").sc(Xl).build()){}class Xm extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TagResource",{}).n("DynamoDBClient","TagResourceCommand").sc(ed).build()){}class eh extends(P.u.classBuilder().ep({...N,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map(e=>e?.Get?.TableName)}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TransactGetItems",{}).n("DynamoDBClient","TransactGetItemsCommand").sc(td).build()){}class th extends(P.u.classBuilder().ep({...N,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map(e=>[e?.ConditionCheck?.TableName,e?.Put?.TableName,e?.Delete?.TableName,e?.Update?.TableName].filter(e=>e)).flat()}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TransactWriteItems",{}).n("DynamoDBClient","TransactWriteItemsCommand").sc(nd).build()){}class nh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"ResourceArn"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UntagResource",{}).n("DynamoDBClient","UntagResourceCommand").sc(rd).build()){}class rh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateContinuousBackups",{}).n("DynamoDBClient","UpdateContinuousBackupsCommand").sc(sd).build()){}class sh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateContributorInsights",{}).n("DynamoDBClient","UpdateContributorInsightsCommand").sc(id).build()){}class ih extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateGlobalTable",{}).n("DynamoDBClient","UpdateGlobalTableCommand").sc(od).build()){}class oh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"GlobalTableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateGlobalTableSettings",{}).n("DynamoDBClient","UpdateGlobalTableSettingsCommand").sc(ad).build()){}class ah extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateItem",{}).n("DynamoDBClient","UpdateItemCommand").sc(cd).build()){}class ch extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateKinesisStreamingDestination",{}).n("DynamoDBClient","UpdateKinesisStreamingDestinationCommand").sc(ud).build()){}class uh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateTable",{}).n("DynamoDBClient","UpdateTableCommand").sc(ld).build()){}class lh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateTableReplicaAutoScaling",{}).n("DynamoDBClient","UpdateTableReplicaAutoScalingCommand").sc(dd).build()){}class dh extends(P.u.classBuilder().ep({...N,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,n,r){return[(0,R.r)(n,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateTimeToLive",{}).n("DynamoDBClient","UpdateTimeToLiveCommand").sc(pd).build()){}const ph={BatchExecuteStatementCommand:lm,BatchGetItemCommand:dm,BatchWriteItemCommand:pm,CreateBackupCommand:mm,CreateGlobalTableCommand:hm,CreateTableCommand:fm,DeleteBackupCommand:gm,DeleteItemCommand:ym,DeleteResourcePolicyCommand:bm,DeleteTableCommand:Em,DescribeBackupCommand:Sm,DescribeContinuousBackupsCommand:Tm,DescribeContributorInsightsCommand:Cm,DescribeEndpointsCommand:md,DescribeExportCommand:Im,DescribeGlobalTableCommand:Dm,DescribeGlobalTableSettingsCommand:Am,DescribeImportCommand:wm,DescribeKinesisStreamingDestinationCommand:vm,DescribeLimitsCommand:xm,DescribeTableCommand:Rm,DescribeTableReplicaAutoScalingCommand:Pm,DescribeTimeToLiveCommand:Nm,DisableKinesisStreamingDestinationCommand:Om,EnableKinesisStreamingDestinationCommand:Lm,ExecuteStatementCommand:Bm,ExecuteTransactionCommand:_m,ExportTableToPointInTimeCommand:km,GetItemCommand:Um,GetResourcePolicyCommand:$m,ImportTableCommand:Mm,ListBackupsCommand:Gm,ListContributorInsightsCommand:Fm,ListExportsCommand:jm,ListGlobalTablesCommand:Wm,ListImportsCommand:qm,ListTablesCommand:zm,ListTagsOfResourceCommand:Vm,PutItemCommand:Hm,PutResourcePolicyCommand:Km,QueryCommand:Ym,RestoreTableFromBackupCommand:Qm,RestoreTableToPointInTimeCommand:Jm,ScanCommand:Zm,TagResourceCommand:Xm,TransactGetItemsCommand:eh,TransactWriteItemsCommand:th,UntagResourceCommand:nh,UpdateContinuousBackupsCommand:rh,UpdateContributorInsightsCommand:sh,UpdateGlobalTableCommand:ih,UpdateGlobalTableSettingsCommand:oh,UpdateItemCommand:ah,UpdateKinesisStreamingDestinationCommand:ch,UpdateTableCommand:uh,UpdateTableReplicaAutoScalingCommand:lh,UpdateTimeToLiveCommand:dh};class mh extends um{}((e,t)=>{for(const n of Object.keys(e)){const r=e[n],s=async function(e,t,n){const s=new r(e);if("function"==typeof t)this.send(s,t);else{if("function"!=typeof n)return this.send(s,t);if("object"!=typeof t)throw new Error("Expected http options but got "+typeof t);this.send(s,t||{},n)}},i=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[i]=s}})(ph,mh);const hh=async(e,t,n,r=e=>e,...s)=>{let i=new e(n);return i=r(i)??i,await t.send(i,...s)};function fh(e,t,n,r,s){return async function*(i,o,...a){const c=o;let u,l=i.startingToken??c[n],d=!0;for(;d;){if(c[n]=l,s&&(c[s]=c[s]??i.pageSize),!(i.client instanceof e))throw new Error(`Invalid client, expected instance of ${e.name}`);u=await hh(t,i.client,o,i.withCommand,...a),yield u;const p=l;l=gh(u,r),d=!(!l||i.stopOnSameToken&&l===p)}}}const gh=(e,t)=>{let n=e;const r=t.split(".");for(const e of r){if(!n||"object"!=typeof n)return;n=n[e]}return n},yh=fh(um,Fm,"NextToken","NextToken","MaxResults"),bh=fh(um,jm,"NextToken","NextToken","MaxResults"),Eh=fh(um,qm,"NextToken","NextToken","PageSize"),Sh=fh(um,zm,"ExclusiveStartTableName","LastEvaluatedTableName","Limit"),Th=fh(um,Ym,"ExclusiveStartKey","LastEvaluatedKey","Limit"),Ch=fh(um,Zm,"ExclusiveStartKey","LastEvaluatedKey","Limit"),Ih=()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return"[Circular]";e.add(n)}return n}},Dh={minDelay:2,maxDelay:120};var Ah;!function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"}(Ah||(Ah={}));const wh=e=>{if(e.state===Ah.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},Ih())}`);throw t.name="AbortError",t}if(e.state===Ah.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},Ih())}`);throw t.name="TimeoutError",t}if(e.state!==Ah.SUCCESS)throw new Error(`${JSON.stringify(e,Ih())}`);return e},vh=e=>new Promise(t=>setTimeout(t,1e3*e)),xh=(e,t,n,r)=>r>n?t:Rh(e,e*2**(r-1)),Rh=(e,t)=>e+Math.random()*(t-e),Ph=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:s,abortSignal:i},o,a)=>{const c={},{state:u,reason:l}=await a(s,o);if(l){const e=Nh(l);c[e]|=0,c[e]+=1}if(u!==Ah.RETRY)return{state:u,reason:l,observedResponses:c};let d=1;const p=Date.now()+1e3*n,m=Math.log(t/e)/Math.log(2)+1;for(;;){if(r?.signal?.aborted||i?.aborted){const e="AbortController signal aborted.";return c[e]|=0,c[e]+=1,{state:Ah.ABORTED,observedResponses:c}}const n=xh(e,t,m,d);if(Date.now()+1e3*n>p)return{state:Ah.TIMEOUT,observedResponses:c};await vh(n);const{state:u,reason:l}=await a(s,o);if(l){const e=Nh(l);c[e]|=0,c[e]+=1}if(u!==Ah.RETRY)return{state:u,reason:l,observedResponses:c};d+=1}},Nh=e=>e?.$responseBodyText?`Deserialization error for body: ${e.$responseBodyText}`:e?.$metadata?.httpStatusCode?e.$response||e.message?`${e.$response.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`:`${e.$metadata.httpStatusCode}: OK`:String(e?.message??JSON.stringify(e,Ih())??"Unknown"),Oh=e=>{let t;const n=new Promise(n=>{t=()=>n({state:Ah.ABORTED}),"function"==typeof e.addEventListener?e.addEventListener("abort",t):e.onabort=t});return{clearListener(){"function"==typeof e.removeEventListener&&e.removeEventListener("abort",t)},aborted:n}},Lh=async(e,t,n)=>{const r={...Dh,...e};(e=>{if(e.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)})(r);const s=[Ph(r,t,n)],i=[];if(e.abortSignal){const{aborted:t,clearListener:n}=Oh(e.abortSignal);i.push(n),s.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=Oh(e.abortController.signal);i.push(n),s.push(t)}return Promise.race(s).then(e=>{for(const e of i)e();return e})},Bh=async(e,t)=>{let n;try{const r=await e.send(new Rm(t));n=r;try{if("ACTIVE"===r.Table.TableStatus)return{state:Ah.SUCCESS,reason:n}}catch(e){}}catch(e){if(n=e,e.name&&"ResourceNotFoundException"==e.name)return{state:Ah.RETRY,reason:n}}return{state:Ah.RETRY,reason:n}},_h=async(e,t)=>Lh({minDelay:20,maxDelay:120,...e},t,Bh),kh=async(e,t)=>{const n=await Lh({minDelay:20,maxDelay:120,...e},t,Bh);return wh(n)},Uh=async(e,t)=>{let n;try{n=await e.send(new Rm(t))}catch(e){if(n=e,e.name&&"ResourceNotFoundException"==e.name)return{state:Ah.SUCCESS,reason:n}}return{state:Ah.RETRY,reason:n}},$h=async(e,t)=>Lh({minDelay:20,maxDelay:120,...e},t,Uh),Mh=async(e,t)=>{const n=await Lh({minDelay:20,maxDelay:120,...e},t,Uh);return wh(n)},Gh={MICROSECOND:"MICROSECOND",MILLISECOND:"MILLISECOND"},Fh={ADD:"ADD",DELETE:"DELETE",PUT:"PUT"},jh={B:"B",N:"N",S:"S"},Wh={AVAILABLE:"AVAILABLE",CREATING:"CREATING",DELETED:"DELETED"},qh={AWS_BACKUP:"AWS_BACKUP",SYSTEM:"SYSTEM",USER:"USER"},zh={PAY_PER_REQUEST:"PAY_PER_REQUEST",PROVISIONED:"PROVISIONED"},Vh={HASH:"HASH",RANGE:"RANGE"},Hh={ALL:"ALL",INCLUDE:"INCLUDE",KEYS_ONLY:"KEYS_ONLY"},Kh={AES256:"AES256",KMS:"KMS"},Yh={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING",UPDATING:"UPDATING"},Qh={KEYS_ONLY:"KEYS_ONLY",NEW_AND_OLD_IMAGES:"NEW_AND_OLD_IMAGES",NEW_IMAGE:"NEW_IMAGE",OLD_IMAGE:"OLD_IMAGE"},Jh={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING"},Zh={ALL:"ALL",AWS_BACKUP:"AWS_BACKUP",SYSTEM:"SYSTEM",USER:"USER"},Xh={INDEXES:"INDEXES",NONE:"NONE",TOTAL:"TOTAL"},ef={ALL_OLD:"ALL_OLD",NONE:"NONE"},tf={AccessDenied:"AccessDenied",ConditionalCheckFailed:"ConditionalCheckFailed",DuplicateItem:"DuplicateItem",InternalServerError:"InternalServerError",ItemCollectionSizeLimitExceeded:"ItemCollectionSizeLimitExceeded",ProvisionedThroughputExceeded:"ProvisionedThroughputExceeded",RequestLimitExceeded:"RequestLimitExceeded",ResourceNotFound:"ResourceNotFound",ThrottlingError:"ThrottlingError",TransactionConflict:"TransactionConflict",ValidationError:"ValidationError"},nf={NONE:"NONE",SIZE:"SIZE"},rf={BEGINS_WITH:"BEGINS_WITH",BETWEEN:"BETWEEN",CONTAINS:"CONTAINS",EQ:"EQ",GE:"GE",GT:"GT",IN:"IN",LE:"LE",LT:"LT",NE:"NE",NOT_CONTAINS:"NOT_CONTAINS",NOT_NULL:"NOT_NULL",NULL:"NULL"},sf={AND:"AND",OR:"OR"},of={DISABLED:"DISABLED",ENABLED:"ENABLED"},af={DISABLED:"DISABLED",ENABLED:"ENABLED"},cf={DISABLE:"DISABLE",ENABLE:"ENABLE"},uf={ACCESSED_AND_THROTTLED_KEYS:"ACCESSED_AND_THROTTLED_KEYS",THROTTLED_KEYS:"THROTTLED_KEYS"},lf={DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLED:"ENABLED",ENABLING:"ENABLING",FAILED:"FAILED"},df={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING",UPDATING:"UPDATING"},pf={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING",UPDATING:"UPDATING"},mf={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED",ARCHIVING:"ARCHIVING",CREATING:"CREATING",CREATION_FAILED:"CREATION_FAILED",DELETING:"DELETING",INACCESSIBLE_ENCRYPTION_CREDENTIALS:"INACCESSIBLE_ENCRYPTION_CREDENTIALS",REGION_DISABLED:"REGION_DISABLED",REPLICATION_NOT_AUTHORIZED:"REPLICATION_NOT_AUTHORIZED",UPDATING:"UPDATING"},hf={STANDARD:"STANDARD",STANDARD_INFREQUENT_ACCESS:"STANDARD_INFREQUENT_ACCESS"},ff={ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED",ARCHIVING:"ARCHIVING",CREATING:"CREATING",DELETING:"DELETING",INACCESSIBLE_ENCRYPTION_CREDENTIALS:"INACCESSIBLE_ENCRYPTION_CREDENTIALS",REPLICATION_NOT_AUTHORIZED:"REPLICATION_NOT_AUTHORIZED",UPDATING:"UPDATING"},gf={ACTIVE:"ACTIVE",CREATING:"CREATING",DELETING:"DELETING"},yf={EVENTUAL:"EVENTUAL",STRONG:"STRONG"},bf={ALL_NEW:"ALL_NEW",ALL_OLD:"ALL_OLD",NONE:"NONE",UPDATED_NEW:"UPDATED_NEW",UPDATED_OLD:"UPDATED_OLD"},Ef={DYNAMODB_JSON:"DYNAMODB_JSON",ION:"ION"},Sf={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Tf={FULL_EXPORT:"FULL_EXPORT",INCREMENTAL_EXPORT:"INCREMENTAL_EXPORT"},Cf={NEW_AND_OLD_IMAGES:"NEW_AND_OLD_IMAGES",NEW_IMAGE:"NEW_IMAGE"},If={AES256:"AES256",KMS:"KMS"},Df={CANCELLED:"CANCELLED",CANCELLING:"CANCELLING",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Af={GZIP:"GZIP",NONE:"NONE",ZSTD:"ZSTD"},wf={CSV:"CSV",DYNAMODB_JSON:"DYNAMODB_JSON",ION:"ION"},vf={ACTIVE:"ACTIVE",DISABLED:"DISABLED",DISABLING:"DISABLING",ENABLE_FAILED:"ENABLE_FAILED",ENABLING:"ENABLING",UPDATING:"UPDATING"},xf={ALL_ATTRIBUTES:"ALL_ATTRIBUTES",ALL_PROJECTED_ATTRIBUTES:"ALL_PROJECTED_ATTRIBUTES",COUNT:"COUNT",SPECIFIC_ATTRIBUTES:"SPECIFIC_ATTRIBUTES"}},91349:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r=(e,t,n)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}}},91415:(e,t,n)=>{"use strict";var r;n.d(t,{xA:()=>s,uv:()=>i}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(r||(r={}));const s=e=>Object.assign((e=>{const t=[];for(const n in r){const s=r[n];void 0!==e[s]&&t.push({algorithmId:()=>s,checksumConstructor:()=>e[s]})}return{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)),i=e=>Object.assign((e=>{const t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t})(e),(e=>{const t={};return t.retryStrategy=e.retryStrategy(),t})(e))},91677:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});const r=e=>"string"==typeof e&&e.length>0?e.split(",").map(e=>e.trim()):[],s="AWS_AUTH_SCHEME_PREFERENCE",i="auth_scheme_preference",o={environmentVariableSelector:(e,t)=>t?.signingName&&`AWS_BEARER_TOKEN_${t.signingName.replace(/[\s-]/g,"_").toUpperCase()}`in e?["httpBearerAuth"]:s in e?r(e[s]):void 0,configFileSelector:e=>{if(i in e)return r(e[i])},default:[]}},92052:(e,t,n)=>{"use strict";n.d(t,{e$:()=>i});var r=n(91349),s=n(18241);const i={environmentVariableSelector:e=>(0,r.Q)(e,"AWS_USE_DUALSTACK_ENDPOINT",s.c.ENV),configFileSelector:e=>(0,r.Q)(e,"use_dualstack_endpoint",s.c.CONFIG),default:!1}},92255:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(28075),s=n(45223);const i="AWS_ENDPOINT_URL",o="endpoint_url",a=async e=>(0,r.Z)((e=>({environmentVariableSelector:t=>{const n=e.split(" ").map(e=>e.toUpperCase()),r=t[[i,...n].join("_")];return r||(t[i]||void 0)},configFileSelector:(t,n)=>{if(n&&t.services){const r=n[["services",t.services].join(s.Q)];if(r){const t=r[[e.split(" ").map(e=>e.toLowerCase()).join("_"),o].join(s.Q)];if(t)return t}}const r=t[o];if(r)return r},default:void 0}))(e??""))()},92278:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,n:()=>o});const r={},s={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),r[e]=t,s[t]=e}function i(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 n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(!(r in s))throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`);t[n/2]=s[r]}return t}function o(e){let t="";for(let n=0;n<e.byteLength;n++)t+=r[e[n]];return t}},92385:(e,t,n)=>{"use strict";n.d(t,{s:()=>x});const r="endpoints";function s(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${s(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(s).join(", ")})`:JSON.stringify(e,null,2)}class i extends Error{constructor(e){super(e),this.name="EndpointError"}}var o=n(97979);const a=(e,t)=>(e=>{const t=e.split("."),n=[];for(const r of t){const t=r.indexOf("[");if(-1!==t){if(r.indexOf("]")!==r.length-1)throw new i(`Path: '${e}' does not end with ']'`);const s=r.slice(t+1,-1);if(Number.isNaN(parseInt(s)))throw new i(`Invalid array index: '${s}' in path: '${e}'`);0!==t&&n.push(r.slice(0,t)),n.push(s)}else n.push(r)}return n})(t).reduce((n,r)=>{if("object"!=typeof n)throw new i(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e);var c,u=n(73882);!function(e){e.HTTP="http",e.HTTPS="https"}(c||(c={}));var l=n(67285);const d={[c.HTTP]:80,[c.HTTPS]:443},p={booleanEquals:(e,t)=>e===t,getAttr:a,isSet:e=>null!=e,isValidHostLabel:u.X,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:n,protocol:r="",path:s="",query:i={}}=e,o=new URL(`${r}//${t}${n?`:${n}`:""}${s}`);return o.search=Object.entries(i).map(([e,t])=>`${e}=${t}`).join("&"),o}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:s,pathname:i,protocol:o,search:a}=t;if(a)return null;const u=o.slice(0,-1);if(!Object.values(c).includes(u))return null;const p=(0,l.o)(s);return{scheme:u,authority:`${r}${n.includes(`${r}:${d[u]}`)||"string"==typeof e&&e.includes(`${r}:${d[u]}`)?`:${d[u]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:p}},stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>t>=n||e.length<n?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},m=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const t=e.indexOf("{",s);if(-1===t){n.push(e.slice(s));break}n.push(e.slice(s,t));const i=e.indexOf("}",t);if(-1===i){n.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(n.push(e.slice(t+1,i)),s=i+2);const o=e.substring(t+1,i);if(o.includes("#")){const[e,t]=o.split("#");n.push(a(r[e],t))}else n.push(r[o]);s=i+1}return n.join("")},h=(e,t,n)=>{if("string"==typeof e)return m(e,n);if(e.fn)return g.callFunction(e,n);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,n);throw new i(`'${t}': ${String(e)} is not a string, function or reference.`)},f=({fn:e,argv:t},n)=>{const r=t.map(e=>["boolean","number"].includes(typeof e)?e:g.evaluateExpression(e,"arg",n)),s=e.split(".");return s[0]in o.m&&null!=s[1]?o.m[s[0]][s[1]](...r):p[e](...r)},g={evaluateExpression:h,callFunction:f},y=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new i(`'${e}' is already defined in Reference Record.`);const o=f(t,n);return n.logger?.debug?.(`${r} evaluateCondition: ${s(t)} = ${s(o)}`),{result:""===o||!!o,...null!=e&&{toAssign:{name:e,value:o}}}},b=(e=[],t)=>{const n={};for(const i of e){const{result:e,toAssign:o}=y(i,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e)return{result:e};o&&(n[o.name]=o.value,t.logger?.debug?.(`${r} assign: ${o.name} := ${s(o.value)}`))}return{result:!0,referenceRecord:n}},E=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:r.map(e=>{const r=h(e,"Header value entry",t);if("string"!=typeof r)throw new i(`Header '${n}' value '${r}' is not a string`);return r})}),{}),S=(e,t)=>Object.entries(e).reduce((e,[n,r])=>({...e,[n]:C.getEndpointProperty(r,t)}),{}),T=(e,t)=>{if(Array.isArray(e))return e.map(e=>T(e,t));switch(typeof e){case"string":return m(e,t);case"object":if(null===e)throw new i(`Unexpected endpoint property: ${e}`);return C.getEndpointProperties(e,t);case"boolean":return e;default:throw new i("Unexpected endpoint property type: "+typeof e)}},C={getEndpointProperty:T,getEndpointProperties:S},I=(e,t)=>{const n=h(e,"Endpoint URL",t);if("string"==typeof n)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new i("Endpoint URL must be a string, got "+typeof n)},D=(e,t)=>{const{conditions:n,endpoint:i}=e,{result:o,referenceRecord:a}=b(n,t);if(!o)return;const c={...t,referenceRecord:{...t.referenceRecord,...a}},{url:u,properties:l,headers:d}=i;return t.logger?.debug?.(`${r} Resolving endpoint from template: ${s(i)}`),{...null!=d&&{headers:E(d,c)},...null!=l&&{properties:S(l,c)},url:I(u,c)}},A=(e,t)=>{const{conditions:n,error:r}=e,{result:s,referenceRecord:o}=b(n,t);if(s)throw new i(h(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},w=(e,t)=>{for(const n of e)if("endpoint"===n.type){const e=D(n,t);if(e)return e}else if("error"===n.type)A(n,t);else{if("tree"!==n.type)throw new i(`Unknown endpoint rule: ${n}`);{const e=v.evaluateTreeRule(n,t);if(e)return e}}throw new i("Rules evaluation failed")},v={evaluateRules:w,evaluateTreeRule:(e,t)=>{const{conditions:n,rules:r}=e,{result:s,referenceRecord:i}=b(n,t);if(s)return v.evaluateRules(r,{...t,referenceRecord:{...t.referenceRecord,...i}})}},x=(e,t)=>{const{endpointParams:n,logger:o}=t,{parameters:a,rules:c}=e;t.logger?.debug?.(`${r} Initial EndpointParams: ${s(n)}`);const u=Object.entries(a).filter(([,e])=>null!=e.default).map(([e,t])=>[e,t.default]);if(u.length>0)for(const[e,t]of u)n[e]=n[e]??t;const l=Object.entries(a).filter(([,e])=>e.required).map(([e])=>e);for(const e of l)if(null==n[e])throw new i(`Missing required parameter: '${e}'`);const d=w(c,{endpointParams:n,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${r} Resolved endpoint: ${s(d)}`),d}},93501:(e,t,n)=>{"use strict";n.d(t,{V:()=>E});var r=n(57007),s=n(17735),i=n(96440),o=n(74910),a=n(37882),c=n(52123),u=n(12544),l=n(98893);function d(e,t,n){if(n?.source){const e=n.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)))return e.includes(".")?new c.D(e,"bigDecimal"):BigInt(e)}return t}var p=n(22461);class m extends r.B{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,"string"==typeof t?JSON.parse(t,d):await(0,p.Y2)(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=null!==t&&"object"==typeof t,r=i.l.of(e);if(r.isListSchema()&&Array.isArray(t)){const e=r.getValueSchema(),n=[],s=!!r.getMergedTraits().sparse;for(const r of t)(s||null!=r)&&n.push(this._read(e,r));return n}if(r.isMapSchema()&&n){const e=r.getValueSchema(),n={},s=!!r.getMergedTraits().sparse;for(const[r,i]of Object.entries(t))(s||null!=i)&&(n[r]=this._read(e,i));return n}if(r.isStructSchema()&&n){const e={};for(const[n,s]of(0,l.G)(r,t,!!this.settings.jsonName&&"jsonName")){const r=this.settings.jsonName?s.getMergedTraits().jsonName??n:n,i=this._read(s,t[r]);null!=i&&(e[n]=i)}return e}if(r.isBlobSchema()&&"string"==typeof t)return(0,u.E)(t);const d=r.getMergedTraits().mediaType;if(r.isStringSchema()&&"string"==typeof t&&d&&("application/json"===d||d.endsWith("+json")))return o.A.from(t);if(r.isTimestampSchema()&&null!=t)switch((0,s.V)(r,this.settings)){case 5:return(0,a.t_)(t);case 6:return(0,a.xE)(t);case 7:return(0,a.l3)(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(r.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(r.isBigDecimalSchema()&&null!=t){if(t instanceof c.D)return t;const e=t;return"bigDecimal"===e.type&&"string"in e?new c.D(e.string,e.type):new c.D(String(t),"bigDecimal")}if(r.isNumericSchema()&&"string"==typeof t)switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(r.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,s]of Object.entries(t))s instanceof c.D?e[n]=s:e[n]=this._read(r,s);return e}return structuredClone(t)}return t}}var h=n(34708),f=n(39181);const g=String.fromCharCode(925);class y{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof c.D){const e=g+"nv"+this.counter+++"_"+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){const e=t.toString(),n=g+"b"+this.counter+++"_"+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(0===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(const[t,n]of this.values)e=e.replace(t,n);return e}}class b extends r.B{settings;buffer;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=i.l.of(e),this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=i.l.of(e).getName(!0))}flush(){const{rootSchema:e}=this;if(this.rootSchema=void 0,e?.isStructSchema()||e?.isDocumentSchema()){const e=new y;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const r=null!==t&&"object"==typeof t,u=i.l.of(e);if(u.isListSchema()&&Array.isArray(t)){const e=u.getValueSchema(),n=[],r=!!u.getMergedTraits().sparse;for(const s of t)(r||null!=s)&&n.push(this._write(e,s));return n}if(u.isMapSchema()&&r){const e=u.getValueSchema(),n={},r=!!u.getMergedTraits().sparse;for(const[s,i]of Object.entries(t))(r||null!=i)&&(n[s]=this._write(e,i));return n}if(u.isStructSchema()&&r){const e={};for(const[n,r]of(0,l.R)(u,t)){const s=this._write(r,t[n],u);void 0!==s&&(e[this.settings.jsonName?r.getMergedTraits().jsonName??n:n]=s)}return e}if(null!==t||!n?.isStructSchema()){if(u.isBlobSchema()&&(t instanceof Uint8Array||"string"==typeof t)||u.isDocumentSchema()&&t instanceof Uint8Array)return u===this.rootSchema?t:(this.serdeContext?.base64Encoder??f.n)(t);if((u.isTimestampSchema()||u.isDocumentSchema())&&t instanceof Date)switch((0,s.V)(u,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return(0,a.JV)(t);case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}if(u.isNumericSchema()&&"number"==typeof t&&(Math.abs(t)===1/0||isNaN(t)))return String(t);if(u.isStringSchema()){if(void 0===t&&u.isIdempotencyToken())return(0,h.v4)();const e=u.getMergedTraits().mediaType;if(null!=t&&e&&("application/json"===e||e.endsWith("+json")))return o.A.from(t)}if(u.isDocumentSchema()){if(r){const e=Array.isArray(t)?[]:{};for(const[n,r]of Object.entries(t))r instanceof c.D?e[n]=r:e[n]=this._write(u,r);return e}return structuredClone(t)}return t}}}class E extends r.B{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new b(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new m(this.settings);return e.setSerdeContext(this.serdeContext),e}}},93786:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(73882);const s=new Set,i=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),o=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e=(e=>i(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e)("function"==typeof t?await t():t);return((e,t=r.X)=>{if(s.has(e)||t(e))s.add(e);else{if("*"!==e)throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.')}})(e),e},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!i(e)||("function"!=typeof n?Promise.resolve(!!n):n())}})}},96440:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(79931),s=n(83623);class i{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=i.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const n=[];let o=e,u=e;for(this._isMemberSchema=!1;a(o);)n.push(o[1]),o=o[0],u=(0,r.L)(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,(0,s.c)(t))}}else this.memberTraits=0;if(u instanceof i){const e=this.memberTraits;return Object.assign(this,u),this.memberTraits=Object.assign({},e,u.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??u.memberName)}if(this.schema=(0,r.L)(u),c(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(u),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}static of(e){const t=(0,r.L)(e);if(t instanceof i)return t;if(a(t)){const[n,r]=t;if(n instanceof i)return Object.assign(n.getMergedTraits(),(0,s.c)(r)),n;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new i(t)}getSchema(){const e=this.schema;return 0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();return 3===e[0]||-3===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){const e=e=>!(4&~e&&!e?.idempotencyToken),{normalizedTraits:t,traits:n,memberTraits:r}=this;return e(t)||e(n)||e(r)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return(0,s.c)(this.memberTraits)}getOwnTraits(){return(0,s.c)(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const n=this.getSchema();return o([e?15:n[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s="number"==typeof e?63&e:e&&"object"==typeof e&&(n||r)?e[3+e[0]]:t?15:void 0;if(null!=s)return o([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e),r=t[5][n];return o(a(r)?r:[r,0],e)}if(this.isDocumentSchema())return o([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator())e[t]=n}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema();for(let t=0;t<e[4].length;++t)yield[e[4][t],o([e[5][t],0],e[4][t])]}}function o(e,t){return e instanceof i?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new i(e,t)}const a=e=>Array.isArray(e)&&2===e.length,c=e=>Array.isArray(e)&&e.length>=5},97979:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r={}},98367:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});const r=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},98893:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,R:()=>s});var r=n(96440);function*s(e,t){if(e.isUnitSchema())return;const n=e.getSchema();for(let e=0;e<n[4].length;++e){const s=n[4][e],i=new r.l([n[5][e],0],s);(s in t||i.isIdempotencyToken())&&(yield[s,i])}}function*i(e,t,n){if(e.isUnitSchema())return;const s=e.getSchema();let i=Object.keys(t).length;for(let e=0;e<s[4].length&&0!==i;++e){const o=s[4][e],a=new r.l([s[5][e],0],o);let c=o;n&&(c=a.getMergedTraits()[n]??o),c in t&&(yield[o,a],i-=1)}}},99522:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});class r{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e))void 0!==n&&this.authSchemes.set(t,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}},99609:(e,t,n)=>{"use strict";n.d(t,{UF:()=>u,vL:()=>c});var r=n(97979),s=n(73882),i=n(67285);const o=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!o(t))return!1;return!0}return!(!(0,s.X)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,i.o)(e))};let a=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il|mx)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-east-2":{"description":"Asia Pacific (Taipei)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"ap-southeast-5":{"description":"Asia Pacific (Malaysia)"},"ap-southeast-6":{"description":"Asia Pacific (New Zealand)"},"ap-southeast-7":{"description":"Asia Pacific (Thailand)"},"aws-global":{"description":"aws global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"mx-central-1":{"description":"Mexico (Central)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"aws-cn global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-eusc","outputs":{"dnsSuffix":"amazonaws.eu","dualStackDnsSuffix":"api.amazonwebservices.eu","implicitGlobalRegion":"eusc-de-east-1","name":"aws-eusc","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eusc\\\\-(de)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eusc-de-east-1":{"description":"EU (Germany)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"api.aws.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"aws-iso global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"api.aws.scloud","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"aws-iso-b global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"},"us-isob-west-1":{"description":"US ISOB West"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"api.cloud-aws.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-e-global":{"description":"aws-iso-e global region"},"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"api.aws.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-f-global":{"description":"aws-iso-f global region"},"us-isof-east-1":{"description":"US ISOF EAST"},"us-isof-south-1":{"description":"US ISOF SOUTH"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"aws-us-gov global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}}],"version":"1.1"}');const c=()=>"",u={isVirtualHostableS3Bucket:o,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[n,r,s,i,o,...a]=t;return"arn"!==n||""===r||""===s||""===a.join(":")?null:{partition:r,service:s,region:i,accountId:o,resourceId:a.map(e=>e.split("/")).flat()}},partition:e=>{const{partitions:t}=a;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,s]of Object.entries(t))if(n===e)return{...r,...s}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const n=t.find(e=>"aws"===e.id);if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}}};r.m.aws=u}};
|
package/dist/25.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=25,exports.ids=[25],exports.modules={4987:(e,s,o)=>{o.d(s,{C:()=>r});var n=o(76982),t=o(16928),i=o(51362);const r=e=>{const s=(0,n.createHash)("sha1").update(e).digest("hex");return(0,t.join)((0,i.R)(),".aws","sso","cache",`${s}.json`)}},48440:(e,s,o)=>{o.d(s,{a:()=>i,v:()=>r});var n=o(91943),t=o(4987);const i={},r=async e=>{if(i[e])return i[e];const s=(0,t.C)(e),o=await(0,n.readFile)(s,"utf8");return JSON.parse(o)}},49406:(e,s,o)=>{o.d(s,{fromSSO:()=>N});var n=o(84122),t=o(76682),i=o(6721),r=o(26433),a=o(62022),c=o(45223);const l=e=>Object.entries(e).filter(([e])=>e.startsWith(a.I.SSO_SESSION+c.Q)).reduce((e,[s,o])=>({...e,[s.substring(s.indexOf(c.Q)+1)]:o}),{});var g=o(33939),f=o(71078);const p=()=>({}),h=async(e={})=>(0,f.TA)(e.configFilepath??(0,r.g)()).then(g.A).then(l).catch(p);var d=o(53243),w=o(88816);class u extends w.m{name="TokenProviderError";constructor(e,s=!0){super(e,s),Object.setPrototypeOf(this,u.prototype)}}var S=o(48440);const C="To refresh this SSO session run 'aws sso login' with the corresponding profile.",_=e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new u(`Token is expired. ${C}`,!1)},k=(e,s,o=!1)=>{if(void 0===s)throw new u(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${C}`,!1)};var m=o(4987),y=o(79896);const{writeFile:T}=y.promises,x=new Date(0),O=(e={})=>async({callerClientConfig:s}={})=>{const n={...e,parentClientConfig:{...s,...e.parentClientConfig}};n.logger?.debug("@aws-sdk/token-providers - fromSso");const r=await(0,i.Y)(n),a=(0,t.Bz)({profile:n.profile??s?.profile}),c=r[a];if(!c)throw new u(`Profile '${a}' could not be found in shared credentials file.`,!1);if(!c.sso_session)throw new u(`Profile '${a}' is missing required property 'sso_session'.`);const l=c.sso_session,g=(await h(n))[l];if(!g)throw new u(`Sso session '${l}' could not be found in shared credentials file.`,!1);for(const e of["sso_start_url","sso_region"])if(!g[e])throw new u(`Sso session '${l}' is missing required property '${e}'.`,!1);g.sso_start_url;const f=g.sso_region;let p;try{p=await(0,S.v)(l)}catch(e){throw new u(`The SSO session token associated with profile=${a} was not found or is invalid. ${C}`,!1)}k("accessToken",p.accessToken),k("expiresAt",p.expiresAt);const{accessToken:d,expiresAt:w}=p,y={token:d,expiration:new Date(w)};if(y.expiration.getTime()-Date.now()>3e5)return y;if(Date.now()-x.getTime()<3e4)return _(y),y;k("clientId",p.clientId,!0),k("clientSecret",p.clientSecret,!0),k("refreshToken",p.refreshToken,!0);try{x.setTime(Date.now());const e=await(async(e,s,n={})=>{const{CreateTokenCommand:t}=await Promise.all([o.e(478),o.e(575)]).then(o.bind(o,21575)),i=await(async(e,s={})=>{const{SSOOIDCClient:n}=await Promise.all([o.e(478),o.e(575)]).then(o.bind(o,21575)),t=e=>s.clientConfig?.[e]??s.parentClientConfig?.[e];return new n(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:t("logger"),userAgentAppId:t("userAgentAppId")}))})(s,n);return i.send(new t({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))})(p,f,n);k("accessToken",e.accessToken),k("expiresIn",e.expiresIn);const s=new Date(Date.now()+1e3*e.expiresIn);try{await((e,s)=>{const o=(0,m.C)(e),n=JSON.stringify(s,null,2);return T(o,n)})(l,{...p,accessToken:e.accessToken,expiresAt:s.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:s}}catch(e){return _(y),y}},I=!1,A=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:t,ssoRegion:i,ssoRoleName:r,ssoClient:a,clientConfig:c,parentClientConfig:l,profile:g,filepath:f,configFilepath:p,ignoreCache:h,logger:w})=>{let u;const C="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{const e=await O({profile:g,filepath:f,configFilepath:p,ignoreCache:h})();u={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new n.C(e.message,{tryNextLink:I,logger:w})}else try{u=await(0,S.v)(e)}catch(e){throw new n.C(`The SSO session associated with this profile is invalid. ${C}`,{tryNextLink:I,logger:w})}if(new Date(u.expiresAt).getTime()-Date.now()<=0)throw new n.C(`The SSO session associated with this profile has expired. ${C}`,{tryNextLink:I,logger:w});const{accessToken:_}=u,{SSOClient:k,GetRoleCredentialsCommand:m}=await Promise.all([o.e(478),o.e(936)]).then(o.bind(o,37936)),y=a||new k(Object.assign({},c??{},{logger:c?.logger??l?.logger,region:c?.region??i,userAgentAppId:c?.userAgentAppId??l?.userAgentAppId}));let T;try{T=await y.send(new m({accountId:t,roleName:r,accessToken:_}))}catch(e){throw new n.C(e,{tryNextLink:I,logger:w})}const{roleCredentials:{accessKeyId:x,secretAccessKey:A,sessionToken:N,expiration:v,credentialScope:$,accountId:R}={}}=T;if(!(x&&A&&N&&v))throw new n.C("SSO returns an invalid temporary credential.",{tryNextLink:I,logger:w});const D={accessKeyId:x,secretAccessKey:A,sessionToken:N,expiration:new Date(v),...$&&{credentialScope:$},...R&&{accountId:R}};return s?(0,d.g)(D,"CREDENTIALS_SSO","s"):(0,d.g)(D,"CREDENTIALS_SSO_LEGACY","u"),D},N=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:o,ssoAccountId:r,ssoRegion:a,ssoRoleName:c,ssoSession:l}=e,{ssoClient:g}=e,f=(0,t.Bz)({profile:e.profile??s?.profile});if(o||r||a||c||l){if(o&&r&&a&&c)return A({ssoStartUrl:o,ssoSession:l,ssoAccountId:r,ssoRegion:a,ssoRoleName:c,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,profile:f,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger});throw new n.C('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger})}{const s=(await(0,i.Y)(e))[f];if(!s)throw new n.C(`Profile ${f} was not found.`,{logger:e.logger});if(!(p=s)||"string"!=typeof p.sso_start_url&&"string"!=typeof p.sso_account_id&&"string"!=typeof p.sso_session&&"string"!=typeof p.sso_region&&"string"!=typeof p.sso_role_name)throw new n.C(`Profile ${f} is not configured with SSO credentials.`,{logger:e.logger});if(s?.sso_session){const t=(await h(e))[s.sso_session],i=` configurations in profile ${f} and sso-session ${s.sso_session}`;if(a&&a!==t.sso_region)throw new n.C("Conflicting SSO region"+i,{tryNextLink:!1,logger:e.logger});if(o&&o!==t.sso_start_url)throw new n.C("Conflicting SSO start_url"+i,{tryNextLink:!1,logger:e.logger});s.sso_region=t.sso_region,s.sso_start_url=t.sso_start_url}const{sso_start_url:t,sso_account_id:r,sso_region:c,sso_role_name:l,sso_session:d}=((e,s)=>{const{sso_start_url:o,sso_account_id:t,sso_region:i,sso_role_name:r}=e;if(!(o&&t&&i&&r))throw new n.C(`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`,{tryNextLink:!1,logger:s});return e})(s,e.logger);return A({ssoStartUrl:t,ssoSession:d,ssoAccountId:r,ssoRegion:c,ssoRoleName:l,ssoClient:g,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,profile:f,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}var p}}};
|
package/dist/387.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=387,exports.ids=[387],exports.modules={35387:(e,t,a)=>{a.d(t,{ENV_CMDS_FULL_URI:()=>m,ENV_CMDS_RELATIVE_URI:()=>g,fromContainerMetadata:()=>h,fromInstanceMetadata:()=>L,getInstanceMetadataEndpoint:()=>T,httpRequest:()=>c});var n=a(84122),r=a(87016),o=a(88816),s=a(20181),i=a(58611);function c(e){return new Promise((t,a)=>{const n=(0,i.request)({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",e=>{a(Object.assign(new o.m("Unable to connect to instance metadata service"),e)),n.destroy()}),n.on("timeout",()=>{a(new o.m("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",e=>{const{statusCode:r=400}=e;(r<200||300<=r)&&(a(Object.assign(new o.m("Error response received from instance metadata service"),{statusCode:r})),n.destroy());const i=[];e.on("data",e=>{i.push(e)}),e.on("end",()=>{t(s.Buffer.concat(i)),n.destroy()})}),n.end()})}const l=e=>Boolean(e)&&"object"==typeof e&&"string"==typeof e.AccessKeyId&&"string"==typeof e.SecretAccessKey&&"string"==typeof e.Token&&"string"==typeof e.Expiration,d=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}}),u=({maxRetries:e=0,timeout:t=1e3})=>({maxRetries:e,timeout:t}),p=(e,t)=>{let a=e();for(let n=0;n<t;n++)a=a.catch(e);return a},m="AWS_CONTAINER_CREDENTIALS_FULL_URI",g="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",f="AWS_CONTAINER_AUTHORIZATION_TOKEN",h=(e={})=>{const{timeout:t,maxRetries:a}=u(e);return()=>p(async()=>{const a=await I({logger:e.logger}),r=JSON.parse(await v(t,a));if(!l(r))throw new n.C("Invalid response received from instance metadata service.",{logger:e.logger});return d(r)},a)},v=async(e,t)=>(process.env[f]&&(t.headers={...t.headers,Authorization:process.env[f]}),(await c({...t,timeout:e})).toString()),w={localhost:!0,"127.0.0.1":!0},y={"http:":!0,"https:":!0},I=async({logger:e})=>{if(process.env[g])return{hostname:"169.254.170.2",path:process.env[g]};if(process.env[m]){const t=(0,r.parse)(process.env[m]);if(!t.hostname||!(t.hostname in w))throw new n.C(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:e});if(!t.protocol||!(t.protocol in y))throw new n.C(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:e});return{...t,port:t.port?parseInt(t.port,10):void 0}}throw new n.C(`The container metadata credential provider cannot be used unless the ${g} or ${m} environment variable is set`,{tryNextLink:!1,logger:e})};var E=a(28075);class _ extends n.C{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,t=!0){super(e,t),this.tryNextLink=t,Object.setPrototypeOf(this,_.prototype)}}var A,S=a(71918);!function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"}(A||(A={}));const C={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:e=>e.ec2_metadata_service_endpoint,default:void 0};var b;!function(e){e.IPv4="IPv4",e.IPv6="IPv6"}(b||(b={}));const x={environmentVariableSelector:e=>e.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE,configFileSelector:e=>e.ec2_metadata_service_endpoint_mode,default:b.IPv4},T=async()=>(0,S.D)(await D()||await N()),D=async()=>(0,E.Z)(C)(),N=async()=>{const e=await(0,E.Z)(x)();switch(e){case b.IPv4:return A.IPv4;case b.IPv6:return A.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(b)}`)}},k=(e,t)=>{const a=300+Math.floor(300*Math.random()),n=new Date(Date.now()+1e3*a);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const r=e.originalExpiration??e.expiration;return{...e,...r?{originalExpiration:r}:{},expiration:n}},M="/latest/meta-data/iam/security-credentials/",R="AWS_EC2_METADATA_V1_DISABLED",O="ec2_metadata_v1_disabled",P="x-aws-ec2-metadata-token",L=(e={})=>((e,t={})=>{const a=t?.logger||console;let n;return async()=>{let t;try{t=await e(),t.expiration&&t.expiration.getTime()<Date.now()&&(t=k(t,a))}catch(e){if(!n)throw e;a.warn("Credential renew failed: ",e),t=k(n,a)}return n=t,t}})(V(e),{logger:e.logger}),V=(e={})=>{let t=!1;const{logger:a,profile:r}=e,{timeout:o,maxRetries:s}=u(e),i=async(a,o)=>{if(t||null==o.headers?.[P]){let t=!1,a=!1;const o=await(0,E.Z)({environmentVariableSelector:t=>{const r=t[R];if(a=!!r&&"false"!==r,void 0===r)throw new n.C(`${R} not set in env, checking config file next.`,{logger:e.logger});return a},configFileSelector:e=>{const a=e[O];return t=!!a&&"false"!==a,t},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||o){const n=[];throw e.ec2MetadataV1Disabled&&n.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),t&&n.push(`config file profile (${O})`),a&&n.push(`process environment variable (${R})`),new _(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${n.join(", ")}].`)}}const s=(await p(async()=>{let e;try{e=await K(o)}catch(e){throw 401===e.statusCode&&(t=!1),e}return e},a)).trim();return p(async()=>{let a;try{a=await U(s,o,e)}catch(e){throw 401===e.statusCode&&(t=!1),e}return a},a)};return async()=>{const e=await T();if(t)return a?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),i(s,{...e,timeout:o});{let n;try{n=(await $({...e,timeout:o})).toString()}catch(n){if(400===n?.statusCode)throw Object.assign(n,{message:"EC2 Metadata token request returned error"});return("TimeoutError"===n.message||[403,404,405].includes(n.statusCode))&&(t=!0),a?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),i(s,{...e,timeout:o})}return i(s,{...e,headers:{[P]:n},timeout:o})}}},$=async e=>c({...e,path:"/latest/api/token",method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),K=async e=>(await c({...e,path:M})).toString(),U=async(e,t,a)=>{const r=JSON.parse((await c({...t,path:M+e})).toString());if(!l(r))throw new n.C("Invalid response received from instance metadata service.",{logger:a.logger});return d(r)}}};
|