@ashishpandeyone/cdk-lambda-web-function 0.1.2 → 0.1.4

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.
@@ -1,54 +1,53 @@
1
- "use strict";var Mme=Object.create;var nh=Object.defineProperty;var Bme=Object.getOwnPropertyDescriptor;var Fme=Object.getOwnPropertyNames;var Ume=Object.getPrototypeOf,Gme=Object.prototype.hasOwnProperty;var h=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var Ct=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},mt=(t,e)=>{for(var r in e)nh(t,r,{get:e[r],enumerable:!0})},z1=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Fme(e))!Gme.call(t,o)&&o!==r&&nh(t,o,{get:()=>e[o],enumerable:!(n=Bme(e,o))||n.enumerable});return t};var Oe=(t,e,r)=>(r=t!=null?Mme(Ume(t)):{},z1(e||!t||!t.__esModule?nh(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>z1(nh({},"__esModule",{value:!0}),t);var Xr,Hc,qs,zc,ge,oh,Na,xn=h(()=>{Xr={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Hc=Xr.WHEN_SUPPORTED,qs={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},zc=Xr.WHEN_SUPPORTED;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(ge||(ge={}));(function(t){t.HEADER="header",t.TRAILER="trailer"})(oh||(oh={}));Na=ge.CRC32});var Si,Vc,FA=h(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Si||(Si={}));Vc=(t,e,r,n)=>{if(!(e in t))return;let o=t[e].toUpperCase();if(!Object.values(r).includes(o))throw new TypeError(`Cannot load ${n} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return o}});var UA,GA,V1,W1=h(()=>{xn();FA();UA="AWS_REQUEST_CHECKSUM_CALCULATION",GA="request_checksum_calculation",V1={environmentVariableSelector:t=>Vc(t,UA,Xr,Si.ENV),configFileSelector:t=>Vc(t,GA,Xr,Si.CONFIG),default:Hc}});var qA,jA,K1,Q1=h(()=>{xn();FA();qA="AWS_RESPONSE_CHECKSUM_VALIDATION",jA="response_checksum_validation",K1={environmentVariableSelector:t=>Vc(t,qA,qs,Si.ENV),configFileSelector:t=>Vc(t,jA,qs,Si.CONFIG),default:zc}});var _d,Mo,J1=h(()=>{_d={warningEmitted:!1},Mo=t=>{if(t&&!_d.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){_d.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e<r&&(_d.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
1
+ "use strict";var Hbe=Object.create;var Ch=Object.defineProperty;var jbe=Object.getOwnPropertyDescriptor;var zbe=Object.getOwnPropertyNames;var Vbe=Object.getPrototypeOf,Wbe=Object.prototype.hasOwnProperty;var g=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var st=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ct=(t,e)=>{for(var r in e)Ch(t,r,{get:e[r],enumerable:!0})},M3=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of zbe(e))!Wbe.call(t,o)&&o!==r&&Ch(t,o,{get:()=>e[o],enumerable:!(n=jbe(e,o))||n.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?Hbe(Vbe(t)):{},M3(e||!t||!t.__esModule?Ch(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>M3(Ch({},"__esModule",{value:!0}),t);var mp,us,L3=g(()=>{mp={warningEmitted:!1},us=t=>{if(t&&!mp.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){mp.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e<r&&(mp.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
2
  versions published after the first week of January 2027
3
3
  will require node >=${r}. You are running node ${t}.
4
4
 
5
5
  To continue receiving updates to AWS services, bug fixes,
6
6
  and security updates please upgrade to node >=${r}.
7
7
 
8
- More information can be found at: https://a.co/c895JFp`))}}});var qme,jme,X1,Y1=h(()=>{qme=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),jme={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},X1=t=>({applyToStack:e=>{e.add(qme(),jme)}})});function yi(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Z1=h(()=>{});var eL,HA,tL=h(()=>{eL=require("node:stream"),HA=t=>t?.body instanceof eL.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var Ma,Ei,_i,rL,nL,sh=h(()=>{Ma=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ei=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,_i=()=>{let t=[],e=[],r=!1,n=new Set,o=m=>m.sort((y,_)=>rL[_.step]-rL[y.step]||nL[_.priority||"normal"]-nL[y.priority||"normal"]),s=m=>{let y=!1,_=R=>{let b=Ma(R.name,R.aliases);if(b.includes(m)){y=!0;for(let C of b)n.delete(C);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},i=m=>{let y=!1,_=R=>{if(R.middleware===m){y=!0;for(let b of Ma(R.name,R.aliases))n.delete(b);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},a=m=>(t.forEach(y=>{m.add(y.middleware,{...y})}),e.forEach(y=>{m.addRelativeTo(y.middleware,{...y})}),m.identifyOnResolve?.(f.identifyOnResolve()),m),c=m=>{let y=[];return m.before.forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y.push(m),m.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y},u=(m=!1)=>{let y=[],_=[],R={};return t.forEach(C=>{let x={...C,before:[],after:[]};for(let w of Ma(x.name,x.aliases))R[w]=x;y.push(x)}),e.forEach(C=>{let x={...C,before:[],after:[]};for(let w of Ma(x.name,x.aliases))R[w]=x;_.push(x)}),_.forEach(C=>{if(C.toMiddleware){let x=R[C.toMiddleware];if(x===void 0){if(m)return;throw new Error(`${C.toMiddleware} is not found when adding ${Ei(C.name,C.aliases)} middleware ${C.relation} ${C.toMiddleware}`)}C.relation==="after"&&x.after.push(C),C.relation==="before"&&x.before.push(C)}}),o(y).map(c).reduce((C,x)=>(C.push(...x),C),[])},f={add:(m,y={})=>{let{name:_,override:R,aliases:b}=y,C={step:"initialize",priority:"normal",middleware:m,...y},x=Ma(_,b);if(x.length>0){if(x.some(w=>n.has(w))){if(!R)throw new Error(`Duplicate middleware name '${Ei(_,b)}'`);for(let w of x){let U=t.findIndex(ue=>ue.name===w||ue.aliases?.some(Qe=>Qe===w));if(U===-1)continue;let G=t[U];if(G.step!==C.step||C.priority!==G.priority)throw new Error(`"${Ei(G.name,G.aliases)}" middleware with ${G.priority} priority in ${G.step} step cannot be overridden by "${Ei(_,b)}" middleware with ${C.priority} priority in ${C.step} step.`);t.splice(U,1)}}for(let w of x)n.add(w)}t.push(C)},addRelativeTo:(m,y)=>{let{name:_,override:R,aliases:b}=y,C={middleware:m,...y},x=Ma(_,b);if(x.length>0){if(x.some(w=>n.has(w))){if(!R)throw new Error(`Duplicate middleware name '${Ei(_,b)}'`);for(let w of x){let U=e.findIndex(ue=>ue.name===w||ue.aliases?.some(Qe=>Qe===w));if(U===-1)continue;let G=e[U];if(G.toMiddleware!==C.toMiddleware||G.relation!==C.relation)throw new Error(`"${Ei(G.name,G.aliases)}" middleware ${G.relation} "${G.toMiddleware}" middleware cannot be overridden by "${Ei(_,b)}" middleware ${C.relation} "${C.toMiddleware}" middleware.`);e.splice(U,1)}}for(let w of x)n.add(w)}e.push(C)},clone:()=>a(_i()),use:m=>{m.applyToStack(f)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let y=!1,_=R=>{let{tags:b,name:C,aliases:x}=R;if(b&&b.includes(m)){let w=Ma(C,x);for(let U of w)n.delete(U);return y=!0,!1}return!0};return t=t.filter(_),e=e.filter(_),y},concat:m=>{let y=a(_i());return y.use(m),y.identifyOnResolve(r||y.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),y},applyToStack:a,identify:()=>u(!0).map(m=>{let y=m.step??m.relation+" "+m.toMiddleware;return Ei(m.name,m.aliases)+" - "+y}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,y)=>{for(let _ of u().map(R=>R.middleware).reverse())m=_(m,y);return r&&console.log(f.identify()),m}};return f},rL={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},nL={high:3,normal:2,low:1}});var eo=Ct(Zn=>{var zA;(function(t){t.HEADER="header",t.QUERY="query"})(zA||(zA={}));var VA;(function(t){t.HEADER="header",t.QUERY="query"})(VA||(VA={}));var WA;(function(t){t.HTTP="http",t.HTTPS="https"})(WA||(WA={}));var Rd;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Rd||(Rd={}));var Hme=t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:()=>Rd.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&e.push({algorithmId:()=>Rd.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},zme=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Vme=t=>Hme(t),Wme=t=>zme(t),KA;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(KA||(KA={}));var Kme="__smithy_context",QA;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(QA||(QA={}));var JA;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(JA||(JA={}));Zn.AlgorithmId=Rd;Zn.EndpointURLScheme=WA;Zn.FieldPosition=KA;Zn.HttpApiKeyAuthLocation=VA;Zn.HttpAuthLocation=zA;Zn.IniSectionType=QA;Zn.RequestHandlerProtocol=JA;Zn.SMITHY_CONTEXT_KEY=Kme;Zn.getDefaultClientConfiguration=Vme;Zn.resolveDefaultRuntimeConfig=Wme});var XA,Ie,oL=h(()=>{XA=Oe(eo()),Ie=t=>t[XA.SMITHY_CONTEXT_KEY]||(t[XA.SMITHY_CONTEXT_KEY]={})});function H(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var YA=h(()=>{});function Qme(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var X,sL=h(()=>{X=class t{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){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=Qme(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}}});var it,iL=h(()=>{it=class{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;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var Jme,to,aL=h(()=>{Jme=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),to=(t,e=!1)=>{if(!e)return Jme.test(t);let r=t.split(".");for(let n of r)if(!to(n))return!1;return!0}});function bd(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var cL=h(()=>{});var xe,uL=h(()=>{xe=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Cd(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in e?Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]:e[n]=o}return e}var ZA=h(()=>{});var lr,eT=h(()=>{ZA();lr=t=>{if(typeof t=="string")return lr(new URL(t));let{hostname:e,pathname:r,port:n,protocol:o,search:s}=t,i;return s&&(i=Cd(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var dn,lL=h(()=>{YA();eT();dn=t=>{if(typeof t=="object"){if("url"in t){let e=lr(t.url);if(t.headers){e.headers={};for(let r in t.headers)H(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return lr(t)}});var Z=h(()=>{oL();YA();sL();iL();aL();cL();uL();ZA();eT();lL()});var dL,pL=h(()=>{dL=t=>()=>{throw new Error(t)}});var fL,mL=h(()=>{fL=t=>()=>Promise.reject(t)});var Wc,tT=h(()=>{Wc=()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}}});var hL,gL=h(()=>{hL=t=>new Promise(e=>setTimeout(e,t*1e3))});var ih,pn,SL,ah=h(()=>{tT();ih={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(pn||(pn={}));SL=t=>{if(t.state===pn.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Wc())}`);throw e.name="AbortError",e}else if(t.state===pn.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Wc())}`);throw e.name="TimeoutError",e}else if(t.state!==pn.SUCCESS)throw new Error(`${JSON.stringify(t,Wc())}`);return t}});var yL,Xme,Yme,Zme,ehe,EL=h(()=>{tT();gL();ah();yL=async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let c={},[u,f]=[t*1e3,e*1e3],m=0,y=Date.now()+r*1e3,_=Date.now()+6e4,R=!1;for(;;){if(m>0){let x=Zme(u,f,m,y);if(n?.signal?.aborted||s?.aborted){let w="AbortController signal aborted.";return c[w]|=0,c[w]+=1,{state:pn.ABORTED,observedResponses:c}}if(Date.now()+x>y)return{state:pn.TIMEOUT,observedResponses:c};await hL(x/1e3)}let{state:b,reason:C}=await a(o,i);if(C){let x=Yme(C);c[x]|=0,c[x]+=1}if(b!==pn.RETRY)return{state:b,reason:C,final:C,observedResponses:c};m+=1,!R&&Date.now()>=_&&(Xme(c,o),R=!0)}},Xme=(t={},e)=>{let r=Object.keys(t),n=0,o=0;for(let a of r){let c=t[a]|0;n=Math.max(c,n),a.startsWith("403:")&&(o+=c)}let s=e?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},Yme=t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Wc())??"Unknown")},Zme=(t,e,r,n)=>{let o=Math.log(e/t)/Math.log(2)+1;if(r>o)return e;let s=t*2**(r-1),i=Math.min(s,e),a=ehe(t,i);if(Date.now()+a>n){let c=n-Date.now();return Math.max(0,c-500)}return a},ehe=(t,e)=>t+Math.random()*(e-t)});var _L,RL=h(()=>{_L=t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}});var bL,CL,xL=h(()=>{EL();RL();ah();bL=t=>{let e,r=new Promise(n=>{e=()=>n({state:pn.ABORTED}),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},CL=async(t,e,r)=>{let n={...ih,...t};_L(n);let o=[yL(n,e,r)],s=[];if(t.abortSignal){let{aborted:i,clearListener:a}=bL(t.abortSignal);s.push(a),o.push(i)}if(t.abortController?.signal){let{aborted:i,clearListener:a}=bL(t.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var Tr,AL=h(()=>{sh();Tr=class{config;middlewareStack=_i();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,o),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var Yr,rT=h(()=>{Yr=t=>typeof t=="function"?t():t});var Kc,ch=h(()=>{Kc=(t,e,r,n,o)=>({name:e,namespace:t,traits:r,input:n,output:o})});var TL,nT,wL=h(()=>{Z();ch();TL=t=>(e,r)=>async n=>{let{response:o}=await e(n),{operationSchema:s}=Ie(r),[,i,a,c,u,f]=s??[];try{let m=await t.protocol.deserializeResponse(Kc(i,a,c,u,f),{...t,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
9
- `+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(it.isInstance(o)){let{headers:_={},statusCode:R}=o,b=Object.entries(_);m.$metadata={httpStatusCode:R,requestId:nT(/^x-[\w-]+-request-?id$/,b),extendedRequestId:nT(/^x-[\w-]+-id-2$/,b),cfId:nT(/^x-[\w-]+-cf-id$/,b)}}}catch{}}throw m}},nT=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var vL,PL=h(()=>{Z();ch();vL=t=>(e,r)=>async n=>{let{operationSchema:o}=Ie(r),[,s,i,a,c,u]=o??[],f=r.endpointV2?async()=>dn(r.endpointV2):t.endpoint,m=await t.protocol.serializeRequest(Kc(s,i,a,c,u),n.input,{...t,...r,endpoint:f});return e({...n,request:m})}});function Bo(t){return{applyToStack:e=>{e.add(vL(t),sT),e.add(TL(t),oT),t.protocol.setSerdeContext(t)}}}var oT,sT,IL=h(()=>{wL();PL();oT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},sT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var at,Ri=h(()=>{at=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var xd,DL,OL=h(()=>{Ri();xd=class t extends at{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},DL=(t,e,r,n)=>at.assign(new xd,{name:e,namespace:t,traits:r,valueSchema:n})});var Ad,kL,$L=h(()=>{Ri();Ad=class t extends at{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},kL=(t,e,r,n,o)=>at.assign(new Ad,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:o})});var Td,LL,NL=h(()=>{Ri();Td=class t extends at{static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},LL=(t,e,r,n,o)=>at.assign(new Td,{name:e,namespace:t,traits:r,input:n,output:o})});var Ba,ML,iT=h(()=>{Ri();Ba=class t extends at{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},ML=(t,e,r,n,o)=>at.assign(new Ba,{name:e,namespace:t,traits:r,memberNames:n,memberList:o})});var wd,BL,FL=h(()=>{Ri();iT();wd=class t extends Ba{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},BL=(t,e,r,n,o,s)=>at.assign(new wd,{name:e,namespace:t,traits:r,memberNames:n,memberList:o,ctor:null})});function ro(t){if(typeof t=="object")return t;if(t=t|0,vd[t])return vd[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return vd[t]=e}var vd,aT=h(()=>{vd=[]});function Id(t,e){if(t instanceof N)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=N;return new r(t,e)}var Pd,Dd,Od,N,cT,uT,UL=h(()=>{rT();aT();Pd={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Dd=[],Od={},N=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],o=e,s=e;for(this._isMemberSchema=!1;cT(o);)n.push(o[1]),o=o[0],s=Yr(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,ro(a))}}else this.memberTraits=0;if(s instanceof t){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=Yr(s),uT(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Dd[e])return Dd[e]}else if(typeof e=="string"){if(Od[e])return Od[e]}else if(r&&e[Pd.ns])return e[Pd.ns];let n=Yr(e);if(n instanceof t)return n;if(cT(n)){let[s,i]=n;if(s instanceof t)return Object.assign(s.getMergedTraits(),ro(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let o=new t(n);return r?e[Pd.ns]=o:typeof n=="string"?Od[n]=o:typeof n=="number"?Dd[n]=o:o}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return ro(this.memberTraits)}getOwnTraits(){return ro(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=e?15:n[4]??0;return Id([o,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||o)?e[3+e[0]]:r?15:void 0;if(s!=null)return Id([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),o=r[5][n];return Id(cT(o)?o:[o,0],e)}if(this.isDocumentSchema())return Id([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Pd.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=e[4][o],i=Id([e[5][o],0],s);yield n[o]=[s,i]}e[Pd.it]=n}};cT=t=>Array.isArray(t)&&t.length===2,uT=t=>Array.isArray(t)&&t.length>=5});var Qc,GL,qL,jL=h(()=>{Ri();Qc=class t extends at{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},GL=(t,e,r,n)=>at.assign(new Qc,{name:e,namespace:t,traits:n,schemaRef:r}),qL=(t,e,r,n)=>at.assign(new Qc,{name:e,namespace:t,traits:r,schemaRef:n})});var HL,zL=h(()=>{HL={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var ke,VL=h(()=>{ke=class t{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[o,s]of e.schemas)r.has(o)||r.set(o,s);for(let[o,s]of e.exceptions)n.has(o)||n.set(o,s)}register(e,r){let n=this.normalizeShapeId(e);for(let o of[this,t.for(n.split("#")[0])])o.schemas.has(n)||o.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,o=n[1],s=o+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=s);for(let i of[this,t.for(o)])!i.schemas.has(s)&&!i.exceptions.has(n)&&(i.schemas.set(s,n),i.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var uh={};mt(uh,{ErrorSchema:()=>wd,ListSchema:()=>xd,MapSchema:()=>Ad,NormalizedSchema:()=>N,OperationSchema:()=>Td,SCHEMA:()=>HL,Schema:()=>at,SimpleSchema:()=>Qc,StructureSchema:()=>Ba,TypeRegistry:()=>ke,deref:()=>Yr,deserializerMiddlewareOption:()=>oT,error:()=>BL,getSchemaSerdePlugin:()=>Bo,isStaticSchema:()=>uT,list:()=>DL,map:()=>kL,op:()=>LL,operation:()=>Kc,serializerMiddlewareOption:()=>sT,sim:()=>GL,simAdapter:()=>qL,simpleSchemaCacheN:()=>Dd,simpleSchemaCacheS:()=>Od,struct:()=>ML,traitsCache:()=>vd,translateTraits:()=>ro});var ne=h(()=>{rT();IL();OL();$L();NL();ch();FL();UL();Ri();jL();iT();zL();aT();VL()});function Jc(t,e){if(e==null)return e;let r=N.of(t);if(r.getMergedTraits().sensitive)return lT;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return lT}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return lT}else if(r.isStructSchema()&&typeof e=="object"){let n=e,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=Jc(i,n[s]));return o}return e}var lT,dT=h(()=>{ne();lT="***SensitiveInformation***"});var pT,Ur,fT,mT=h(()=>{pT=Oe(eo());sh();dT();Ur=class{middlewareStack=_i();schema;static classBuilder(){return new fT}resolveMiddlewareWithContext(e,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:f,CommandCtor:m}){for(let w of o.bind(this)(m,e,r,n))this.middlewareStack.use(w);let y=e.concat(this.middlewareStack),{logger:_}=r,R=f[pT.SMITHY_CONTEXT_KEY],b={logger:_,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,...f,[pT.SMITHY_CONTEXT_KEY]:{...R,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:C}=r,x=n??{};return x.metricsRecorder&&(x={...x},delete x.metricsRecorder),u.eventStream&&(x={isEventStream:!0,...x}),y.resolve(w=>C.handle(w.request,x),b)}},fT=class{_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,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,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(){let e=this,r;return r=class extends Ur{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,o,s){let i=e._operationSchema,a=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?Jc.bind(null,a):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?Jc.bind(null,c):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var WL,KL=h(()=>{WL="***SensitiveInformation***"});var Fo,QL=h(()=>{Fo=(t,e,r)=>{for(let[s,i]of Object.entries(t)){let a=async function(u,f,m){let y=new i(u);if(typeof f=="function")this.send(y,f);else if(typeof m=="function"){if(typeof f!="object")throw new Error(`Expected http options but got ${typeof f}`);this.send(y,f||{},m)}else return this.send(y,f)},c=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");e.prototype[c]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))e.prototype[s]===void 0&&(e.prototype[s]=function(a={},c,...u){return i({...c,client:this},a,...u)});for(let[s,i]of Object.entries(o))e.prototype[s]===void 0&&(e.prototype[s]=async function(a={},c,...u){let f=c;return typeof c=="number"&&(f={maxWaitTime:c}),i({...f,client:this},a,...u)})}});var An,Fa,hT=h(()=>{An=class t extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$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;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,o=!1;if(n){let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor,c=a!==t&&Object.prototype.hasOwnProperty.call(a,"shapeId")?a?.shapeId:void 0;if(c&&(o=!0,c===n))return!0;i=Object.getPrototypeOf(i)}}if(n&&o)return!1;let s=this.name;if(s&&s.length>=6){if(r.name===s)return!0;let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor?.name;if(a&&a!=="Error"&&a===s)return!0;i=Object.getPrototypeOf(i)}}}return!1}},Fa=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(t[n]==null||t[n]==="")&&(t[n]=o)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t}});var gT,JL,the,XL=h(()=>{hT();gT=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let o=the(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw Fa(i,e)},JL=t=>({output:e,parsedBody:r,errorCode:n})=>{gT({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},the=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]})});var Uo,YL=h(()=>{Uo=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var ZL,Go,eN=h(()=>{ZL=!1,Go=t=>{t&&!ZL&&parseInt(t.substring(1,t.indexOf(".")))<16&&(ZL=!0)}});var Ua,tN,lh,dh,ST=h(()=>{Z();Ua=Oe(eo()),tN=Object.values(Ua.AlgorithmId),lh=t=>{let e=[];for(let r in Ua.AlgorithmId){if(!H(Ua.AlgorithmId,r))continue;let n=Ua.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();tN.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=o:t.checksumAlgorithms[n]=o,e.push(r)},checksumAlgorithms(){return e}}},dh=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();tN.includes(n)&&(e[n]=r.checksumConstructor())}),e}});var ph,fh,yT=h(()=>{ph=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),fh=t=>{let e={};return e.retryStrategy=t.retryStrategy(),e}});var no,rN,qo,nN=h(()=>{ST();yT();no=t=>Object.assign(lh(t),ph(t)),rN=no,qo=t=>Object.assign(dh(t),fh(t))});var oN,sN=h(()=>{oN=t=>Array.isArray(t)?t:[t]});var Ga,iN=h(()=>{Z();Ga=t=>{let e="#text";for(let r in t)H(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=Ga(t[r])));return t}});var aN,cN=h(()=>{aN=t=>t!=null});var wr,uN=h(()=>{wr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function ET(t,e,r){let n,o,s;if(typeof e>"u"&&typeof r>"u")n={},s=t;else{if(n=t,typeof e=="function")return o=e,s=r,rhe(n,o,s);s=e}for(let i in s)if(H(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}pN(n,null,s,i)}return n}var lN,dN,rhe,pN,nhe,ohe,fN=h(()=>{Z();lN=t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},dN=(t,e)=>{let r={};for(let n in e)H(e,n)&&pN(r,t,e,n);return r},rhe=(t,e,r)=>ET(t,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[e,s()]:n[o]=[e,s],n),{})),pN=(t,e,r,n)=>{if(e!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=nhe,c=ohe,u=n]=i;(typeof a=="function"&&a(e[u])||typeof a!="function"&&a)&&(t[n]=c(e[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,c=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?t[n]=i:c&&(t[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(t[n]=s)}},nhe=t=>t!=null,ohe=t=>t});var mN,hN,gN=h(()=>{mN=t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},hN=t=>t.toISOString().replace(".000Z","Z")});var mh,SN=h(()=>{Z();mh=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(mh);if(typeof t=="object"){let e={};for(let r in t)H(t,r)&&t[r]!=null&&(e[r]=mh(t[r]));return e}return t}});function jo(t,e,r,n){return function(s,i,a,c,u={}){let f=Object.assign({},t,s);return Ur.classBuilder().ep(f).m(function(m,y,_,R){let b=i.call(this,m,y,_,R);return b.unshift(n(_,m.getEndpointParameterInstructions())),b}).s(e,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(c).build()}}var yN=h(()=>{mT()});var bi={};mt(bi,{AlgorithmId:()=>Ua.AlgorithmId,Client:()=>Tr,Command:()=>Ur,NoOpLogger:()=>wr,SENSITIVE_STRING:()=>WL,ServiceException:()=>An,WaiterState:()=>pn,_json:()=>mh,checkExceptions:()=>SL,constructStack:()=>_i,convertMap:()=>lN,createAggregatedClient:()=>Fo,createWaiter:()=>CL,decorateServiceException:()=>Fa,emitWarningIfUnsupportedVersion:()=>Go,getArrayIfSingleItem:()=>oN,getChecksumConfiguration:()=>lh,getDefaultClientConfiguration:()=>rN,getDefaultExtensionConfiguration:()=>no,getRetryConfiguration:()=>ph,getSmithyContext:()=>Ie,getValueFromTextNode:()=>Ga,invalidFunction:()=>dL,invalidProvider:()=>fL,isSerializableHeaderValue:()=>aN,loadConfigsForDefaultMode:()=>Uo,makeBuilder:()=>jo,map:()=>ET,normalizeProvider:()=>xe,resolveChecksumRuntimeConfig:()=>dh,resolveDefaultRuntimeConfig:()=>qo,resolveRetryRuntimeConfig:()=>fh,schemaLogFilter:()=>Jc,serializeDateTime:()=>hN,serializeFloat:()=>mN,take:()=>dN,throwDefaultError:()=>gT,waiterServiceDefaults:()=>ih,withBaseException:()=>JL});var Q=h(()=>{sh();Z();Z();pL();mL();xL();ah();AL();mT();KL();QL();XL();YL();eN();hT();nN();ST();yT();sN();iN();cN();uN();fN();dT();gN();SN();yN()});var Xc,_T=h(()=>{Xc=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"});var oo,Ci,xi=h(()=>{_T();oo=(t,e=0,r=t.byteLength-e)=>{if(!Xc(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},Ci=(t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)}});var she,We,EN=h(()=>{xi();she=/^[A-Za-z0-9+/]*={0,2}$/,We=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!she.exec(t))throw new TypeError("Invalid base64 string.");let e=Ci(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}});var $t,hh=h(()=>{xi();$t=t=>{let e=Ci(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var Ce,RT=h(()=>{xi();hh();Ce=t=>{let e;if(typeof t=="string"?e=$t(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return oo(e.buffer,e.byteOffset,e.byteLength).toString("base64")}});function _N(t,e,r,n){return class gh extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?gh.mutate(n(s)):gh.mutate(e(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,gh.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):t(this)}}}var RN=h(()=>{});var Fe,bN=h(()=>{xi();Fe=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return oo(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}});function CN(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,vr[e[0]]+vr[e[1]]+vr[e[2]]+vr[e[3]]+"-"+vr[e[4]]+vr[e[5]]+"-"+vr[e[6]]+vr[e[7]]+"-"+vr[e[8]]+vr[e[9]]+"-"+vr[e[10]]+vr[e[11]]+vr[e[12]]+vr[e[13]]+vr[e[14]]+vr[e[15]]}}var vr,xN=h(()=>{vr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"))});var AN,TN=h(()=>{AN=(t,e,r=n=>n)=>t});var wN,vN,Yc,ihe,kd,Zc,PN,Sh,yh,Eh,bT,ahe,IN,CT,DN,Rh,$d,ON,bh,che,tu,Ch,kN,$N,LN,NN,xT,MN,BN,Ai,xh,_h,eu,AT=h(()=>{Z();wN=t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},vN=t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&eu.warn(_h(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&eu.warn(_h(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},Yc=t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&eu.warn(_h(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},ihe=Math.ceil(2**127*(2-2**-23)),kd=t=>{let e=Yc(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>ihe)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},Zc=t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},PN=Zc,Sh=t=>bT(t,32),yh=t=>bT(t,16),Eh=t=>bT(t,8),bT=(t,e)=>{let r=Zc(t);if(r!==void 0&&ahe(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},ahe=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},IN=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},CT=t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},DN=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return eu.warn(_h(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},Rh=t=>{if(t==null)return;let e=CT(t),r=[];for(let n in e)H(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},$d=t=>Yc(typeof t=="string"?tu(t):t),ON=$d,bh=t=>kd(typeof t=="string"?tu(t):t),che=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,tu=t=>{let e=t.match(che);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Ch=t=>typeof t=="string"?NN(t):Yc(t),kN=Ch,$N=Ch,LN=t=>typeof t=="string"?NN(t):kd(t),NN=t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},xT=t=>Zc(typeof t=="string"?tu(t):t),MN=xT,BN=t=>Sh(typeof t=="string"?tu(t):t),Ai=t=>yh(typeof t=="string"?tu(t):t),xh=t=>Eh(typeof t=="string"?tu(t):t),_h=t=>String(new TypeError(t).stack||t).split(`
8
+ More information can be found at: https://a.co/c895JFp`))}}});var Kbe,Qbe,N3,F3=g(()=>{Kbe=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),Qbe={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},N3=t=>({applyToStack:e=>{e.add(Kbe(),Qbe)}})});function Yi(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var B3=g(()=>{});var U3,ND,G3=g(()=>{U3=require("node:stream"),ND=t=>t?.body instanceof U3.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var gc,Ji,Xi,q3,H3,bh=g(()=>{gc=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ji=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Xi=()=>{let t=[],e=[],r=!1,n=new Set,o=m=>m.sort((y,_)=>q3[_.step]-q3[y.step]||H3[_.priority||"normal"]-H3[y.priority||"normal"]),s=m=>{let y=!1,_=C=>{let A=gc(C.name,C.aliases);if(A.includes(m)){y=!0;for(let x of A)n.delete(x);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},i=m=>{let y=!1,_=C=>{if(C.middleware===m){y=!0;for(let A of gc(C.name,C.aliases))n.delete(A);return!1}return!0};return t=t.filter(_),e=e.filter(_),y},a=m=>(t.forEach(y=>{m.add(y.middleware,{...y})}),e.forEach(y=>{m.addRelativeTo(y.middleware,{...y})}),m.identifyOnResolve?.(f.identifyOnResolve()),m),c=m=>{let y=[];return m.before.forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y.push(m),m.after.reverse().forEach(_=>{_.before.length===0&&_.after.length===0?y.push(_):y.push(...c(_))}),y},u=(m=!1)=>{let y=[],_=[],C={};return t.forEach(x=>{let T={...x,before:[],after:[]};for(let I of gc(T.name,T.aliases))C[I]=T;y.push(T)}),e.forEach(x=>{let T={...x,before:[],after:[]};for(let I of gc(T.name,T.aliases))C[I]=T;_.push(T)}),_.forEach(x=>{if(x.toMiddleware){let T=C[x.toMiddleware];if(T===void 0){if(m)return;throw new Error(`${x.toMiddleware} is not found when adding ${Ji(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&T.after.push(x),x.relation==="before"&&T.before.push(x)}}),o(y).map(c).reduce((x,T)=>(x.push(...T),x),[])},f={add:(m,y={})=>{let{name:_,override:C,aliases:A}=y,x={step:"initialize",priority:"normal",middleware:m,...y},T=gc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=t.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=t[q];if(H.step!==x.step||x.priority!==H.priority)throw new Error(`"${Ji(H.name,H.aliases)}" middleware with ${H.priority} priority in ${H.step} step cannot be overridden by "${Ji(_,A)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(q,1)}}for(let I of T)n.add(I)}t.push(x)},addRelativeTo:(m,y)=>{let{name:_,override:C,aliases:A}=y,x={middleware:m,...y},T=gc(_,A);if(T.length>0){if(T.some(I=>n.has(I))){if(!C)throw new Error(`Duplicate middleware name '${Ji(_,A)}'`);for(let I of T){let q=e.findIndex(me=>me.name===I||me.aliases?.some(et=>et===I));if(q===-1)continue;let H=e[q];if(H.toMiddleware!==x.toMiddleware||H.relation!==x.relation)throw new Error(`"${Ji(H.name,H.aliases)}" middleware ${H.relation} "${H.toMiddleware}" middleware cannot be overridden by "${Ji(_,A)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(q,1)}}for(let I of T)n.add(I)}e.push(x)},clone:()=>a(Xi()),use:m=>{m.applyToStack(f)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let y=!1,_=C=>{let{tags:A,name:x,aliases:T}=C;if(A&&A.includes(m)){let I=gc(x,T);for(let q of I)n.delete(q);return y=!0,!1}return!0};return t=t.filter(_),e=e.filter(_),y},concat:m=>{let y=a(Xi());return y.use(m),y.identifyOnResolve(r||y.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),y},applyToStack:a,identify:()=>u(!0).map(m=>{let y=m.step??m.relation+" "+m.toMiddleware;return Ji(m.name,m.aliases)+" - "+y}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,y)=>{for(let _ of u().map(C=>C.middleware).reverse())m=_(m,y);return r&&console.log(f.identify()),m}};return f},q3={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},H3={high:3,normal:2,low:1}});var Eo=st(yo=>{var FD;(function(t){t.HEADER="header",t.QUERY="query"})(FD||(FD={}));var BD;(function(t){t.HEADER="header",t.QUERY="query"})(BD||(BD={}));var UD;(function(t){t.HTTP="http",t.HTTPS="https"})(UD||(UD={}));var gp;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(gp||(gp={}));var Ybe=t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:()=>gp.SHA256,checksumConstructor:()=>t.sha256}),t.md5!=null&&e.push({algorithmId:()=>gp.MD5,checksumConstructor:()=>t.md5}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},Jbe=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Xbe=t=>Ybe(t),Zbe=t=>Jbe(t),GD;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(GD||(GD={}));var eAe="__smithy_context",qD;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(qD||(qD={}));var HD;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(HD||(HD={}));yo.AlgorithmId=gp;yo.EndpointURLScheme=UD;yo.FieldPosition=GD;yo.HttpApiKeyAuthLocation=BD;yo.HttpAuthLocation=FD;yo.IniSectionType=qD;yo.RequestHandlerProtocol=HD;yo.SMITHY_CONTEXT_KEY=eAe;yo.getDefaultClientConfiguration=Xbe;yo.resolveDefaultRuntimeConfig=Zbe});var jD,Le,j3=g(()=>{jD=Ie(Eo()),Le=t=>t[jD.SMITHY_CONTEXT_KEY]||(t[jD.SMITHY_CONTEXT_KEY]={})});function W(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var zD=g(()=>{});function tAe(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var re,z3=g(()=>{re=class t{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){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=tAe(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}}});var ft,V3=g(()=>{ft=class{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;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var rAe,_o,W3=g(()=>{rAe=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),_o=(t,e=!1)=>{if(!e)return rAe.test(t);let r=t.split(".");for(let n of r)if(!_o(n))return!1;return!0}});function hp(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var K3=g(()=>{});var we,Q3=g(()=>{we=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Sp(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in e?Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]:e[n]=o}return e}var VD=g(()=>{});var Cr,WD=g(()=>{VD();Cr=t=>{if(typeof t=="string")return Cr(new URL(t));let{hostname:e,pathname:r,port:n,protocol:o,search:s}=t,i;return s&&(i=Sp(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var Tn,Y3=g(()=>{zD();WD();Tn=t=>{if(typeof t=="object"){if("url"in t){let e=Cr(t.url);if(t.headers){e.headers={};for(let r in t.headers)W(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Cr(t)}});var oe=g(()=>{j3();zD();z3();V3();W3();K3();Q3();VD();WD();Y3()});var J3,X3=g(()=>{J3=t=>()=>{throw new Error(t)}});var Z3,eF=g(()=>{Z3=t=>()=>Promise.reject(t)});var Du,KD=g(()=>{Du=()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}}});var tF,rF=g(()=>{tF=t=>new Promise(e=>setTimeout(e,t*1e3))});var Ah,vn,nF,xh=g(()=>{KD();Ah={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(vn||(vn={}));nF=t=>{if(t.state===vn.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},Du())}`);throw e.name="AbortError",e}else if(t.state===vn.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},Du())}`);throw e.name="TimeoutError",e}else if(t.state!==vn.SUCCESS)throw new Error(`${JSON.stringify(t,Du())}`);return t}});var oF,nAe,oAe,sAe,iAe,sF=g(()=>{KD();rF();xh();oF=async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let c={},[u,f]=[t*1e3,e*1e3],m=0,y=Date.now()+r*1e3,_=Date.now()+6e4,C=!1;for(;;){if(m>0){let T=sAe(u,f,m,y);if(n?.signal?.aborted||s?.aborted){let I="AbortController signal aborted.";return c[I]|=0,c[I]+=1,{state:vn.ABORTED,observedResponses:c}}if(Date.now()+T>y)return{state:vn.TIMEOUT,observedResponses:c};await tF(T/1e3)}let{state:A,reason:x}=await a(o,i);if(x){let T=oAe(x);c[T]|=0,c[T]+=1}if(A!==vn.RETRY)return{state:A,reason:x,final:x,observedResponses:c};m+=1,!C&&Date.now()>=_&&(nAe(c,o),C=!0)}},nAe=(t={},e)=>{let r=Object.keys(t),n=0,o=0;for(let a of r){let c=t[a]|0;n=Math.max(c,n),a.startsWith("403:")&&(o+=c)}let s=e?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},oAe=t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,Du())??"Unknown")},sAe=(t,e,r,n)=>{let o=Math.log(e/t)/Math.log(2)+1;if(r>o)return e;let s=t*2**(r-1),i=Math.min(s,e),a=iAe(t,i);if(Date.now()+a>n){let c=n-Date.now();return Math.max(0,c-500)}return a},iAe=(t,e)=>t+Math.random()*(e-t)});var iF,aF=g(()=>{iF=t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)}});var cF,uF,lF=g(()=>{sF();aF();xh();cF=t=>{let e,r=new Promise(n=>{e=()=>n({state:vn.ABORTED}),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},uF=async(t,e,r)=>{let n={...Ah,...t};iF(n);let o=[oF(n,e,r)],s=[];if(t.abortSignal){let{aborted:i,clearListener:a}=cF(t.abortSignal);s.push(a),o.push(i)}if(t.abortController?.signal){let{aborted:i,clearListener:a}=cF(t.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var Lr,dF=g(()=>{bh();Lr=class{config;middlewareStack=Xi();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(e.constructor)?a=c.get(e.constructor):(a=e.resolveMiddleware(this.middlewareStack,this.config,o),c.set(e.constructor,a))}else delete this.handlers,a=e.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(e).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(e).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var mn,QD=g(()=>{mn=t=>typeof t=="function"?t():t});var Iu,Th=g(()=>{Iu=(t,e,r,n,o)=>({name:e,namespace:t,traits:r,input:n,output:o})});var pF,YD,fF=g(()=>{oe();Th();pF=t=>(e,r)=>async n=>{let{response:o}=await e(n),{operationSchema:s}=Le(r),[,i,a,c,u,f]=s??[];try{let m=await t.protocol.deserializeResponse(Iu(i,a,c,u,f),{...t,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
9
+ `+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(ft.isInstance(o)){let{headers:_={},statusCode:C}=o,A=Object.entries(_);m.$metadata={httpStatusCode:C,requestId:YD(/^x-[\w-]+-request-?id$/,A),extendedRequestId:YD(/^x-[\w-]+-id-2$/,A),cfId:YD(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw m}},YD=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var mF,gF=g(()=>{oe();Th();mF=t=>(e,r)=>async n=>{let{operationSchema:o}=Le(r),[,s,i,a,c,u]=o??[],f=r.endpointV2?async()=>Tn(r.endpointV2):t.endpoint,m=await t.protocol.serializeRequest(Iu(s,i,a,c,u),n.input,{...t,...r,endpoint:f});return e({...n,request:m})}});function ls(t){return{applyToStack:e=>{e.add(mF(t),XD),e.add(pF(t),JD),t.protocol.setSerdeContext(t)}}}var JD,XD,hF=g(()=>{fF();gF();JD={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},XD={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var mt,Zi=g(()=>{mt=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var yp,SF,yF=g(()=>{Zi();yp=class t extends mt{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},SF=(t,e,r,n)=>mt.assign(new yp,{name:e,namespace:t,traits:r,valueSchema:n})});var Ep,EF,_F=g(()=>{Zi();Ep=class t extends mt{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},EF=(t,e,r,n,o)=>mt.assign(new Ep,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:o})});var _p,RF,CF=g(()=>{Zi();_p=class t extends mt{static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},RF=(t,e,r,n,o)=>mt.assign(new _p,{name:e,namespace:t,traits:r,input:n,output:o})});var hc,bF,ZD=g(()=>{Zi();hc=class t extends mt{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},bF=(t,e,r,n,o)=>mt.assign(new hc,{name:e,namespace:t,traits:r,memberNames:n,memberList:o})});var Rp,AF,xF=g(()=>{Zi();ZD();Rp=class t extends hc{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},AF=(t,e,r,n,o,s)=>mt.assign(new Rp,{name:e,namespace:t,traits:r,memberNames:n,memberList:o,ctor:null})});function Ro(t){if(typeof t=="object")return t;if(t=t|0,Cp[t])return Cp[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Cp[t]=e}var Cp,eI=g(()=>{Cp=[]});function Ap(t,e){if(t instanceof B)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=B;return new r(t,e)}var bp,xp,Tp,B,tI,rI,TF=g(()=>{QD();eI();bp={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},xp=[],Tp={},B=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],o=e,s=e;for(this._isMemberSchema=!1;tI(o);)n.push(o[1]),o=o[0],s=mn(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Ro(a))}}else this.memberTraits=0;if(s instanceof t){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=mn(s),rI(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(xp[e])return xp[e]}else if(typeof e=="string"){if(Tp[e])return Tp[e]}else if(r&&e[bp.ns])return e[bp.ns];let n=mn(e);if(n instanceof t)return n;if(tI(n)){let[s,i]=n;if(s instanceof t)return Object.assign(s.getMergedTraits(),Ro(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let o=new t(n);return r?e[bp.ns]=o:typeof n=="string"?Tp[n]=o:typeof n=="number"?xp[n]=o:o}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ro(this.memberTraits)}getOwnTraits(){return Ro(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=e?15:n[4]??0;return Ap([o,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||o)?e[3+e[0]]:r?15:void 0;if(s!=null)return Ap([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),o=r[5][n];return Ap(tI(o)?o:[o,0],e)}if(this.isDocumentSchema())return Ap([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[bp.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=e[4][o],i=Ap([e[5][o],0],s);yield n[o]=[s,i]}e[bp.it]=n}};tI=t=>Array.isArray(t)&&t.length===2,rI=t=>Array.isArray(t)&&t.length>=5});var wu,vF,DF,IF=g(()=>{Zi();wu=class t extends mt{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},vF=(t,e,r,n)=>mt.assign(new wu,{name:e,namespace:t,traits:n,schemaRef:r}),DF=(t,e,r,n)=>mt.assign(new wu,{name:e,namespace:t,traits:r,schemaRef:n})});var wF,PF=g(()=>{wF={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var Fe,OF=g(()=>{Fe=class t{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[o,s]of e.schemas)r.has(o)||r.set(o,s);for(let[o,s]of e.exceptions)n.has(o)||n.set(o,s)}register(e,r){let n=this.normalizeShapeId(e);for(let o of[this,t.for(n.split("#")[0])])o.schemas.has(n)||o.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,o=n[1],s=o+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=s);for(let i of[this,t.for(o)])!i.schemas.has(s)&&!i.exceptions.has(n)&&(i.schemas.set(s,n),i.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var vp={};Ct(vp,{ErrorSchema:()=>Rp,ListSchema:()=>yp,MapSchema:()=>Ep,NormalizedSchema:()=>B,OperationSchema:()=>_p,SCHEMA:()=>wF,Schema:()=>mt,SimpleSchema:()=>wu,StructureSchema:()=>hc,TypeRegistry:()=>Fe,deref:()=>mn,deserializerMiddlewareOption:()=>JD,error:()=>AF,getSchemaSerdePlugin:()=>ls,isStaticSchema:()=>rI,list:()=>SF,map:()=>EF,op:()=>RF,operation:()=>Iu,serializerMiddlewareOption:()=>XD,sim:()=>vF,simAdapter:()=>DF,simpleSchemaCacheN:()=>xp,simpleSchemaCacheS:()=>Tp,struct:()=>bF,traitsCache:()=>Cp,translateTraits:()=>Ro});var ae=g(()=>{QD();hF();yF();_F();CF();Th();xF();TF();Zi();IF();ZD();PF();eI();OF()});function Pu(t,e){if(e==null)return e;let r=B.of(t);if(r.getMergedTraits().sensitive)return nI;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return nI}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return nI}else if(r.isStructSchema()&&typeof e=="object"){let n=e,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=Pu(i,n[s]));return o}return e}var nI,oI=g(()=>{ae();nI="***SensitiveInformation***"});var sI,Xr,iI,aI=g(()=>{sI=Ie(Eo());bh();oI();Xr=class{middlewareStack=Xi();schema;static classBuilder(){return new iI}resolveMiddlewareWithContext(e,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:f,CommandCtor:m}){for(let I of o.bind(this)(m,e,r,n))this.middlewareStack.use(I);let y=e.concat(this.middlewareStack),{logger:_}=r,C=f[sI.SMITHY_CONTEXT_KEY],A={logger:_,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,...f,[sI.SMITHY_CONTEXT_KEY]:{...C,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:x}=r,T=n??{};return T.metricsRecorder&&(T={...T},delete T.metricsRecorder),u.eventStream&&(T={isEventStream:!0,...T}),y.resolve(I=>x.handle(I.request,T),A)}},iI=class{_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,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,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(){let e=this,r;return r=class extends Xr{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,o,s){let i=e._operationSchema,a=i?.[4]??i?.input,c=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(i?Pu.bind(null,a):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(i?Pu.bind(null,c):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var $F,kF=g(()=>{$F="***SensitiveInformation***"});var ds,MF=g(()=>{ds=(t,e,r)=>{for(let[s,i]of Object.entries(t)){let a=async function(u,f,m){let y=new i(u);if(typeof f=="function")this.send(y,f);else if(typeof m=="function"){if(typeof f!="object")throw new Error(`Expected http options but got ${typeof f}`);this.send(y,f||{},m)}else return this.send(y,f)},c=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");e.prototype[c]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))e.prototype[s]===void 0&&(e.prototype[s]=function(a={},c,...u){return i({...c,client:this},a,...u)});for(let[s,i]of Object.entries(o))e.prototype[s]===void 0&&(e.prototype[s]=async function(a={},c,...u){let f=c;return typeof c=="number"&&(f={maxWaitTime:c}),i({...f,client:this},a,...u)})}});var jn,Sc,cI=g(()=>{jn=class t extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$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;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,o=!1;if(n){let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor,c=a!==t&&Object.prototype.hasOwnProperty.call(a,"shapeId")?a?.shapeId:void 0;if(c&&(o=!0,c===n))return!0;i=Object.getPrototypeOf(i)}}if(n&&o)return!1;let s=this.name;if(s&&s.length>=6){if(r.name===s)return!0;let i=Object.getPrototypeOf(r);for(;i&&i!==Object.prototype;){let a=i.constructor?.name;if(a&&a!=="Error"&&a===s)return!0;i=Object.getPrototypeOf(i)}}}return!1}},Sc=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(t[n]==null||t[n]==="")&&(t[n]=o)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t}});var uI,LF,aAe,NF=g(()=>{cI();uI=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let o=aAe(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw Sc(i,e)},LF=t=>({output:e,parsedBody:r,errorCode:n})=>{uI({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},aAe=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]})});var ps,FF=g(()=>{ps=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var BF,fs,UF=g(()=>{BF=!1,fs=t=>{t&&!BF&&parseInt(t.substring(1,t.indexOf(".")))<16&&(BF=!0)}});var yc,GF,vh,Dh,lI=g(()=>{oe();yc=Ie(Eo()),GF=Object.values(yc.AlgorithmId),vh=t=>{let e=[];for(let r in yc.AlgorithmId){if(!W(yc.AlgorithmId,r))continue;let n=yc.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();GF.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=o:t.checksumAlgorithms[n]=o,e.push(r)},checksumAlgorithms(){return e}}},Dh=t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();GF.includes(n)&&(e[n]=r.checksumConstructor())}),e}});var Ih,wh,dI=g(()=>{Ih=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),wh=t=>{let e={};return e.retryStrategy=t.retryStrategy(),e}});var Co,qF,ms,HF=g(()=>{lI();dI();Co=t=>Object.assign(vh(t),Ih(t)),qF=Co,ms=t=>Object.assign(Dh(t),wh(t))});var jF,zF=g(()=>{jF=t=>Array.isArray(t)?t:[t]});var Ec,VF=g(()=>{oe();Ec=t=>{let e="#text";for(let r in t)W(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=Ec(t[r])));return t}});var WF,KF=g(()=>{WF=t=>t!=null});var Nr,QF=g(()=>{Nr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function pI(t,e,r){let n,o,s;if(typeof e>"u"&&typeof r>"u")n={},s=t;else{if(n=t,typeof e=="function")return o=e,s=r,cAe(n,o,s);s=e}for(let i in s)if(W(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}XF(n,null,s,i)}return n}var YF,JF,cAe,XF,uAe,lAe,ZF=g(()=>{oe();YF=t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},JF=(t,e)=>{let r={};for(let n in e)W(e,n)&&XF(r,t,e,n);return r},cAe=(t,e,r)=>pI(t,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[e,s()]:n[o]=[e,s],n),{})),XF=(t,e,r,n)=>{if(e!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=uAe,c=lAe,u=n]=i;(typeof a=="function"&&a(e[u])||typeof a!="function"&&a)&&(t[n]=c(e[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,c=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?t[n]=i:c&&(t[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(t[n]=s)}},uAe=t=>t!=null,lAe=t=>t});var eB,tB,rB=g(()=>{eB=t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},tB=t=>t.toISOString().replace(".000Z","Z")});var Ph,nB=g(()=>{oe();Ph=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Ph);if(typeof t=="object"){let e={};for(let r in t)W(t,r)&&t[r]!=null&&(e[r]=Ph(t[r]));return e}return t}});function gs(t,e,r,n){return function(s,i,a,c,u={}){let f=Object.assign({},t,s);return Xr.classBuilder().ep(f).m(function(m,y,_,C){let A=i.call(this,m,y,_,C);return A.unshift(n(_,m.getEndpointParameterInstructions())),A}).s(e,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(c).build()}}var oB=g(()=>{aI()});var bo={};Ct(bo,{AlgorithmId:()=>yc.AlgorithmId,Client:()=>Lr,Command:()=>Xr,NoOpLogger:()=>Nr,SENSITIVE_STRING:()=>$F,ServiceException:()=>jn,WaiterState:()=>vn,_json:()=>Ph,checkExceptions:()=>nF,constructStack:()=>Xi,convertMap:()=>YF,createAggregatedClient:()=>ds,createWaiter:()=>uF,decorateServiceException:()=>Sc,emitWarningIfUnsupportedVersion:()=>fs,getArrayIfSingleItem:()=>jF,getChecksumConfiguration:()=>vh,getDefaultClientConfiguration:()=>qF,getDefaultExtensionConfiguration:()=>Co,getRetryConfiguration:()=>Ih,getSmithyContext:()=>Le,getValueFromTextNode:()=>Ec,invalidFunction:()=>J3,invalidProvider:()=>Z3,isSerializableHeaderValue:()=>WF,loadConfigsForDefaultMode:()=>ps,makeBuilder:()=>gs,map:()=>pI,normalizeProvider:()=>we,resolveChecksumRuntimeConfig:()=>Dh,resolveDefaultRuntimeConfig:()=>ms,resolveRetryRuntimeConfig:()=>wh,schemaLogFilter:()=>Pu,serializeDateTime:()=>tB,serializeFloat:()=>eB,take:()=>JF,throwDefaultError:()=>uI,waiterServiceDefaults:()=>Ah,withBaseException:()=>LF});var J=g(()=>{bh();oe();oe();X3();eF();lF();xh();dF();aI();kF();MF();NF();FF();UF();cI();HF();lI();dI();zF();VF();KF();QF();ZF();oI();rB();nB();oB()});var Ou,fI=g(()=>{Ou=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"});var Ao,ea,ta=g(()=>{fI();Ao=(t,e=0,r=t.byteLength-e)=>{if(!Ou(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},ea=(t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)}});var dAe,Xe,sB=g(()=>{ta();dAe=/^[A-Za-z0-9+/]*={0,2}$/,Xe=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!dAe.exec(t))throw new TypeError("Invalid base64 string.");let e=ea(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}});var qt,Oh=g(()=>{ta();qt=t=>{let e=ea(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var De,mI=g(()=>{ta();Oh();De=t=>{let e;if(typeof t=="string"?e=qt(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ao(e.buffer,e.byteOffset,e.byteLength).toString("base64")}});function iB(t,e,r,n){return class $h extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?$h.mutate(n(s)):$h.mutate(e(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,$h.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):t(this)}}}var aB=g(()=>{});var ze,cB=g(()=>{ta();ze=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Ao(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}});function uB(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Fr[e[0]]+Fr[e[1]]+Fr[e[2]]+Fr[e[3]]+"-"+Fr[e[4]]+Fr[e[5]]+"-"+Fr[e[6]]+Fr[e[7]]+"-"+Fr[e[8]]+Fr[e[9]]+"-"+Fr[e[10]]+Fr[e[11]]+Fr[e[12]]+Fr[e[13]]+Fr[e[14]]+Fr[e[15]]}}var Fr,lB=g(()=>{Fr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"))});var dB,pB=g(()=>{dB=(t,e,r=n=>n)=>t});var fB,mB,$u,pAe,Dp,ku,gB,kh,Mh,Lh,gI,fAe,hB,hI,SB,Fh,Ip,yB,Bh,mAe,Lu,Uh,EB,_B,RB,CB,SI,bB,AB,ra,Gh,Nh,Mu,yI=g(()=>{oe();fB=t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},mB=t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Mu.warn(Nh(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Mu.warn(Nh(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},$u=t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Mu.warn(Nh(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},pAe=Math.ceil(2**127*(2-2**-23)),Dp=t=>{let e=$u(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>pAe)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},ku=t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},gB=ku,kh=t=>gI(t,32),Mh=t=>gI(t,16),Lh=t=>gI(t,8),gI=(t,e)=>{let r=ku(t);if(r!==void 0&&fAe(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},fAe=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},hB=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},hI=t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},SB=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Mu.warn(Nh(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},Fh=t=>{if(t==null)return;let e=hI(t),r=[];for(let n in e)W(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},Ip=t=>$u(typeof t=="string"?Lu(t):t),yB=Ip,Bh=t=>Dp(typeof t=="string"?Lu(t):t),mAe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Lu=t=>{let e=t.match(mAe);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Uh=t=>typeof t=="string"?CB(t):$u(t),EB=Uh,_B=Uh,RB=t=>typeof t=="string"?CB(t):Dp(t),CB=t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},SI=t=>ku(typeof t=="string"?Lu(t):t),bB=SI,AB=t=>kh(typeof t=="string"?Lu(t):t),ra=t=>Mh(typeof t=="string"?Lu(t):t),Gh=t=>Lh(typeof t=="string"?Lu(t):t),Nh=t=>String(new TypeError(t).stack||t).split(`
10
10
  `).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
11
- `),eu={warn:console.warn}});function dr(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=o<10?`0${o}`:`${o}`,u=s<10?`0${s}`:`${s}`,f=i<10?`0${i}`:`${i}`,m=a<10?`0${a}`:`${a}`;return`${uhe[n]}, ${c} ${wT[r]} ${e} ${u}:${f}:${m} GMT`}var uhe,wT,lhe,FN,dhe,zo,phe,fhe,mhe,Zr,Vo,Ld,hhe,ghe,She,TT,yhe,Ehe,_he,Ho,Rhe,bhe,ru,UN=h(()=>{AT();uhe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];lhe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),FN=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=lhe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u]=e,f=Ai(ru(n)),m=Ho(o,"month",1,12),y=Ho(s,"day",1,31);return Ld(f,m,y,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})},dhe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),zo=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=dhe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u,f]=e,m=Ai(ru(n)),y=Ho(o,"month",1,12),_=Ho(s,"day",1,31),R=Ld(m,y,_,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u});return f.toUpperCase()!="Z"&&R.setTime(R.getTime()-bhe(f)),R},phe=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$/),fhe=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$/),mhe=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})$/),Zr=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=phe.exec(t);if(e){let[r,n,o,s,i,a,c,u]=e;return Ld(Ai(ru(s)),TT(o),Ho(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})}if(e=fhe.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return She(Ld(hhe(s),TT(o),Ho(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(e=mhe.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return Ld(Ai(ru(u)),TT(n),Ho(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},Vo=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=$d(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},Ld=(t,e,r,n)=>{let o=e-1;return Ehe(t,o,r),new Date(Date.UTC(t,o,r,Ho(n.hours,"hour",0,23),Ho(n.minutes,"minute",0,59),Ho(n.seconds,"seconds",0,60),Rhe(n.fractionalMilliseconds)))},hhe=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Ai(ru(t));return r<e?r+100:r},ghe=50*365*24*60*60*1e3,She=t=>t.getTime()-new Date().getTime()>ghe?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,TT=t=>{let e=wT.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},yhe=[31,28,31,30,31,30,31,31,30,31,30,31],Ehe=(t,e,r)=>{let n=yhe[e];if(e===1&&_he(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${wT[e]} in ${t}: ${r}`)},_he=t=>t%4===0&&(t%100!==0||t%400===0),Ho=(t,e,r,n)=>{let o=xh(ru(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},Rhe=t=>t==null?0:bh("0."+t)*1e3,bhe=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1e3},ru=t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)}});var Me,GN=h(()=>{Me=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};Me.from=t=>t&&typeof t=="object"&&(t instanceof Me||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Me(String(t)):Me(JSON.stringify(t));Me.fromObject=Me.from});function Ah(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var qN=h(()=>{});function js(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var vT,PT,IT,jN,HN,Che,xhe,Ahe,The,whe,Ti,Th,wh,zN=h(()=>{vT="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",PT="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",IT="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",jN="(\\d?\\d)",HN="(\\d{4})",Che=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),xhe=new RegExp(`^${vT}, ${jN} ${PT} ${HN} ${IT} GMT$`),Ahe=new RegExp(`^${vT}, ${jN}-${PT}-(\\d\\d) ${IT} GMT$`),The=new RegExp(`^${vT} ${PT} ( [1-9]|\\d\\d) ${IT} ${HN}$`),whe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ti=t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},Th=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=Che.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,o,s,i,a,,c,u]=e;js(n,1,12),js(o,1,31),js(s,0,23),js(i,0,59),js(a,0,60);let f=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(s),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(f.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,m,y,_]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],R=m==="-"?1:-1;f.setTime(f.getTime()+R*(Number(y)*60*60*1e3+Number(_)*60*1e3))}return f},wh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,o,s,i,a,c;if((c=xhe.exec(t))?[,e,r,n,o,s,i,a]=c:(c=Ahe.exec(t))?([,e,r,n,o,s,i,a]=c,n=(Number(n)+1900).toString()):(c=The.exec(t))&&([,r,e,o,s,i,a,n]=c),n&&i){let u=Date.UTC(Number(n),whe.indexOf(r),Number(e),Number(o),Number(s),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);js(e,1,31),js(o,0,23),js(s,0,59),js(i,0,60);let f=new Date(u);return f.setUTCFullYear(Number(n)),f}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)}});function vh(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let o=[],s="";for(let i=0;i<n.length;i++)s===""?s=n[i]:s+=e+n[i],(i+1)%r===0&&(o.push(s),s="");return s!==""&&o.push(s),o}var VN=h(()=>{});var nu,WN=h(()=>{nu=t=>{let e=t.length,r=[],n=!1,o,s=0;for(let i=0;i<e;++i){let a=t[i];switch(a){case'"':o!=="\\"&&(n=!n);break;case",":n||(r.push(t.slice(s,i)),s=i+1);break;default:}o=a}return r.push(t.slice(s)),r.map(i=>{i=i.trim();let a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})}});function Ph(t){return new K(String(t),"bigDecimal")}var KN,K,QN=h(()=>{KN=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,K=class t{string;type;constructor(e,r){if(this.string=e,this.type=r,!KN.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&KN.test(r.string)}}});function Ih(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in DT)e[r/2]=DT[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function Tn(t){let e="";for(let r=0;r<t.byteLength;r++)e+=JN[t[r]];return e}var JN,DT,OT=h(()=>{JN={},DT={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),JN[t]=e,DT[e]=t}});var ou,Wo,XN=h(()=>{ou=require("node:fs"),Wo=t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof ou.ReadStream){if(t.path!=null)return(0,ou.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,ou.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)}});var ht,kT=h(()=>{hh();ht=t=>t instanceof Uint8Array?t:typeof t=="string"?$t(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)});function wn(t,e){if(e===void 0){e=0;for(let o of t)e+=o.byteLength}let r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.byteLength;return r}var Nd=h(()=>{});var Dh,$T,LT=h(()=>{Z();Dh=(t,e)=>(r,n)=>async o=>{let{response:s}=await r(o);try{let i=await e(s,t);return{response:s,output:i}}catch(i){if(Object.defineProperty(i,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in i)){let a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{i.message+=`
12
- `+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(it.isInstance(s)){let{headers:c={}}=s,u=Object.entries(c);i.$metadata={httpStatusCode:s.statusCode,requestId:$T(/^x-[\w-]+-request-?id$/,u),extendedRequestId:$T(/^x-[\w-]+-id-2$/,u),cfId:$T(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},$T=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var fn,Md=h(()=>{fn=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var wi,Oh=h(()=>{Md();wi=class t extends fn{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var kh,YN=h(()=>{Md();kh=class t extends fn{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var $h,NT=h(()=>{Md();$h=(...t)=>async()=>{if(t.length===0)throw new fn("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Lh,MT=h(()=>{Lh=t=>()=>Promise.resolve(t)});var su,Nh=h(()=>{su=(t,e,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=t());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return e===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Ue,Mh=h(()=>{Ue=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var ZN,eM=h(()=>{ZN=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var $e,Bh=h(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})($e||($e={}))});var tM,rM,BT,vhe,Ko,iu=h(()=>{tM=require("node:os"),rM=require("node:path"),BT={},vhe=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",Ko=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${rM.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let o=vhe();return BT[o]||(BT[o]=(0,tM.homedir)()),BT[o]}});var FT,UT,Fh,GT=h(()=>{FT="AWS_PROFILE",UT="default",Fh=t=>t.profile||process.env[FT]||UT});var nM,oM,Uh,qT=h(()=>{nM=require("node:crypto"),oM=require("node:path");iu();Uh=t=>{let r=(0,nM.createHash)("sha1").update(t).digest("hex");return(0,oM.join)(Ko(),".aws","sso","cache",`${r}.json`)}});var sM,Bd,iM,jT=h(()=>{sM=require("node:fs/promises");qT();Bd={},iM=async t=>{if(Bd[t])return Bd[t];let e=Uh(t),r=await(0,sM.readFile)(e,"utf8");return JSON.parse(r)}});var Qo,aM=h(()=>{Qo="."});var HT,cM,uM=h(()=>{HT=Oe(eo()),cM=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(HT.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===HT.IniSectionType.PROFILE?r.substring(o+1):r;return e[s]=n,e},{...t.default&&{default:t.default}})});var lM,Phe,Gh,zT=h(()=>{lM=require("node:path");iu();Phe="AWS_CONFIG_FILE",Gh=()=>process.env[Phe]||(0,lM.join)(Ko(),".aws","config")});var dM,Ihe,pM,fM=h(()=>{dM=require("node:path");iu();Ihe="AWS_SHARED_CREDENTIALS_FILE",pM=()=>process.env[Ihe]||(0,dM.join)(Ko(),".aws","credentials")});var mM,Dhe,Ohe,Fd,VT=h(()=>{mM=Oe(eo()),Dhe=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Ohe=["__proto__","profile __proto__"],Fd=t=>{let e={},r,n;for(let o of t.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),c=Dhe.exec(a);if(c){let[,u,,f]=c;Object.values(mM.IniSectionType).includes(u)&&(r=[u,f].join("."))}else r=a;if(Ohe.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=c;else{n&&o.trimStart()===o&&(n=void 0),e[r]=e[r]||{};let f=n?[n,c].join("."):c;e[r][f]=u}}}}return e}});var hM,WT,Ud,qa,Gd=h(()=>{hM=require("node:fs/promises"),WT={},Ud={},qa=(t,e)=>Ud[t]!==void 0?Ud[t]:((!WT[t]||e?.ignoreCache)&&(WT[t]=(0,hM.readFile)(t,"utf8")),WT[t])});var KT,gM,au,qh=h(()=>{KT=require("node:path");uM();zT();fM();iu();VT();Gd();gM=()=>({}),au=async(t={})=>{let{filepath:e=pM(),configFilepath:r=Gh()}=t,n=Ko(),o="~/",s=e;e.startsWith(o)&&(s=(0,KT.join)(n,e.slice(2)));let i=r;r.startsWith(o)&&(i=(0,KT.join)(n,r.slice(2)));let a=await Promise.all([qa(i,{ignoreCache:t.ignoreCache}).then(Fd).then(cM).catch(gM),qa(s,{ignoreCache:t.ignoreCache}).then(Fd).catch(gM)]);return{configFile:a[0],credentialsFile:a[1]}}});var SM,yM,EM=h(()=>{SM=Oe(eo()),yM=t=>Object.entries(t).filter(([e])=>e.startsWith(SM.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{})});var khe,_M,RM=h(()=>{zT();EM();VT();Gd();khe=()=>({}),_M=async(t={})=>qa(t.configFilepath??Gh()).then(Fd).then(yM).catch(khe)});var bM,CM=h(()=>{bM=(...t)=>{let e={};for(let r of t)for(let[n,o]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],o):e[n]=o;return e}});var xM,AM=h(()=>{qh();CM();xM=async t=>{let e=await au(t);return bM(e.configFile,e.credentialsFile)}});var TM,wM=h(()=>{jT();Gd();TM={getFileRecord(){return Ud},interceptFile(t,e){Ud[t]=Promise.resolve(e)},getTokenRecord(){return Bd},interceptToken(t,e){Bd[t]=e}}});function jh(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var QT=h(()=>{});var vM,PM=h(()=>{Oh();QT();vM=(t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new wi(r.message||`Not found in ENV: ${jh(t.toString())}`,{logger:e?.logger})}}});var IM,DM=h(()=>{Oh();GT();qh();QT();IM=(t,{preferredFile:e="config",...r}={})=>async()=>{let n=Fh(r),{configFile:o,credentialsFile:s}=await au(r),i=s[n]||{},a=o[n]||{},c=e==="config"?{...i,...a}:{...a,...i};try{let f=t(c,e==="config"?o:s);if(f===void 0)throw new Error;return f}catch(u){throw new wi(u.message||`Not found in config files w/ profile [${n}]: ${jh(t.toString())}`,{logger:r.logger})}}});var $he,Hh,JT=h(()=>{MT();$he=t=>typeof t=="function",Hh=t=>$he(t)?async()=>await t():Lh(t)});var oe,XT=h(()=>{NT();Nh();PM();DM();JT();oe=({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:o,logger:s}=n;return su($h(vM(t,{signingName:o,logger:s}),IM(e,n),Hh(r)))}});var zh,Vh,OM,Jo,kM,$M=h(()=>{Mh();Bh();zh="AWS_USE_DUALSTACK_ENDPOINT",Vh="use_dualstack_endpoint",OM=!1,Jo={environmentVariableSelector:t=>Ue(t,zh,$e.ENV),configFileSelector:t=>Ue(t,Vh,$e.CONFIG),default:!1},kM={environmentVariableSelector:t=>Ue(t,zh,$e.ENV),configFileSelector:t=>Ue(t,Vh,$e.CONFIG),default:void 0}});var Wh,Kh,LM,Xo,NM,MM=h(()=>{Mh();Bh();Wh="AWS_USE_FIPS_ENDPOINT",Kh="use_fips_endpoint",LM=!1,Xo={environmentVariableSelector:t=>Ue(t,Wh,$e.ENV),configFileSelector:t=>Ue(t,Kh,$e.CONFIG),default:!1},NM={environmentVariableSelector:t=>Ue(t,Wh,$e.ENV),configFileSelector:t=>Ue(t,Kh,$e.CONFIG),default:void 0}});var BM,FM=h(()=>{Q();BM=t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:e??!0,endpoint:xe(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:xe(o??!1)})}});var UM,GM=h(()=>{UM=async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),s=await t.useFipsEndpoint(),{hostname:i}=await t.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${i}`)}});var qM,jM=h(()=>{Q();GM();qM=t=>{let e=xe(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=t;return Object.assign(t,{tls:s??!0,endpoint:r?xe(typeof r=="string"?o(r):r):()=>UM({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})}});var HM,YT,ZT,zM,VM,WM,KM,QM,JM,ew=h(()=>{HM="AWS_EXECUTION_ENV",YT="AWS_REGION",ZT="AWS_DEFAULT_REGION",zM="AWS_EC2_METADATA_DISABLED",VM=["in-region","cross-region","mobile","standard","legacy"],WM="/latest/meta-data/placement/region",KM="/latest/api/token",QM="x-aws-ec2-metadata-token",JM="x-aws-ec2-metadata-token-ttl-seconds"});var XM,Lhe,e3,Qh,YM,Nhe,ZM,tw=h(()=>{ew();XM=1e3,Lhe=6e4,e3=0,Qh=async()=>{if(!process.env[zM]&&!(Date.now()<e3))try{let t=Nhe(),e=(await ZM({...t,path:KM,method:"PUT",headers:{[JM]:"21600"}})).toString();return(await ZM({...t,path:WM,method:"GET",headers:{[QM]:e}})).toString().trim()||YM()}catch{return YM()}},YM=()=>{e3=Date.now()+Lhe},Nhe=()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},ZM=async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let o=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:XM,signal:AbortSignal.timeout(XM)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",c=>a.push(c)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var cu,uu,pr,Gr,rw=h(()=>{tw();cu="AWS_REGION",uu="region",pr={environmentVariableSelector:t=>t[cu],configFileSelector:t=>t[uu],default:async()=>{let t=await Qh();if(t)return t;throw new Error("Region is missing")}},Gr={preferredFile:"credentials"}});var t3,r3,n3=h(()=>{Z();t3=new Set,r3=(t,e=to)=>{if(!t3.has(t)&&!e(t))if(t==="*")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.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else t3.add(t)}});var Jh,nw=h(()=>{Jh=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))});var o3,s3=h(()=>{nw();o3=t=>Jh(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t});var mn,i3=h(()=>{n3();s3();nw();mn=t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{let n=typeof e=="function"?await e():e,o=o3(n);return r3(o),o},useFipsEndpoint:async()=>{let n=typeof e=="string"?e:await e();return Jh(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var ow,a3=h(()=>{ow=(t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var c3,u3=h(()=>{c3=(t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0)});var l3,d3=h(()=>{l3=(t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws"});var p3,f3=h(()=>{p3=(t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=t.match(o);if(s)return s[0].slice(1,-1)}}});var m3,h3=h(()=>{a3();u3();d3();f3();m3=(t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=l3(t,{partitionHash:s}),a=t in o?t:s[i]?.endpoint??t,c={useFipsEndpoint:e,useDualstackEndpoint:r},u=ow(o[a]?.variants,c),f=ow(s[i]?.variants,c),m=c3(a,{regionHostname:u,partitionHostname:f});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let y=p3(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:e});return{partition:i,signingService:n,hostname:m,...y&&{signingRegion:y},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var Mhe,Bhe,g3,S3=h(()=>{Mhe="AWS_DEFAULTS_MODE",Bhe="defaults_mode",g3={environmentVariableSelector:t=>t[Mhe],configFileSelector:t=>t[Bhe],default:"legacy"}});var Yo,Fhe,Uhe,y3=h(()=>{rw();tw();XT();Nh();ew();S3();Yo=({region:t=oe(pr),defaultsMode:e=oe(g3)}={})=>su(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return Fhe(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${VM.join(", ")}, got ${r}`)}}),Fhe=async t=>{if(t){let e=typeof t=="function"?await t():t,r=await Uhe();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},Uhe=async()=>process.env[HM]&&(process.env[YT]||process.env[ZT])?process.env[YT]??process.env[ZT]:Qh()});var en={};mt(en,{CONFIG_PREFIX_SEPARATOR:()=>Qo,CONFIG_USE_DUALSTACK_ENDPOINT:()=>Vh,CONFIG_USE_FIPS_ENDPOINT:()=>Kh,CredentialsProviderError:()=>wi,DEFAULT_PROFILE:()=>UT,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>OM,DEFAULT_USE_FIPS_ENDPOINT:()=>LM,ENV_PROFILE:()=>FT,ENV_USE_DUALSTACK_ENDPOINT:()=>zh,ENV_USE_FIPS_ENDPOINT:()=>Wh,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Gr,NODE_REGION_CONFIG_OPTIONS:()=>pr,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Jo,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>Xo,ProviderError:()=>fn,REGION_ENV_NAME:()=>cu,REGION_INI_NAME:()=>uu,SelectorType:()=>$e,TokenProviderError:()=>kh,booleanSelector:()=>Ue,chain:()=>$h,externalDataInterceptor:()=>TM,fromStatic:()=>Hh,fromValue:()=>Lh,getHomeDir:()=>Ko,getProfileName:()=>Fh,getRegionInfo:()=>m3,getSSOTokenFilepath:()=>Uh,getSSOTokenFromFile:()=>iM,loadConfig:()=>oe,loadSharedConfigFiles:()=>au,loadSsoSessionData:()=>_M,memoize:()=>su,nodeDualstackConfigSelectors:()=>kM,nodeFipsConfigSelectors:()=>NM,numberSelector:()=>ZN,parseKnownFiles:()=>xM,readFile:()=>qa,resolveCustomEndpointsConfig:()=>BM,resolveDefaultsModeConfig:()=>Yo,resolveEndpointsConfig:()=>qM,resolveRegionConfig:()=>mn});var Re=h(()=>{Md();Oh();YN();NT();MT();Nh();Mh();eM();Bh();iu();GT();qT();jT();aM();qh();RM();AM();wM();Gd();XT();JT();$M();MM();FM();jM();rw();i3();h3();y3()});var E3,_3,R3,b3=h(()=>{E3="AWS_ENDPOINT_URL",_3="endpoint_url",R3=t=>({environmentVariableSelector:e=>{let r=t.split(" ").map(s=>s.toUpperCase()),n=e[[E3,...r].join("_")];if(n)return n;let o=e[E3];if(o)return o},configFileSelector:(e,r)=>{if(e.services){let o=["services",e.services].join(".");if(!r||!r[o])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=t.split(" ").map(c=>c.toLowerCase()),a=s[[i.join("_"),_3].join(".")];if(a)return a}let n=e[_3];if(n)return n},default:void 0})});var Ghe,qhe,C3,x3=h(()=>{Re();Ghe="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",qhe="ignore_configured_endpoint_urls",C3={environmentVariableSelector:t=>Ue(t,Ghe,$e.ENV),configFileSelector:t=>Ue(t,qhe,$e.CONFIG),default:!1}});var qd,A3=h(()=>{Re();b3();x3();qd=async t=>{if(!await oe(C3)())return oe(R3(t??""))()}});var sw,jhe,Hhe,zhe,T3,w3,v3=h(()=>{sw=async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),w3(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!T3(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},jhe=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,Hhe=/(\d+\.){3}\d+/,zhe=/\.\./,T3=t=>jhe.test(t)&&!Hhe.test(t)&&!zhe.test(t),w3=t=>{let[e,r,n,,,o]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return i}});var P3=h(()=>{v3()});var I3,D3=h(()=>{I3=(t,e,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[t]??r[t]??r[e]:s=r[t]??r[e],typeof s=="function"?s():s};return t==="credentialScope"||e==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:c,path:u}=s;return`${i}//${a}${c?":"+c:""}${u}`}}return s}:o}});var Xh=h(()=>{Z()});function Yh(t){return async(e,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await t(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(dn(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await jd(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[c,u]of Object.entries(a.headers))i.headers[c]=Array.isArray(u)?u:[u]}}return i}}var jd,Zh=h(()=>{P3();D3();Xh();jd=async(t,e,r)=>{let n={},o=e?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=t[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await I3(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await sw(n),n}});function Vhe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function eg(t){let e=Yh(t);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&Vhe(s,"ENDPOINT_OVERRIDE","N");let a=await e(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let c=s.authSchemes?.[0];if(c){s.signing_region=c.signingRegion,s.signing_service=c.signingName;let f=Ie(s)?.selectedHttpAuthScheme?.httpAuthOption;f&&(f.signingProperties=Object.assign(f.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return o({...i})}}var iw=h(()=>{Z();Zh()});function O3(t){let e=eg(t);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(e({config:r,instructions:n}),aw)}})}var Whe,aw,cw=h(()=>{iw();Whe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},aw={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Whe.name}});function k3(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=e,i=n!=null?async()=>dn(await xe(n)()):void 0,c=Object.assign(e,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:xe(o??!1),useFipsEndpoint:xe(s??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),c}}var $3=h(()=>{Z();Xh()});var vn,L3=h(()=>{vn=class t{nodes;root;conditions;results;constructor(e,r,n,o){this.nodes=e,this.root=r,this.conditions=n,this.results=o}static from(e,r,n,o){return new t(e,r,n,o)}}});var Pn,N3=h(()=>{Pn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=e[o],i=s==null?"\0":String(s);if(i.includes("|;"))return!1;r+=i+"|;"}return r}}});var Se,M3=h(()=>{Se=class extends Error{constructor(e){super(e),this.name="EndpointError"}}});var hn=h(()=>{M3()});var Zo,B3=h(()=>{Zo="endpoints"});function gn(t){return typeof t!="object"||t==null?t:"ref"in t?`$${gn(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(gn).join(", ")})`:JSON.stringify(t,null,2)}var F3=h(()=>{});var Hd=h(()=>{B3();F3()});var tn,uw=h(()=>{tn={}});var lw,U3=h(()=>{lw=(t,e)=>t===e});function dw(...t){for(let e of t)if(e!=null)return e}var G3=h(()=>{});var q3,j3=h(()=>{hn();q3=t=>{let e=t.split("."),r=[];for(let n of e){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new Se(`Path: '${t}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new Se(`Invalid array index: '${s}' in path: '${t}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var zd,H3=h(()=>{hn();j3();zd=(t,e)=>q3(e).reduce((r,n)=>{if(typeof r!="object")throw new Se(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},t)});var pw,z3=h(()=>{pw=t=>t!=null});function fw(t,e,r){return t?e:r}var V3=h(()=>{});var mw,W3=h(()=>{mw=t=>!t});var Khe,Hs,hw=h(()=>{Khe=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}$"),Hs=t=>Khe.test(t)||t.startsWith("[")&&t.endsWith("]")});var tg,gw,Sw,K3=h(()=>{tg=Oe(eo());hw();gw={[tg.EndpointURLScheme.HTTP]:80,[tg.EndpointURLScheme.HTTPS]:443},Sw=t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:y,port:_,protocol:R="",path:b="",query:C={}}=t,x=new URL(`${R}//${y}${_?`:${_}`:""}${b}`);return x.search=Object.entries(C).map(([w,U])=>`${w}=${U}`).join("&"),x}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=e;if(a)return null;let c=i.slice(0,-1);if(!Object.values(tg.EndpointURLScheme).includes(c))return null;let u=Hs(o),f=r.includes(`${n}:${gw[c]}`)||typeof t=="string"&&t.includes(`${n}:${gw[c]}`),m=`${n}${f?`:${gw[c]}`:""}`;return{scheme:c,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function yw(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var Q3=h(()=>{});var Ew,J3=h(()=>{Ew=(t,e)=>t===e});var _w,X3=h(()=>{_w=(t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r)});var Rw,Y3=h(()=>{Rw=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var bw=h(()=>{U3();G3();H3();z3();Z();V3();W3();K3();Q3();J3();X3();Y3()});var Z3,eB=h(()=>{bw();Z3={booleanEquals:lw,coalesce:dw,getAttr:zd,isSet:pw,isValidHostLabel:to,ite:fw,not:mw,parseURL:Sw,split:yw,stringEquals:Ew,substring:_w,uriEncode:Rw}});var rg,Cw=h(()=>{bw();rg=(t,e)=>{let r=[],{referenceRecord:n,endpointParams:o}=e,s=0;for(;s<t.length;){let i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));let a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),s=a+2);let c=t.substring(i+1,a);if(c.includes("#")){let[u,f]=c.split("#");r.push(zd(n[u]??o[u],f))}else r.push(n[c]??o[c]);s=a+1}return r.join("")}});var tB,rB=h(()=>{tB=({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t]});var zs,ng,nB,lu=h(()=>{hn();uw();eB();Cw();rB();zs=(t,e,r)=>{if(typeof t=="string")return rg(t,r);if(t.fn)return nB.callFunction(t,r);if(t.ref)return tB(t,r);throw new Se(`'${e}': ${String(t)} is not a string, function or reference.`)},ng=({fn:t,argv:e},r)=>{let n=Array(e.length);for(let i=0;i<n.length;++i){let a=e[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=nB.evaluateExpression(a,"arg",r)}let o=t.indexOf(".");if(o!==-1){let a=tn[t.slice(0,o)]?.[t.slice(o+1)];if(typeof a=="function")return a(...n)}let s=Z3[t];if(typeof s=="function")return s(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},nB={evaluateExpression:zs,callFunction:ng}});var oB=h(()=>{lu()});var og,xw=h(()=>{Hd();hn();oB();og=(t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new Se(`'${r}' is already defined in Reference Record.`);let n=ng(t,e);e.logger?.debug?.(`${Zo} evaluateCondition: ${gn(t)} = ${gn(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var sg,Aw=h(()=>{hn();lu();sg=(t,e)=>Object.entries(t??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=zs(s,"Header value entry",e);if(typeof i!="string")throw new Se(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var Vd,sB,iB,Tw=h(()=>{hn();Cw();Vd=(t,e)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=iB.getEndpointProperty(o,e),r),{}),sB=(t,e)=>{if(Array.isArray(t))return t.map(r=>sB(r,e));switch(typeof t){case"string":return rg(t,e);case"object":if(t===null)throw new Se(`Unexpected endpoint property: ${t}`);return iB.getEndpointProperties(t,e);case"boolean":return t;default:throw new Se(`Unexpected endpoint property type: ${typeof t}`)}},iB={getEndpointProperty:sB,getEndpointProperties:Vd}});var ig,ww=h(()=>{hn();lu();ig=(t,e)=>{let r=zs(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new Se(`Endpoint URL must be a string, got ${typeof r}`)}});var vw,es,aB=h(()=>{hn();xw();lu();Aw();Tw();ww();vw=1e8,es=(t,e)=>{let{nodes:r,root:n,results:o,conditions:s}=t,i=n,a={},c={referenceRecord:a,endpointParams:e.endpointParams,logger:e.logger};for(;i!==1&&i!==-1&&i<vw;){let u=3*(Math.abs(i)-1),[f,m,y]=[r[u],r[u+1],r[u+2]],[_,R,b]=s[f],C=og({fn:_,assign:b,argv:R},c);if(C.toAssign){let{name:x,value:w}=C.toAssign;a[x]=w}i=i>=0===C.result?m:y}if(i>=vw){let u=o[i-vw];if(u[0]===-1){let[,_]=u;throw new Se(zs(_,"Error",c))}let[f,m,y]=u;return{url:ig(f,c),properties:Vd(m,c),headers:sg(y??{},c)}}throw new Se("No matching endpoint.")}});var du,ag=h(()=>{Hd();xw();du=(t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},o=!1;for(let s of t){let{result:i,toAssign:a}=og(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,e.logger?.debug?.(`${Zo} assign: ${a.name} := ${gn(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var cB,uB=h(()=>{Hd();ag();Aw();Tw();ww();cB=(t,e)=>{let{conditions:r,endpoint:n}=t,{result:o,referenceRecord:s}=du(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e,{url:a,properties:c,headers:u}=n;e.logger?.debug?.(`${Zo} Resolving endpoint from template: ${gn(n)}`);let f={url:ig(a,i)};return u!=null&&(f.headers=sg(u,i)),c!=null&&(f.properties=Vd(c,i)),f}});var lB,dB=h(()=>{hn();ag();lu();lB=(t,e)=>{let{conditions:r,error:n}=t,{result:o,referenceRecord:s}=du(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;throw new Se(zs(n,"Error",i))}});var cg,pB,Pw,fB=h(()=>{hn();ag();uB();dB();cg=(t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=cB(r,e);if(n)return n}else if(r.type==="error")lB(r,e);else if(r.type==="tree"){let n=Pw.evaluateTreeRule(r,e);if(n)return n}else throw new Se(`Unknown endpoint rule: ${r}`);throw new Se("Rules evaluation failed")},pB=(t,e)=>{let{conditions:r,rules:n}=t,{result:o,referenceRecord:s}=du(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;return Pw.evaluateRules(n,i)},Pw={evaluateRules:cg,evaluateTreeRule:pB}});var mB=h(()=>{fB()});var Wd,hB=h(()=>{Z();Hd();hn();mB();Wd=(t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:o,rules:s}=t;e.logger?.debug?.(`${Zo} Initial EndpointParams: ${gn(r)}`);for(let a in o){if(!H(o,a))continue;let c=o[a],u=r[a];if(u==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&u==null)throw new Se(`Missing required parameter: '${a}'`)}let i=cg(s,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${Zo} Resolved endpoint: ${gn(i)}`),i}});var gB,SB=h(()=>{gB=t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t}});var ug={};mt(ug,{BinaryDecisionDiagram:()=>vn,EndpointCache:()=>Pn,EndpointError:()=>Se,customEndpointFunctions:()=>tn,decideEndpoint:()=>es,endpointMiddleware:()=>Jhe,endpointMiddlewareOptions:()=>aw,getEndpointFromInstructions:()=>Qhe,getEndpointPlugin:()=>Ws,isIpAddress:()=>Hs,isValidHostLabel:()=>to,middlewareEndpointToEndpointV1:()=>dn,resolveEndpoint:()=>Wd,resolveEndpointConfig:()=>Vs,resolveEndpointRequiredConfig:()=>gB,resolveParams:()=>jd,toEndpointV1:()=>dn});var Qhe,Vs,Jhe,Ws,Ge=h(()=>{A3();Zh();iw();cw();$3();Z();L3();N3();aB();hw();Z();uw();hB();hn();Zh();Xh();cw();SB();Qhe=Yh(qd),Vs=k3(qd),Jhe=eg(qd),Ws=O3(qd)});var lg,Iw=h(()=>{Ge();lg=(t,e)=>(r,n)=>async o=>{let s=t,i=n.endpointV2?async()=>dn(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await e(o.input,{...t,endpoint:i});return r({...o,request:a})}});function yB(t,e,r){return{applyToStack:n=>{n.add(Dh(t,r),Dw),n.add(lg(t,e),Ow)}}}var Dw,Ow,EB=h(()=>{LT();Iw();Dw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ow={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});function _B(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?Ci(t,e):ArrayBuffer.isView(t)?oo(t.buffer,t.byteOffset,t.byteLength):oo(t)}var pg,dg,RB=h(()=>{pg=require("node:crypto");xi();kT();dg=class{algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(ht(_B(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,pg.createHmac)(this.algorithmIdentifier,_B(this.secret)):(0,pg.createHash)(this.algorithmIdentifier)}}});var bB,pu,kw=h(()=>{bB=require("node:stream");RT();pu=class extends bB.Readable{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??Ce,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}};onSourceError=e=>{this.destroy(e)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Lt,vi,so=h(()=>{Lt=t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),vi=t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)});var CB,xB=h(()=>{CB=t=>new TextEncoder().encode(t)});var AB,gat,TB,fg,$w,wB,vB=h(()=>{AB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gat=Object.entries(AB).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),TB=AB.split(""),fg=6,$w=8,wB=63});function mg(t){let e;typeof t=="string"?e=CB(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<e.length;s+=3){let i=0,a=0;for(let u=s,f=Math.min(s+3,e.length);u<f;u++)i|=e[u]<<(f-u-1)*$w,a+=$w;let c=Math.ceil(a/fg);i<<=c*fg-a;for(let u=1;u<=c;u++){let f=(c-u)*fg;o+=TB[(i&wB<<f)>>f]}o+="==".slice(0,4-c)}return o}var Lw=h(()=>{xB();vB()});var Xhe,hg,PB=h(()=>{Xhe=typeof ReadableStream=="function"?ReadableStream:function(){},hg=class extends Xhe{}});var IB,DB=h(()=>{Lw();so();PB();IB=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!Lt(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??mg;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),f=s(u);if(t!==f){let m=new Error(`Checksum mismatch: expected "${t}" but received "${f}" in response header "${n}".`);c.error(m)}else c.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,hg.prototype),a}});function gg(t){return typeof ReadableStream=="function"&&Lt(t.source)?IB(t):new pu(t)}var OB=h(()=>{so();kw();DB()});var ja,Nw=h(()=>{ja=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];e.set(o,r),r+=o.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function kB(t,e,r){let n=t.getReader(),o=!1,s=0,i=["",new ja(u=>new Uint8Array(u))],a=-1,c=async u=>{let{value:f,done:m}=await n.read(),y=f;if(m){if(a!==-1){let _=Ha(i,a);Ks(_)>0&&u.enqueue(_)}u.close()}else{let _=Bw(y,!1);if(a!==_&&(a>=0&&u.enqueue(Ha(i,a)),a=_),a===-1){u.enqueue(y);return}let R=Ks(y);s+=R;let b=Ks(i[a]);if(R>=e&&b===0)u.enqueue(y);else{let C=Mw(i,a,y);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${R} is below threshold of ${e}, automatically buffering.`)),C>=e?u.enqueue(Ha(i,a)):await c(u)}}};return new ReadableStream({pull:c})}function Mw(t,e,r){switch(e){case 0:return t[0]+=r,Ks(t[0]);case 1:case 2:return t[e].push(r),Ks(t[e])}}function Ha(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Ks(t){return t?.byteLength??t?.length??0}function Bw(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var $B=h(()=>{Nw()});function Sg(t,e,r){if(Lt(t))return kB(t,e,r);let n=new LB.Readable({read(){}}),o=!1,s=0,i=["",new ja(c=>new Uint8Array(c)),new ja(c=>Buffer.from(new Uint8Array(c)))],a=-1;return t.on("data",c=>{let u=Bw(c,!0);if(a!==u&&(a>=0&&n.push(Ha(i,a)),a=u),a===-1){n.push(c);return}let f=Ks(c);s+=f;let m=Ks(i[a]);if(f>=e&&m===0)n.push(c);else{let y=Mw(i,a,c);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${e}, automatically buffering.`)),y>=e&&n.push(Ha(i,a))}}),t.on("end",()=>{if(a!==-1){let c=Ha(i,a);Ks(c)>0&&n.push(c)}n.push(null)}),n}var LB,NB=h(()=>{LB=require("node:stream");Nw();$B();so()});var MB,BB=h(()=>{MB=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=e,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,c=a?i(o,t):void 0;Promise.resolve(c).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(f){let{value:m,done:y}=await u.read();if(y){if(f.enqueue(`0\r
11
+ `),Mu={warn:console.warn}});function br(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=o<10?`0${o}`:`${o}`,u=s<10?`0${s}`:`${s}`,f=i<10?`0${i}`:`${i}`,m=a<10?`0${a}`:`${a}`;return`${gAe[n]}, ${c} ${_I[r]} ${e} ${u}:${f}:${m} GMT`}var gAe,_I,hAe,xB,SAe,Ss,yAe,EAe,_Ae,gn,ys,wp,RAe,CAe,bAe,EI,AAe,xAe,TAe,hs,vAe,DAe,Nu,TB=g(()=>{yI();gAe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];hAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),xB=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=hAe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u]=e,f=ra(Nu(n)),m=hs(o,"month",1,12),y=hs(s,"day",1,31);return wp(f,m,y,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})},SAe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Ss=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=SAe.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,c,u,f]=e,m=ra(Nu(n)),y=hs(o,"month",1,12),_=hs(s,"day",1,31),C=wp(m,y,_,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u});return f.toUpperCase()!="Z"&&C.setTime(C.getTime()-DAe(f)),C},yAe=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$/),EAe=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$/),_Ae=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})$/),gn=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=yAe.exec(t);if(e){let[r,n,o,s,i,a,c,u]=e;return wp(ra(Nu(s)),EI(o),hs(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u})}if(e=EAe.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return bAe(wp(RAe(s),EI(o),hs(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(e=_Ae.exec(t),e){let[r,n,o,s,i,a,c,u]=e;return wp(ra(Nu(u)),EI(n),hs(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},ys=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Ip(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},wp=(t,e,r,n)=>{let o=e-1;return xAe(t,o,r),new Date(Date.UTC(t,o,r,hs(n.hours,"hour",0,23),hs(n.minutes,"minute",0,59),hs(n.seconds,"seconds",0,60),vAe(n.fractionalMilliseconds)))},RAe=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+ra(Nu(t));return r<e?r+100:r},CAe=50*365*24*60*60*1e3,bAe=t=>t.getTime()-new Date().getTime()>CAe?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,EI=t=>{let e=_I.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},AAe=[31,28,31,30,31,30,31,31,30,31,30,31],xAe=(t,e,r)=>{let n=AAe[e];if(e===1&&TAe(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${_I[e]} in ${t}: ${r}`)},TAe=t=>t%4===0&&(t%100!==0||t%400===0),hs=(t,e,r,n)=>{let o=Gh(Nu(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},vAe=t=>t==null?0:Bh("0."+t)*1e3,DAe=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1e3},Nu=t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)}});var qe,vB=g(()=>{qe=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};qe.from=t=>t&&typeof t=="object"&&(t instanceof qe||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?qe(String(t)):qe(JSON.stringify(t));qe.fromObject=qe.from});function qh(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var DB=g(()=>{});function Ei(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var RI,CI,bI,IB,wB,IAe,wAe,PAe,OAe,$Ae,na,Hh,jh,PB=g(()=>{RI="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",CI="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",bI="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",IB="(\\d?\\d)",wB="(\\d{4})",IAe=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),wAe=new RegExp(`^${RI}, ${IB} ${CI} ${wB} ${bI} GMT$`),PAe=new RegExp(`^${RI}, ${IB}-${CI}-(\\d\\d) ${bI} GMT$`),OAe=new RegExp(`^${RI} ${CI} ( [1-9]|\\d\\d) ${bI} ${wB}$`),$Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],na=t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},Hh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=IAe.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,o,s,i,a,,c,u]=e;Ei(n,1,12),Ei(o,1,31),Ei(s,0,23),Ei(i,0,59),Ei(a,0,60);let f=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(s),Number(i),Number(a),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(f.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,m,y,_]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],C=m==="-"?1:-1;f.setTime(f.getTime()+C*(Number(y)*60*60*1e3+Number(_)*60*1e3))}return f},jh=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,o,s,i,a,c;if((c=wAe.exec(t))?[,e,r,n,o,s,i,a]=c:(c=PAe.exec(t))?([,e,r,n,o,s,i,a]=c,n=(Number(n)+1900).toString()):(c=OAe.exec(t))&&([,r,e,o,s,i,a,n]=c),n&&i){let u=Date.UTC(Number(n),$Ae.indexOf(r),Number(e),Number(o),Number(s),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);Ei(e,1,31),Ei(o,0,23),Ei(s,0,59),Ei(i,0,60);let f=new Date(u);return f.setUTCFullYear(Number(n)),f}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)}});function zh(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let o=[],s="";for(let i=0;i<n.length;i++)s===""?s=n[i]:s+=e+n[i],(i+1)%r===0&&(o.push(s),s="");return s!==""&&o.push(s),o}var OB=g(()=>{});var Fu,$B=g(()=>{Fu=t=>{let e=t.length,r=[],n=!1,o,s=0;for(let i=0;i<e;++i){let a=t[i];switch(a){case'"':o!=="\\"&&(n=!n);break;case",":n||(r.push(t.slice(s,i)),s=i+1);break;default:}o=a}return r.push(t.slice(s)),r.map(i=>{i=i.trim();let a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})}});function Vh(t){return new Y(String(t),"bigDecimal")}var kB,Y,MB=g(()=>{kB=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Y=class t{string;type;constructor(e,r){if(this.string=e,this.type=r,!kB.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&kB.test(r.string)}}});function Wh(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in AI)e[r/2]=AI[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function zn(t){let e="";for(let r=0;r<t.byteLength;r++)e+=LB[t[r]];return e}var LB,AI,xI=g(()=>{LB={},AI={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),LB[t]=e,AI[e]=t}});var Bu,Es,NB=g(()=>{Bu=require("node:fs"),Es=t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof Bu.ReadStream){if(t.path!=null)return(0,Bu.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,Bu.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)}});var bt,TI=g(()=>{Oh();bt=t=>t instanceof Uint8Array?t:typeof t=="string"?qt(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)});function Vn(t,e){if(e===void 0){e=0;for(let o of t)e+=o.byteLength}let r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.byteLength;return r}var Pp=g(()=>{});var Kh,vI,DI=g(()=>{oe();Kh=(t,e)=>(r,n)=>async o=>{let{response:s}=await r(o);try{let i=await e(s,t);return{response:s,output:i}}catch(i){if(Object.defineProperty(i,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in i)){let a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{i.message+=`
12
+ `+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(ft.isInstance(s)){let{headers:c={}}=s,u=Object.entries(c);i.$metadata={httpStatusCode:s.statusCode,requestId:vI(/^x-[\w-]+-request-?id$/,u),extendedRequestId:vI(/^x-[\w-]+-id-2$/,u),cfId:vI(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},vI=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var Dn,Op=g(()=>{Dn=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var oa,Qh=g(()=>{Op();oa=class t extends Dn{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Yh,FB=g(()=>{Op();Yh=class t extends Dn{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var Jh,II=g(()=>{Op();Jh=(...t)=>async()=>{if(t.length===0)throw new Dn("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Xh,wI=g(()=>{Xh=t=>()=>Promise.resolve(t)});var Uu,Zh=g(()=>{Uu=(t,e,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=t());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return e===void 0?async c=>((!s||c?.forceRefresh)&&(n=await a()),n):async c=>((!s||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Ve,eS=g(()=>{Ve=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var BB,UB=g(()=>{BB=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var Be,tS=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Be||(Be={}))});var GB,qB,PI,kAe,_s,Gu=g(()=>{GB=require("node:os"),qB=require("node:path"),PI={},kAe=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",_s=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${qB.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let o=kAe();return PI[o]||(PI[o]=(0,GB.homedir)()),PI[o]}});var OI,$I,rS,kI=g(()=>{OI="AWS_PROFILE",$I="default",rS=t=>t.profile||process.env[OI]||$I});var HB,jB,nS,MI=g(()=>{HB=require("node:crypto"),jB=require("node:path");Gu();nS=t=>{let r=(0,HB.createHash)("sha1").update(t).digest("hex");return(0,jB.join)(_s(),".aws","sso","cache",`${r}.json`)}});var zB,$p,VB,LI=g(()=>{zB=require("node:fs/promises");MI();$p={},VB=async t=>{if($p[t])return $p[t];let e=nS(t),r=await(0,zB.readFile)(e,"utf8");return JSON.parse(r)}});var Rs,WB=g(()=>{Rs="."});var NI,KB,QB=g(()=>{NI=Ie(Eo()),KB=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(NI.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===NI.IniSectionType.PROFILE?r.substring(o+1):r;return e[s]=n,e},{...t.default&&{default:t.default}})});var YB,MAe,oS,FI=g(()=>{YB=require("node:path");Gu();MAe="AWS_CONFIG_FILE",oS=()=>process.env[MAe]||(0,YB.join)(_s(),".aws","config")});var JB,LAe,XB,ZB=g(()=>{JB=require("node:path");Gu();LAe="AWS_SHARED_CREDENTIALS_FILE",XB=()=>process.env[LAe]||(0,JB.join)(_s(),".aws","credentials")});var e2,NAe,FAe,kp,BI=g(()=>{e2=Ie(Eo()),NAe=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,FAe=["__proto__","profile __proto__"],kp=t=>{let e={},r,n;for(let o of t.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),c=NAe.exec(a);if(c){let[,u,,f]=c;Object.values(e2.IniSectionType).includes(u)&&(r=[u,f].join("."))}else r=a;if(FAe.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[c,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=c;else{n&&o.trimStart()===o&&(n=void 0),e[r]=e[r]||{};let f=n?[n,c].join("."):c;e[r][f]=u}}}}return e}});var t2,UI,Mp,_c,Lp=g(()=>{t2=require("node:fs/promises"),UI={},Mp={},_c=(t,e)=>Mp[t]!==void 0?Mp[t]:((!UI[t]||e?.ignoreCache)&&(UI[t]=(0,t2.readFile)(t,"utf8")),UI[t])});var GI,r2,qu,sS=g(()=>{GI=require("node:path");QB();FI();ZB();Gu();BI();Lp();r2=()=>({}),qu=async(t={})=>{let{filepath:e=XB(),configFilepath:r=oS()}=t,n=_s(),o="~/",s=e;e.startsWith(o)&&(s=(0,GI.join)(n,e.slice(2)));let i=r;r.startsWith(o)&&(i=(0,GI.join)(n,r.slice(2)));let a=await Promise.all([_c(i,{ignoreCache:t.ignoreCache}).then(kp).then(KB).catch(r2),_c(s,{ignoreCache:t.ignoreCache}).then(kp).catch(r2)]);return{configFile:a[0],credentialsFile:a[1]}}});var n2,o2,s2=g(()=>{n2=Ie(Eo()),o2=t=>Object.entries(t).filter(([e])=>e.startsWith(n2.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{})});var BAe,i2,a2=g(()=>{FI();s2();BI();Lp();BAe=()=>({}),i2=async(t={})=>_c(t.configFilepath??oS()).then(kp).then(o2).catch(BAe)});var c2,u2=g(()=>{c2=(...t)=>{let e={};for(let r of t)for(let[n,o]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],o):e[n]=o;return e}});var l2,d2=g(()=>{sS();u2();l2=async t=>{let e=await qu(t);return c2(e.configFile,e.credentialsFile)}});var p2,f2=g(()=>{LI();Lp();p2={getFileRecord(){return Mp},interceptFile(t,e){Mp[t]=Promise.resolve(e)},getTokenRecord(){return $p},interceptToken(t,e){$p[t]=e}}});function iS(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var qI=g(()=>{});var m2,g2=g(()=>{Qh();qI();m2=(t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new oa(r.message||`Not found in ENV: ${iS(t.toString())}`,{logger:e?.logger})}}});var h2,S2=g(()=>{Qh();kI();sS();qI();h2=(t,{preferredFile:e="config",...r}={})=>async()=>{let n=rS(r),{configFile:o,credentialsFile:s}=await qu(r),i=s[n]||{},a=o[n]||{},c=e==="config"?{...i,...a}:{...a,...i};try{let f=t(c,e==="config"?o:s);if(f===void 0)throw new Error;return f}catch(u){throw new oa(u.message||`Not found in config files w/ profile [${n}]: ${iS(t.toString())}`,{logger:r.logger})}}});var UAe,aS,HI=g(()=>{wI();UAe=t=>typeof t=="function",aS=t=>UAe(t)?async()=>await t():Xh(t)});var ue,jI=g(()=>{II();Zh();g2();S2();HI();ue=({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:o,logger:s}=n;return Uu(Jh(m2(t,{signingName:o,logger:s}),h2(e,n),aS(r)))}});var cS,uS,y2,Cs,E2,_2=g(()=>{eS();tS();cS="AWS_USE_DUALSTACK_ENDPOINT",uS="use_dualstack_endpoint",y2=!1,Cs={environmentVariableSelector:t=>Ve(t,cS,Be.ENV),configFileSelector:t=>Ve(t,uS,Be.CONFIG),default:!1},E2={environmentVariableSelector:t=>Ve(t,cS,Be.ENV),configFileSelector:t=>Ve(t,uS,Be.CONFIG),default:void 0}});var lS,dS,R2,bs,C2,b2=g(()=>{eS();tS();lS="AWS_USE_FIPS_ENDPOINT",dS="use_fips_endpoint",R2=!1,bs={environmentVariableSelector:t=>Ve(t,lS,Be.ENV),configFileSelector:t=>Ve(t,dS,Be.CONFIG),default:!1},C2={environmentVariableSelector:t=>Ve(t,lS,Be.ENV),configFileSelector:t=>Ve(t,dS,Be.CONFIG),default:void 0}});var A2,x2=g(()=>{J();A2=t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:e??!0,endpoint:we(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:we(o??!1)})}});var T2,v2=g(()=>{T2=async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),s=await t.useFipsEndpoint(),{hostname:i}=await t.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${i}`)}});var D2,I2=g(()=>{J();v2();D2=t=>{let e=we(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=t;return Object.assign(t,{tls:s??!0,endpoint:r?we(typeof r=="string"?o(r):r):()=>T2({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})}});var w2,zI,VI,P2,O2,$2,k2,M2,L2,WI=g(()=>{w2="AWS_EXECUTION_ENV",zI="AWS_REGION",VI="AWS_DEFAULT_REGION",P2="AWS_EC2_METADATA_DISABLED",O2=["in-region","cross-region","mobile","standard","legacy"],$2="/latest/meta-data/placement/region",k2="/latest/api/token",M2="x-aws-ec2-metadata-token",L2="x-aws-ec2-metadata-token-ttl-seconds"});var N2,GAe,U2,pS,F2,qAe,B2,KI=g(()=>{WI();N2=1e3,GAe=6e4,U2=0,pS=async()=>{if(!process.env[P2]&&!(Date.now()<U2))try{let t=qAe(),e=(await B2({...t,path:k2,method:"PUT",headers:{[L2]:"21600"}})).toString();return(await B2({...t,path:$2,method:"GET",headers:{[M2]:e}})).toString().trim()||F2()}catch{return F2()}},F2=()=>{U2=Date.now()+GAe},qAe=()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},B2=async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let o=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:N2,signal:AbortSignal.timeout(N2)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",c=>a.push(c)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var Hu,ju,Ar,Zr,QI=g(()=>{KI();Hu="AWS_REGION",ju="region",Ar={environmentVariableSelector:t=>t[Hu],configFileSelector:t=>t[ju],default:async()=>{let t=await pS();if(t)return t;throw new Error("Region is missing")}},Zr={preferredFile:"credentials"}});var G2,q2,H2=g(()=>{oe();G2=new Set,q2=(t,e=_o)=>{if(!G2.has(t)&&!e(t))if(t==="*")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.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else G2.add(t)}});var fS,YI=g(()=>{fS=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips"))});var j2,z2=g(()=>{YI();j2=t=>fS(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t});var In,V2=g(()=>{H2();z2();YI();In=t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{let n=typeof e=="function"?await e():e,o=j2(n);return q2(o),o},useFipsEndpoint:async()=>{let n=typeof e=="string"?e:await e();return fS(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var JI,W2=g(()=>{JI=(t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var K2,Q2=g(()=>{K2=(t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0)});var Y2,J2=g(()=>{Y2=(t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws"});var X2,Z2=g(()=>{X2=(t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=t.match(o);if(s)return s[0].slice(1,-1)}}});var eU,tU=g(()=>{W2();Q2();J2();Z2();eU=(t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=Y2(t,{partitionHash:s}),a=t in o?t:s[i]?.endpoint??t,c={useFipsEndpoint:e,useDualstackEndpoint:r},u=JI(o[a]?.variants,c),f=JI(s[i]?.variants,c),m=K2(a,{regionHostname:u,partitionHostname:f});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let y=X2(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:e});return{partition:i,signingService:n,hostname:m,...y&&{signingRegion:y},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var HAe,jAe,rU,nU=g(()=>{HAe="AWS_DEFAULTS_MODE",jAe="defaults_mode",rU={environmentVariableSelector:t=>t[HAe],configFileSelector:t=>t[jAe],default:"legacy"}});var As,zAe,VAe,oU=g(()=>{QI();KI();jI();Zh();WI();nU();As=({region:t=ue(Ar),defaultsMode:e=ue(rU)}={})=>Uu(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return zAe(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${O2.join(", ")}, got ${r}`)}}),zAe=async t=>{if(t){let e=typeof t=="function"?await t():t,r=await VAe();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},VAe=async()=>process.env[w2]&&(process.env[zI]||process.env[VI])?process.env[zI]??process.env[VI]:pS()});var Br={};Ct(Br,{CONFIG_PREFIX_SEPARATOR:()=>Rs,CONFIG_USE_DUALSTACK_ENDPOINT:()=>uS,CONFIG_USE_FIPS_ENDPOINT:()=>dS,CredentialsProviderError:()=>oa,DEFAULT_PROFILE:()=>$I,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>y2,DEFAULT_USE_FIPS_ENDPOINT:()=>R2,ENV_PROFILE:()=>OI,ENV_USE_DUALSTACK_ENDPOINT:()=>cS,ENV_USE_FIPS_ENDPOINT:()=>lS,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Cs,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>bs,ProviderError:()=>Dn,REGION_ENV_NAME:()=>Hu,REGION_INI_NAME:()=>ju,SelectorType:()=>Be,TokenProviderError:()=>Yh,booleanSelector:()=>Ve,chain:()=>Jh,externalDataInterceptor:()=>p2,fromStatic:()=>aS,fromValue:()=>Xh,getHomeDir:()=>_s,getProfileName:()=>rS,getRegionInfo:()=>eU,getSSOTokenFilepath:()=>nS,getSSOTokenFromFile:()=>VB,loadConfig:()=>ue,loadSharedConfigFiles:()=>qu,loadSsoSessionData:()=>i2,memoize:()=>Uu,nodeDualstackConfigSelectors:()=>E2,nodeFipsConfigSelectors:()=>C2,numberSelector:()=>BB,parseKnownFiles:()=>l2,readFile:()=>_c,resolveCustomEndpointsConfig:()=>A2,resolveDefaultsModeConfig:()=>As,resolveEndpointsConfig:()=>D2,resolveRegionConfig:()=>In});var ye=g(()=>{Op();Qh();FB();II();wI();Zh();eS();UB();tS();Gu();kI();MI();LI();WB();sS();a2();d2();f2();Lp();jI();HI();_2();b2();x2();I2();QI();V2();tU();oU()});var sU,iU,aU,cU=g(()=>{sU="AWS_ENDPOINT_URL",iU="endpoint_url",aU=t=>({environmentVariableSelector:e=>{let r=t.split(" ").map(s=>s.toUpperCase()),n=e[[sU,...r].join("_")];if(n)return n;let o=e[sU];if(o)return o},configFileSelector:(e,r)=>{if(e.services){let o=["services",e.services].join(".");if(!r||!r[o])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=t.split(" ").map(c=>c.toLowerCase()),a=s[[i.join("_"),iU].join(".")];if(a)return a}let n=e[iU];if(n)return n},default:void 0})});var WAe,KAe,uU,lU=g(()=>{ye();WAe="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",KAe="ignore_configured_endpoint_urls",uU={environmentVariableSelector:t=>Ve(t,WAe,Be.ENV),configFileSelector:t=>Ve(t,KAe,Be.CONFIG),default:!1}});var Np,dU=g(()=>{ye();cU();lU();Np=async t=>{if(!await ue(uU)())return ue(aU(t??""))()}});var XI,QAe,YAe,JAe,pU,fU,mU=g(()=>{XI=async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),fU(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!pU(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},QAe=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,YAe=/(\d+\.){3}\d+/,JAe=/\.\./,pU=t=>QAe.test(t)&&!YAe.test(t)&&!JAe.test(t),fU=t=>{let[e,r,n,,,o]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return i}});var gU=g(()=>{mU()});var hU,SU=g(()=>{hU=(t,e,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[t]??r[t]??r[e]:s=r[t]??r[e],typeof s=="function"?s():s};return t==="credentialScope"||e==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:c,path:u}=s;return`${i}//${a}${c?":"+c:""}${u}`}}return s}:o}});var mS=g(()=>{oe()});function gS(t){return async(e,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await t(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(Tn(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await Fp(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[c,u]of Object.entries(a.headers))i.headers[c]=Array.isArray(u)?u:[u]}}return i}}var Fp,hS=g(()=>{gU();SU();mS();Fp=async(t,e,r)=>{let n={},o=e?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=t[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await hU(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await XI(n),n}});function XAe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function SS(t){let e=gS(t);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&XAe(s,"ENDPOINT_OVERRIDE","N");let a=await e(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let c=s.authSchemes?.[0];if(c){s.signing_region=c.signingRegion,s.signing_service=c.signingName;let f=Le(s)?.selectedHttpAuthScheme?.httpAuthOption;f&&(f.signingProperties=Object.assign(f.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return o({...i})}}var ZI=g(()=>{oe();hS()});function yU(t){let e=SS(t);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(e({config:r,instructions:n}),ew)}})}var ZAe,ew,tw=g(()=>{ZI();ZAe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},ew={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ZAe.name}});function EU(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=e,i=n!=null?async()=>Tn(await we(n)()):void 0,c=Object.assign(e,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:we(o??!1),useFipsEndpoint:we(s??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),c}}var _U=g(()=>{oe();mS()});var Wn,RU=g(()=>{Wn=class t{nodes;root;conditions;results;constructor(e,r,n,o){this.nodes=e,this.root=r,this.conditions=n,this.results=o}static from(e,r,n,o){return new t(e,r,n,o)}}});var Kn,CU=g(()=>{Kn=class{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=e[o],i=s==null?"\0":String(s);if(i.includes("|;"))return!1;r+=i+"|;"}return r}}});var be,bU=g(()=>{be=class extends Error{constructor(e){super(e),this.name="EndpointError"}}});var wn=g(()=>{bU()});var xs,AU=g(()=>{xs="endpoints"});function Pn(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Pn(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Pn).join(", ")})`:JSON.stringify(t,null,2)}var xU=g(()=>{});var Bp=g(()=>{AU();xU()});var hn,rw=g(()=>{hn={}});var nw,TU=g(()=>{nw=(t,e)=>t===e});function ow(...t){for(let e of t)if(e!=null)return e}var vU=g(()=>{});var DU,IU=g(()=>{wn();DU=t=>{let e=t.split("."),r=[];for(let n of e){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new be(`Path: '${t}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new be(`Invalid array index: '${s}' in path: '${t}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var Up,wU=g(()=>{wn();IU();Up=(t,e)=>DU(e).reduce((r,n)=>{if(typeof r!="object")throw new be(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},t)});var sw,PU=g(()=>{sw=t=>t!=null});function iw(t,e,r){return t?e:r}var OU=g(()=>{});var aw,$U=g(()=>{aw=t=>!t});var exe,_i,cw=g(()=>{exe=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}$"),_i=t=>exe.test(t)||t.startsWith("[")&&t.endsWith("]")});var yS,uw,lw,kU=g(()=>{yS=Ie(Eo());cw();uw={[yS.EndpointURLScheme.HTTP]:80,[yS.EndpointURLScheme.HTTPS]:443},lw=t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:y,port:_,protocol:C="",path:A="",query:x={}}=t,T=new URL(`${C}//${y}${_?`:${_}`:""}${A}`);return T.search=Object.entries(x).map(([I,q])=>`${I}=${q}`).join("&"),T}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=e;if(a)return null;let c=i.slice(0,-1);if(!Object.values(yS.EndpointURLScheme).includes(c))return null;let u=_i(o),f=r.includes(`${n}:${uw[c]}`)||typeof t=="string"&&t.includes(`${n}:${uw[c]}`),m=`${n}${f?`:${uw[c]}`:""}`;return{scheme:c,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function dw(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var MU=g(()=>{});var pw,LU=g(()=>{pw=(t,e)=>t===e});var fw,NU=g(()=>{fw=(t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r)});var mw,FU=g(()=>{mw=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var gw=g(()=>{TU();vU();wU();PU();oe();OU();$U();kU();MU();LU();NU();FU()});var BU,UU=g(()=>{gw();BU={booleanEquals:nw,coalesce:ow,getAttr:Up,isSet:sw,isValidHostLabel:_o,ite:iw,not:aw,parseURL:lw,split:dw,stringEquals:pw,substring:fw,uriEncode:mw}});var ES,hw=g(()=>{gw();ES=(t,e)=>{let r=[],{referenceRecord:n,endpointParams:o}=e,s=0;for(;s<t.length;){let i=t.indexOf("{",s);if(i===-1){r.push(t.slice(s));break}r.push(t.slice(s,i));let a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),s=a+2);let c=t.substring(i+1,a);if(c.includes("#")){let[u,f]=c.split("#");r.push(Up(n[u]??o[u],f))}else r.push(n[c]??o[c]);s=a+1}return r.join("")}});var GU,qU=g(()=>{GU=({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t]});var Ri,_S,HU,zu=g(()=>{wn();rw();UU();hw();qU();Ri=(t,e,r)=>{if(typeof t=="string")return ES(t,r);if(t.fn)return HU.callFunction(t,r);if(t.ref)return GU(t,r);throw new be(`'${e}': ${String(t)} is not a string, function or reference.`)},_S=({fn:t,argv:e},r)=>{let n=Array(e.length);for(let i=0;i<n.length;++i){let a=e[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=HU.evaluateExpression(a,"arg",r)}let o=t.indexOf(".");if(o!==-1){let a=hn[t.slice(0,o)]?.[t.slice(o+1)];if(typeof a=="function")return a(...n)}let s=BU[t];if(typeof s=="function")return s(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},HU={evaluateExpression:Ri,callFunction:_S}});var jU=g(()=>{zu()});var RS,Sw=g(()=>{Bp();wn();jU();RS=(t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new be(`'${r}' is already defined in Reference Record.`);let n=_S(t,e);e.logger?.debug?.(`${xs} evaluateCondition: ${Pn(t)} = ${Pn(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var CS,yw=g(()=>{wn();zu();CS=(t,e)=>Object.entries(t??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=Ri(s,"Header value entry",e);if(typeof i!="string")throw new be(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var Gp,zU,VU,Ew=g(()=>{wn();hw();Gp=(t,e)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=VU.getEndpointProperty(o,e),r),{}),zU=(t,e)=>{if(Array.isArray(t))return t.map(r=>zU(r,e));switch(typeof t){case"string":return ES(t,e);case"object":if(t===null)throw new be(`Unexpected endpoint property: ${t}`);return VU.getEndpointProperties(t,e);case"boolean":return t;default:throw new be(`Unexpected endpoint property type: ${typeof t}`)}},VU={getEndpointProperty:zU,getEndpointProperties:Gp}});var bS,_w=g(()=>{wn();zu();bS=(t,e)=>{let r=Ri(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new be(`Endpoint URL must be a string, got ${typeof r}`)}});var Rw,Ts,WU=g(()=>{wn();Sw();zu();yw();Ew();_w();Rw=1e8,Ts=(t,e)=>{let{nodes:r,root:n,results:o,conditions:s}=t,i=n,a={},c={referenceRecord:a,endpointParams:e.endpointParams,logger:e.logger};for(;i!==1&&i!==-1&&i<Rw;){let u=3*(Math.abs(i)-1),[f,m,y]=[r[u],r[u+1],r[u+2]],[_,C,A]=s[f],x=RS({fn:_,assign:A,argv:C},c);if(x.toAssign){let{name:T,value:I}=x.toAssign;a[T]=I}i=i>=0===x.result?m:y}if(i>=Rw){let u=o[i-Rw];if(u[0]===-1){let[,_]=u;throw new be(Ri(_,"Error",c))}let[f,m,y]=u;return{url:bS(f,c),properties:Gp(m,c),headers:CS(y??{},c)}}throw new be("No matching endpoint.")}});var Vu,AS=g(()=>{Bp();Sw();Vu=(t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},o=!1;for(let s of t){let{result:i,toAssign:a}=RS(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,e.logger?.debug?.(`${xs} assign: ${a.name} := ${Pn(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var KU,QU=g(()=>{Bp();AS();yw();Ew();_w();KU=(t,e)=>{let{conditions:r,endpoint:n}=t,{result:o,referenceRecord:s}=Vu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e,{url:a,properties:c,headers:u}=n;e.logger?.debug?.(`${xs} Resolving endpoint from template: ${Pn(n)}`);let f={url:bS(a,i)};return u!=null&&(f.headers=CS(u,i)),c!=null&&(f.properties=Gp(c,i)),f}});var YU,JU=g(()=>{wn();AS();zu();YU=(t,e)=>{let{conditions:r,error:n}=t,{result:o,referenceRecord:s}=Vu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;throw new be(Ri(n,"Error",i))}});var xS,XU,Cw,ZU=g(()=>{wn();AS();QU();JU();xS=(t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=KU(r,e);if(n)return n}else if(r.type==="error")YU(r,e);else if(r.type==="tree"){let n=Cw.evaluateTreeRule(r,e);if(n)return n}else throw new be(`Unknown endpoint rule: ${r}`);throw new be("Rules evaluation failed")},XU=(t,e)=>{let{conditions:r,rules:n}=t,{result:o,referenceRecord:s}=Vu(r,e);if(!o)return;let i=s?{...e,referenceRecord:{...e.referenceRecord,...s}}:e;return Cw.evaluateRules(n,i)},Cw={evaluateRules:xS,evaluateTreeRule:XU}});var eG=g(()=>{ZU()});var qp,tG=g(()=>{oe();Bp();wn();eG();qp=(t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:o,rules:s}=t;e.logger?.debug?.(`${xs} Initial EndpointParams: ${Pn(r)}`);for(let a in o){if(!W(o,a))continue;let c=o[a],u=r[a];if(u==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&u==null)throw new be(`Missing required parameter: '${a}'`)}let i=xS(s,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${xs} Resolved endpoint: ${Pn(i)}`),i}});var rG,nG=g(()=>{rG=t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t}});var Hp={};Ct(Hp,{BinaryDecisionDiagram:()=>Wn,EndpointCache:()=>Kn,EndpointError:()=>be,customEndpointFunctions:()=>hn,decideEndpoint:()=>Ts,endpointMiddleware:()=>rxe,endpointMiddlewareOptions:()=>ew,getEndpointFromInstructions:()=>txe,getEndpointPlugin:()=>bi,isIpAddress:()=>_i,isValidHostLabel:()=>_o,middlewareEndpointToEndpointV1:()=>Tn,resolveEndpoint:()=>qp,resolveEndpointConfig:()=>Ci,resolveEndpointRequiredConfig:()=>rG,resolveParams:()=>Fp,toEndpointV1:()=>Tn});var txe,Ci,rxe,bi,He=g(()=>{dU();hS();ZI();tw();_U();oe();RU();CU();WU();cw();oe();rw();tG();wn();hS();mS();tw();nG();txe=gS(Np),Ci=EU(Np),rxe=SS(Np),bi=yU(Np)});var TS,bw=g(()=>{He();TS=(t,e)=>(r,n)=>async o=>{let s=t,i=n.endpointV2?async()=>Tn(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await e(o.input,{...t,endpoint:i});return r({...o,request:a})}});function oG(t,e,r){return{applyToStack:n=>{n.add(Kh(t,r),Aw),n.add(TS(t,e),xw)}}}var Aw,xw,sG=g(()=>{DI();bw();Aw={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},xw={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});function iG(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ea(t,e):ArrayBuffer.isView(t)?Ao(t.buffer,t.byteOffset,t.byteLength):Ao(t)}var DS,vS,aG=g(()=>{DS=require("node:crypto");ta();TI();vS=class{algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bt(iG(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,DS.createHmac)(this.algorithmIdentifier,iG(this.secret)):(0,DS.createHash)(this.algorithmIdentifier)}}});var cG,Wu,Tw=g(()=>{cG=require("node:stream");mI();Wu=class extends cG.Readable{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??De,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}};onSourceError=e=>{this.destroy(e)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var Ht,sa,xo=g(()=>{Ht=t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),sa=t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)});var uG,lG=g(()=>{uG=t=>new TextEncoder().encode(t)});var dG,MAt,pG,IS,vw,fG,mG=g(()=>{dG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",MAt=Object.entries(dG).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),pG=dG.split(""),IS=6,vw=8,fG=63});function wS(t){let e;typeof t=="string"?e=uG(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<e.length;s+=3){let i=0,a=0;for(let u=s,f=Math.min(s+3,e.length);u<f;u++)i|=e[u]<<(f-u-1)*vw,a+=vw;let c=Math.ceil(a/IS);i<<=c*IS-a;for(let u=1;u<=c;u++){let f=(c-u)*IS;o+=pG[(i&fG<<f)>>f]}o+="==".slice(0,4-c)}return o}var Dw=g(()=>{lG();mG()});var nxe,PS,gG=g(()=>{nxe=typeof ReadableStream=="function"?ReadableStream:function(){},PS=class extends nxe{}});var hG,SG=g(()=>{Dw();xo();gG();hG=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!Ht(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??wS;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),f=s(u);if(t!==f){let m=new Error(`Checksum mismatch: expected "${t}" but received "${f}" in response header "${n}".`);c.error(m)}else c.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,PS.prototype),a}});function OS(t){return typeof ReadableStream=="function"&&Ht(t.source)?hG(t):new Wu(t)}var yG=g(()=>{xo();Tw();SG()});var Rc,Iw=g(()=>{Rc=class{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];e.set(o,r),r+=o.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function EG(t,e,r){let n=t.getReader(),o=!1,s=0,i=["",new Rc(u=>new Uint8Array(u))],a=-1,c=async u=>{let{value:f,done:m}=await n.read(),y=f;if(m){if(a!==-1){let _=Cc(i,a);Ai(_)>0&&u.enqueue(_)}u.close()}else{let _=Pw(y,!1);if(a!==_&&(a>=0&&u.enqueue(Cc(i,a)),a=_),a===-1){u.enqueue(y);return}let C=Ai(y);s+=C;let A=Ai(i[a]);if(C>=e&&A===0)u.enqueue(y);else{let x=ww(i,a,y);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${e}, automatically buffering.`)),x>=e?u.enqueue(Cc(i,a)):await c(u)}}};return new ReadableStream({pull:c})}function ww(t,e,r){switch(e){case 0:return t[0]+=r,Ai(t[0]);case 1:case 2:return t[e].push(r),Ai(t[e])}}function Cc(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Ai(t){return t?.byteLength??t?.length??0}function Pw(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var _G=g(()=>{Iw()});function $S(t,e,r){if(Ht(t))return EG(t,e,r);let n=new RG.Readable({read(){}}),o=!1,s=0,i=["",new Rc(c=>new Uint8Array(c)),new Rc(c=>Buffer.from(new Uint8Array(c)))],a=-1;return t.on("data",c=>{let u=Pw(c,!0);if(a!==u&&(a>=0&&n.push(Cc(i,a)),a=u),a===-1){n.push(c);return}let f=Ai(c);s+=f;let m=Ai(i[a]);if(f>=e&&m===0)n.push(c);else{let y=ww(i,a,c);!o&&s>e*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${f} is below threshold of ${e}, automatically buffering.`)),y>=e&&n.push(Cc(i,a))}}),t.on("end",()=>{if(a!==-1){let c=Cc(i,a);Ai(c)>0&&n.push(c)}n.push(null)}),n}var RG,CG=g(()=>{RG=require("node:stream");Iw();_G();xo()});var bG,AG=g(()=>{bG=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=e,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,c=a?i(o,t):void 0;Promise.resolve(c).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(f){let{value:m,done:y}=await u.read();if(y){if(f.enqueue(`0\r
13
13
  `),a){let _=r(await c);f.enqueue(`${s}:${_}\r
14
14
  `),f.enqueue(`\r
15
15
  `)}f.close()}else f.enqueue(`${(n(m)||0).toString(16)}\r
16
16
  ${m}\r
17
- `)}})}});function UB(t,e){let r=t,n=t;if(Lt(n))return MB(n,e);let{base64Encoder:o,bodyLengthChecker:s,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:c}=e,u=o!==void 0&&i!==void 0&&a!==void 0&&c!==void 0,f=u?c(i,r):void 0;Promise.resolve(f).catch(()=>{});let m=new FB.Readable({read(){r.resume()}});return r.on("data",y=>{let _=s(y)||0;_!==0&&(m.push(`${_.toString(16)}\r
17
+ `)}})}});function TG(t,e){let r=t,n=t;if(Ht(n))return bG(n,e);let{base64Encoder:o,bodyLengthChecker:s,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:c}=e,u=o!==void 0&&i!==void 0&&a!==void 0&&c!==void 0,f=u?c(i,r):void 0;Promise.resolve(f).catch(()=>{});let m=new xG.Readable({read(){r.resume()}});return r.on("data",y=>{let _=s(y)||0;_!==0&&(m.push(`${_.toString(16)}\r
18
18
  `),m.push(y),m.push(`\r
19
19
  `)||r.pause())}),r.on("error",y=>{m.destroy(y)}),r.pause(),r.on("end",async()=>{try{if(m.push(`0\r
20
20
  `),u){let y=o(await f);m.push(`${a}:${y}\r
21
21
  `),m.push(`\r
22
- `)}m.push(null)}catch(y){m.destroy(y)}}),m}var FB,GB=h(()=>{FB=require("node:stream");BB();so()});async function qB(t,e){let r=0,n=[],o=t.getReader(),s=!1;for(;!s;){let{done:c,value:u}=await o.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;s=c}o.releaseLock();let i=new Uint8Array(Math.min(e,r)),a=0;for(let c of n){if(c.byteLength>i.byteLength-a){i.set(c.subarray(0,i.byteLength-a),a);break}else i.set(c,a);a+=c.length}return i}var jB=h(()=>{});var HB,zB,Fw,VB=h(()=>{HB=require("node:stream");Nd();jB();so();zB=(t,e)=>Lt(t)?qB(t,e):new Promise((r,n)=>{let o=new Fw;o.limit=e,t.pipe(o),t.on("error",s=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=wn(this.buffers);r(s)})}),Fw=class extends HB.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let o=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-o),this.emit("finish")}n()}}});var WB,KB=h(()=>{WB=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)}});async function Uw(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Gw(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:o,value:s}=await r.read();if(s&&(e.push(s),n+=s.length),o)break}return wn(e,n)}var QB,qw=h(()=>{Nd();so();QB=async t=>vi(t)?Uw(t):Gw(t)});var JB,YB,XB,ZB=h(()=>{Lw();OT();KB();qw();so();JB="The stream has already been transformed.",YB=t=>{if(!XB(t)&&!Lt(t)){let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(JB);return e=!0,await QB(t)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
23
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return mg(s);if(o==="hex")return Tn(s);if(o===void 0||o==="utf8"||o==="utf-8")return WB(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(JB);if(e=!0,XB(t))return n(t);if(Lt(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},XB=t=>typeof Blob=="function"&&t instanceof Blob});var e2,yg,jw,Hw=h(()=>{e2=require("node:stream");Nd();qw();so();yg=t=>vi(t)?Uw(t):Lt(t)?Gw(t):new Promise((e,r)=>{let n=new jw,o=t;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=wn(this.bufferedBytes);e(s)})}),jw=class extends e2.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var Eg,t2,_g,r2=h(()=>{Eg=require("node:stream");xi();ZB();Hw();t2="The stream has already been transformed.",_g=t=>{if(!(t instanceof Eg.Readable))try{return YB(t)}catch{let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(t2);return e=!0,await yg(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?oo(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(t2);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Eg.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,Eg.Readable.toWeb(t)}})}});async function n2(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var o2=h(()=>{});async function s2(t){if(Lt(t)||vi(t))return n2(t);let e=new zw.PassThrough,r=new zw.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var zw,i2=h(()=>{zw=require("node:stream");o2();so()});var Pi={};mt(Pi,{ChecksumStream:()=>pu,Hash:()=>dg,LazyJsonString:()=>Me,NumericValue:()=>K,Uint8ArrayBlobAdapter:()=>za,_parseEpochTimestamp:()=>Ti,_parseRfc3339DateTimeWithOffset:()=>Th,_parseRfc7231DateTime:()=>wh,calculateBodyLength:()=>Wo,concatBytes:()=>wn,copyDocumentWithTransform:()=>AN,createBufferedReadable:()=>Sg,createChecksumStream:()=>gg,dateToUtcString:()=>dr,deserializerMiddleware:()=>Dh,deserializerMiddlewareOption:()=>Dw,expectBoolean:()=>vN,expectByte:()=>Eh,expectFloat32:()=>kd,expectInt:()=>PN,expectInt32:()=>Sh,expectLong:()=>Zc,expectNonNull:()=>IN,expectNumber:()=>Yc,expectObject:()=>CT,expectShort:()=>yh,expectString:()=>DN,expectUnion:()=>Rh,fromArrayBuffer:()=>oo,fromBase64:()=>We,fromHex:()=>Ih,fromString:()=>Ci,fromUtf8:()=>$t,generateIdempotencyToken:()=>fr,getAwsChunkedEncodingStream:()=>UB,getSerdePlugin:()=>yB,handleFloat:()=>kN,hasOwn:()=>H,headStream:()=>zB,isArrayBuffer:()=>Xc,isBlob:()=>vi,isReadableStream:()=>Lt,limitedParseDouble:()=>Ch,limitedParseFloat:()=>$N,limitedParseFloat32:()=>LN,logger:()=>eu,nv:()=>Ph,parseBoolean:()=>wN,parseEpochTimestamp:()=>Vo,parseRfc3339DateTime:()=>FN,parseRfc3339DateTimeWithOffset:()=>zo,parseRfc7231DateTime:()=>Zr,quoteHeader:()=>Ah,sdkStreamMixin:()=>_g,serializerMiddleware:()=>lg,serializerMiddlewareOption:()=>Ow,splitEvery:()=>vh,splitHeader:()=>nu,splitStream:()=>s2,streamCollector:()=>yg,strictParseByte:()=>xh,strictParseDouble:()=>$d,strictParseFloat:()=>ON,strictParseFloat32:()=>bh,strictParseInt:()=>MN,strictParseInt32:()=>BN,strictParseLong:()=>xT,strictParseShort:()=>Ai,toBase64:()=>Ce,toHex:()=>Tn,toUint8Array:()=>ht,toUtf8:()=>Fe,v4:()=>fu});var a2,za,Yhe,fu,fr,j=h(()=>{a2=require("node:crypto");EN();RT();RN();hh();bN();xN();TN();UN();GN();AT();qN();zN();VN();WN();QN();OT();XN();kT();Nd();xi();_T();LT();EB();Iw();RB();kw();OB();NB();GB();VB();r2();i2();so();Hw();Z();za=class extends _N(Fe,$t,Ce,We){},Yhe=a2.getRandomValues,fu=CN(Yhe),fr=fu});var gt,mu=h(()=>{j();gt=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return za.mutate(t);if(!t)return za.mutate(new Uint8Array);let r=e.streamCollector(t);return za.mutate(await r)}});function io(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var Rg=h(()=>{});var jt,hu=h(()=>{jt=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function bg(t,e,r=1024*1024){let n=t.size,o=0;for(;o<n;){let s=t.slice(o,Math.min(n,o+r));e(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Vw=h(()=>{});var c2,u2=h(()=>{Vw();c2=async function(e,r){let n=new e;return await bg(r,o=>{n.update(o)}),n.digest()}});var l2,gu,Ww=h(()=>{l2=require("node:stream");j();gu=class extends l2.Writable{hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(ht(e))}catch(o){return n(o)}n()}}});var d2,p2,Zhe,f2=h(()=>{d2=require("node:fs");Ww();p2=(t,e)=>new Promise((r,n)=>{if(!Zhe(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,d2.createReadStream)(e.path,{start:e.start,end:e.end}),s=new t,i=new gu(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),Zhe=t=>typeof t.path=="string"});var m2,h2=h(()=>{Ww();m2=(t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new gu(r);return e.pipe(n),new Promise((o,s)=>{e.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function Kw(t,e){let r=t[0],n=t[1],o=t[2],s=t[3];for(let i=0;i<64;++i){let a,c;i<16?(a=n&o|~n&s,c=i):i<32?(a=s&n|o&~s,c=(5*i+1)%16):i<48?(a=n^o^s,c=(3*i+5)%16):(a=o^(n|~s),c=7*i%16);let u=e.getUint32(c*4,!0),f=s;s=o,o=n;let m=ege[(i>>4)*4+(i&3)],y=(r+a&Ii)+(u+tge[i]&Ii)&Ii;n=n+((y<<m|y>>>32-m)>>>0)&Ii,r=f}t[0]=t[0]+r&Ii,t[1]=t[1]+n&Ii,t[2]=t[2]+o&Ii,t[3]=t[3]+s&Ii}var Su,g2,Ii,ege,tge,Qw=h(()=>{j();Su=class{digestLength=16;state=Uint32Array.from(g2);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=ht(e),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(Kw(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);Kw(e,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),Kw(e,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,e[a],!0);return s}reset(){this.state.set(g2),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},g2=[1732584193,4023233417,2562383102,271733878],Ii=4294967295,ege=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),tge=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0)});function nge(){return class{digestLength=16;hash=(0,Cg.createHash)("md5");update(e){this.hash.update(ht(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,Cg.createHash)("md5")}}}var Cg,rge,Jw,S2=h(()=>{Cg=require("node:crypto");j();Qw();rge=(()=>{try{return(0,Cg.createHash)("md5"),!0}catch{return!1}})(),Jw=rge?nge():Su});var y2,Xw,Va,Yw=h(()=>{y2=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;y2[t]=e>>>0}Xw=4294967295,Va=class{digestLength=4;checksum=Xw;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^y2[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Xw)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Xw}}});function oge(t){return class{digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var Zw,E2,ao,_2=h(()=>{Zw=Oe(require("node:zlib"));Yw();E2=typeof Zw.crc32=="function"?Zw.crc32:void 0,ao=E2?oge(E2):Va});var mr,R2,sge,co,b2,ige,xg=h(()=>{j();mr=64,R2=32,sge=2**53-1,co=class t{digestLength=R2;state=Int32Array.from(b2);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:o}=this,s=new Uint8Array(mr*2);for(let i=0;i<mr;++i)s[i]=54^r[i],s[i+mr]=92^r[i];n.update(s.subarray(0,mr)),o.update(s.subarray(mr))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=ht(e),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>sge)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===mr&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(b2),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%mr>=mr-8){for(let a=n;a<mr;++a)s.setUint8(a,0);this.hashBufferWith(e,r),n=0}for(let a=n;a<mr-8;++a)s.setUint8(a,0);s.setUint32(mr-8,Math.floor(o/4294967296),!1),s.setUint32(mr-4,o,!1),this.hashBufferWith(e,r);let i=new Uint8Array(R2);for(let a=0;a<8;++a)i[a*4]=e[a]>>>24&255,i[a*4+1]=e[a]>>>16&255,i[a*4+2]=e[a]>>>8&255,i[a*4+3]=e[a]>>>0&255;return i}static normalizeKey(e){let r=ht(e);if(r.byteLength>mr){let n=new t;n.update(r);let o=n.digestSync(),s=new Uint8Array(mr);return s.set(o),s}if(r.byteLength<mr){let n=new Uint8Array(mr);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),o=e[0],s=e[1],i=e[2],a=e[3],c=e[4],u=e[5],f=e[6],m=e[7];for(let y=0;y<mr;++y){if(y<16)n[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{let b=n[y-2],C=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10;b=n[y-15];let x=(b>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;n[y]=(C+n[y-7]|0)+(x+n[y-16]|0)}let _=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&f)|0)+(m+(ige[y]+n[y]|0)|0)|0,R=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=f,f=u,u=c,c=a+_|0,a=i,i=s,s=o,o=_+R|0}e[0]+=o,e[1]+=s,e[2]+=i,e[3]+=a,e[4]+=c,e[5]+=u,e[6]+=f,e[7]+=m}},b2=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ige=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function cge(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Kd.createHmac)("sha256",uge(this.secret)):(0,Kd.createHash)("sha256")}}}function uge(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Kd,age,rn,C2=h(()=>{Kd=require("node:crypto");xg();age=(()=>{try{return(0,Kd.createHash)("sha256"),!0}catch{return!1}})(),rn=age?cge():co});var lge,dge,pge,Ag,fge,Tg,x2=h(()=>{j();xg();({digest:lge,sign:dge,importKey:pge}=globalThis?.crypto?.subtle??{}),Ag=typeof lge=="function"&&typeof dge=="function"&&typeof pge=="function"?globalThis.crypto.subtle:void 0,fge=8*1024*1024,Tg=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=ht(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=fge&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=wn(this.pending);if(Ag){if(this.secret){this.finished=!0;let o=await Ag.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await Ag.sign("HMAC",o,e);return new Uint8Array(s)}let n=await Ag.digest("SHA-256",e);return new Uint8Array(n)}let r=new co(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new co(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var wg={};mt(wg,{Crc32:()=>ao,Crc32Js:()=>Va,Crc32Node:()=>ao,Md5:()=>Jw,Md5Js:()=>Su,Md5Node:()=>Jw,Sha256:()=>rn,Sha256Js:()=>co,Sha256Node:()=>rn,Sha256WebCrypto:()=>Tg,blobHasher:()=>c2,blobReader:()=>bg,fileStreamHasher:()=>p2,readableStreamHasher:()=>m2});var In=h(()=>{u2();f2();h2();Qw();S2();Yw();_2();xg();C2();x2();Vw()});function A2(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Di,ev=h(()=>{j();Di=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&A2(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&A2(e),parseInt(Tn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var yu,T2,w2,mge,hge,gge,Sge,yge,Ege,_ge,Rge,bge,tv=h(()=>{Z();j();ev();yu=class{toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let s in e){if(!H(e,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(Di.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!bge.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Ih(e.value.replace(/-/g,"")),1),m}}parse(e){let r={},n=0;for(;n<e.byteLength;){let o=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,o));switch(n+=o,e.getUint8(n++)){case 0:r[s]={type:w2,value:!0};break;case 1:r[s]={type:w2,value:!1};break;case 2:r[s]={type:mge,value:e.getInt8(n++)};break;case 3:r[s]={type:hge,value:e.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:gge,value:e.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:Sge,value:new Di(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let i=e.getUint16(n,!1);n+=2,r[s]={type:yge,value:new Uint8Array(e.buffer,e.byteOffset+n,i)},n+=i;break;case 7:let a=e.getUint16(n,!1);n+=2,r[s]={type:Ege,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:_ge,value:new Date(new Di(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[s]={type:Rge,value:`${Tn(c.subarray(0,4))}-${Tn(c.subarray(4,6))}-${Tn(c.subarray(6,8))}-${Tn(c.subarray(8,10))}-${Tn(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(T2||(T2={}));w2="boolean",mge="byte",hge="short",gge="integer",Sge="long",yge="binary",Ege="string",_ge="timestamp",Rge="uuid",bge=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function P2({byteLength:t,byteOffset:e,buffer:r}){if(t<Cge)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),o=n.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(v2,!1),i=n.getUint32(Oi,!1),a=n.getUint32(t-Wa,!1),c=new ao;if(c.update(new Uint8Array(r,e,Oi)),i!==c.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${c.digestSync()})`);if(c.update(new Uint8Array(r,e+Oi,t-(Oi+Wa))),a!==c.digestSync())throw new Error(`The message checksum (${c.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,e+Oi+Wa,s),body:new Uint8Array(r,e+Oi+Wa+s,o-s-(Oi+Wa+Wa))}}var v2,Oi,Wa,Cge,I2=h(()=>{In();v2=4,Oi=v2*2,Wa=4,Cge=Oi+Wa*2});var Eu,rv=h(()=>{In();tv();I2();Eu=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new yu(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new ao;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(e){let{headers:r,body:n}=P2(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var _u,nv=h(()=>{_u=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var Ru,ov=h(()=>{Ru=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var bu,sv=h(()=>{bu=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var Cu,iv=h(()=>{Cu=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function vg(t){let e=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=t[Symbol.asyncIterator]();for(;;){let{value:c,done:u}=await a.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let f=c.length,m=0;for(;m<f;){if(!n){let _=f-m;o||(o=new Uint8Array(4));let R=Math.min(4-r,_);if(o.set(c.slice(m,m+R),r),r+=R,m+=R,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let y=Math.min(e-r,f-m);n.set(c.slice(m,m+y),r),r+=y,m+=y,e&&e===r&&(yield n,n=null,e=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var av=h(()=>{});function D2(t,e){let r=Qd(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let o=e.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Qd(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await t(s);if(i.$unknown){let a=new Error(e(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await t(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var cv=h(()=>{});var Ka,O2,uv=h(()=>{rv();nv();ov();sv();iv();av();cv();Ka=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new Eu(e,r),this.utfEncoder=e}deserialize(e,r){let n=vg(e);return new bu({messageStream:new _u({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Qd(r,this.utfEncoder)})}serialize(e,r){return new Ru({messageStream:new Cu({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},O2=t=>new Ka(t)});async function*xge(t){let e=!1,r=!1,n=new Array;for(t.on("error",o=>{if(e||(e=!0),o)throw o}),t.on("data",o=>{n.push(o)}),t.on("end",()=>{e=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=e&&n.length===0}}var k2,Jd,$2,L2=h(()=>{k2=require("node:stream");uv();Jd=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Ka({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:xge(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return k2.Readable.from(this.universalMarshaller.serialize(e,r))}},$2=t=>new Jd(t)});var N2,M2,B2=h(()=>{N2=t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),M2=t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await e.next();if(n)return r.close();r.enqueue(o)}})}});var F2,U2=h(()=>{F2=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)})});var Pg,G2=h(()=>{Z();ne();j();Pg=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,f=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let y={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,n);let _=c.flush();yield{[f]:!0,headers:y,body:_}}for await(let y of e)yield y}};return s.serialize(m,y=>{if(y[f])return{headers:y.headers,body:y.body};let _="";for(let U in y)if(H(y,U)&&U!=="__type"){_=U;break}let{additionalHeaders:R,body:b,eventType:C,explicitPayloadContentType:x}=this.writeEventBody(_,a,y);return{headers:{":event-type":{type:"string",value:C},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:x??u},...R},body:b}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),c=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),f=s.deserialize(e.body,async _=>{let R="";for(let C in _)if(H(_,C)&&C!=="__type"){R=C;break}let b=_[R].body;if(R===(o??"initial-response")){let C=await this.deserializer.read(r,b);return delete C[i],{[u]:!0,...C}}else if(R in c){let C=c[R];if(C.isStructSchema()){let x={},w=!1;for(let[U,G]of C.structIterator()){let{eventHeader:ue,eventPayload:Qe}=G.getMergedTraits();if(w=w||!!(ue||Qe),Qe)G.isBlobSchema()?x[U]=b:G.isStringSchema()?x[U]=(this.serdeContext?.utf8Encoder??Fe)(b):G.isStructSchema()&&(x[U]=await this.deserializer.read(G,b));else if(ue){let Ze=_[R].headers[U]?.value;Ze!=null&&(G.isNumericSchema()?Ze&&typeof Ze=="object"&&"bytes"in Ze?x[U]=BigInt(Ze.toString()):x[U]=Number(Ze):x[U]=Ze)}}return{[R]:await this.readEventMember(C,b,w,x)}}return{[R]:await this.deserializer.read(C,b)}}else return{$unknown:_}}),m=f[Symbol.asyncIterator](),y=await m.next();if(y.done)return f;if(y.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let _ in y.value)H(y.value,_)&&(n[_]=y.value[_])}return{async*[Symbol.asyncIterator](){for(y?.value?.[u]||(yield y.value);;){let{done:_,value:R}=await m.next();if(_)break;yield R}}}}async readEventMember(e,r,n,o){let s,i=e.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=ke.for(c);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(e,r);if(s){let c=a.message??a.Message??"Unknown",u={},f=e.getMergedTraits().error;return f&&(u.$fault=f),Object.assign(new s({}),u,{message:c},a)}return a}writeEventBody(e,r,n){let o=this.serializer,s=e,i=null,a,c=r.getSchema()[4].includes(e),u={};if(c){let y=r.getMemberSchema(e);if(y.isStructSchema()){for(let[_,R]of y.structIterator()){let{eventHeader:b,eventPayload:C}=R.getMergedTraits();if(C)i=_;else if(b){let x=n[e][_],w="binary";R.isNumericSchema()?(-2)**31<=x&&x<=2**31-1?w="integer":w="long":R.isTimestampSchema()?w="timestamp":R.isStringSchema()?w="string":R.isBooleanSchema()&&(w="boolean"),x!=null&&(u[_]={type:w,value:x},delete n[e][_])}}if(i!==null){let _=y.getMemberSchema(i);_.isBlobSchema()?a="application/octet-stream":_.isStringSchema()&&(a="text/plain"),o.write(_,n[e][i])}else o.write(y,n[e])}else if(y.isUnitSchema())o.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,_]=n[e];s=y,o.write(15,_)}let f=o.flush()??new Uint8Array;return{body:typeof f=="string"?(this.serdeContext?.utf8Decoder??$t)(f):f,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var Ig={};mt(Ig,{EventStreamCodec:()=>Eu,EventStreamMarshaller:()=>Jd,EventStreamSerde:()=>Pg,HeaderMarshaller:()=>yu,Int64:()=>Di,MessageDecoderStream:()=>_u,MessageEncoderStream:()=>Ru,SmithyMessageDecoderStream:()=>bu,SmithyMessageEncoderStream:()=>Cu,UniversalEventStreamMarshaller:()=>Ka,eventStreamSerdeProvider:()=>$2,getChunkedStream:()=>vg,getMessageUnmarshaller:()=>Qd,getUnmarshalledStream:()=>D2,iterableToReadableStream:()=>M2,readableStreamToIterable:()=>N2,resolveEventStreamSerdeConfig:()=>F2,universalEventStreamSerdeProvider:()=>O2});var Dg=h(()=>{rv();tv();ev();nv();ov();sv();iv();L2();B2();uv();av();cv();U2();G2()});var ki,Og=h(()=>{Z();ne();Z();hu();ki=class extends jt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new ke(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return X}getResponseType(){return it}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,o]of r.url.searchParams.entries())e.query[n]=o;if(r.headers)for(let n in r.headers)H(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)H(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let o=N.of(r.input),s=ro(r.traits??{});if(s.endpoint){let i=s.endpoint?.[0];if(typeof i=="string"){for(let[a,c]of o.structIterator()){if(!c.getMergedTraits().hostLabel)continue;let u=n[a];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${a} in input must be a string as hostLabel.`);i=i.replace(`{${a}}`,u)}if(e.hostname=i+e.hostname,!bd(e.hostname))throw new Error(`[${e.hostname}] is not a valid 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"]}}resolveError(e,r,n){let o=[-3,"","Error",0,[],[],0],s;for(let i of n)for(let a of r)try{a==="*"?s=i.getSchema(e):s=i.getSchema(a+"#"+e);let c=i.getErrorCtor(s);if(c)return[s,c,"modeled"];{let u=i.getBaseException();if(u){let f=i.getErrorCtor(u);if(f)return[s,f,"synthetic"]}}}catch{}for(let i of n){let a=i.getBaseException();if(a){let c=i.getErrorCtor(a);if(c)return[a,c,"synthetic"]}}return[o,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(Dg(),Ig)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,o,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var $i,q2=h(()=>{Z();ne();j();Z();Og();mu();Rg();$i=class extends ki{async serializeRequest(e,r,n){let o=r&&typeof r=="object"?r:{},s=this.serializer,i={},a={},c=await n.endpoint(),u=N.of(e?.input),f=[],m=[],y=!1,_,R=new X({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:i,headers:a,body:void 0});if(c){this.updateServiceEndpoint(R,c),this.setHostPrefix(R,e,o);let b=ro(e.traits);if(b.http){R.method=b.http[0];let[C,x]=b.http[1].split("?");R.path=="/"?R.path=C:R.path+=C;let w=new URLSearchParams(x??"");for(let[U,G]of w)i[U]=G}}for(let[b,C]of u.structIterator()){let x=C.getMergedTraits()??{},w=o[b];if(w==null&&!C.isIdempotencyToken()){if(x.httpLabel&&(R.path.includes(`{${b}+}`)||R.path.includes(`{${b}}`)))throw new Error(`No value provided for input HTTP label: ${b}.`);continue}if(x.httpPayload)C.isStreaming()?C.isStructSchema()?o[b]&&(_=await this.serializeEventStream({eventStream:o[b],requestSchema:u})):_=w:(s.write(C,w),_=s.flush());else if(x.httpLabel){s.write(C,w);let U=s.flush();R.path.includes(`{${b}+}`)?R.path=R.path.replace(`{${b}+}`,U.split("/").map(io).join("/")):R.path.includes(`{${b}}`)&&(R.path=R.path.replace(`{${b}}`,io(U)))}else if(x.httpHeader)s.write(C,w),a[x.httpHeader.toLowerCase()]=String(s.flush());else if(typeof x.httpPrefixHeaders=="string")for(let U in w){if(!H(w,U))continue;let G=w[U],ue=x.httpPrefixHeaders+U;s.write([C.getValueSchema(),{httpHeader:ue}],G),a[ue.toLowerCase()]=s.flush()}else x.httpQuery||x.httpQueryParams?this.serializeQuery(C,w,i):(y=!0,f.push(b),m.push(C))}if(y&&o){let[b,C]=(u.getName(!0)??"#Unknown").split("#"),x=u.getSchema()[6],w=[3,b,C,u.getMergedTraits(),f,m,void 0];x?w[6]=x:w.pop(),s.write(w,o),_=s.flush()}return R.headers=a,R.query=i,R.body=_,R}serializeQuery(e,r,n){let o=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let i in r)if(H(r,i)&&!(i in n)){let a=r[i],c=e.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:i,httpQueryParams:void 0}),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let i=!!e.getMergedTraits().sparse,a=[];for(let c of r){o.write([e.getValueSchema(),s],c);let u=o.flush();(i||u!==void 0)&&a.push(u)}n[s.httpQuery]=a}else o.write([e,s],r),n[s.httpQuery]=o.flush()}async deserializeResponse(e,r,n){let o=this.deserializer,s=N.of(e.output),i={};if(n.statusCode>=300){let c=await gt(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){if(!H(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,r,n,i);if(a.length){let c=await gt(n.body,r);if(c.byteLength>0){let u=await o.read(s,c);for(let f of a)u[f]!=null&&(i[f]=u[f])}}else a.discardResponseBody&&await gt(n.body,r);return i.$metadata=this.deserializeMetadata(n),i}async deserializeHttpMessage(e,r,n,o,s){let i;o instanceof Set?i=s:i=o;let a=!0,c=this.deserializer,u=N.of(e),f=[];for(let[m,y]of u.structIterator()){let _=y.getMemberTraits();if(_.httpPayload){if(a=!1,y.isStreaming())y.isStructSchema()?i[m]=await this.deserializeEventStream({response:n,responseSchema:u}):i[m]=_g(n.body);else if(n.body){let b=await gt(n.body,r);b.byteLength>0&&(i[m]=await c.read(y,b))}}else if(_.httpHeader){let R=String(_.httpHeader).toLowerCase(),b=n.headers[R];if(b!=null)if(y.isListSchema()){let C=y.getValueSchema();C.getMergedTraits().httpHeader=R;let x;C.isTimestampSchema()&&C.getSchema()===4?x=vh(b,",",2):x=nu(b);let w=[];for(let U of x)w.push(await c.read(C,U.trim()));i[m]=w}else i[m]=await c.read(y,b)}else if(_.httpPrefixHeaders!==void 0){i[m]={};for(let R in n.headers)if(H(n.headers,R)&&R.startsWith(_.httpPrefixHeaders)){let b=n.headers[R],C=y.getValueSchema();C.getMergedTraits().httpHeader=R,i[m][R.slice(_.httpPrefixHeaders.length)]=await c.read(C,b)}}else _.httpResponseCode?i[m]=n.statusCode:f.push(m)}return f.discardResponseBody=a,f}}});var Dn,lv=h(()=>{Z();ne();Z();Og();mu();Dn=class extends ki{async serializeRequest(e,r,n){let o=this.serializer,s={},i={},a=await n.endpoint(),c=N.of(e?.input),u=c.getSchema(),f,m=r&&typeof r=="object"?r:{},y=new X({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:i,body:void 0});if(a&&(this.updateServiceEndpoint(y,a),this.setHostPrefix(y,e,m)),m){let _=c.getEventStreamMember();if(_){if(m[_]){let R={};for(let[b]of c.structIterator())b!==_&&m[b]!=null&&(R[b]=m[b]);f=await this.serializeEventStream({eventStream:m[_],requestSchema:c,initialRequest:R})}}else o.write(u,m),f=o.flush()}return y.headers=Object.assign(y.headers,i),y.query=s,y.body=f,y.method="POST",y}async deserializeResponse(e,r,n){let o=this.deserializer,s=N.of(e.output),i={};if(n.statusCode>=300){let c=await gt(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let c in n.headers){if(!H(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=s.getEventStreamMember();if(a)i[a]=await this.deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:i});else{let c=await gt(n.body,r);c.byteLength>0&&Object.assign(i,await o.read(s,c))}return i.$metadata=this.deserializeMetadata(n),i}}});var kg,dv=h(()=>{Rg();kg=(t,e,r,n,o,s)=>{if(e!=null&&e[r]!==void 0){let i=n();if(i==null||i.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(o,s?i.split("/").map(a=>io(a)).join("/"):io(i))}else throw new Error("No value provided for input HTTP label: "+r+".");return t}});function $g(t,e){return new Xd(t,e)}var Xd,j2=h(()=>{Z();dv();Xd=class{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(let s of this.resolvePathStack)s(this.path);return new X({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,o){return this.resolvePathStack.push(s=>{this.path=kg(s,this.input,e,r,n,o)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ke(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||o?6:s||r?5:void 0:void 0)??e.timestampFormat.default}var Li=h(()=>{});var Ni,pv=h(()=>{ne();j();hu();Li();Ni=class extends jt{settings;constructor(e){super(),this.settings=e}read(e,r){let n=N.of(e);if(n.isListSchema())return nu(r).map(o=>this.read(n.getValueSchema(),o));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??We)(r);if(n.isTimestampSchema())switch(Ke(n,this.settings)){case 5:return Th(r);case 6:return wh(r);case 7:return Ti(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let o=n.getMergedTraits().mediaType,s=r;if(o)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(o==="application/json"||o.endsWith("+json"))&&(s=Me.from(s)),s}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new K(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Fe)((this.serdeContext?.base64Decoder??We)(e))}}});var Mi,H2=h(()=>{ne();j();hu();pv();Mi=class extends jt{codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new Ni(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=N.of(e),o=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??Fe;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(n,s(r));if(o.httpPayload){if(n.isBlobSchema()){let i=this.serdeContext?.utf8Decoder??$t;return typeof r=="string"?i(r):r}else if(n.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(n,r)}}});var xu,fv=h(()=>{ne();j();hu();Li();xu=class extends jt{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=N.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ke(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=dr(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Ce)(r);return}if(n.isListSchema()&&Array.isArray(r)){let i="";for(let a of r){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),u=n.getValueSchema().isTimestampSchema()?c:Ah(c);i!==""&&(i+=", "),i+=u}this.stringBuffer=i;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let o=n.getMergedTraits().mediaType,s=r;if(o&&((o==="application/json"||o.endsWith("+json"))&&(s=Me.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ce)(s.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=fr():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var Bi,z2=h(()=>{ne();fv();Bi=class{codecSerializer;stringSerializer;buffer;constructor(e,r,n=new xu(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=N.of(e),o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var V2,Lg,W2=h(()=>{V2=Oe(eo()),Lg=class{name;kind;values;constructor({name:e,kind:r=V2.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var Ng,K2=h(()=>{Ng=class{entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var ts,rs,Q2=h(()=>{ts=t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),rs=t=>({requestHandler:t.httpHandler()})});function mv(t){return e=>async r=>{let n=r.request;if(X.isInstance(n)){let{body:o,headers:s}=n;if(o&&Object.keys(s).map(i=>i.toLowerCase()).indexOf(J2)===-1)try{let i=t(o);i!=null&&(n.headers={...n.headers,[J2]:String(i)})}catch{}}return e({...r,request:n})}}var J2,hv,ns,X2=h(()=>{Z();J2="content-length";hv={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},ns=t=>({applyToStack:e=>{e.add(mv(t.bodyLengthChecker),hv)}})});var Fi,Age,Mg=h(()=>{Fi=t=>encodeURIComponent(t).replace(/[!'()*]/g,Age),Age=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var Y2,Z2=h(()=>{Mg();Y2=t=>t.split("/").map(Fi).join("/")});function eF(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Fi(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${Fi(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${Fi(n)}`),e.push(o)}}return e.join("&")}var tF=h(()=>{Mg()});var nn,Qa=h(()=>{nn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var Au,gv=h(()=>{Au=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function Bg(){if(Yd===void 0)try{if(typeof Buffer!="function")Yd=!1;else{let t=JSON.parse(Buffer.from([123,125]));Yd=t!==null&&typeof t=="object"}}catch{Yd=!1}return Yd}var Yd,Sv=h(()=>{});function Tu(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?wge(n,e)?e:new K(n,"bigDecimal"):Tge(n)?new K(n,"bigDecimal"):/[eE]/.test(n)?vge(n):BigInt(n)}return e}function Tge(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function wge(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return yv(t)===yv(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===yv(n):!1}function yv(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function vge(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var Fg=h(()=>{j()});function wu(t){let e=N.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(Ev in r)return r[Ev];let n=Ug(e,new Set);return r[Ev]=n,n}return Ug(e,new Set)}function Ug(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(Ug(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(Ug(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var Ev,Gg=h(()=>{ne();Ev=Symbol.for("@aws-sdk/reviver")});var rF,nF=h(()=>{mu();j();rF=(t,e)=>gt(t,e).then(r=>(e?.utf8Encoder??Fe)(r))});async function Ja(t,e,r){let n;if(Bg()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await gt(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await rF(t,e)),n.length===0)return{};let o=r&&wu(r)?Tu:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var sF,oF,_v,iF,aF,qg,cF,Zd=h(()=>{mu();nF();Sv();Fg();Gg();sF=async(t,e)=>{let r=await Ja(t,e);return r.message=r.message??r.Message,r},oF=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),_v=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},iF=(t,e)=>cF(t,e,["header","code","type"]),aF=(t,e,r=!1)=>cF(t,e,r?["code","header","type"]:["type","code","header"]),qg=(t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},cF=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=oF(t??{},"x-amzn-errortype");if(o!==void 0)return _v(t[o]);break;case"code":let s=oF(e??{},"code");if(s&&e[s]!==void 0)return _v(e[s]);break;case"type":if(e?.__type!==void 0)return _v(e.__type);break}}});function os(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var jg=h(()=>{});var vu,Rv=h(()=>{Li();ne();j();Qa();gv();Sv();Fg();Gg();Zd();jg();Z();vu=class extends nn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=wu(e)?Tu:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&Bg()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Ja(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=N.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)H(a,c)&&(c==="__proto__"&&os(a),a[c]=this._read(i,a[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return We(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?Me.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ke(o,this.settings)){case 5:return zo(r);case 6:return Zr(r);case 7:return Vo(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof K)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new K(i.string,i.type):new K(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof K||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){if(!H(i,a))continue;a==="__proto__"&&os(i);let c=i[a];c instanceof K||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new Au(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){if(!H(r,u))continue;let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var Hg,uF,lF=h(()=>{j();Hg=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>uF+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),uF=e),this.string=Fe(this)}return this.string}},uF=0});function bv(t){return Hg.allocUnsafe(t)}var zg,dF,pF,Pge,Ige,Pu,Vg,Wg,fF,Dge,Oge,kge,ss,mF,Iu,Cv=h(()=>{Li();ne();j();Qa();Z();lF();zg=new TextEncoder,dF=123,pF=125,Pge=91,Ige=93,Pu=34,Vg=58,Wg=44,fF=92,Dge=new Uint8Array([116,114,117,101]),Oge=new Uint8Array([102,97,108,115,101]),kge=new Uint8Array([110,117,108,108]),ss=new Array(128).fill(null);ss[8]="b";ss[9]="t";ss[10]="n";ss[12]="f";ss[13]="r";ss[34]='"';ss[92]="\\";for(let t=0;t<32;t++)ss[t]===null&&(ss[t]="u00"+t.toString(16).padStart(2,"0"));mF=2048;Iu=class t extends nn{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=bv(mF)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=N.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=N.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),zg.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=bv(mF),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=bv(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=Pu;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=Pu,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=Pu;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=ss[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=fF;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=zg.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=Pu}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=fF,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=Pu;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=Pu,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&N.of(e).isIdempotencyToken()){this.writeAsciiQuoted(fr());return}return}this.ensure(4),this.json.set(kge,this.i),this.i+=4;return}let o=N.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(Me.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){let i=r instanceof K?r.string:String(r);this.writeAsciiQuoted(i);return}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof K){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ce)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(Dge,i),i+=4):(a.set(Oge,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=dF;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=Wg),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Vg,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Vg,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=Wg),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Vg,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=pF}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=zg.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Pge;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=Wg),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=Ige}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){if(!H(r,u))continue;let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=zg.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=dF;let i=!0;for(let a in r){if(!H(r,a))continue;let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=Wg),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Vg,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=pF}writeTimestamp(e,r){switch(Ke(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(dr(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Du,xv=h(()=>{Qa();Rv();Cv();Du=class extends nn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Iu(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new vu(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Kg,hF=h(()=>{lv();ne();Z();xv();Zd();Kg=class extends Dn{codec=new Du({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),Yr(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):o.body||(o.body="{}");let{service:s,operation:i}=Ie(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=qg(n,o)??"Unknown",a={$metadata:s,$fault:n.statusCode<=500?"client":"server"},c=this.options.defaultNamespace;i.includes("#")&&([c]=i.split("#"));let u=this.compositeErrorRegistry,f=ke.for(c);u.copyFrom(f);let m;try{m=u.getSchema(i)}catch{o.Message&&(o.message=o.Message);let U=ke.for("smithy.ts.sdk.synthetic."+c);u.copyFrom(U);let G=u.getBaseException();if(G){let ue=u.getErrorCtor(G);throw Object.assign(new ue({name:i}),a,o)}throw Object.assign(new Error(i),a,o)}let y=N.of(m),_=u.getErrorCtor(m),R=o.message??o.Message??"Unknown",b=new _({}),C={},x=this.codec.createDeserializer();for(let[w,U]of y.structIterator())o[w]!=null&&(C[w]=x.readObject(U,o[w]));throw Object.assign(b,a,{$fault:y.getMergedTraits().error,message:R},C)}getDefaultContentType(){return"application/json"}}});var Ou,Av=h(()=>{Li();ne();j();j();Z();Qa();gv();Fg();Gg();Zd();jg();Ou=class extends nn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=wu(e)?Tu:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Ja(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=N.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new Au(i,c));for(let[y,_]of o.structIterator()){let R=y;f&&(R=_.getMergedTraits().jsonName??R,u[R]=y),a&&m.mark(R),i[R]!=null&&(c[y]=this._read(_,i[R]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){if(!H(i,y))continue;let _=i[y],R=f?u[y]??y:y;R in c||(c[R]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)H(r,c)&&(c==="__proto__"&&os(a),a[c]=this._read(i,r[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return We(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?Me.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ke(o,this.settings)){case 5:return zo(r);case 6:return Zr(r);case 7:return Vo(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof K)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new K(i.string,i.type):new K(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){if(!H(r,a))continue;a==="__proto__"&&os(i);let c=r[a];c instanceof K?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var gF,Qg,SF=h(()=>{j();gF="\u039D",Qg=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof K){let n=`${gF+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${gF+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var ku,Tv=h(()=>{Li();ne();j();Qa();SF();jg();Z();ku=class extends nn{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=N.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Qg;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=N.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=N.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let R=m;c&&(R=y.getMergedTraits().jsonName??m,u[m]=R),a[R]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&os(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){if(!H(i,m))continue;let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){if(!H(r,u))continue;let f=r[u];(c||f!=null)&&(u==="__proto__"&&os(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ce)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ke(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return dr(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof K&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return fr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?Me.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ce)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ce)(r);let i=Array.isArray(r)?[]:{};for(let a in r){if(!H(r,a))continue;let c=r[a];a==="__proto__"&&os(i),c instanceof K?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var Jg,yF=h(()=>{Qa();Av();Tv();Jg=class extends nn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new ku(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Ou(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Qs={};mt(Qs,{Field:()=>Lg,Fields:()=>Ng,FromStringShapeDeserializer:()=>Ni,HttpBindingProtocol:()=>$i,HttpInterceptingShapeDeserializer:()=>Mi,HttpInterceptingShapeSerializer:()=>Bi,HttpProtocol:()=>ki,HttpRequest:()=>X,HttpResponse:()=>it,JsonCodec:()=>Jg,JsonCodec2:()=>Du,JsonShapeDeserializer:()=>Ou,JsonShapeDeserializer2:()=>vu,JsonShapeSerializer:()=>ku,JsonShapeSerializer2:()=>Iu,RequestBuilder:()=>Xd,RpcProtocol:()=>Dn,SerdeContext:()=>jt,SmithyRpcV2JsonProtocol:()=>Kg,ToStringShapeSerializer:()=>xu,buildQueryString:()=>eF,collectBody:()=>gt,contentLengthMiddleware:()=>mv,contentLengthMiddlewareOptions:()=>hv,determineTimestampFormat:()=>Ke,escapeUri:()=>Fi,escapeUriPath:()=>Y2,extendedEncodeURIComponent:()=>io,getContentLengthPlugin:()=>ns,getHttpHandlerExtensionConfiguration:()=>ts,isValidHostname:()=>bd,loadJsonRpcErrorCode:()=>aF,loadRestJsonErrorCode:()=>iF,loadSmithyRpcV2JsonErrorCode:()=>qg,parseJsonBody:()=>Ja,parseJsonErrorBody:()=>sF,parseQueryString:()=>Cd,parseUrl:()=>lr,requestBuilder:()=>$g,resolveHttpHandlerRuntimeConfig:()=>rs,resolvedPath:()=>kg});var z=h(()=>{mu();Rg();q2();Og();lv();j2();dv();pv();H2();z2();fv();Li();hu();W2();K2();Z();Z();Z();Q2();X2();Mg();Z2();tF();Z();Z();hF();Zd();yF();Tv();Av();xv();Cv();Rv()});var EF,_F,RF,bF,CF,xF,AF=h(()=>{EF=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],_F=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],RF=["TimeoutError","RequestTimeout","RequestTimeoutException"],bF=[500,502,503,504],CF=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],xF=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function Pv(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var ep,Xg,wv,vv,is,Ui,Yg,$u=h(()=>{AF();ep=t=>t?.$retryable!==void 0,Xg=t=>EF.includes(t.name),wv=t=>t.$metadata?.clockSkewCorrected,vv=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},is=t=>t.$metadata?.httpStatusCode===429||_F.includes(t.name)||t.$retryable?.throttling==!0,Ui=(t,e=0)=>t?.name!=="AbortError"&&(ep(t)||wv(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||RF.includes(t.name)||CF.includes(t?.code||"")||xF.includes(t?.code||"")||bF.includes(t.$metadata?.httpStatusCode||0)||vv(t)||Pv(t)||t.cause!==void 0&&e<=10&&Ui(t.cause,e+1)),Yg=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Ui(t)}return!1}});var Zg,tp,eS,Lu,Iv,Dv,tS,Gi,qi,rp=h(()=>{Zg=100,tp=2e4,eS=500,Lu=500,Iv=5,Dv=10,tS=1,Gi="amz-sdk-invocation-id",qi="amz-sdk-request"});function Ov(t,e){if(it.isInstance(t))for(let r in t.headers){if(!H(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let o=t.headers[r],s=NaN;if(o.endsWith("GMT"))try{s=(Zr(o).getTime()-Date.now())/1e3}catch(i){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(i)}else o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]):o.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(o):Date.parse(o)>=Date.now()&&(s=(Date.parse(o)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(n==="x-amz-retry-after"){let o=t.headers[r],s=Number(o);if(isNaN(s)){e?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+s)}}}function TF(t,e){return Ov(t,e)}var kv=h(()=>{Z();z();j()});var rS,$v=h(()=>{rS=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`)});function Lv(t){return e=>(r,n)=>async o=>{let s=await e.retryStrategy(),i=await e.maxAttempts();if(Lge(s)){s=s;let a=await s.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),c=new Error,u=0,f=0,{request:m}=o,y=X.isInstance(m);for(y&&(m.headers[Gi]=fu());;)try{y&&(m.headers[qi]=`attempt=${u+1}; max=${i}`);let{response:_,output:R}=await r(o);return s.recordSuccess(a),R.$metadata.attempts=u+1,R.$metadata.totalRetryDelay=f,{response:_,output:R}}catch(_){let R=Nge(_,e.logger);if(c=rS(_),y&&t(m))throw(n.logger instanceof wr?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await s.refreshRetryTokenForRetry(a,R)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=f,c}u=a.getRetryCount();let b=a.getRetryDelay();f+=(a?.$retryLog?.acquisitionDelay??0)+b,b>0&&await $ge(b)}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(r,o)}}function wF(t){let e=Lv(t);return r=>({applyToStack:n=>{n.add(e(r),Nv)}})}var $ge,Lge,Nge,Mge,Nv,Mv=h(()=>{Q();z();j();$u();rp();kv();$v();$ge=t=>new Promise(e=>setTimeout(e,t)),Lge=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",Nge=(t,e)=>{let r={error:t,errorType:Mge(t)},n=Ov(t.$response,e);return n&&(r.retryAfterHint=n),r},Mge=t=>is(t)?"THROTTLING":Ui(t)?"TRANSIENT":Yg(t)?"SERVER_ERROR":"CLIENT_ERROR",Nv={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var ji,nS=h(()=>{$u();ji=class t{static setTimeoutFn=(e,r)=>setTimeout(e,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;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,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||is(n?.error??e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}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.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var St,Nu=h(()=>{St=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var oS,vF=h(()=>{Nu();oS=class{x=St.delay();computeNextBackoffDelay(e){let o=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(o)}setDelayBase(e){this.x=e}}});var np,PF=h(()=>{np=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,o){this.delay=e,this.count=r,this.cost=n,this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var Ht,uo,On,Xa=h(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Ht||(Ht={}));uo=3,On=Ht.STANDARD});var sS,lo,op=h(()=>{vF();PF();Xa();Nu();sS={incompatible:1,attempts:2,capacity:3},lo=class{mode=Ht.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>uo,this.baseDelay??=St.delay(),this.retryBackoffStrategy??=new oS}async acquireInitialRetryToken(e){return new np(St.delay(),0,void 0,St.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),o=this.retryCode(e,r,n),s=o===0,i=e.isLongPoll?.();if(s||i){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?St.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=c;if(r.retryAfterHint instanceof Date&&(u=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),s){let f=this.getCapacityCost(a);this.capacity-=f;let m=new np(0,e.getRetryCount()+1,f,e.isLongPoll?.()??!1);return await new Promise(y=>setTimeout(y,u)),m.$retryLog.acquisitionDelay=u,m}else{let f=St.v2026&&o===sS.capacity&&i?u:0;f>0&&await new Promise(m=>setTimeout(m,f))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${uo}`),uo}}retryCode(e,r,n){let o=e.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:sS.incompatible,i=o<n?0:sS.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:sS.capacity;return s||i||a}getCapacityCost(e){return e===St.modifiedCostType()?St.throttlingCost():St.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var Mu,Bv=h(()=>{nS();op();Xa();Mu=class{mode=Ht.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new ji,this.standardRetryStrategy=r?new lo({maxAttempts:typeof e=="number"?e:3,...r}):new lo(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var iS,IF=h(()=>{op();Nu();iS=class extends lo{computeNextBackoffDelay;constructor(e,r=St.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let o=n+1;return this.computeNextBackoffDelay(o)}}}});var DF,OF=h(()=>{DF=(t,e)=>{let r=t,n=e?.noRetryIncrement??1,o=e?.retryCost??5,s=e?.timeoutRetryCost??10,i=t,a=m=>m.name==="TimeoutError"?s:o,c=m=>a(m)<=i;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:m=>{if(!c(m))throw new Error("No retry token available");let y=a(m);return i-=y,y},releaseRetryTokens:m=>{i+=m??n,i=Math.min(i,r)}})}});var aS,Fv=h(()=>{aS=(t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t))});var cS,Uv=h(()=>{$u();cS=t=>t?ep(t)||Xg(t)||is(t)||Ui(t):!1});var Bu,Bge,Gv=h(()=>{z();j();$u();Xa();rp();$v();OF();Fv();Uv();Bu=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=Ht.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??cS,this.delayDecider=r?.delayDecider??aS,this.retryQuota=r?.retryQuota??DF(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=uo}return e}async retry(e,r,n){let o,s=0,i=0,a=await this.getMaxAttempts(),{request:c}=r;for(X.isInstance(c)&&(c.headers[Gi]=fu());;)try{X.isInstance(c)&&(c.headers[qi]=`attempt=${s+1}; max=${a}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(o),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=i,{response:u,output:f}}catch(u){let f=rS(u);if(s++,this.shouldRetry(f,s,a)){o=this.retryQuota.retrieveRetryTokens(f);let m=this.delayDecider(is(f)?500:100,s),y=Bge(f.$response),_=Math.max(y||0,m);i+=_,await new Promise(R=>setTimeout(R,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=i,f}}},Bge=t=>{if(!it.isInstance(t))return;let e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}});var uS,kF=h(()=>{nS();Xa();Gv();uS=class extends Bu{rateLimiter;constructor(e,r){let{rateLimiter:n,...o}=r??{};super(e,o),this.rateLimiter=n??new ji,this.mode=Ht.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}}});var lS,dS,as,cs,qv,jv,us,$F=h(()=>{Q();Bv();op();Xa();Nu();lS="AWS_MAX_ATTEMPTS",dS="max_attempts",as={environmentVariableSelector:t=>{let e=t[lS];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${lS} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[dS];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${dS} mast be a number, got "${e}"`);return r},default:uo},cs=(t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:o=uo,defaultBaseDelay:s=St.delay()}=e??{},i=xe(t.maxAttempts??o),a=r?Promise.resolve(r):void 0,c=async()=>{let u=await i();return await xe(n)()===Ht.ADAPTIVE?new Mu(i,{maxAttempts:u,baseDelay:s}):new lo({maxAttempts:u,baseDelay:s})};return Object.assign(t,{maxAttempts:i,retryStrategy:()=>a??=c()})},qv="AWS_RETRY_MODE",jv="retry_mode",us={environmentVariableSelector:t=>t[qv],configFileSelector:t=>t[jv],default:On}});var Hv,zv,LF,NF=h(()=>{z();rp();Hv=()=>t=>async e=>{let{request:r}=e;return X.isInstance(r)&&(delete r.headers[Gi],delete r.headers[qi]),t(e)},zv={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},LF=t=>({applyToStack:e=>{e.addRelativeTo(Hv(),zv)}})});var pS={};mt(pS,{AdaptiveRetryStrategy:()=>Mu,CONFIG_MAX_ATTEMPTS:()=>dS,CONFIG_RETRY_MODE:()=>jv,ConfiguredRetryStrategy:()=>iS,DEFAULT_MAX_ATTEMPTS:()=>uo,DEFAULT_RETRY_DELAY_BASE:()=>Zg,DEFAULT_RETRY_MODE:()=>On,DefaultRateLimiter:()=>ji,DeprecatedAdaptiveRetryStrategy:()=>uS,DeprecatedStandardRetryStrategy:()=>Bu,ENV_MAX_ATTEMPTS:()=>lS,ENV_RETRY_MODE:()=>qv,INITIAL_RETRY_TOKENS:()=>Lu,INVOCATION_ID_HEADER:()=>Gi,MAXIMUM_RETRY_DELAY:()=>tp,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>as,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>us,NO_RETRY_INCREMENT:()=>tS,REQUEST_HEADER:()=>qi,RETRY_COST:()=>Iv,RETRY_MODES:()=>Ht,Retry:()=>St,StandardRetryStrategy:()=>lo,THROTTLING_RETRY_DELAY_BASE:()=>eS,TIMEOUT_RETRY_COST:()=>Dv,defaultDelayDecider:()=>aS,defaultRetryDecider:()=>cS,getOmitRetryHeadersPlugin:()=>LF,getRetryAfterHint:()=>TF,getRetryPlugin:()=>Js,isBrowserNetworkError:()=>vv,isClockSkewCorrectedError:()=>wv,isClockSkewError:()=>Xg,isNodeJsHttp2TransientError:()=>Pv,isRetryableByTrait:()=>ep,isServerError:()=>Yg,isThrottlingError:()=>is,isTransientError:()=>Ui,omitRetryHeadersMiddleware:()=>Hv,omitRetryHeadersMiddlewareOptions:()=>zv,resolveRetryConfig:()=>cs,retryMiddleware:()=>Fge,retryMiddlewareOptions:()=>Nv});var Fge,Js,on=h(()=>{tL();Mv();$u();Bv();IF();nS();op();Xa();rp();Nu();kF();Gv();Fv();Uv();$F();NF();Mv();kv();Fge=Lv(HA),Js=wF(HA)});function qe(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var Vv=h(()=>{on();St.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true"});function MF(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var BF=h(()=>{});function Fu(t){return t}var Wv,Kv,ls,FF=h(()=>{z();Wv=t=>e=>async r=>{if(!X.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},Kv={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},ls=t=>({applyToStack:e=>{e.add(Wv(t),Kv)}})});var Qv,Jv,ds,UF=h(()=>{Qv=()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,f=c??e.inputFilterSensitiveLog,m=u??e.outputFilterSensitiveLog,{$metadata:y,..._}=n.output;return i?.info?.({clientName:o,commandName:s,input:f(r.input),output:m(_),metadata:y}),n}catch(n){let{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw i?.error?.({clientName:o,commandName:s,input:u(r.input),error:n,metadata:n.$metadata}),n}},Jv={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},ds=t=>({applyToStack:e=>{e.add(Qv(),Jv)}})});var fS,Xv=h(()=>{fS={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var Hi,Yv,mS,Zv,eP,sp,GF=h(()=>{Hi={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"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},Yv=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");Yv||(globalThis.awslambda=globalThis.awslambda||{});mS=class{static PROTECTED_KEYS=Hi;isProtectedKey(e){return Object.values(Hi).includes(e)}getRequestId(){return this.get(Hi.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(Hi.X_RAY_TRACE_ID)}getTenantId(){return this.get(Hi.TENANT_ID)}getTraceparent(){return this.get(Hi.TRACEPARENT)}getTracestate(){return this.get(Hi.TRACESTATE)}getBaggage(){return this.get(Hi.BAGGAGE)}},Zv=class extends mS{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},eP=class t extends mS{als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let s=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await eP.create():new Zv;return!Yv&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!Yv&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(sp||(sp={}))});function qge(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===rP||r===qF||r===jF)&&(t[r]=t[e],delete t[e])}}var Uge,Gge,tP,rP,qF,jF,hS,nP=h(()=>{GF();z();Uge="AWS_LAMBDA_FUNCTION_NAME",Gge="_X_AMZN_TRACE_ID",tP="X-Amzn-Trace-Id",rP="traceparent",qF="tracestate",jF="baggage",hS=()=>t=>async e=>{let{request:r}=e;if(!X.isInstance(r))return t(e);let n;{let o=Object.keys(r.headers??{}).find(s=>s.toLowerCase()===tP.toLowerCase())??tP;if(!r.headers.hasOwnProperty(o)){let s=process.env[Uge],i=process.env[Gge];n??=await sp.getInstanceAsync();let c=n?.getXRayTraceId()??i,u=f=>typeof f=="string"&&f.length>0;u(s)&&u(c)&&(r.headers[tP]=c)}}if(qge(r.headers),!r.headers[rP]){let s=(n??=await sp.getInstanceAsync())?.getTraceparent?.();if(s){r.headers[rP]=s;let i=n?.getTracestate?.();i&&(r.headers[qF]=i);let a=n?.getBaggage?.();a&&(r.headers[jF]=a)}}return t(e)}});var ps,HF=h(()=>{Xv();nP();ps=t=>({applyToStack:e=>{e.add(hS(),fS)}})});var zF,VF=h(()=>{zF=(t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let o of t)o.schemeId.split("#")[1]===n&&r.push(o);for(let n of t)r.find(({schemeId:o})=>o===n.schemeId)||r.push(n);return r}});function jge(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Ya,gS=h(()=>{Z();VF();Ya=(t,e)=>(r,n)=>async o=>{let s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,o.input)),i=t.authSchemePreference?await t.authSchemePreference():[],a=zF(s,i),c=jge(t.httpAuthSchemes),u=Ie(n),f=[];for(let m of a){let y=c.get(m.schemeId);if(!y){f.push(`HttpAuthScheme \`${m.schemeId}\` was not enabled for this service.`);continue}let _=y.identityProvider(await e.identityProviderConfigProvider(t));if(!_){f.push(`HttpAuthScheme \`${m.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:R={},signingProperties:b={}}=m.propertiesExtractor?.(t,n)||{};m.identityProperties=Object.assign(m.identityProperties||{},R),m.signingProperties=Object.assign(m.signingProperties||{},b),u.selectedHttpAuthScheme={httpAuthOption:m,identity:await _(m.identityProperties),signer:y.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(f.join(`
24
- `));return r(o)}});var SS,po,WF=h(()=>{gS();SS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},po=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Ya(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),SS)}})});var yS,oP,KF=h(()=>{gS();yS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},oP=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Ya(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),yS)}})});var QF=h(()=>{gS();WF();KF()});var Hge,zge,ip,sP=h(()=>{z();Z();Hge=t=>e=>{throw e},zge=(t,e)=>{},ip=t=>(e,r)=>async n=>{if(!X.isInstance(n.request))return e(n);let s=Ie(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||Hge)(i));return(c.successHandler||zge)(u.response,i),u}});var Za,fo,JF=h(()=>{sP();Za={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},fo=t=>({applyToStack:e=>{e.addRelativeTo(ip(t),Za)}})});var XF=h(()=>{sP();JF()});var kn,YF=h(()=>{kn=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function ZF(t,e,r,n,o){return async function*(i,a,...c){let u=a,f=i.startingToken??u[r],m=!0,y;for(;m;){if(u[r]=f,o&&(u[o]=u[o]??i.pageSize),i.client instanceof t)y=await Vge(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield y;let _=f;f=Wge(y,n),m=!!(f&&(!i.stopOnSameToken||f!==_))}return void 0}}var Vge,Wge,eU=h(()=>{Vge=async(t,e,r,n=s=>s,...o)=>{let s=new t(r);return s=n(s)??s,await e.send(s,...o)};Wge=(t,e)=>{let r=t,n=e.split(".");for(let o of n){if(!r||typeof r!="object")return;r=r[o]}return r}});function tU(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var rU=h(()=>{});var Sn,nU=h(()=>{Z();Sn=class{authSchemes=new Map;constructor(e){for(let r in e){if(!H(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var iP,Uu,oU=h(()=>{z();iP=Oe(eo()),Uu=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let o=X.clone(e);if(n.in===iP.HttpApiKeyAuthLocation.QUERY)o.query[n.name]=r.apiKey;else if(n.in===iP.HttpApiKeyAuthLocation.HEADER)o.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return o}}});var Gu,sU=h(()=>{z();Gu=class{async sign(e,r,n){let o=X.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return o.headers.Authorization=`Bearer ${r.token}`,o}}});var Pr,iU=h(()=>{Pr=class{async sign(e,r,n){return e}}});var aU=h(()=>{oU();sU();iU()});var ES,aP,ap,qu,cp,cU=h(()=>{ES=t=>function(r){return qu(r)&&r.expiration.getTime()-Date.now()<t},aP=3e5,ap=ES(3e5),qu=t=>t.expiration!==void 0,cp=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,o,s,i,a=!1,c=async u=>{s||(s=n(u));try{o=await s,i=!0,a=!1}finally{s=void 0}return o};return e===void 0?async u=>((!i||u?.forceRefresh)&&(o=await c(u)),o):async u=>((!i||u?.forceRefresh)&&(o=await c(u)),a?o:r(o)?(e(o)&&await c(u),o):(a=!0,o))}});var uU=h(()=>{nU();aU();cU()});var _S={};mt(_S,{DefaultIdentityProviderConfig:()=>Sn,EXPIRATION_MS:()=>aP,HttpApiKeyAuthSigner:()=>Uu,HttpBearerAuthSigner:()=>Gu,NoAuthSigner:()=>Pr,createIsIdentityExpiredFunction:()=>ES,createPaginator:()=>ZF,doesIdentityRequireRefresh:()=>qu,getHttpAuthSchemeEndpointRuleSetPlugin:()=>po,getHttpAuthSchemePlugin:()=>oP,getHttpSigningPlugin:()=>fo,getSmithyContext:()=>Ie,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>SS,httpAuthSchemeMiddleware:()=>Ya,httpAuthSchemeMiddlewareOptions:()=>yS,httpSigningMiddleware:()=>ip,httpSigningMiddlewareOptions:()=>Za,isIdentityExpired:()=>ap,memoizeIdentityProvider:()=>cp,normalizeProvider:()=>kn,requestBuilder:()=>$g,setFeature:()=>tU});var hr=h(()=>{Z();QF();XF();YF();eU();z();rU();uU()});function Kge(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function fs(t){let e=kn(t.userAgentAppId??up),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let n=await e();if(!Kge(n)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?o?.warn("userAgentAppId must be a string or undefined."):n.length>50&&o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}var up,cP=h(()=>{hr();up=void 0});var uP,lU=h(()=>{uP={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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"}});var dU,pU,RS,lP,fU,bS,CS=h(()=>{lU();dU=uP,pU="",RS=t=>{let{partitions:e}=dU;for(let n of e){let{regions:o,outputs:s}=n;for(let[i,a]of Object.entries(o))if(i===t)return{...s,...a}}for(let n of e){let{regionRegex:o,outputs:s}=n;if(new RegExp(o).test(t))return{...s}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},lP=(t,e="")=>{dU=t,pU=e},fU=()=>{lP(uP,"")},bS=()=>pU});async function mU(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&qe(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=await e.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case Ht.ADAPTIVE:qe(t,"RETRY_MODE_ADAPTIVE","F");break;case Ht.STANDARD:qe(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let s=t.endpointV2;switch(String(s?.url?.hostname).match(Qge)&&qe(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":qe(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":qe(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":qe(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let s=o;s.accountId&&qe(t,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))qe(t,i,a)}}var Qge,hU=h(()=>{on();Vv();Qge=/\d{12}\.ddb/});var dP,xS,gU,SU,yU=h(()=>{dP="user-agent",xS="x-amz-user-agent",gU=/[^!$%&'*+\-.^_`|~\w]/g,SU=/[^!$%&'*+\-.^_`|~\w#]/g});function EU(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var _U=h(()=>{});var fP,AS,mP,ms,CU=h(()=>{z();CS();hU();yU();_U();fP=t=>(e,r)=>async n=>{let{request:o}=n;if(!X.isInstance(o))return e(n);let{headers:s}=o,i=r?.userAgent?.map(AS)||[],a=(await t.defaultUserAgentProvider()).map(AS);await mU(r,t,n);let c=r;a.push(`m/${EU(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(AS)||[],f=await t.userAgentAppId();f&&a.push(AS(["app",`${f}`]));let m=bS(),y=(m?[m]:[]).concat([...a,...i,...u]).join(" "),_=[...a.filter(R=>R.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(_&&(s[xS]=s[xS]?`${s[dP]} ${_}`:_),s[dP]=y):s[xS]=y,e({...n,request:o})},AS=t=>{let e=t[0].split("/").map(i=>i.replace(gU,"-")).join("/"),r=t[1]?.replace(SU,"-"),n=e.indexOf("/"),o=e.substring(0,n),s=e.substring(n+1);return o==="api"&&(s=s.toLowerCase()),[o,s,r].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},mP={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},ms=t=>({applyToStack:e=>{e.add(fP(t),mP)}})});var TS,xU,AU=h(()=>{TS=require("node:process"),xU=()=>{let t=["deno","bun","llrt"];for(let e of t)if(TS.versions[e])return[`md/${e}`,TS.versions[e]];return["md/nodejs",TS.versions.node]}});var lp,hP=h(()=>{lp={isCrtAvailable:!1}});var TU,wU=h(()=>{hP();TU=()=>lp.isCrtAvailable?["md/crt-avail"]:null});var wS,gP,mo,vU,PU=h(()=>{wS=require("node:os"),gP=require("node:process");AU();wU();hP();mo=({serviceId:t,clientVersion:e})=>{let r=xU();return async n=>{let o=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,wS.platform)()}`,(0,wS.release)()],["lang/js"],r],s=TU();s&&o.push(s),t&&o.push([`api/${t}`,e]),gP.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${gP.env.AWS_EXECUTION_ENV}`]);let i=await n?.userAgentAppId?.();return i?[...o,[`app/${i}`]]:[...o]}},vU=mo});var SP,yP,Jge,hs,IU=h(()=>{cP();SP="AWS_SDK_UA_APP_ID",yP="sdk_ua_app_id",Jge="sdk-ua-app-id",hs={environmentVariableSelector:t=>t[SP],configFileSelector:t=>t[yP]??t[Jge],default:up}});var DU=Ct((dp,EP)=>{(function(t,e){typeof dp=="object"&&typeof EP=="object"?EP.exports=e():typeof define=="function"&&define.amd?define([],e):typeof dp=="object"?dp.bowser=e():t.bowser=e()})(dp,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(n,o,s){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var i in n)r.d(s,i,function(a){return n[a]}.bind(null,i));return s},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),o=(function(){function s(){}return s.getFirstMatch=function(i,a){var c=a.match(i);return c&&c.length>0&&c[1]||""},s.getSecondMatch=function(i,a){var c=a.match(i);return c&&c.length>1&&c[2]||""},s.matchAndReturnConst=function(i,a,c){if(i.test(a))return c},s.getWindowsVersionName=function(i){switch(i){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(i){var a=i.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));a.push(0);var c=a[0],u=a[1];if(c===10)switch(u){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(c){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},s.getAndroidVersionName=function(i){var a=i.split(".").splice(0,2).map((function(c){return parseInt(c,10)||0}));if(a.push(0),!(a[0]===1&&a[1]<5))return a[0]===1&&a[1]<6?"Cupcake":a[0]===1&&a[1]>=6?"Donut":a[0]===2&&a[1]<2?"Eclair":a[0]===2&&a[1]===2?"Froyo":a[0]===2&&a[1]>2?"Gingerbread":a[0]===3?"Honeycomb":a[0]===4&&a[1]<1?"Ice Cream Sandwich":a[0]===4&&a[1]<4?"Jelly Bean":a[0]===4&&a[1]>=4?"KitKat":a[0]===5?"Lollipop":a[0]===6?"Marshmallow":a[0]===7?"Nougat":a[0]===8?"Oreo":a[0]===9?"Pie":void 0},s.getVersionPrecision=function(i){return i.split(".").length},s.compareVersions=function(i,a,c){c===void 0&&(c=!1);var u=s.getVersionPrecision(i),f=s.getVersionPrecision(a),m=Math.max(u,f),y=0,_=s.map([i,a],(function(R){var b=m-s.getVersionPrecision(R),C=R+new Array(b+1).join(".0");return s.map(C.split("."),(function(x){return new Array(20-x.length).join("0")+x})).reverse()}));for(c&&(y=m-Math.min(u,f)),m-=1;m>=y;){if(_[0][m]>_[1][m])return 1;if(_[0][m]===_[1][m]){if(m===y)return 0;m-=1}else if(_[0][m]<_[1][m])return-1}},s.map=function(i,a){var c,u=[];if(Array.prototype.map)return Array.prototype.map.call(i,a);for(c=0;c<i.length;c+=1)u.push(a(i[c]));return u},s.find=function(i,a){var c,u;if(Array.prototype.find)return Array.prototype.find.call(i,a);for(c=0,u=i.length;c<u;c+=1){var f=i[c];if(a(f,c))return f}},s.assign=function(i){for(var a,c,u=i,f=arguments.length,m=new Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[i].concat(m));var _=function(){var R=m[a];typeof R=="object"&&R!==null&&Object.keys(R).forEach((function(b){u[b]=R[b]}))};for(a=0,c=m.length;a<c;a+=1)_();return i},s.getBrowserAlias=function(i){return n.BROWSER_ALIASES_MAP[i]},s.getBrowserTypeByAlias=function(i){return n.BROWSER_MAP[i]||""},s})();e.default=o,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},e.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},e.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},e.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},e.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function i(c,u){for(var f=0;f<u.length;f++){var m=u[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var a=(function(){function c(){}var u,f,m;return c.getParser=function(y,_,R){if(_===void 0&&(_=!1),R===void 0&&(R=null),typeof y!="string")throw new Error("UserAgent should be a string");return new o.default(y,_,R)},c.parse=function(y,_){return _===void 0&&(_=null),new o.default(y,_).getResult()},u=c,m=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(f=null)&&i(u.prototype,f),m&&i(u,m),c})();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=c(r(92)),o=c(r(93)),s=c(r(94)),i=c(r(95)),a=c(r(17));function c(f){return f&&f.__esModule?f:{default:f}}var u=(function(){function f(y,_,R){if(_===void 0&&(_=!1),R===void 0&&(R=null),y==null||y==="")throw new Error("UserAgent parameter can't be empty");this._ua=y;var b=!1;typeof _=="boolean"?(b=_,this._hints=R):this._hints=_!=null&&typeof _=="object"?_:null,this.parsedResult={},b!==!0&&this.parse()}var m=f.prototype;return m.getHints=function(){return this._hints},m.hasBrand=function(y){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var _=y.toLowerCase();return this._hints.brands.some((function(R){return R.brand&&R.brand.toLowerCase()===_}))},m.getBrandVersion=function(y){if(this._hints&&Array.isArray(this._hints.brands)){var _=y.toLowerCase(),R=this._hints.brands.find((function(b){return b.brand&&b.brand.toLowerCase()===_}));return R?R.version:void 0}},m.getUA=function(){return this._ua},m.test=function(y){return y.test(this._ua)},m.parseBrowser=function(){var y=this;this.parsedResult.browser={};var _=a.default.find(n.default,(function(R){if(typeof R.test=="function")return R.test(y);if(Array.isArray(R.test))return R.test.some((function(b){return y.test(b)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.browser=_.describe(this.getUA(),this)),this.parsedResult.browser},m.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},m.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},m.getBrowserVersion=function(){return this.getBrowser().version},m.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},m.parseOS=function(){var y=this;this.parsedResult.os={};var _=a.default.find(o.default,(function(R){if(typeof R.test=="function")return R.test(y);if(Array.isArray(R.test))return R.test.some((function(b){return y.test(b)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.os=_.describe(this.getUA())),this.parsedResult.os},m.getOSName=function(y){var _=this.getOS().name;return y?String(_).toLowerCase()||"":_||""},m.getOSVersion=function(){return this.getOS().version},m.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},m.getPlatformType=function(y){y===void 0&&(y=!1);var _=this.getPlatform().type;return y?String(_).toLowerCase()||"":_||""},m.parsePlatform=function(){var y=this;this.parsedResult.platform={};var _=a.default.find(s.default,(function(R){if(typeof R.test=="function")return R.test(y);if(Array.isArray(R.test))return R.test.some((function(b){return y.test(b)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.platform=_.describe(this.getUA())),this.parsedResult.platform},m.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},m.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},m.parseEngine=function(){var y=this;this.parsedResult.engine={};var _=a.default.find(i.default,(function(R){if(typeof R.test=="function")return R.test(y);if(Array.isArray(R.test))return R.test.some((function(b){return y.test(b)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.engine=_.describe(this.getUA())),this.parsedResult.engine},m.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},m.getResult=function(){return a.default.assign({},this.parsedResult)},m.satisfies=function(y){var _=this,R={},b=0,C={},x=0;if(Object.keys(y).forEach((function(st){var Br=y[st];typeof Br=="string"?(C[st]=Br,x+=1):typeof Br=="object"&&(R[st]=Br,b+=1)})),b>0){var w=Object.keys(R),U=a.default.find(w,(function(st){return _.isOS(st)}));if(U){var G=this.satisfies(R[U]);if(G!==void 0)return G}var ue=a.default.find(w,(function(st){return _.isPlatform(st)}));if(ue){var Qe=this.satisfies(R[ue]);if(Qe!==void 0)return Qe}}if(x>0){var Ze=Object.keys(C),Je=a.default.find(Ze,(function(st){return _.isBrowser(st,!0)}));if(Je!==void 0)return this.compareVersion(C[Je])}},m.isBrowser=function(y,_){_===void 0&&(_=!1);var R=this.getBrowserName().toLowerCase(),b=y.toLowerCase(),C=a.default.getBrowserTypeByAlias(b);return _&&C&&(b=C.toLowerCase()),b===R},m.compareVersion=function(y){var _=[0],R=y,b=!1,C=this.getBrowserVersion();if(typeof C=="string")return y[0]===">"||y[0]==="<"?(R=y.substr(1),y[1]==="="?(b=!0,R=y.substr(2)):_=[],y[0]===">"?_.push(1):_.push(-1)):y[0]==="="?R=y.substr(1):y[0]==="~"&&(b=!0,R=y.substr(1)),_.indexOf(a.default.compareVersions(C,R,b))>-1},m.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},m.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},m.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},m.is=function(y,_){return _===void 0&&(_=!1),this.isBrowser(y,_)||this.isOS(y)||this.isPlatform(y)},m.some=function(y){var _=this;return y===void 0&&(y=[]),y.some((function(R){return _.is(R)}))},f})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/gptbot/i],describe:function(a){var c={name:"GPTBot"},u=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chatgpt-user/i],describe:function(a){var c={name:"ChatGPT-User"},u=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/oai-searchbot/i],describe:function(a){var c={name:"OAI-SearchBot"},u=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(a){var c={name:"ClaudeBot"},u=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(a){var c={name:"Omgilibot"},u=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/diffbot/i],describe:function(a){var c={name:"Diffbot"},u=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexitybot/i],describe:function(a){var c={name:"PerplexityBot"},u=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexity-user/i],describe:function(a){var c={name:"Perplexity-User"},u=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/youbot/i],describe:function(a){var c={name:"YouBot"},u=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-webindexer/i],describe:function(a){var c={name:"Meta-WebIndexer"},u=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalads/i],describe:function(a){var c={name:"Meta-ExternalAds"},u=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalagent/i],describe:function(a){var c={name:"Meta-ExternalAgent"},u=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalfetcher/i],describe:function(a){var c={name:"Meta-ExternalFetcher"},u=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/googlebot/i],describe:function(a){var c={name:"Googlebot"},u=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/linespider/i],describe:function(a){var c={name:"Linespider"},u=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/amazonbot/i],describe:function(a){var c={name:"AmazonBot"},u=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/bingbot/i],describe:function(a){var c={name:"BingCrawler"},u=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/baiduspider/i],describe:function(a){var c={name:"BaiduSpider"},u=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/duckduckbot/i],describe:function(a){var c={name:"DuckDuckBot"},u=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ia_archiver/i],describe:function(a){var c={name:"InternetArchiveCrawler"},u=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(a){var c={name:"SlackBot"},u=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opr\/|opios/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/SamsungBrowser/i],describe:function(a){var c={name:"Samsung Internet for Android"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Whale/i],describe:function(a){var c={name:"NAVER Whale Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/PaleMoon/i],describe:function(a){var c={name:"Pale Moon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/MZBrowser/i],describe:function(a){var c={name:"MZ Browser"},u=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/focus/i],describe:function(a){var c={name:"Focus"},u=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/swing/i],describe:function(a){var c={name:"Swing"},u=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/coast/i],describe:function(a){var c={name:"Opera Coast"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(a){var c={name:"Opera Touch"},u=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yabrowser/i],describe:function(a){var c={name:"Yandex Browser"},u=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ucbrowser/i],describe:function(a){var c={name:"UC Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Maxthon|mxios/i],describe:function(a){var c={name:"Maxthon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/epiphany/i],describe:function(a){var c={name:"Epiphany"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/puffin/i],describe:function(a){var c={name:"Puffin"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sleipnir/i],describe:function(a){var c={name:"Sleipnir"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/k-meleon/i],describe:function(a){var c={name:"K-Meleon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/micromessenger/i],describe:function(a){var c={name:"WeChat"},u=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qqbrowser/i],describe:function(a){var c={name:/qqbrowserlite/i.test(a)?"QQ Browser Lite":"QQ Browser"},u=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/msie|trident/i],describe:function(a){var c={name:"Internet Explorer"},u=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/\sedg\//i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/edg([ea]|ios)/i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/vivaldi/i],describe:function(a){var c={name:"Vivaldi"},u=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/seamonkey/i],describe:function(a){var c={name:"SeaMonkey"},u=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sailfish/i],describe:function(a){var c={name:"Sailfish"},u=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,a);return u&&(c.version=u),c}},{test:[/silk/i],describe:function(a){var c={name:"Amazon Silk"},u=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/phantom/i],describe:function(a){var c={name:"PhantomJS"},u=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/slimerjs/i],describe:function(a){var c={name:"SlimerJS"},u=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c={name:"BlackBerry"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c={name:"WebOS Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/bada/i],describe:function(a){var c={name:"Bada"},u=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/tizen/i],describe:function(a){var c={name:"Tizen"},u=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qupzilla/i],describe:function(a){var c={name:"QupZilla"},u=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/librewolf/i],describe:function(a){var c={name:"LibreWolf"},u=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/firefox|iceweasel|fxios/i],describe:function(a){var c={name:"Firefox"},u=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/electron/i],describe:function(a){var c={name:"Electron"},u=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(a){var c={name:"Sogou Browser"},u=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,a),f=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a),m=o.default.getFirstMatch(/se ([\d.]+)x/i,a),y=u||f||m;return y&&(c.version=y),c}},{test:[/MiuiBrowser/i],describe:function(a){var c={name:"Miui"},u=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return!!a.hasBrand("DuckDuckGo")||a.test(/\sDdg\/[\d.]+$/i)},describe:function(a,c){var u={name:"DuckDuckGo"};if(c){var f=c.getBrandVersion("DuckDuckGo");if(f)return u.version=f,u}var m=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,a);return m&&(u.version=m),u}},{test:function(a){return a.hasBrand("Brave")},describe:function(a,c){var u={name:"Brave"};if(c){var f=c.getBrandVersion("Brave");if(f)return u.version=f,u}return u}},{test:[/chromium/i],describe:function(a){var c={name:"Chromium"},u=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chrome|crios|crmo/i],describe:function(a){var c={name:"Chrome"},u=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/GSA/i],describe:function(a){var c={name:"Google Search"},u=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c={name:"Android Browser"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/playstation 4/i],describe:function(a){var c={name:"PlayStation 4"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/safari|applewebkit/i],describe:function(a){var c={name:"Safari"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/.*/i],describe:function(a){var c=a.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(c,a),version:o.default.getSecondMatch(c,a)}}}];e.default=i,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/Roku\/DVP/],describe:function(a){var c=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,a);return{name:s.OS_MAP.Roku,version:c}}},{test:[/windows phone/i],describe:function(a){var c=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.WindowsPhone,version:c}}},{test:[/windows /i],describe:function(a){var c=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,a),u=o.default.getWindowsVersionName(c);return{name:s.OS_MAP.Windows,version:c,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(a){var c={name:s.OS_MAP.iOS},u=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,a);return u&&(c.version=u),c}},{test:[/macintosh/i],describe:function(a){var c=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,a).replace(/[_\s]/g,"."),u=o.default.getMacOSVersionName(c),f={name:s.OS_MAP.MacOS,version:c};return u&&(f.versionName=u),f}},{test:[/(ipod|iphone|ipad)/i],describe:function(a){var c=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,a).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:c}}},{test:[/OpenHarmony/i],describe:function(a){var c=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.HarmonyOS,version:c}}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,a),u=o.default.getAndroidVersionName(c),f={name:s.OS_MAP.Android,version:c};return u&&(f.versionName=u),f}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,a),u={name:s.OS_MAP.WebOS};return c&&c.length&&(u.version=c),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,a)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,a)||o.default.getFirstMatch(/\bbb(\d+)/i,a);return{name:s.OS_MAP.BlackBerry,version:c}}},{test:[/bada/i],describe:function(a){var c=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Bada,version:c}}},{test:[/tizen/i],describe:function(a){var c=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Tizen,version:c}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(a){var c=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.PlayStation4,version:c}}}];e.default=i,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(a){var c=o.default.getFirstMatch(/(can-l01)/i,a)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return c&&(u.model=c),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){var c=a.test(/ipod|iphone/i),u=a.test(/like (ipod|iphone)/i);return c&&!u},describe:function(a){var c=o.default.getFirstMatch(/(ipod|iphone)/i,a);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:c}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(a){var c=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,a),u={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return c&&(u.model=c),u}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(a){return a.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(a){var c=Number(String(a.getOSVersion()).split(".")[0]);return a.getOSName(!0)==="android"&&c>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){return a.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(a){return a.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=i,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:function(a){return a.getBrowserName(!0)==="microsoft edge"},describe:function(a){if(/\sedg\//i.test(a))return{name:s.ENGINE_MAP.Blink};var c=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,a);return{name:s.ENGINE_MAP.EdgeHTML,version:c}}},{test:[/trident/i],describe:function(a){var c={name:s.ENGINE_MAP.Trident},u=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return a.test(/presto/i)},describe:function(a){var c={name:s.ENGINE_MAP.Presto},u=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=a.test(/gecko/i),u=a.test(/like gecko/i);return c&&!u},describe:function(a){var c={name:s.ENGINE_MAP.Gecko},u=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(a){var c={name:s.ENGINE_MAP.WebKit},u=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}}];e.default=i,t.exports=e.default}})}))});var OU,kU=h(()=>{OU=({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>Oe(DU())),o=n.parse??n.default.parse??(()=>""),s=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,i=[["aws-sdk-js",e],["ua","2.1"],[`os/${s?.os?.name||"other"}`,s?.os?.version],["lang/js"],["md/browser",`${s?.browser?.name??"unknown"}_${s?.browser?.version??"unknown"}`]];t&&i.push([`api/${t}`,e]);let a=await r?.userAgentAppId?.();return a&&i.push([`app/${a}`]),i}});var $U,LU=h(()=>{$U={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var _P=h(()=>{Ge()});var pp,RP=h(()=>{Ge();_P();pp=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!pp(r))return!1;return!0}return!(!to(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Hs(t))}});var vS,bP=h(()=>{vS=t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,o,s,i,...a]=e;if(r!=="arn"||n===""||o===""||a.join(":")==="")return null;let c=a.map(u=>u.split("/")).flat();return{partition:n,service:o,region:s,accountId:i,resourceId:c}}});var ho,NU=h(()=>{Ge();RP();bP();CS();ho={isVirtualHostableS3Bucket:pp,parseArn:vS,partition:RS};tn.aws=ho});var MU=h(()=>{Ge()});var BU,CP,FU=h(()=>{z();BU=t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>CP(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},CP=t=>lr(t.url)});var UU=h(()=>{Ge()});var GU=h(()=>{Re();Re()});function PS(t={}){return oe({...pr,async default(){return xP.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Gr,...t})}var xP,qU=h(()=>{Re();xP={silence:!1}});var gs,Ss,jU=h(()=>{gs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Ss=t=>({region:t.region()})});var $n={};mt($n,{DEFAULT_UA_APP_ID:()=>up,EndpointError:()=>Se,NODE_APP_ID_CONFIG_OPTIONS:()=>hs,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Gr,NODE_REGION_CONFIG_OPTIONS:()=>pr,REGION_ENV_NAME:()=>cu,REGION_INI_NAME:()=>uu,UA_APP_ID_ENV_NAME:()=>SP,UA_APP_ID_INI_NAME:()=>yP,awsEndpointFunctions:()=>ho,createDefaultUserAgentProvider:()=>mo,createUserAgentStringParsingProvider:()=>OU,crtAvailability:()=>lp,defaultUserAgent:()=>vU,emitWarningIfUnsupportedVersion:()=>Mo,fallback:()=>$U,getAwsRegionExtensionConfiguration:()=>gs,getHostHeaderPlugin:()=>ls,getLoggerPlugin:()=>ds,getLongPollPlugin:()=>X1,getRecursionDetectionPlugin:()=>ps,getUserAgentMiddlewareOptions:()=>mP,getUserAgentPlugin:()=>ms,getUserAgentPrefix:()=>bS,hostHeaderMiddleware:()=>Wv,hostHeaderMiddlewareOptions:()=>Kv,isIpAddress:()=>Hs,isVirtualHostableS3Bucket:()=>pp,loggerMiddleware:()=>Qv,loggerMiddlewareOptions:()=>Jv,parseArn:()=>vS,partition:()=>RS,recursionDetectionMiddleware:()=>hS,recursionDetectionMiddlewareOptions:()=>fS,resolveAwsRegionExtensionConfiguration:()=>Ss,resolveDefaultAwsRegionalEndpointsConfig:()=>BU,resolveEndpoint:()=>Wd,resolveHostHeaderConfig:()=>Fu,resolveRegionConfig:()=>mn,resolveUserAgentConfig:()=>fs,setCredentialFeature:()=>yi,setFeature:()=>qe,setPartitionInfo:()=>lP,setTokenFeature:()=>MF,state:()=>_d,stsRegionDefaultResolver:()=>PS,stsRegionWarning:()=>xP,toEndpointV1:()=>CP,useDefaultPartitionInfo:()=>fU,userAgentMiddleware:()=>fP});var ye=h(()=>{J1();Y1();Z1();Vv();BF();FF();UF();Xv();HF();nP();cP();CU();PU();IU();LU();kU();NU();MU();FU();_P();RP();bP();CS();UU();GU();qU();jU()});var HU,zU=h(()=>{xn();HU=(t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:n})=>r?t[r]?t[r]:void 0:n===Xr.WHEN_SUPPORTED||e?Na:void 0});var ec,IS=h(()=>{xn();ec=t=>t===ge.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`});var VU,WU=h(()=>{VU=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(r===n.toLowerCase())return!0;return!1}});var KU,QU=h(()=>{KU=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(r))return!0;return!1}});var DS,AP=h(()=>{j();DS=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!Xc(t)});var JU,OS,XU=h(()=>{JU=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;JU[t]=e>>>0}OS=class{digestLength=4;crc=4294967295;update(e){let r=this.crc;for(let n=0;n<e.length;++n)r=r>>>8^JU[(r^e[n])&255];this.crc=r}async digest(){let e=(this.crc^4294967295)>>>0,r=new Uint8Array(4);return r[0]=e>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r}reset(){this.crc=4294967295}}});var kS,YU=h(()=>{XU();kS=OS});var ZU,eG=h(()=>{ZU={CrtCrc64Nvme:null}});var Xge,TP,fp,wP,vP,PP,IP,DP,OP,kP,Yge,$S,tG=h(()=>{Xge=()=>{let e=new Array(8);for(let r=0;r<8;r++){let n=new Array(512);for(let o=0;o<256;o++){let s=BigInt(o);for(let i=0;i<8*(r+1);i++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[o*2]=Number(s>>32n&0xffffffffn),n[o*2+1]=Number(s&0xffffffffn)}e[r]=new Uint32Array(n)}return e},Yge=()=>{TP||(TP=Xge(),[fp,wP,vP,PP,IP,DP,OP,kP]=TP)},$S=class{c1=0;c2=0;constructor(){Yge(),this.reset()}update(e){let r=e.length,n=0,o=this.c1,s=this.c2;for(;n+8<=r;){let i=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,u=((s>>>24^e[n++])&255)<<1,f=((o^e[n++])&255)<<1,m=((o>>>8^e[n++])&255)<<1,y=((o>>>16^e[n++])&255)<<1,_=((o>>>24^e[n++])&255)<<1;o=kP[i]^OP[a]^DP[c]^IP[u]^PP[f]^vP[m]^wP[y]^fp[_],s=kP[i+1]^OP[a+1]^DP[c+1]^IP[u+1]^PP[f+1]^vP[m+1]^wP[y+1]^fp[_+1]}for(;n<r;){let i=((s^e[n])&255)<<1;s=(s>>>8|(o&255)<<24)>>>0,o=o>>>8^fp[i],s^=fp[i+1],++n}this.c1=o,this.c2=s}async digest(){let e=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}});var mp,rG=h(()=>{eG();tG();mp=class{impl;constructor(){let e=ZU.CrtCrc64Nvme;this.impl=e?new e:new $S}update(e){this.impl.update(e)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}}});var nG=h(()=>{YU();rG();In()});var oG,$P,LP=h(()=>{xn();oG=[ge.CRC32,ge.CRC32C,ge.CRC64NVME,ge.SHA1,ge.SHA256],$P=[ge.SHA256,ge.SHA1,ge.CRC32,ge.CRC32C,ge.CRC64NVME]});var LS,NP=h(()=>{nG();xn();LP();LS=(t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case ge.MD5:return r?.MD5??e.md5;case ge.CRC32:return r?.CRC32??ao;case ge.CRC32C:return r?.CRC32C??kS;case ge.CRC64NVME:return r?.CRC64NVME??mp;case ge.SHA1:return r?.SHA1??e.sha1;case ge.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${oG}, or provide an implementation to the client constructor checksums field.`)}}});var NS,MP=h(()=>{j();NS=(t,e)=>{let r=new t;return r.update(ht(e||"")),r.digest()}});var MS,BS,BP=h(()=>{ye();z();j();xn();zU();IS();WU();QU();AP();NP();MP();MS={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},BS=(t,e)=>(r,n)=>async o=>{if(!X.isInstance(o.request)||KU("x-amz-checksum-",o.request.headers))return r(o);let{request:s,input:i}=o,{body:a,headers:c}=s,{base64Encoder:u,streamHasher:f}=t,{requestChecksumRequired:m,requestAlgorithmMember:y}=e,_=await t.requestChecksumCalculation(),R=y?.name,b=y?.httpHeader;R&&!i[R]&&(_===Xr.WHEN_SUPPORTED||m)&&(i[R]=Na,b&&(c[b]=Na));let C=HU(i,{requestChecksumRequired:m,requestAlgorithmMember:y?.name,requestChecksumCalculation:_}),x=a,w=c;if(C){switch(C){case ge.CRC32:qe(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case ge.CRC32C:qe(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case ge.CRC64NVME:qe(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case ge.SHA1:qe(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case ge.SHA256:qe(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let U=ec(C),G=LS(C,t);if(DS(a)){let{getAwsChunkedEncodingStream:ue,bodyLengthChecker:Qe}=t;x=ue(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?Sg(a,t.requestStreamBufferSize,n.logger):a,{base64Encoder:u,bodyLengthChecker:Qe,checksumLocationName:U,checksumAlgorithmFn:G,streamHasher:f}),w={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":U},delete w["content-length"]}else if(!VU(U,c)){let ue=await NS(G,a);w={...c,[U]:u(ue)}}}try{return await r({...o,request:{...s,headers:w,body:x}})}catch(U){if(U instanceof Error&&U.name==="InvalidChunkSizeError")try{U.message.endsWith(".")||(U.message+="."),U.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw U}}});var sG,iG,aG=h(()=>{ye();xn();sG={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},iG=(t,e)=>(r,n)=>async o=>{let s=o.input,{requestValidationModeMember:i}=e,a=await t.requestChecksumCalculation(),c=await t.responseChecksumValidation();switch(a){case Xr.WHEN_REQUIRED:qe(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Xr.WHEN_SUPPORTED:qe(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case qs.WHEN_REQUIRED:qe(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case qs.WHEN_SUPPORTED:qe(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return i&&!s[i]&&c===qs.WHEN_SUPPORTED&&(s[i]="ENABLED"),r(o)}});var FS,FP=h(()=>{LP();FS=(t=[])=>{let e=[],r=$P.length;for(let n of t){let o=$P.indexOf(n);o!==-1?e[o]=n:e[r++]=n}return e.filter(Boolean)}});var cG,uG=h(()=>{cG=t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let n=parseInt(r,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1}});var lG,dG=h(()=>{MP();lG=async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await NS(e,t))});var pG,fG=h(()=>{j();xn();dG();FP();IS();AP();NP();pG=async(t,{config:e,responseAlgorithms:r,logger:n})=>{let o=FS(r),{body:s,headers:i}=t;for(let a of o){let c=ec(a),u=i[c];if(u){let f;try{f=LS(a,e)}catch(_){if(a===ge.CRC64NVME){n?.warn(`Skipping ${ge.CRC64NVME} checksum validation: ${_.message}`);continue}throw _}let{base64Encoder:m}=e;if(DS(s)){t.body=gg({expectedChecksum:u,checksumSourceLocation:c,checksum:new f,source:s,base64Encoder:m});return}let y=await lG(s,{checksumAlgorithmFn:f,base64Encoder:m});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${c}".`)}}}});var mG,hG,gG=h(()=>{z();FP();IS();uG();fG();mG={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},hG=(t,e)=>(r,n)=>async o=>{if(!X.isInstance(o.request))return r(o);let s=o.input,i=await r(o),a=i.response,{requestValidationModeMember:c,responseAlgorithms:u}=e;if(c&&s[c]==="ENABLED"){let{clientName:f,commandName:m}=n,y=Object.keys(t.checksumAlgorithms??{}).filter(b=>{let C=ec(b);return a.headers[C]!==void 0}),_=FS([...u??[],...y]);if(f==="S3Client"&&m==="GetObjectCommand"&&_.every(b=>{let C=ec(b),x=a.headers[C];return!x||cG(x)}))return i;await pG(a,{config:t,responseAlgorithms:_,logger:n.logger})}return i}});var SG,yG=h(()=>{aG();BP();gG();SG=(t,e)=>({applyToStack:r=>{r.add(BS(t,e),MS),r.addRelativeTo(iG(t,e),sG),r.addRelativeTo(hG(t,e),mG)}})});var EG,_G=h(()=>{Q();xn();EG=t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:n}=t;return Object.assign(t,{requestChecksumCalculation:xe(e??Hc),responseChecksumValidation:xe(r??zc),requestStreamBufferSize:Number(n??0),checksumAlgorithms:t.checksumAlgorithms??{}})}});var RG={};mt(RG,{CONFIG_REQUEST_CHECKSUM_CALCULATION:()=>GA,CONFIG_RESPONSE_CHECKSUM_VALIDATION:()=>jA,ChecksumAlgorithm:()=>ge,ChecksumLocation:()=>oh,DEFAULT_CHECKSUM_ALGORITHM:()=>Na,DEFAULT_REQUEST_CHECKSUM_CALCULATION:()=>Hc,DEFAULT_RESPONSE_CHECKSUM_VALIDATION:()=>zc,ENV_REQUEST_CHECKSUM_CALCULATION:()=>UA,ENV_RESPONSE_CHECKSUM_VALIDATION:()=>qA,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:()=>V1,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:()=>K1,RequestChecksumCalculation:()=>Xr,ResponseChecksumValidation:()=>qs,flexibleChecksumsMiddleware:()=>BS,flexibleChecksumsMiddlewareOptions:()=>MS,getFlexibleChecksumsPlugin:()=>SG,resolveFlexibleChecksumsConfig:()=>EG});var bG=h(()=>{W1();Q1();xn();BP();yG();_G()});function UP(){return(t,e)=>async r=>{let{request:n}=r;if(X.isInstance(n)&&!(Zge in n.headers)&&!(eSe in n.headers)){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof wr)?e.logger.warn(o):console.warn(o)}return t({...r})}}var Zge,eSe,GP,CG,xG=h(()=>{Q();z();Zge="content-length",eSe="x-amz-decoded-content-length";GP={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},CG=t=>({applyToStack:e=>{e.add(UP(),GP)}})});var US,GS,qP=h(()=>{US=t=>(e,r)=>async n=>{let o=await t.region(),s=t.region,i=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),i=()=>Object.defineProperty(t,"region",{writable:!0,value:s}));try{let a=await e(n);if(r.__s3RegionRedirect){i();let c=await t.region();if(o!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw i(),a}},GS={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"}});function jP(t){return(e,r)=>async n=>{try{return await e(n)}catch(o){if(t.followRegionRedirects){let s=o?.$metadata?.httpStatusCode,i=r.commandName==="HeadBucketCommand",a=o?.$response?.headers?.["x-amz-bucket-region"];if(a&&(s===301||s===400&&(o?.name==="IllegalLocationConstraintException"||i))){try{let c=a;r.logger?.debug(`Redirecting from ${await t.region()} to ${c}`),r.__s3RegionRedirect=c,qe(r,"S3_REGION_REDIRECT","Ah")}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw o}}}var HP,AG,TG=h(()=>{ye();qP();HP={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},AG=t=>({applyToStack:e=>{e.add(jP(t),HP),e.addRelativeTo(US(t),GS)}})});var ju,zP=h(()=>{ju=class t{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+t.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let n=this.data[r];if(!n.isRefreshing){let o=await n.identity;o.expiration&&o.expiration.getTime()<e&&delete this.data[r]}}}}});var zi,VP=h(()=>{zi=class{_identity;isRefreshing;accessed;constructor(e,r=!1,n=Date.now()){this._identity=e,this.isRefreshing=r,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}});var Hu,WP=h(()=>{zP();VP();Hu=class t{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new ju){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let n=r.Bucket,{cache:o}=this,s=o.get(n);return s?s.identity.then(i=>(i.expiration?.getTime()??0)<Date.now()?o.set(n,new zi(this.getIdentity(n))).identity:((i.expiration?.getTime()??0)<Date.now()+t.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(n).then(u=>{o.set(n,new zi(Promise.resolve(u)))})),i)):o.set(n,new zi(this.getIdentity(n))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
25
- `+o)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}});var wG,vG=h(()=>{WP();wG=(t,{session:e})=>{let[r,n]=e,{forcePathStyle:o,useAccelerateEndpoint:s,disableMultiregionAccessPoints:i,followRegionRedirects:a,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:f}=t;return Object.assign(t,{forcePathStyle:o??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:i??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new Hu(async m=>r().send(new n({Bucket:m}))),bucketEndpoint:u??!1,expectContinueHeader:f??2097152})}});var KP,QP,PG,IG=h(()=>{z();j();KP=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(it.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{Zr(s.headers.expires)}catch(i){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${i}`),delete s.headers.expires}}return o},QP={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},PG=t=>({applyToStack:e=>{e.addRelativeTo(KP(t),QP)}})});var aI=Ct(ce=>{var{hasOwn:Vu,fromUtf8:DG,fromHex:tSe,toHex:tc,toUint8Array:hp,isArrayBuffer:rSe}=(j(),F(Pi)),{normalizeProvider:OG}=(Q(),F(bi)),{escapeUri:qS,HttpRequest:NG}=(z(),F(Qs)),JP=class{format(e){let r=[];for(let s in e){if(!Vu(e,s))continue;let i=DG(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=DG(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(XP.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!nSe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(tSe(e.value.replace(/-/g,"")),1),m}}},kG;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(kG||(kG={}));var nSe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,XP=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&$G(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&$G(e),parseInt(tc(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function $G(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var MG="X-Amz-Algorithm",BG="X-Amz-Credential",tI="X-Amz-Date",FG="X-Amz-SignedHeaders",UG="X-Amz-Expires",rI="X-Amz-Signature",nI="X-Amz-Security-Token",oSe="X-Amz-Region-Set",oI="authorization",sI=tI.toLowerCase(),GG="date",qG=[oI,sI,GG],jG=rI.toLowerCase(),WS="x-amz-content-sha256",HG=nI.toLowerCase(),sSe="host",zG={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},VG=/^proxy-/,WG=/^sec-/,iSe=[/^proxy-/i,/^sec-/i],jS="AWS4-HMAC-SHA256",aSe="AWS4-ECDSA-P256-SHA256",KG="AWS4-HMAC-SHA256-PAYLOAD",QG="UNSIGNED-PAYLOAD",JG=50,iI="aws4_request",XG=3600*24*7,YG=({query:t={}})=>{let e=[],r={};for(let n in t){if(!Vu(t,n)||n.toLowerCase()===jG)continue;let o=qS(n);e.push(o);let s=t[n];typeof s=="string"?r[o]=`${o}=${qS(s)}`:Array.isArray(s)&&(r[o]=s.slice(0).reduce((i,a)=>i.concat([`${o}=${qS(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},cSe=t=>uSe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),uSe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,KS=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){this.service=o,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=OG(n),this.credentialProvider=OG(r)}createCanonicalRequest(e,r,n){let o=Object.keys(r).sort();return`${e.method}
22
+ `)}m.push(null)}catch(y){m.destroy(y)}}),m}var xG,vG=g(()=>{xG=require("node:stream");AG();xo()});async function DG(t,e){let r=0,n=[],o=t.getReader(),s=!1;for(;!s;){let{done:c,value:u}=await o.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;s=c}o.releaseLock();let i=new Uint8Array(Math.min(e,r)),a=0;for(let c of n){if(c.byteLength>i.byteLength-a){i.set(c.subarray(0,i.byteLength-a),a);break}else i.set(c,a);a+=c.length}return i}var IG=g(()=>{});var wG,PG,Ow,OG=g(()=>{wG=require("node:stream");Pp();IG();xo();PG=(t,e)=>Ht(t)?DG(t,e):new Promise((r,n)=>{let o=new Ow;o.limit=e,t.pipe(o),t.on("error",s=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=Vn(this.buffers);r(s)})}),Ow=class extends wG.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let o=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-o),this.emit("finish")}n()}}});var $G,kG=g(()=>{$G=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)}});async function $w(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function kw(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:o,value:s}=await r.read();if(s&&(e.push(s),n+=s.length),o)break}return Vn(e,n)}var MG,Mw=g(()=>{Pp();xo();MG=async t=>sa(t)?$w(t):kw(t)});var LG,FG,NG,BG=g(()=>{Dw();xI();kG();Mw();xo();LG="The stream has already been transformed.",FG=t=>{if(!NG(t)&&!Ht(t)){let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(LG);return e=!0,await MG(t)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
23
+ If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return wS(s);if(o==="hex")return zn(s);if(o===void 0||o==="utf8"||o==="utf-8")return $G(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(LG);if(e=!0,NG(t))return n(t);if(Ht(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},NG=t=>typeof Blob=="function"&&t instanceof Blob});var UG,kS,Lw,Nw=g(()=>{UG=require("node:stream");Pp();Mw();xo();kS=t=>sa(t)?$w(t):Ht(t)?kw(t):new Promise((e,r)=>{let n=new Lw,o=t;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=Vn(this.bufferedBytes);e(s)})}),Lw=class extends UG.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var MS,GG,LS,qG=g(()=>{MS=require("node:stream");ta();BG();Nw();GG="The stream has already been transformed.",LS=t=>{if(!(t instanceof MS.Readable))try{return FG(t)}catch{let o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1,r=async()=>{if(e)throw new Error(GG);return e=!0,await kS(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?Ao(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(GG);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof MS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,MS.Readable.toWeb(t)}})}});async function HG(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var jG=g(()=>{});async function zG(t){if(Ht(t)||sa(t))return HG(t);let e=new Fw.PassThrough,r=new Fw.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var Fw,VG=g(()=>{Fw=require("node:stream");jG();xo()});var To={};Ct(To,{ChecksumStream:()=>Wu,Hash:()=>vS,LazyJsonString:()=>qe,NumericValue:()=>Y,Uint8ArrayBlobAdapter:()=>bc,_parseEpochTimestamp:()=>na,_parseRfc3339DateTimeWithOffset:()=>Hh,_parseRfc7231DateTime:()=>jh,calculateBodyLength:()=>Es,concatBytes:()=>Vn,copyDocumentWithTransform:()=>dB,createBufferedReadable:()=>$S,createChecksumStream:()=>OS,dateToUtcString:()=>br,deserializerMiddleware:()=>Kh,deserializerMiddlewareOption:()=>Aw,expectBoolean:()=>mB,expectByte:()=>Lh,expectFloat32:()=>Dp,expectInt:()=>gB,expectInt32:()=>kh,expectLong:()=>ku,expectNonNull:()=>hB,expectNumber:()=>$u,expectObject:()=>hI,expectShort:()=>Mh,expectString:()=>SB,expectUnion:()=>Fh,fromArrayBuffer:()=>Ao,fromBase64:()=>Xe,fromHex:()=>Wh,fromString:()=>ea,fromUtf8:()=>qt,generateIdempotencyToken:()=>xr,getAwsChunkedEncodingStream:()=>TG,getSerdePlugin:()=>oG,handleFloat:()=>EB,hasOwn:()=>W,headStream:()=>PG,isArrayBuffer:()=>Ou,isBlob:()=>sa,isReadableStream:()=>Ht,limitedParseDouble:()=>Uh,limitedParseFloat:()=>_B,limitedParseFloat32:()=>RB,logger:()=>Mu,nv:()=>Vh,parseBoolean:()=>fB,parseEpochTimestamp:()=>ys,parseRfc3339DateTime:()=>xB,parseRfc3339DateTimeWithOffset:()=>Ss,parseRfc7231DateTime:()=>gn,quoteHeader:()=>qh,sdkStreamMixin:()=>LS,serializerMiddleware:()=>TS,serializerMiddlewareOption:()=>xw,splitEvery:()=>zh,splitHeader:()=>Fu,splitStream:()=>zG,streamCollector:()=>kS,strictParseByte:()=>Gh,strictParseDouble:()=>Ip,strictParseFloat:()=>yB,strictParseFloat32:()=>Bh,strictParseInt:()=>bB,strictParseInt32:()=>AB,strictParseLong:()=>SI,strictParseShort:()=>ra,toBase64:()=>De,toHex:()=>zn,toUint8Array:()=>bt,toUtf8:()=>ze,v4:()=>Ku});var WG,bc,oxe,Ku,xr,j=g(()=>{WG=require("node:crypto");sB();mI();aB();Oh();cB();lB();pB();TB();vB();yI();DB();PB();OB();$B();MB();xI();NB();TI();Pp();ta();fI();DI();sG();bw();aG();Tw();yG();CG();vG();OG();qG();VG();xo();Nw();oe();bc=class extends iB(ze,qt,De,Xe){},oxe=WG.getRandomValues,Ku=uB(oxe),xr=Ku});var At,Qu=g(()=>{j();At=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return bc.mutate(t);if(!t)return bc.mutate(new Uint8Array);let r=e.streamCollector(t);return bc.mutate(await r)}});function vo(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var NS=g(()=>{});var Zt,Yu=g(()=>{Zt=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function FS(t,e,r=1024*1024){let n=t.size,o=0;for(;o<n;){let s=t.slice(o,Math.min(n,o+r));e(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Bw=g(()=>{});var KG,QG=g(()=>{Bw();KG=async function(e,r){let n=new e;return await FS(r,o=>{n.update(o)}),n.digest()}});var YG,Ju,Uw=g(()=>{YG=require("node:stream");j();Ju=class extends YG.Writable{hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(bt(e))}catch(o){return n(o)}n()}}});var JG,XG,sxe,ZG=g(()=>{JG=require("node:fs");Uw();XG=(t,e)=>new Promise((r,n)=>{if(!sxe(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,JG.createReadStream)(e.path,{start:e.start,end:e.end}),s=new t,i=new Ju(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),sxe=t=>typeof t.path=="string"});var e4,t4=g(()=>{Uw();e4=(t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new Ju(r);return e.pipe(n),new Promise((o,s)=>{e.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function Gw(t,e){let r=t[0],n=t[1],o=t[2],s=t[3];for(let i=0;i<64;++i){let a,c;i<16?(a=n&o|~n&s,c=i):i<32?(a=s&n|o&~s,c=(5*i+1)%16):i<48?(a=n^o^s,c=(3*i+5)%16):(a=o^(n|~s),c=7*i%16);let u=e.getUint32(c*4,!0),f=s;s=o,o=n;let m=ixe[(i>>4)*4+(i&3)],y=(r+a&ia)+(u+axe[i]&ia)&ia;n=n+((y<<m|y>>>32-m)>>>0)&ia,r=f}t[0]=t[0]+r&ia,t[1]=t[1]+n&ia,t[2]=t[2]+o&ia,t[3]=t[3]+s&ia}var Xu,r4,ia,ixe,axe,qw=g(()=>{j();Xu=class{digestLength=16;state=Uint32Array.from(r4);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=bt(e),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(Gw(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);Gw(e,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),Gw(e,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,e[a],!0);return s}reset(){this.state.set(r4),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},r4=[1732584193,4023233417,2562383102,271733878],ia=4294967295,ixe=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),axe=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0)});function uxe(){return class{digestLength=16;hash=(0,BS.createHash)("md5");update(e){this.hash.update(bt(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,BS.createHash)("md5")}}}var BS,cxe,Hw,n4=g(()=>{BS=require("node:crypto");j();qw();cxe=(()=>{try{return(0,BS.createHash)("md5"),!0}catch{return!1}})(),Hw=cxe?uxe():Xu});var o4,jw,Ac,zw=g(()=>{o4=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;o4[t]=e>>>0}jw=4294967295,Ac=class{digestLength=4;checksum=jw;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^o4[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^jw)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=jw}}});function lxe(t){return class{digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var Vw,s4,Do,i4=g(()=>{Vw=Ie(require("node:zlib"));zw();s4=typeof Vw.crc32=="function"?Vw.crc32:void 0,Do=s4?lxe(s4):Ac});var Tr,a4,dxe,Io,c4,pxe,US=g(()=>{j();Tr=64,a4=32,dxe=2**53-1,Io=class t{digestLength=a4;state=Int32Array.from(c4);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:o}=this,s=new Uint8Array(Tr*2);for(let i=0;i<Tr;++i)s[i]=54^r[i],s[i+Tr]=92^r[i];n.update(s.subarray(0,Tr)),o.update(s.subarray(Tr))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=bt(e),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>dxe)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===Tr&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(c4),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%Tr>=Tr-8){for(let a=n;a<Tr;++a)s.setUint8(a,0);this.hashBufferWith(e,r),n=0}for(let a=n;a<Tr-8;++a)s.setUint8(a,0);s.setUint32(Tr-8,Math.floor(o/4294967296),!1),s.setUint32(Tr-4,o,!1),this.hashBufferWith(e,r);let i=new Uint8Array(a4);for(let a=0;a<8;++a)i[a*4]=e[a]>>>24&255,i[a*4+1]=e[a]>>>16&255,i[a*4+2]=e[a]>>>8&255,i[a*4+3]=e[a]>>>0&255;return i}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tr){let n=new t;n.update(r);let o=n.digestSync(),s=new Uint8Array(Tr);return s.set(o),s}if(r.byteLength<Tr){let n=new Uint8Array(Tr);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),o=e[0],s=e[1],i=e[2],a=e[3],c=e[4],u=e[5],f=e[6],m=e[7];for(let y=0;y<Tr;++y){if(y<16)n[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{let A=n[y-2],x=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[y-15];let T=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[y]=(x+n[y-7]|0)+(T+n[y-16]|0)}let _=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&f)|0)+(m+(pxe[y]+n[y]|0)|0)|0,C=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=f,f=u,u=c,c=a+_|0,a=i,i=s,s=o,o=_+C|0}e[0]+=o,e[1]+=s,e[2]+=i,e[3]+=a,e[4]+=c,e[5]+=u,e[6]+=f,e[7]+=m}},c4=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),pxe=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function mxe(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,jp.createHmac)("sha256",gxe(this.secret)):(0,jp.createHash)("sha256")}}}function gxe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var jp,fxe,Sn,u4=g(()=>{jp=require("node:crypto");US();fxe=(()=>{try{return(0,jp.createHash)("sha256"),!0}catch{return!1}})(),Sn=fxe?mxe():Io});var hxe,Sxe,yxe,GS,Exe,qS,l4=g(()=>{j();US();({digest:hxe,sign:Sxe,importKey:yxe}=globalThis?.crypto?.subtle??{}),GS=typeof hxe=="function"&&typeof Sxe=="function"&&typeof yxe=="function"?globalThis.crypto.subtle:void 0,Exe=8*1024*1024,qS=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=Exe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(GS){if(this.secret){this.finished=!0;let o=await GS.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await GS.sign("HMAC",o,e);return new Uint8Array(s)}let n=await GS.digest("SHA-256",e);return new Uint8Array(n)}let r=new Io(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Io(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var zp={};Ct(zp,{Crc32:()=>Do,Crc32Js:()=>Ac,Crc32Node:()=>Do,Md5:()=>Hw,Md5Js:()=>Xu,Md5Node:()=>Hw,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn,Sha256WebCrypto:()=>qS,blobHasher:()=>KG,blobReader:()=>FS,fileStreamHasher:()=>XG,readableStreamHasher:()=>e4});var On=g(()=>{QG();ZG();t4();qw();n4();zw();i4();US();u4();l4();Bw()});function d4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var aa,Ww=g(()=>{j();aa=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&d4(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&d4(e),parseInt(zn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var Zu,p4,f4,_xe,Rxe,Cxe,bxe,Axe,xxe,Txe,vxe,Dxe,Kw=g(()=>{oe();j();Ww();Zu=class{toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let s in e){if(!W(e,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(aa.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!Dxe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Wh(e.value.replace(/-/g,"")),1),m}}parse(e){let r={},n=0;for(;n<e.byteLength;){let o=e.getUint8(n++),s=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,o));switch(n+=o,e.getUint8(n++)){case 0:r[s]={type:f4,value:!0};break;case 1:r[s]={type:f4,value:!1};break;case 2:r[s]={type:_xe,value:e.getInt8(n++)};break;case 3:r[s]={type:Rxe,value:e.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:Cxe,value:e.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:bxe,value:new aa(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let i=e.getUint16(n,!1);n+=2,r[s]={type:Axe,value:new Uint8Array(e.buffer,e.byteOffset+n,i)},n+=i;break;case 7:let a=e.getUint16(n,!1);n+=2,r[s]={type:xxe,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:Txe,value:new Date(new aa(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let c=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[s]={type:vxe,value:`${zn(c.subarray(0,4))}-${zn(c.subarray(4,6))}-${zn(c.subarray(6,8))}-${zn(c.subarray(8,10))}-${zn(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(p4||(p4={}));f4="boolean",_xe="byte",Rxe="short",Cxe="integer",bxe="long",Axe="binary",xxe="string",Txe="timestamp",vxe="uuid",Dxe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function g4({byteLength:t,byteOffset:e,buffer:r}){if(t<Ixe)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),o=n.getUint32(0,!1);if(t!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(m4,!1),i=n.getUint32(ca,!1),a=n.getUint32(t-xc,!1),c=new Do;if(c.update(new Uint8Array(r,e,ca)),i!==c.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${c.digestSync()})`);if(c.update(new Uint8Array(r,e+ca,t-(ca+xc))),a!==c.digestSync())throw new Error(`The message checksum (${c.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,e+ca+xc,s),body:new Uint8Array(r,e+ca+xc+s,o-s-(ca+xc+xc))}}var m4,ca,xc,Ixe,h4=g(()=>{On();m4=4,ca=m4*2,xc=4,Ixe=ca+xc*2});var el,Qw=g(()=>{On();Kw();h4();el=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new Zu(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Do;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(e){let{headers:r,body:n}=g4(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var tl,Yw=g(()=>{tl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var rl,Jw=g(()=>{rl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var nl,Xw=g(()=>{nl=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var ol,Zw=g(()=>{ol=class{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function HS(t){let e=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);e=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=t[Symbol.asyncIterator]();for(;;){let{value:c,done:u}=await a.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let f=c.length,m=0;for(;m<f;){if(!n){let _=f-m;o||(o=new Uint8Array(4));let C=Math.min(4-r,_);if(o.set(c.slice(m,m+C),r),r+=C,m+=C,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let y=Math.min(e-r,f-m);n.set(c.slice(m,m+y),r),r+=y,m+=y,e&&e===r&&(yield n,n=null,e=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var eP=g(()=>{});function S4(t,e){let r=Vp(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let o=e.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Vp(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await t(s);if(i.$unknown){let a=new Error(e(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await t(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var tP=g(()=>{});var Tc,y4,rP=g(()=>{Qw();Yw();Jw();Xw();Zw();eP();tP();Tc=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new el(e,r),this.utfEncoder=e}deserialize(e,r){let n=HS(e);return new nl({messageStream:new tl({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Vp(r,this.utfEncoder)})}serialize(e,r){return new rl({messageStream:new ol({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},y4=t=>new Tc(t)});async function*wxe(t){let e=!1,r=!1,n=new Array;for(t.on("error",o=>{if(e||(e=!0),o)throw o}),t.on("data",o=>{n.push(o)}),t.on("end",()=>{e=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=e&&n.length===0}}var E4,Wp,_4,R4=g(()=>{E4=require("node:stream");rP();Wp=class{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Tc({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:wxe(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return E4.Readable.from(this.universalMarshaller.serialize(e,r))}},_4=t=>new Wp(t)});var C4,b4,A4=g(()=>{C4=t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),b4=t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await e.next();if(n)return r.close();r.enqueue(o)}})}});var x4,T4=g(()=>{x4=t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)})});var jS,v4=g(()=>{oe();ae();j();jS=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),c=this.serializer,u=this.defaultContentType,f=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let y={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,n);let _=c.flush();yield{[f]:!0,headers:y,body:_}}for await(let y of e)yield y}};return s.serialize(m,y=>{if(y[f])return{headers:y.headers,body:y.body};let _="";for(let q in y)if(W(y,q)&&q!=="__type"){_=q;break}let{additionalHeaders:C,body:A,eventType:x,explicitPayloadContentType:T}=this.writeEventBody(_,a,y);return{headers:{":event-type":{type:"string",value:x},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:T??u},...C},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),c=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),f=s.deserialize(e.body,async _=>{let C="";for(let x in _)if(W(_,x)&&x!=="__type"){C=x;break}let A=_[C].body;if(C===(o??"initial-response")){let x=await this.deserializer.read(r,A);return delete x[i],{[u]:!0,...x}}else if(C in c){let x=c[C];if(x.isStructSchema()){let T={},I=!1;for(let[q,H]of x.structIterator()){let{eventHeader:me,eventPayload:et}=H.getMergedTraits();if(I=I||!!(me||et),et)H.isBlobSchema()?T[q]=A:H.isStringSchema()?T[q]=(this.serdeContext?.utf8Encoder??ze)(A):H.isStructSchema()&&(T[q]=await this.deserializer.read(H,A));else if(me){let ot=_[C].headers[q]?.value;ot!=null&&(H.isNumericSchema()?ot&&typeof ot=="object"&&"bytes"in ot?T[q]=BigInt(ot.toString()):T[q]=Number(ot):T[q]=ot)}}return{[C]:await this.readEventMember(x,A,I,T)}}return{[C]:await this.deserializer.read(x,A)}}else return{$unknown:_}}),m=f[Symbol.asyncIterator](),y=await m.next();if(y.done)return f;if(y.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let _ in y.value)W(y.value,_)&&(n[_]=y.value[_])}return{async*[Symbol.asyncIterator](){for(y?.value?.[u]||(yield y.value);;){let{done:_,value:C}=await m.next();if(_)break;yield C}}}}async readEventMember(e,r,n,o){let s,i=e.getSchema();if(Array.isArray(i)&&i[0]===-3){let c=i[1],u=Fe.for(c);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(e,r);if(s){let c=a.message??a.Message??"Unknown",u={},f=e.getMergedTraits().error;return f&&(u.$fault=f),Object.assign(new s({}),u,{message:c},a)}return a}writeEventBody(e,r,n){let o=this.serializer,s=e,i=null,a,c=r.getSchema()[4].includes(e),u={};if(c){let y=r.getMemberSchema(e);if(y.isStructSchema()){for(let[_,C]of y.structIterator()){let{eventHeader:A,eventPayload:x}=C.getMergedTraits();if(x)i=_;else if(A){let T=n[e][_],I="binary";C.isNumericSchema()?(-2)**31<=T&&T<=2**31-1?I="integer":I="long":C.isTimestampSchema()?I="timestamp":C.isStringSchema()?I="string":C.isBooleanSchema()&&(I="boolean"),T!=null&&(u[_]={type:I,value:T},delete n[e][_])}}if(i!==null){let _=y.getMemberSchema(i);_.isBlobSchema()?a="application/octet-stream":_.isStringSchema()&&(a="text/plain"),o.write(_,n[e][i])}else o.write(y,n[e])}else if(y.isUnitSchema())o.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,_]=n[e];s=y,o.write(15,_)}let f=o.flush()??new Uint8Array;return{body:typeof f=="string"?(this.serdeContext?.utf8Decoder??qt)(f):f,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var zS={};Ct(zS,{EventStreamCodec:()=>el,EventStreamMarshaller:()=>Wp,EventStreamSerde:()=>jS,HeaderMarshaller:()=>Zu,Int64:()=>aa,MessageDecoderStream:()=>tl,MessageEncoderStream:()=>rl,SmithyMessageDecoderStream:()=>nl,SmithyMessageEncoderStream:()=>ol,UniversalEventStreamMarshaller:()=>Tc,eventStreamSerdeProvider:()=>_4,getChunkedStream:()=>HS,getMessageUnmarshaller:()=>Vp,getUnmarshalledStream:()=>S4,iterableToReadableStream:()=>b4,readableStreamToIterable:()=>C4,resolveEventStreamSerdeConfig:()=>x4,universalEventStreamSerdeProvider:()=>y4});var VS=g(()=>{Qw();Kw();Ww();Yw();Jw();Xw();Zw();R4();A4();rP();eP();tP();T4();v4()});var ua,WS=g(()=>{oe();ae();oe();Yu();ua=class extends Zt{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Fe(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return re}getResponseType(){return ft}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,o]of r.url.searchParams.entries())e.query[n]=o;if(r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)W(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let o=B.of(r.input),s=Ro(r.traits??{});if(s.endpoint){let i=s.endpoint?.[0];if(typeof i=="string"){for(let[a,c]of o.structIterator()){if(!c.getMergedTraits().hostLabel)continue;let u=n[a];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${a} in input must be a string as hostLabel.`);i=i.replace(`{${a}}`,u)}if(e.hostname=i+e.hostname,!hp(e.hostname))throw new Error(`[${e.hostname}] is not a valid 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"]}}resolveError(e,r,n){let o=[-3,"","Error",0,[],[],0],s;for(let i of n)for(let a of r)try{a==="*"?s=i.getSchema(e):s=i.getSchema(a+"#"+e);let c=i.getErrorCtor(s);if(c)return[s,c,"modeled"];{let u=i.getBaseException();if(u){let f=i.getErrorCtor(u);if(f)return[s,f,"synthetic"]}}}catch{}for(let i of n){let a=i.getBaseException();if(a){let c=i.getErrorCtor(a);if(c)return[a,c,"synthetic"]}}return[o,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(VS(),zS)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,o,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var la,D4=g(()=>{oe();ae();j();oe();WS();Qu();NS();la=class extends ua{async serializeRequest(e,r,n){let o=r&&typeof r=="object"?r:{},s=this.serializer,i={},a={},c=await n.endpoint(),u=B.of(e?.input),f=[],m=[],y=!1,_,C=new re({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:i,headers:a,body:void 0});if(c){this.updateServiceEndpoint(C,c),this.setHostPrefix(C,e,o);let A=Ro(e.traits);if(A.http){C.method=A.http[0];let[x,T]=A.http[1].split("?");C.path=="/"?C.path=x:C.path+=x;let I=new URLSearchParams(T??"");for(let[q,H]of I)i[q]=H}}for(let[A,x]of u.structIterator()){let T=x.getMergedTraits()??{},I=o[A];if(I==null&&!x.isIdempotencyToken()){if(T.httpLabel&&(C.path.includes(`{${A}+}`)||C.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(T.httpPayload)x.isStreaming()?x.isStructSchema()?o[A]&&(_=await this.serializeEventStream({eventStream:o[A],requestSchema:u})):_=I:(s.write(x,I),_=s.flush());else if(T.httpLabel){s.write(x,I);let q=s.flush();C.path.includes(`{${A}+}`)?C.path=C.path.replace(`{${A}+}`,q.split("/").map(vo).join("/")):C.path.includes(`{${A}}`)&&(C.path=C.path.replace(`{${A}}`,vo(q)))}else if(T.httpHeader)s.write(x,I),a[T.httpHeader.toLowerCase()]=String(s.flush());else if(typeof T.httpPrefixHeaders=="string")for(let q in I){if(!W(I,q))continue;let H=I[q],me=T.httpPrefixHeaders+q;s.write([x.getValueSchema(),{httpHeader:me}],H),a[me.toLowerCase()]=s.flush()}else T.httpQuery||T.httpQueryParams?this.serializeQuery(x,I,i):(y=!0,f.push(A),m.push(x))}if(y&&o){let[A,x]=(u.getName(!0)??"#Unknown").split("#"),T=u.getSchema()[6],I=[3,A,x,u.getMergedTraits(),f,m,void 0];T?I[6]=T:I.pop(),s.write(I,o),_=s.flush()}return C.headers=a,C.query=i,C.body=_,C}serializeQuery(e,r,n){let o=this.serializer,s=e.getMergedTraits();if(s.httpQueryParams){for(let i in r)if(W(r,i)&&!(i in n)){let a=r[i],c=e.getValueSchema();Object.assign(c.getMergedTraits(),{...s,httpQuery:i,httpQueryParams:void 0}),this.serializeQuery(c,a,n)}return}if(e.isListSchema()){let i=!!e.getMergedTraits().sparse,a=[];for(let c of r){o.write([e.getValueSchema(),s],c);let u=o.flush();(i||u!==void 0)&&a.push(u)}n[s.httpQuery]=a}else o.write([e,s],r),n[s.httpQuery]=o.flush()}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=await this.deserializeHttpMessage(s,r,n,i);if(a.length){let c=await At(n.body,r);if(c.byteLength>0){let u=await o.read(s,c);for(let f of a)u[f]!=null&&(i[f]=u[f])}}else a.discardResponseBody&&await At(n.body,r);return i.$metadata=this.deserializeMetadata(n),i}async deserializeHttpMessage(e,r,n,o,s){let i;o instanceof Set?i=s:i=o;let a=!0,c=this.deserializer,u=B.of(e),f=[];for(let[m,y]of u.structIterator()){let _=y.getMemberTraits();if(_.httpPayload){if(a=!1,y.isStreaming())y.isStructSchema()?i[m]=await this.deserializeEventStream({response:n,responseSchema:u}):i[m]=LS(n.body);else if(n.body){let A=await At(n.body,r);A.byteLength>0&&(i[m]=await c.read(y,A))}}else if(_.httpHeader){let C=String(_.httpHeader).toLowerCase(),A=n.headers[C];if(A!=null)if(y.isListSchema()){let x=y.getValueSchema();x.getMergedTraits().httpHeader=C;let T;x.isTimestampSchema()&&x.getSchema()===4?T=zh(A,",",2):T=Fu(A);let I=[];for(let q of T)I.push(await c.read(x,q.trim()));i[m]=I}else i[m]=await c.read(y,A)}else if(_.httpPrefixHeaders!==void 0){i[m]={};for(let C in n.headers)if(W(n.headers,C)&&C.startsWith(_.httpPrefixHeaders)){let A=n.headers[C],x=y.getValueSchema();x.getMergedTraits().httpHeader=C,i[m][C.slice(_.httpPrefixHeaders.length)]=await c.read(x,A)}}else _.httpResponseCode?i[m]=n.statusCode:f.push(m)}return f.discardResponseBody=a,f}}});var Qn,nP=g(()=>{oe();ae();oe();WS();Qu();Qn=class extends ua{async serializeRequest(e,r,n){let o=this.serializer,s={},i={},a=await n.endpoint(),c=B.of(e?.input),u=c.getSchema(),f,m=r&&typeof r=="object"?r:{},y=new re({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:i,body:void 0});if(a&&(this.updateServiceEndpoint(y,a),this.setHostPrefix(y,e,m)),m){let _=c.getEventStreamMember();if(_){if(m[_]){let C={};for(let[A]of c.structIterator())A!==_&&m[A]!=null&&(C[A]=m[A]);f=await this.serializeEventStream({eventStream:m[_],requestSchema:c,initialRequest:C})}}else o.write(u,m),f=o.flush()}return y.headers=Object.assign(y.headers,i),y.query=s,y.body=f,y.method="POST",y}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let c=await At(n.body,r);throw c.byteLength>0&&Object.assign(i,await o.read(15,c)),await this.handleError(e,r,n,i,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let c in n.headers){if(!W(n.headers,c))continue;let u=n.headers[c];delete n.headers[c],n.headers[c.toLowerCase()]=u}let a=s.getEventStreamMember();if(a)i[a]=await this.deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:i});else{let c=await At(n.body,r);c.byteLength>0&&Object.assign(i,await o.read(s,c))}return i.$metadata=this.deserializeMetadata(n),i}}});var KS,oP=g(()=>{NS();KS=(t,e,r,n,o,s)=>{if(e!=null&&e[r]!==void 0){let i=n();if(i==null||i.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(o,s?i.split("/").map(a=>vo(a)).join("/"):vo(i))}else throw new Error("No value provided for input HTTP label: "+r+".");return t}});function QS(t,e){return new Kp(t,e)}var Kp,I4=g(()=>{oe();oP();Kp=class{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(let s of this.resolvePathStack)s(this.path);return new re({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,o){return this.resolvePathStack.push(s=>{this.path=KS(s,this.input,e,r,n,o)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function Ze(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:o,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||o?6:s||r?5:void 0:void 0)??e.timestampFormat.default}var da=g(()=>{});var pa,sP=g(()=>{ae();j();Yu();da();pa=class extends Zt{settings;constructor(e){super(),this.settings=e}read(e,r){let n=B.of(e);if(n.isListSchema())return Fu(r).map(o=>this.read(n.getValueSchema(),o));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Xe)(r);if(n.isTimestampSchema())switch(Ze(n,this.settings)){case 5:return Hh(r);case 6:return jh(r);case 7:return na(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let o=n.getMergedTraits().mediaType,s=r;if(o)return n.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),s}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Y(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??ze)((this.serdeContext?.base64Decoder??Xe)(e))}}});var fa,w4=g(()=>{ae();j();Yu();sP();fa=class extends Zt{codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new pa(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=B.of(e),o=n.getMergedTraits(),s=this.serdeContext?.utf8Encoder??ze;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(n,s(r));if(o.httpPayload){if(n.isBlobSchema()){let i=this.serdeContext?.utf8Decoder??qt;return typeof r=="string"?i(r):r}else if(n.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(n,r)}}});var sl,iP=g(()=>{ae();j();Yu();da();sl=class extends Zt{settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(Ze(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=br(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??De)(r);return}if(n.isListSchema()&&Array.isArray(r)){let i="";for(let a of r){this.write([n.getValueSchema(),n.getMergedTraits()],a);let c=this.flush(),u=n.getValueSchema().isTimestampSchema()?c:qh(c);i!==""&&(i+=", "),i+=u}this.stringBuffer=i;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let o=n.getMergedTraits().mediaType,s=r;if(o&&((o==="application/json"||o.endsWith("+json"))&&(s=qe.from(s)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??De)(s.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=xr():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var ma,P4=g(()=>{ae();iP();ma=class{codecSerializer;stringSerializer;buffer;constructor(e,r,n=new sl(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=B.of(e),o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var O4,YS,$4=g(()=>{O4=Ie(Eo()),YS=class{name;kind;values;constructor({name:e,kind:r=O4.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var JS,k4=g(()=>{JS=class{entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var vs,Ds,M4=g(()=>{vs=t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),Ds=t=>({requestHandler:t.httpHandler()})});function aP(t){return e=>async r=>{let n=r.request;if(re.isInstance(n)){let{body:o,headers:s}=n;if(o&&Object.keys(s).map(i=>i.toLowerCase()).indexOf(L4)===-1)try{let i=t(o);i!=null&&(n.headers={...n.headers,[L4]:String(i)})}catch{}}return e({...r,request:n})}}var L4,cP,Is,N4=g(()=>{oe();L4="content-length";cP={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Is=t=>({applyToStack:e=>{e.add(aP(t.bodyLengthChecker),cP)}})});var ga,Pxe,XS=g(()=>{ga=t=>encodeURIComponent(t).replace(/[!'()*]/g,Pxe),Pxe=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`});var F4,B4=g(()=>{XS();F4=t=>t.split("/").map(ga).join("/")});function U4(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=ga(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${ga(n[o])}`);else{let o=r;(n||typeof n=="string")&&(o+=`=${ga(n)}`),e.push(o)}}return e.join("&")}var G4=g(()=>{XS()});var yn,vc=g(()=>{yn=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var il,uP=g(()=>{il=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function ZS(){if(Qp===void 0)try{if(typeof Buffer!="function")Qp=!1;else{let t=JSON.parse(Buffer.from([123,125]));Qp=t!==null&&typeof t=="object"}}catch{Qp=!1}return Qp}var Qp,lP=g(()=>{});function al(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?$xe(n,e)?e:new Y(n,"bigDecimal"):Oxe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?kxe(n):BigInt(n)}return e}function Oxe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function $xe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return dP(t)===dP(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===dP(n):!1}function dP(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function kxe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var e0=g(()=>{j()});function cl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(pP in r)return r[pP];let n=t0(e,new Set);return r[pP]=n,n}return t0(e,new Set)}function t0(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(t0(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(t0(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var pP,r0=g(()=>{ae();pP=Symbol.for("@aws-sdk/reviver")});var q4,H4=g(()=>{Qu();j();q4=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Dc(t,e,r){let n;if(ZS()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await q4(t,e)),n.length===0)return{};let o=r&&cl(r)?al:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var z4,j4,fP,V4,W4,n0,K4,Yp=g(()=>{Qu();H4();lP();e0();r0();z4=async(t,e)=>{let r=await Dc(t,e);return r.message=r.message??r.Message,r},j4=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),fP=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},V4=(t,e)=>K4(t,e,["header","code","type"]),W4=(t,e,r=!1)=>K4(t,e,r?["code","header","type"]:["type","code","header"]),n0=(t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},K4=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=j4(t??{},"x-amzn-errortype");if(o!==void 0)return fP(t[o]);break;case"code":let s=j4(e??{},"code");if(s&&e[s]!==void 0)return fP(e[s]);break;case"type":if(e?.__type!==void 0)return fP(e.__type);break}}});function ws(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var o0=g(()=>{});var ul,mP=g(()=>{da();ae();j();vc();uP();lP();e0();r0();Yp();o0();oe();ul=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=cl(e)?al:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&ZS()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Dc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)W(a,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,a[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){if(!W(i,a))continue;a==="__proto__"&&ws(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new il(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){if(!W(r,u))continue;let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var s0,Q4,Y4=g(()=>{j();s0=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>Q4+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),Q4=e),this.string=ze(this)}return this.string}},Q4=0});function gP(t){return s0.allocUnsafe(t)}var i0,J4,X4,Mxe,Lxe,ll,a0,c0,Z4,Nxe,Fxe,Bxe,Ps,eq,dl,hP=g(()=>{da();ae();j();vc();oe();Y4();i0=new TextEncoder,J4=123,X4=125,Mxe=91,Lxe=93,ll=34,a0=58,c0=44,Z4=92,Nxe=new Uint8Array([116,114,117,101]),Fxe=new Uint8Array([102,97,108,115,101]),Bxe=new Uint8Array([110,117,108,108]),Ps=new Array(128).fill(null);Ps[8]="b";Ps[9]="t";Ps[10]="n";Ps[12]="f";Ps[13]="r";Ps[34]='"';Ps[92]="\\";for(let t=0;t<32;t++)Ps[t]===null&&(Ps[t]="u00"+t.toString(16).padStart(2,"0"));eq=2048;dl=class t extends yn{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=gP(eq)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),i0.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=gP(eq),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=gP(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=ll;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=ll,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=ll;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ps[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=Z4;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=i0.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=ll}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=Z4,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=ll;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=ll,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(Bxe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(o.isBigIntegerSchema()||o.isBigDecimalSchema())){let i=r instanceof Y?r.string:String(r);this.writeAsciiQuoted(i);return}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??De)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(Nxe,i),i+=4):(a.set(Fxe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=J4;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=c0),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=a0,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=a0,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=c0),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=a0,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=X4}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=i0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Mxe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=c0),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=Lxe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){if(!W(r,u))continue;let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=i0.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=J4;let i=!0;for(let a in r){if(!W(r,a))continue;let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=c0),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=a0,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=X4}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var pl,SP=g(()=>{vc();mP();hP();pl=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new dl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ul(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var u0,tq=g(()=>{nP();ae();oe();SP();Yp();u0=class extends Qn{codec=new pl({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):o.body||(o.body="{}");let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=n0(n,o)??"Unknown",a={$metadata:s,$fault:n.statusCode<=500?"client":"server"},c=this.options.defaultNamespace;i.includes("#")&&([c]=i.split("#"));let u=this.compositeErrorRegistry,f=Fe.for(c);u.copyFrom(f);let m;try{m=u.getSchema(i)}catch{o.Message&&(o.message=o.Message);let q=Fe.for("smithy.ts.sdk.synthetic."+c);u.copyFrom(q);let H=u.getBaseException();if(H){let me=u.getErrorCtor(H);throw Object.assign(new me({name:i}),a,o)}throw Object.assign(new Error(i),a,o)}let y=B.of(m),_=u.getErrorCtor(m),C=o.message??o.Message??"Unknown",A=new _({}),x={},T=this.codec.createDeserializer();for(let[I,q]of y.structIterator())o[I]!=null&&(x[I]=T.readObject(q,o[I]));throw Object.assign(A,a,{$fault:y.getMergedTraits().error,message:C},x)}getDefaultContentType(){return"application/json"}}});var fl,yP=g(()=>{da();ae();j();j();oe();vc();uP();e0();r0();Yp();o0();fl=class extends yn{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=cl(e)?al:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Dc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new il(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){if(!W(i,y))continue;let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)W(r,c)&&(c==="__proto__"&&ws(a),a[c]=this._read(i,r[c]));return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;a==="__proto__"&&ws(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var rq,l0,nq=g(()=>{j();rq="\u039D",l0=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${rq+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${rq+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var ml,EP=g(()=>{da();ae();j();vc();nq();o0();oe();ml=class extends yn{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new l0;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&ws(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){if(!W(i,m))continue;let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){if(!W(r,u))continue;let f=r[u];(c||f!=null)&&(u==="__proto__"&&ws(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??De)(r);let i=Array.isArray(r)?[]:{};for(let a in r){if(!W(r,a))continue;let c=r[a];a==="__proto__"&&ws(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var d0,oq=g(()=>{vc();yP();EP();d0=class extends yn{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new ml(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new fl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var wo={};Ct(wo,{Field:()=>YS,Fields:()=>JS,FromStringShapeDeserializer:()=>pa,HttpBindingProtocol:()=>la,HttpInterceptingShapeDeserializer:()=>fa,HttpInterceptingShapeSerializer:()=>ma,HttpProtocol:()=>ua,HttpRequest:()=>re,HttpResponse:()=>ft,JsonCodec:()=>d0,JsonCodec2:()=>pl,JsonShapeDeserializer:()=>fl,JsonShapeDeserializer2:()=>ul,JsonShapeSerializer:()=>ml,JsonShapeSerializer2:()=>dl,RequestBuilder:()=>Kp,RpcProtocol:()=>Qn,SerdeContext:()=>Zt,SmithyRpcV2JsonProtocol:()=>u0,ToStringShapeSerializer:()=>sl,buildQueryString:()=>U4,collectBody:()=>At,contentLengthMiddleware:()=>aP,contentLengthMiddlewareOptions:()=>cP,determineTimestampFormat:()=>Ze,escapeUri:()=>ga,escapeUriPath:()=>F4,extendedEncodeURIComponent:()=>vo,getContentLengthPlugin:()=>Is,getHttpHandlerExtensionConfiguration:()=>vs,isValidHostname:()=>hp,loadJsonRpcErrorCode:()=>W4,loadRestJsonErrorCode:()=>V4,loadSmithyRpcV2JsonErrorCode:()=>n0,parseJsonBody:()=>Dc,parseJsonErrorBody:()=>z4,parseQueryString:()=>Sp,parseUrl:()=>Cr,requestBuilder:()=>QS,resolveHttpHandlerRuntimeConfig:()=>Ds,resolvedPath:()=>KS});var V=g(()=>{Qu();NS();D4();WS();nP();I4();oP();sP();w4();P4();iP();da();Yu();$4();k4();oe();oe();oe();M4();N4();XS();B4();G4();oe();oe();tq();Yp();oq();EP();yP();SP();hP();mP()});var sq,iq,aq,cq,uq,lq,dq=g(()=>{sq=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],iq=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],aq=["TimeoutError","RequestTimeout","RequestTimeoutException"],cq=[500,502,503,504],uq=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],lq=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function CP(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var Jp,p0,_P,RP,Os,ha,f0,gl=g(()=>{dq();Jp=t=>t?.$retryable!==void 0,p0=t=>sq.includes(t.name),_P=t=>t.$metadata?.clockSkewCorrected,RP=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},Os=t=>t.$metadata?.httpStatusCode===429||iq.includes(t.name)||t.$retryable?.throttling==!0,ha=(t,e=0)=>t?.name!=="AbortError"&&(Jp(t)||_P(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||aq.includes(t.name)||uq.includes(t?.code||"")||lq.includes(t?.code||"")||cq.includes(t.$metadata?.httpStatusCode||0)||RP(t)||CP(t)||t.cause!==void 0&&e<=10&&ha(t.cause,e+1)),f0=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!ha(t)}return!1}});var m0,Xp,g0,hl,bP,AP,h0,Sa,ya,Zp=g(()=>{m0=100,Xp=2e4,g0=500,hl=500,bP=5,AP=10,h0=1,Sa="amz-sdk-invocation-id",ya="amz-sdk-request"});function xP(t,e){if(ft.isInstance(t))for(let r in t.headers){if(!W(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let o=t.headers[r],s=NaN;if(o.endsWith("GMT"))try{s=(gn(o).getTime()-Date.now())/1e3}catch(i){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(i)}else o.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]):o.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(o):Date.parse(o)>=Date.now()&&(s=(Date.parse(o)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(n==="x-amz-retry-after"){let o=t.headers[r],s=Number(o);if(isNaN(s)){e?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+s)}}}function pq(t,e){return xP(t,e)}var TP=g(()=>{oe();V();j()});var S0,vP=g(()=>{S0=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`)});function DP(t){return e=>(r,n)=>async o=>{let s=await e.retryStrategy(),i=await e.maxAttempts();if(Gxe(s)){s=s;let a=await s.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),c=new Error,u=0,f=0,{request:m}=o,y=re.isInstance(m);for(y&&(m.headers[Sa]=Ku());;)try{y&&(m.headers[ya]=`attempt=${u+1}; max=${i}`);let{response:_,output:C}=await r(o);return s.recordSuccess(a),C.$metadata.attempts=u+1,C.$metadata.totalRetryDelay=f,{response:_,output:C}}catch(_){let C=qxe(_,e.logger);if(c=S0(_),y&&t(m))throw(n.logger instanceof Nr?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await s.refreshRetryTokenForRetry(a,C)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=f,c}u=a.getRetryCount();let A=a.getRetryDelay();f+=(a?.$retryLog?.acquisitionDelay??0)+A,A>0&&await Uxe(A)}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(r,o)}}function fq(t){let e=DP(t);return r=>({applyToStack:n=>{n.add(e(r),IP)}})}var Uxe,Gxe,qxe,Hxe,IP,wP=g(()=>{J();V();j();gl();Zp();TP();vP();Uxe=t=>new Promise(e=>setTimeout(e,t)),Gxe=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",qxe=(t,e)=>{let r={error:t,errorType:Hxe(t)},n=xP(t.$response,e);return n&&(r.retryAfterHint=n),r},Hxe=t=>Os(t)?"THROTTLING":ha(t)?"TRANSIENT":f0(t)?"SERVER_ERROR":"CLIENT_ERROR",IP={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ea,y0=g(()=>{gl();Ea=class t{static setTimeoutFn=(e,r)=>setTimeout(e,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;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,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||Os(n?.error??e)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}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.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var xt,Sl=g(()=>{xt=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var E0,mq=g(()=>{Sl();E0=class{x=xt.delay();computeNextBackoffDelay(e){let o=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(o)}setDelayBase(e){this.x=e}}});var ef,gq=g(()=>{ef=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,o){this.delay=e,this.count=r,this.cost=n,this.longPoll=o}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var er,Po,Yn,Ic=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(er||(er={}));Po=3,Yn=er.STANDARD});var _0,Oo,tf=g(()=>{mq();gq();Ic();Sl();_0={incompatible:1,attempts:2,capacity:3},Oo=class{mode=er.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Po,this.baseDelay??=xt.delay(),this.retryBackoffStrategy??=new E0}async acquireInitialRetryToken(e){return new ef(xt.delay(),0,void 0,xt.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),o=this.retryCode(e,r,n),s=o===0,i=e.isLongPoll?.();if(s||i){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?xt.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=c;if(r.retryAfterHint instanceof Date&&(u=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),s){let f=this.getCapacityCost(a);this.capacity-=f;let m=new ef(0,e.getRetryCount()+1,f,e.isLongPoll?.()??!1);return await new Promise(y=>setTimeout(y,u)),m.$retryLog.acquisitionDelay=u,m}else{let f=xt.v2026&&o===_0.capacity&&i?u:0;f>0&&await new Promise(m=>setTimeout(m,f))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Po}`),Po}}retryCode(e,r,n){let o=e.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:_0.incompatible,i=o<n?0:_0.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:_0.capacity;return s||i||a}getCapacityCost(e){return e===xt.modifiedCostType()?xt.throttlingCost():xt.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var yl,PP=g(()=>{y0();tf();Ic();yl=class{mode=er.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Ea,this.standardRetryStrategy=r?new Oo({maxAttempts:typeof e=="number"?e:3,...r}):new Oo(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var R0,hq=g(()=>{tf();Sl();R0=class extends Oo{computeNextBackoffDelay;constructor(e,r=xt.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let o=n+1;return this.computeNextBackoffDelay(o)}}}});var Sq,yq=g(()=>{Sq=(t,e)=>{let r=t,n=e?.noRetryIncrement??1,o=e?.retryCost??5,s=e?.timeoutRetryCost??10,i=t,a=m=>m.name==="TimeoutError"?s:o,c=m=>a(m)<=i;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:m=>{if(!c(m))throw new Error("No retry token available");let y=a(m);return i-=y,y},releaseRetryTokens:m=>{i+=m??n,i=Math.min(i,r)}})}});var C0,OP=g(()=>{C0=(t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t))});var b0,$P=g(()=>{gl();b0=t=>t?Jp(t)||p0(t)||Os(t)||ha(t):!1});var El,jxe,kP=g(()=>{V();j();gl();Ic();Zp();vP();yq();OP();$P();El=class{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=er.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??b0,this.delayDecider=r?.delayDecider??C0,this.retryQuota=r?.retryQuota??Sq(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=Po}return e}async retry(e,r,n){let o,s=0,i=0,a=await this.getMaxAttempts(),{request:c}=r;for(re.isInstance(c)&&(c.headers[Sa]=Ku());;)try{re.isInstance(c)&&(c.headers[ya]=`attempt=${s+1}; max=${a}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(o),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=i,{response:u,output:f}}catch(u){let f=S0(u);if(s++,this.shouldRetry(f,s,a)){o=this.retryQuota.retrieveRetryTokens(f);let m=this.delayDecider(Os(f)?500:100,s),y=jxe(f.$response),_=Math.max(y||0,m);i+=_,await new Promise(C=>setTimeout(C,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=i,f}}},jxe=t=>{if(!ft.isInstance(t))return;let e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let o=new Date(r);return Math.min(o.getTime()-Date.now(),2e4)}});var A0,Eq=g(()=>{y0();Ic();kP();A0=class extends El{rateLimiter;constructor(e,r){let{rateLimiter:n,...o}=r??{};super(e,o),this.rateLimiter=n??new Ea,this.mode=er.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}}});var x0,T0,$s,ks,MP,LP,Ms,_q=g(()=>{J();PP();tf();Ic();Sl();x0="AWS_MAX_ATTEMPTS",T0="max_attempts",$s={environmentVariableSelector:t=>{let e=t[x0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${x0} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[T0];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${T0} mast be a number, got "${e}"`);return r},default:Po},ks=(t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:o=Po,defaultBaseDelay:s=xt.delay()}=e??{},i=we(t.maxAttempts??o),a=r?Promise.resolve(r):void 0,c=async()=>{let u=await i();return await we(n)()===er.ADAPTIVE?new yl(i,{maxAttempts:u,baseDelay:s}):new Oo({maxAttempts:u,baseDelay:s})};return Object.assign(t,{maxAttempts:i,retryStrategy:()=>a??=c()})},MP="AWS_RETRY_MODE",LP="retry_mode",Ms={environmentVariableSelector:t=>t[MP],configFileSelector:t=>t[LP],default:Yn}});var NP,FP,Rq,Cq=g(()=>{V();Zp();NP=()=>t=>async e=>{let{request:r}=e;return re.isInstance(r)&&(delete r.headers[Sa],delete r.headers[ya]),t(e)},FP={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Rq=t=>({applyToStack:e=>{e.addRelativeTo(NP(),FP)}})});var rf={};Ct(rf,{AdaptiveRetryStrategy:()=>yl,CONFIG_MAX_ATTEMPTS:()=>T0,CONFIG_RETRY_MODE:()=>LP,ConfiguredRetryStrategy:()=>R0,DEFAULT_MAX_ATTEMPTS:()=>Po,DEFAULT_RETRY_DELAY_BASE:()=>m0,DEFAULT_RETRY_MODE:()=>Yn,DefaultRateLimiter:()=>Ea,DeprecatedAdaptiveRetryStrategy:()=>A0,DeprecatedStandardRetryStrategy:()=>El,ENV_MAX_ATTEMPTS:()=>x0,ENV_RETRY_MODE:()=>MP,INITIAL_RETRY_TOKENS:()=>hl,INVOCATION_ID_HEADER:()=>Sa,MAXIMUM_RETRY_DELAY:()=>Xp,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>$s,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Ms,NO_RETRY_INCREMENT:()=>h0,REQUEST_HEADER:()=>ya,RETRY_COST:()=>bP,RETRY_MODES:()=>er,Retry:()=>xt,StandardRetryStrategy:()=>Oo,THROTTLING_RETRY_DELAY_BASE:()=>g0,TIMEOUT_RETRY_COST:()=>AP,defaultDelayDecider:()=>C0,defaultRetryDecider:()=>b0,getOmitRetryHeadersPlugin:()=>Rq,getRetryAfterHint:()=>pq,getRetryPlugin:()=>xi,isBrowserNetworkError:()=>RP,isClockSkewCorrectedError:()=>_P,isClockSkewError:()=>p0,isNodeJsHttp2TransientError:()=>CP,isRetryableByTrait:()=>Jp,isServerError:()=>f0,isThrottlingError:()=>Os,isTransientError:()=>ha,omitRetryHeadersMiddleware:()=>NP,omitRetryHeadersMiddlewareOptions:()=>FP,resolveRetryConfig:()=>ks,retryMiddleware:()=>zxe,retryMiddlewareOptions:()=>IP});var zxe,xi,en=g(()=>{G3();wP();gl();PP();hq();y0();tf();Ic();Zp();Sl();Eq();kP();OP();$P();_q();Cq();wP();TP();zxe=DP(ND),xi=fq(ND)});function We(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var BP=g(()=>{en();xt.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true"});function bq(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Aq=g(()=>{});function _l(t){return t}var UP,GP,Ls,xq=g(()=>{V();UP=t=>e=>async r=>{if(!re.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},GP={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ls=t=>({applyToStack:e=>{e.add(UP(t),GP)}})});var qP,HP,Ns,Tq=g(()=>{qP=()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,f=c??e.inputFilterSensitiveLog,m=u??e.outputFilterSensitiveLog,{$metadata:y,..._}=n.output;return i?.info?.({clientName:o,commandName:s,input:f(r.input),output:m(_),metadata:y}),n}catch(n){let{clientName:o,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw i?.error?.({clientName:o,commandName:s,input:u(r.input),error:n,metadata:n.$metadata}),n}},HP={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ns=t=>({applyToStack:e=>{e.add(qP(),HP)}})});var v0,jP=g(()=>{v0={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var _a,zP,D0,VP,WP,nf,vq=g(()=>{_a={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"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},zP=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");zP||(globalThis.awslambda=globalThis.awslambda||{});D0=class{static PROTECTED_KEYS=_a;isProtectedKey(e){return Object.values(_a).includes(e)}getRequestId(){return this.get(_a.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(_a.X_RAY_TRACE_ID)}getTenantId(){return this.get(_a.TENANT_ID)}getTraceparent(){return this.get(_a.TRACEPARENT)}getTracestate(){return this.get(_a.TRACESTATE)}getBaggage(){return this.get(_a.BAGGAGE)}},VP=class extends D0{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},WP=class t extends D0{als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let s=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await WP.create():new VP;return!zP&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!zP&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(nf||(nf={}))});function Kxe(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===QP||r===Dq||r===Iq)&&(t[r]=t[e],delete t[e])}}var Vxe,Wxe,KP,QP,Dq,Iq,I0,YP=g(()=>{vq();V();Vxe="AWS_LAMBDA_FUNCTION_NAME",Wxe="_X_AMZN_TRACE_ID",KP="X-Amzn-Trace-Id",QP="traceparent",Dq="tracestate",Iq="baggage",I0=()=>t=>async e=>{let{request:r}=e;if(!re.isInstance(r))return t(e);let n;{let o=Object.keys(r.headers??{}).find(s=>s.toLowerCase()===KP.toLowerCase())??KP;if(!r.headers.hasOwnProperty(o)){let s=process.env[Vxe],i=process.env[Wxe];n??=await nf.getInstanceAsync();let c=n?.getXRayTraceId()??i,u=f=>typeof f=="string"&&f.length>0;u(s)&&u(c)&&(r.headers[KP]=c)}}if(Kxe(r.headers),!r.headers[QP]){let s=(n??=await nf.getInstanceAsync())?.getTraceparent?.();if(s){r.headers[QP]=s;let i=n?.getTracestate?.();i&&(r.headers[Dq]=i);let a=n?.getBaggage?.();a&&(r.headers[Iq]=a)}}return t(e)}});var Fs,wq=g(()=>{jP();YP();Fs=t=>({applyToStack:e=>{e.add(I0(),v0)}})});var Pq,Oq=g(()=>{Pq=(t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let o of t)o.schemeId.split("#")[1]===n&&r.push(o);for(let n of t)r.find(({schemeId:o})=>o===n.schemeId)||r.push(n);return r}});function Qxe(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var wc,w0=g(()=>{oe();Oq();wc=(t,e)=>(r,n)=>async o=>{let s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,o.input)),i=t.authSchemePreference?await t.authSchemePreference():[],a=Pq(s,i),c=Qxe(t.httpAuthSchemes),u=Le(n),f=[];for(let m of a){let y=c.get(m.schemeId);if(!y){f.push(`HttpAuthScheme \`${m.schemeId}\` was not enabled for this service.`);continue}let _=y.identityProvider(await e.identityProviderConfigProvider(t));if(!_){f.push(`HttpAuthScheme \`${m.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:C={},signingProperties:A={}}=m.propertiesExtractor?.(t,n)||{};m.identityProperties=Object.assign(m.identityProperties||{},C),m.signingProperties=Object.assign(m.signingProperties||{},A),u.selectedHttpAuthScheme={httpAuthOption:m,identity:await _(m.identityProperties),signer:y.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(f.join(`
24
+ `));return r(o)}});var P0,$o,$q=g(()=>{w0();P0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},$o=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(wc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),P0)}})});var O0,JP,kq=g(()=>{w0();O0={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},JP=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(wc(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),O0)}})});var Mq=g(()=>{w0();$q();kq()});var Yxe,Jxe,of,XP=g(()=>{V();oe();Yxe=t=>e=>{throw e},Jxe=(t,e)=>{},of=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||Yxe)(i));return(c.successHandler||Jxe)(u.response,i),u}});var Pc,ko,Lq=g(()=>{XP();Pc={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ko=t=>({applyToStack:e=>{e.addRelativeTo(of(t),Pc)}})});var Nq=g(()=>{XP();Lq()});var Jn,Fq=g(()=>{Jn=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function Bq(t,e,r,n,o){return async function*(i,a,...c){let u=a,f=i.startingToken??u[r],m=!0,y;for(;m;){if(u[r]=f,o&&(u[o]=u[o]??i.pageSize),i.client instanceof t)y=await Xxe(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield y;let _=f;f=Zxe(y,n),m=!!(f&&(!i.stopOnSameToken||f!==_))}return void 0}}var Xxe,Zxe,Uq=g(()=>{Xxe=async(t,e,r,n=s=>s,...o)=>{let s=new t(r);return s=n(s)??s,await e.send(s,...o)};Zxe=(t,e)=>{let r=t,n=e.split(".");for(let o of n){if(!r||typeof r!="object")return;r=r[o]}return r}});function Gq(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var qq=g(()=>{});var $n,Hq=g(()=>{oe();$n=class{authSchemes=new Map;constructor(e){for(let r in e){if(!W(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var ZP,Rl,jq=g(()=>{V();ZP=Ie(Eo()),Rl=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let o=re.clone(e);if(n.in===ZP.HttpApiKeyAuthLocation.QUERY)o.query[n.name]=r.apiKey;else if(n.in===ZP.HttpApiKeyAuthLocation.HEADER)o.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return o}}});var Cl,zq=g(()=>{V();Cl=class{async sign(e,r,n){let o=re.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return o.headers.Authorization=`Bearer ${r.token}`,o}}});var Ur,Vq=g(()=>{Ur=class{async sign(e,r,n){return e}}});var Wq=g(()=>{jq();zq();Vq()});var $0,eO,sf,bl,af,Kq=g(()=>{$0=t=>function(r){return bl(r)&&r.expiration.getTime()-Date.now()<t},eO=3e5,sf=$0(3e5),bl=t=>t.expiration!==void 0,af=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,o,s,i,a=!1,c=async u=>{s||(s=n(u));try{o=await s,i=!0,a=!1}finally{s=void 0}return o};return e===void 0?async u=>((!i||u?.forceRefresh)&&(o=await c(u)),o):async u=>((!i||u?.forceRefresh)&&(o=await c(u)),a?o:r(o)?(e(o)&&await c(u),o):(a=!0,o))}});var Qq=g(()=>{Hq();Wq();Kq()});var Al={};Ct(Al,{DefaultIdentityProviderConfig:()=>$n,EXPIRATION_MS:()=>eO,HttpApiKeyAuthSigner:()=>Rl,HttpBearerAuthSigner:()=>Cl,NoAuthSigner:()=>Ur,createIsIdentityExpiredFunction:()=>$0,createPaginator:()=>Bq,doesIdentityRequireRefresh:()=>bl,getHttpAuthSchemeEndpointRuleSetPlugin:()=>$o,getHttpAuthSchemePlugin:()=>JP,getHttpSigningPlugin:()=>ko,getSmithyContext:()=>Le,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>P0,httpAuthSchemeMiddleware:()=>wc,httpAuthSchemeMiddlewareOptions:()=>O0,httpSigningMiddleware:()=>of,httpSigningMiddlewareOptions:()=>Pc,isIdentityExpired:()=>sf,memoizeIdentityProvider:()=>af,normalizeProvider:()=>Jn,requestBuilder:()=>QS,setFeature:()=>Gq});var jt=g(()=>{oe();Mq();Nq();Fq();Uq();V();qq();Qq()});function eTe(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Bs(t){let e=Jn(t.userAgentAppId??cf),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let n=await e();if(!eTe(n)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?o?.warn("userAgentAppId must be a string or undefined."):n.length>50&&o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}var cf,tO=g(()=>{jt();cf=void 0});var rO,Yq=g(()=>{rO={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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:!0,supportsFIPS:!0},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"}});var Jq,Xq,k0,nO,Zq,M0,L0=g(()=>{Yq();Jq=rO,Xq="",k0=t=>{let{partitions:e}=Jq;for(let n of e){let{regions:o,outputs:s}=n;for(let[i,a]of Object.entries(o))if(i===t)return{...s,...a}}for(let n of e){let{regionRegex:o,outputs:s}=n;if(new RegExp(o).test(t))return{...s}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},nO=(t,e="")=>{Jq=t,Xq=e},Zq=()=>{nO(rO,"")},M0=()=>Xq});async function eH(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&We(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let s=await e.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case er.ADAPTIVE:We(t,"RETRY_MODE_ADAPTIVE","F");break;case er.STANDARD:We(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let s=t.endpointV2;switch(String(s?.url?.hostname).match(tTe)&&We(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":We(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":We(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":We(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let s=o;s.accountId&&We(t,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))We(t,i,a)}}var tTe,tH=g(()=>{en();BP();tTe=/\d{12}\.ddb/});var oO,N0,rH,nH,oH=g(()=>{oO="user-agent",N0="x-amz-user-agent",rH=/[^!$%&'*+\-.^_`|~\w]/g,nH=/[^!$%&'*+\-.^_`|~\w#]/g});function sH(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var iH=g(()=>{});var iO,F0,aO,Us,uH=g(()=>{V();L0();tH();oH();iH();iO=t=>(e,r)=>async n=>{let{request:o}=n;if(!re.isInstance(o))return e(n);let{headers:s}=o,i=r?.userAgent?.map(F0)||[],a=(await t.defaultUserAgentProvider()).map(F0);await eH(r,t,n);let c=r;a.push(`m/${sH(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(F0)||[],f=await t.userAgentAppId();f&&a.push(F0(["app",`${f}`]));let m=M0(),y=(m?[m]:[]).concat([...a,...i,...u]).join(" "),_=[...a.filter(C=>C.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(_&&(s[N0]=s[N0]?`${s[oO]} ${_}`:_),s[oO]=y):s[N0]=y,e({...n,request:o})},F0=t=>{let e=t[0].split("/").map(i=>i.replace(rH,"-")).join("/"),r=t[1]?.replace(nH,"-"),n=e.indexOf("/"),o=e.substring(0,n),s=e.substring(n+1);return o==="api"&&(s=s.toLowerCase()),[o,s,r].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},aO={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Us=t=>({applyToStack:e=>{e.add(iO(t),aO)}})});var B0,lH,dH=g(()=>{B0=require("node:process"),lH=()=>{let t=["deno","bun","llrt"];for(let e of t)if(B0.versions[e])return[`md/${e}`,B0.versions[e]];return["md/nodejs",B0.versions.node]}});var uf,cO=g(()=>{uf={isCrtAvailable:!1}});var pH,fH=g(()=>{cO();pH=()=>uf.isCrtAvailable?["md/crt-avail"]:null});var U0,uO,Mo,mH,gH=g(()=>{U0=require("node:os"),uO=require("node:process");dH();fH();cO();Mo=({serviceId:t,clientVersion:e})=>{let r=lH();return async n=>{let o=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,U0.platform)()}`,(0,U0.release)()],["lang/js"],r],s=pH();s&&o.push(s),t&&o.push([`api/${t}`,e]),uO.env.AWS_EXECUTION_ENV&&o.push([`exec-env/${uO.env.AWS_EXECUTION_ENV}`]);let i=await n?.userAgentAppId?.();return i?[...o,[`app/${i}`]]:[...o]}},mH=Mo});var lO,dO,rTe,Gs,hH=g(()=>{tO();lO="AWS_SDK_UA_APP_ID",dO="sdk_ua_app_id",rTe="sdk-ua-app-id",Gs={environmentVariableSelector:t=>t[lO],configFileSelector:t=>t[dO]??t[rTe],default:cf}});var SH=st((lf,pO)=>{(function(t,e){typeof lf=="object"&&typeof pO=="object"?pO.exports=e():typeof define=="function"&&define.amd?define([],e):typeof lf=="object"?lf.bowser=e():t.bowser=e()})(lf,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(n,o,s){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:s})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var i in n)r.d(s,i,function(a){return n[a]}.bind(null,i));return s},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),o=(function(){function s(){}return s.getFirstMatch=function(i,a){var c=a.match(i);return c&&c.length>0&&c[1]||""},s.getSecondMatch=function(i,a){var c=a.match(i);return c&&c.length>1&&c[2]||""},s.matchAndReturnConst=function(i,a,c){if(i.test(a))return c},s.getWindowsVersionName=function(i){switch(i){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(i){var a=i.split(".").splice(0,2).map((function(f){return parseInt(f,10)||0}));a.push(0);var c=a[0],u=a[1];if(c===10)switch(u){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(c){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},s.getAndroidVersionName=function(i){var a=i.split(".").splice(0,2).map((function(c){return parseInt(c,10)||0}));if(a.push(0),!(a[0]===1&&a[1]<5))return a[0]===1&&a[1]<6?"Cupcake":a[0]===1&&a[1]>=6?"Donut":a[0]===2&&a[1]<2?"Eclair":a[0]===2&&a[1]===2?"Froyo":a[0]===2&&a[1]>2?"Gingerbread":a[0]===3?"Honeycomb":a[0]===4&&a[1]<1?"Ice Cream Sandwich":a[0]===4&&a[1]<4?"Jelly Bean":a[0]===4&&a[1]>=4?"KitKat":a[0]===5?"Lollipop":a[0]===6?"Marshmallow":a[0]===7?"Nougat":a[0]===8?"Oreo":a[0]===9?"Pie":void 0},s.getVersionPrecision=function(i){return i.split(".").length},s.compareVersions=function(i,a,c){c===void 0&&(c=!1);var u=s.getVersionPrecision(i),f=s.getVersionPrecision(a),m=Math.max(u,f),y=0,_=s.map([i,a],(function(C){var A=m-s.getVersionPrecision(C),x=C+new Array(A+1).join(".0");return s.map(x.split("."),(function(T){return new Array(20-T.length).join("0")+T})).reverse()}));for(c&&(y=m-Math.min(u,f)),m-=1;m>=y;){if(_[0][m]>_[1][m])return 1;if(_[0][m]===_[1][m]){if(m===y)return 0;m-=1}else if(_[0][m]<_[1][m])return-1}},s.map=function(i,a){var c,u=[];if(Array.prototype.map)return Array.prototype.map.call(i,a);for(c=0;c<i.length;c+=1)u.push(a(i[c]));return u},s.find=function(i,a){var c,u;if(Array.prototype.find)return Array.prototype.find.call(i,a);for(c=0,u=i.length;c<u;c+=1){var f=i[c];if(a(f,c))return f}},s.assign=function(i){for(var a,c,u=i,f=arguments.length,m=new Array(f>1?f-1:0),y=1;y<f;y++)m[y-1]=arguments[y];if(Object.assign)return Object.assign.apply(Object,[i].concat(m));var _=function(){var C=m[a];typeof C=="object"&&C!==null&&Object.keys(C).forEach((function(A){u[A]=C[A]}))};for(a=0,c=m.length;a<c;a+=1)_();return i},s.getBrowserAlias=function(i){return n.BROWSER_ALIASES_MAP[i]},s.getBrowserTypeByAlias=function(i){return n.BROWSER_MAP[i]||""},s})();e.default=o,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},e.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},e.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},e.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},e.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function i(c,u){for(var f=0;f<u.length;f++){var m=u[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var a=(function(){function c(){}var u,f,m;return c.getParser=function(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),typeof y!="string")throw new Error("UserAgent should be a string");return new o.default(y,_,C)},c.parse=function(y,_){return _===void 0&&(_=null),new o.default(y,_).getResult()},u=c,m=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(f=null)&&i(u.prototype,f),m&&i(u,m),c})();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=c(r(92)),o=c(r(93)),s=c(r(94)),i=c(r(95)),a=c(r(17));function c(f){return f&&f.__esModule?f:{default:f}}var u=(function(){function f(y,_,C){if(_===void 0&&(_=!1),C===void 0&&(C=null),y==null||y==="")throw new Error("UserAgent parameter can't be empty");this._ua=y;var A=!1;typeof _=="boolean"?(A=_,this._hints=C):this._hints=_!=null&&typeof _=="object"?_:null,this.parsedResult={},A!==!0&&this.parse()}var m=f.prototype;return m.getHints=function(){return this._hints},m.hasBrand=function(y){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var _=y.toLowerCase();return this._hints.brands.some((function(C){return C.brand&&C.brand.toLowerCase()===_}))},m.getBrandVersion=function(y){if(this._hints&&Array.isArray(this._hints.brands)){var _=y.toLowerCase(),C=this._hints.brands.find((function(A){return A.brand&&A.brand.toLowerCase()===_}));return C?C.version:void 0}},m.getUA=function(){return this._ua},m.test=function(y){return y.test(this._ua)},m.parseBrowser=function(){var y=this;this.parsedResult.browser={};var _=a.default.find(n.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.browser=_.describe(this.getUA(),this)),this.parsedResult.browser},m.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},m.getBrowserName=function(y){return y?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},m.getBrowserVersion=function(){return this.getBrowser().version},m.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},m.parseOS=function(){var y=this;this.parsedResult.os={};var _=a.default.find(o.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.os=_.describe(this.getUA())),this.parsedResult.os},m.getOSName=function(y){var _=this.getOS().name;return y?String(_).toLowerCase()||"":_||""},m.getOSVersion=function(){return this.getOS().version},m.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},m.getPlatformType=function(y){y===void 0&&(y=!1);var _=this.getPlatform().type;return y?String(_).toLowerCase()||"":_||""},m.parsePlatform=function(){var y=this;this.parsedResult.platform={};var _=a.default.find(s.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.platform=_.describe(this.getUA())),this.parsedResult.platform},m.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},m.getEngineName=function(y){return y?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},m.parseEngine=function(){var y=this;this.parsedResult.engine={};var _=a.default.find(i.default,(function(C){if(typeof C.test=="function")return C.test(y);if(Array.isArray(C.test))return C.test.some((function(A){return y.test(A)}));throw new Error("Browser's test function is not valid")}));return _&&(this.parsedResult.engine=_.describe(this.getUA())),this.parsedResult.engine},m.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},m.getResult=function(){return a.default.assign({},this.parsedResult)},m.satisfies=function(y){var _=this,C={},A=0,x={},T=0;if(Object.keys(y).forEach((function(pt){var Yr=y[pt];typeof Yr=="string"?(x[pt]=Yr,T+=1):typeof Yr=="object"&&(C[pt]=Yr,A+=1)})),A>0){var I=Object.keys(C),q=a.default.find(I,(function(pt){return _.isOS(pt)}));if(q){var H=this.satisfies(C[q]);if(H!==void 0)return H}var me=a.default.find(I,(function(pt){return _.isPlatform(pt)}));if(me){var et=this.satisfies(C[me]);if(et!==void 0)return et}}if(T>0){var ot=Object.keys(x),tt=a.default.find(ot,(function(pt){return _.isBrowser(pt,!0)}));if(tt!==void 0)return this.compareVersion(x[tt])}},m.isBrowser=function(y,_){_===void 0&&(_=!1);var C=this.getBrowserName().toLowerCase(),A=y.toLowerCase(),x=a.default.getBrowserTypeByAlias(A);return _&&x&&(A=x.toLowerCase()),A===C},m.compareVersion=function(y){var _=[0],C=y,A=!1,x=this.getBrowserVersion();if(typeof x=="string")return y[0]===">"||y[0]==="<"?(C=y.substr(1),y[1]==="="?(A=!0,C=y.substr(2)):_=[],y[0]===">"?_.push(1):_.push(-1)):y[0]==="="?C=y.substr(1):y[0]==="~"&&(A=!0,C=y.substr(1)),_.indexOf(a.default.compareVersions(x,C,A))>-1},m.isOS=function(y){return this.getOSName(!0)===String(y).toLowerCase()},m.isPlatform=function(y){return this.getPlatformType(!0)===String(y).toLowerCase()},m.isEngine=function(y){return this.getEngineName(!0)===String(y).toLowerCase()},m.is=function(y,_){return _===void 0&&(_=!1),this.isBrowser(y,_)||this.isOS(y)||this.isPlatform(y)},m.some=function(y){var _=this;return y===void 0&&(y=[]),y.some((function(C){return _.is(C)}))},f})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,i=[{test:[/gptbot/i],describe:function(a){var c={name:"GPTBot"},u=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chatgpt-user/i],describe:function(a){var c={name:"ChatGPT-User"},u=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/oai-searchbot/i],describe:function(a){var c={name:"OAI-SearchBot"},u=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(a){var c={name:"ClaudeBot"},u=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(a){var c={name:"Omgilibot"},u=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/diffbot/i],describe:function(a){var c={name:"Diffbot"},u=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexitybot/i],describe:function(a){var c={name:"PerplexityBot"},u=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/perplexity-user/i],describe:function(a){var c={name:"Perplexity-User"},u=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/youbot/i],describe:function(a){var c={name:"YouBot"},u=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-webindexer/i],describe:function(a){var c={name:"Meta-WebIndexer"},u=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalads/i],describe:function(a){var c={name:"Meta-ExternalAds"},u=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalagent/i],describe:function(a){var c={name:"Meta-ExternalAgent"},u=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/meta-externalfetcher/i],describe:function(a){var c={name:"Meta-ExternalFetcher"},u=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/googlebot/i],describe:function(a){var c={name:"Googlebot"},u=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/linespider/i],describe:function(a){var c={name:"Linespider"},u=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/amazonbot/i],describe:function(a){var c={name:"AmazonBot"},u=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/bingbot/i],describe:function(a){var c={name:"BingCrawler"},u=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/baiduspider/i],describe:function(a){var c={name:"BaiduSpider"},u=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/duckduckbot/i],describe:function(a){var c={name:"DuckDuckBot"},u=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ia_archiver/i],describe:function(a){var c={name:"InternetArchiveCrawler"},u=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(a){var c={name:"SlackBot"},u=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opr\/|opios/i],describe:function(a){var c={name:"Opera"},u=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/SamsungBrowser/i],describe:function(a){var c={name:"Samsung Internet for Android"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Whale/i],describe:function(a){var c={name:"NAVER Whale Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/PaleMoon/i],describe:function(a){var c={name:"Pale Moon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/MZBrowser/i],describe:function(a){var c={name:"MZ Browser"},u=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/focus/i],describe:function(a){var c={name:"Focus"},u=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/swing/i],describe:function(a){var c={name:"Swing"},u=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/coast/i],describe:function(a){var c={name:"Opera Coast"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(a){var c={name:"Opera Touch"},u=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/yabrowser/i],describe:function(a){var c={name:"Yandex Browser"},u=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/ucbrowser/i],describe:function(a){var c={name:"UC Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/Maxthon|mxios/i],describe:function(a){var c={name:"Maxthon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/epiphany/i],describe:function(a){var c={name:"Epiphany"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/puffin/i],describe:function(a){var c={name:"Puffin"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sleipnir/i],describe:function(a){var c={name:"Sleipnir"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/k-meleon/i],describe:function(a){var c={name:"K-Meleon"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/micromessenger/i],describe:function(a){var c={name:"WeChat"},u=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qqbrowser/i],describe:function(a){var c={name:/qqbrowserlite/i.test(a)?"QQ Browser Lite":"QQ Browser"},u=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/msie|trident/i],describe:function(a){var c={name:"Internet Explorer"},u=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/\sedg\//i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/edg([ea]|ios)/i],describe:function(a){var c={name:"Microsoft Edge"},u=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/vivaldi/i],describe:function(a){var c={name:"Vivaldi"},u=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/seamonkey/i],describe:function(a){var c={name:"SeaMonkey"},u=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sailfish/i],describe:function(a){var c={name:"Sailfish"},u=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,a);return u&&(c.version=u),c}},{test:[/silk/i],describe:function(a){var c={name:"Amazon Silk"},u=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/phantom/i],describe:function(a){var c={name:"PhantomJS"},u=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/slimerjs/i],describe:function(a){var c={name:"SlimerJS"},u=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c={name:"BlackBerry"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c={name:"WebOS Browser"},u=o.default.getFirstMatch(s,a)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/bada/i],describe:function(a){var c={name:"Bada"},u=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/tizen/i],describe:function(a){var c={name:"Tizen"},u=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/qupzilla/i],describe:function(a){var c={name:"QupZilla"},u=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/librewolf/i],describe:function(a){var c={name:"LibreWolf"},u=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/firefox|iceweasel|fxios/i],describe:function(a){var c={name:"Firefox"},u=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/electron/i],describe:function(a){var c={name:"Electron"},u=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(a){var c={name:"Sogou Browser"},u=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,a),f=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a),m=o.default.getFirstMatch(/se ([\d.]+)x/i,a),y=u||f||m;return y&&(c.version=y),c}},{test:[/MiuiBrowser/i],describe:function(a){var c={name:"Miui"},u=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return!!a.hasBrand("DuckDuckGo")||a.test(/\sDdg\/[\d.]+$/i)},describe:function(a,c){var u={name:"DuckDuckGo"};if(c){var f=c.getBrandVersion("DuckDuckGo");if(f)return u.version=f,u}var m=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,a);return m&&(u.version=m),u}},{test:function(a){return a.hasBrand("Brave")},describe:function(a,c){var u={name:"Brave"};if(c){var f=c.getBrandVersion("Brave");if(f)return u.version=f,u}return u}},{test:[/chromium/i],describe:function(a){var c={name:"Chromium"},u=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,a)||o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/chrome|crios|crmo/i],describe:function(a){var c={name:"Chrome"},u=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/GSA/i],describe:function(a){var c={name:"Google Search"},u=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c={name:"Android Browser"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/playstation 4/i],describe:function(a){var c={name:"PlayStation 4"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/safari|applewebkit/i],describe:function(a){var c={name:"Safari"},u=o.default.getFirstMatch(s,a);return u&&(c.version=u),c}},{test:[/.*/i],describe:function(a){var c=a.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(c,a),version:o.default.getSecondMatch(c,a)}}}];e.default=i,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/Roku\/DVP/],describe:function(a){var c=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,a);return{name:s.OS_MAP.Roku,version:c}}},{test:[/windows phone/i],describe:function(a){var c=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.WindowsPhone,version:c}}},{test:[/windows /i],describe:function(a){var c=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,a),u=o.default.getWindowsVersionName(c);return{name:s.OS_MAP.Windows,version:c,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(a){var c={name:s.OS_MAP.iOS},u=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,a);return u&&(c.version=u),c}},{test:[/macintosh/i],describe:function(a){var c=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,a).replace(/[_\s]/g,"."),u=o.default.getMacOSVersionName(c),f={name:s.OS_MAP.MacOS,version:c};return u&&(f.versionName=u),f}},{test:[/(ipod|iphone|ipad)/i],describe:function(a){var c=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,a).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:c}}},{test:[/OpenHarmony/i],describe:function(a){var c=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.HarmonyOS,version:c}}},{test:function(a){var c=!a.test(/like android/i),u=a.test(/android/i);return c&&u},describe:function(a){var c=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,a),u=o.default.getAndroidVersionName(c),f={name:s.OS_MAP.Android,version:c};return u&&(f.versionName=u),f}},{test:[/(web|hpw)[o0]s/i],describe:function(a){var c=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,a),u={name:s.OS_MAP.WebOS};return c&&c.length&&(u.version=c),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(a){var c=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,a)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,a)||o.default.getFirstMatch(/\bbb(\d+)/i,a);return{name:s.OS_MAP.BlackBerry,version:c}}},{test:[/bada/i],describe:function(a){var c=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Bada,version:c}}},{test:[/tizen/i],describe:function(a){var c=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.Tizen,version:c}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(a){var c=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,a);return{name:s.OS_MAP.PlayStation4,version:c}}}];e.default=i,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(a){var c=o.default.getFirstMatch(/(can-l01)/i,a)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return c&&(u.model=c),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){var c=a.test(/ipod|iphone/i),u=a.test(/like (ipod|iphone)/i);return c&&!u},describe:function(a){var c=o.default.getFirstMatch(/(ipod|iphone)/i,a);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:c}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(a){var c=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,a),u={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return c&&(u.model=c),u}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(a){return a.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(a){return a.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(a){var c=Number(String(a.getOSVersion()).split(".")[0]);return a.getOSName(!0)==="android"&&c>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(a){return a.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(a){return a.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(a){return a.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(a){return a.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=i,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),i=[{test:function(a){return a.getBrowserName(!0)==="microsoft edge"},describe:function(a){if(/\sedg\//i.test(a))return{name:s.ENGINE_MAP.Blink};var c=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,a);return{name:s.ENGINE_MAP.EdgeHTML,version:c}}},{test:[/trident/i],describe:function(a){var c={name:s.ENGINE_MAP.Trident},u=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){return a.test(/presto/i)},describe:function(a){var c={name:s.ENGINE_MAP.Presto},u=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:function(a){var c=a.test(/gecko/i),u=a.test(/like gecko/i);return c&&!u},describe:function(a){var c={name:s.ENGINE_MAP.Gecko},u=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(a){var c={name:s.ENGINE_MAP.WebKit},u=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,a);return u&&(c.version=u),c}}];e.default=i,t.exports=e.default}})}))});var yH,EH=g(()=>{yH=({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>Ie(SH())),o=n.parse??n.default.parse??(()=>""),s=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,i=[["aws-sdk-js",e],["ua","2.1"],[`os/${s?.os?.name||"other"}`,s?.os?.version],["lang/js"],["md/browser",`${s?.browser?.name??"unknown"}_${s?.browser?.version??"unknown"}`]];t&&i.push([`api/${t}`,e]);let a=await r?.userAgentAppId?.();return a&&i.push([`app/${a}`]),i}});var _H,RH=g(()=>{_H={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var fO=g(()=>{He()});var df,mO=g(()=>{He();fO();df=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!df(r))return!1;return!0}return!(!_o(t)||t.length<3||t.length>63||t!==t.toLowerCase()||_i(t))}});var G0,gO=g(()=>{G0=t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,o,s,i,...a]=e;if(r!=="arn"||n===""||o===""||a.join(":")==="")return null;let c=a.map(u=>u.split("/")).flat();return{partition:n,service:o,region:s,accountId:i,resourceId:c}}});var Lo,CH=g(()=>{He();mO();gO();L0();Lo={isVirtualHostableS3Bucket:df,parseArn:G0,partition:k0};hn.aws=Lo});var bH=g(()=>{He()});var AH,hO,xH=g(()=>{V();AH=t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>hO(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},hO=t=>Cr(t.url)});var TH=g(()=>{He()});var vH=g(()=>{ye();ye()});function q0(t={}){return ue({...Ar,async default(){return SO.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Zr,...t})}var SO,DH=g(()=>{ye();SO={silence:!1}});var qs,Hs,IH=g(()=>{qs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Hs=t=>({region:t.region()})});var kn={};Ct(kn,{DEFAULT_UA_APP_ID:()=>cf,EndpointError:()=>be,NODE_APP_ID_CONFIG_OPTIONS:()=>Gs,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Zr,NODE_REGION_CONFIG_OPTIONS:()=>Ar,REGION_ENV_NAME:()=>Hu,REGION_INI_NAME:()=>ju,UA_APP_ID_ENV_NAME:()=>lO,UA_APP_ID_INI_NAME:()=>dO,awsEndpointFunctions:()=>Lo,createDefaultUserAgentProvider:()=>Mo,createUserAgentStringParsingProvider:()=>yH,crtAvailability:()=>uf,defaultUserAgent:()=>mH,emitWarningIfUnsupportedVersion:()=>us,fallback:()=>_H,getAwsRegionExtensionConfiguration:()=>qs,getHostHeaderPlugin:()=>Ls,getLoggerPlugin:()=>Ns,getLongPollPlugin:()=>N3,getRecursionDetectionPlugin:()=>Fs,getUserAgentMiddlewareOptions:()=>aO,getUserAgentPlugin:()=>Us,getUserAgentPrefix:()=>M0,hostHeaderMiddleware:()=>UP,hostHeaderMiddlewareOptions:()=>GP,isIpAddress:()=>_i,isVirtualHostableS3Bucket:()=>df,loggerMiddleware:()=>qP,loggerMiddlewareOptions:()=>HP,parseArn:()=>G0,partition:()=>k0,recursionDetectionMiddleware:()=>I0,recursionDetectionMiddlewareOptions:()=>v0,resolveAwsRegionExtensionConfiguration:()=>Hs,resolveDefaultAwsRegionalEndpointsConfig:()=>AH,resolveEndpoint:()=>qp,resolveHostHeaderConfig:()=>_l,resolveRegionConfig:()=>In,resolveUserAgentConfig:()=>Bs,setCredentialFeature:()=>Yi,setFeature:()=>We,setPartitionInfo:()=>nO,setTokenFeature:()=>bq,state:()=>mp,stsRegionDefaultResolver:()=>q0,stsRegionWarning:()=>SO,toEndpointV1:()=>hO,useDefaultPartitionInfo:()=>Zq,userAgentMiddleware:()=>iO});var Ee=g(()=>{L3();F3();B3();BP();Aq();xq();Tq();jP();wq();YP();tO();uH();gH();hH();RH();EH();CH();bH();xH();fO();mO();gO();L0();TH();vH();DH();IH()});var PH=st(wH=>{var{createGzip:nTe}=require("node:zlib");wH.compressStream=async t=>t.pipe(nTe())});var kH=st($H=>{var{promisify:oTe}=require("node:util"),{gzip:sTe}=require("node:zlib"),{toUint8Array:OH}=(j(),F(To)),iTe=oTe(sTe);$H.compressString=async t=>{try{let e=await iTe(OH(t||""));return OH(e)}catch(e){throw new Error("Failure during compression: "+e.message)}}});var VH=st(Mn=>{var{booleanSelector:MH,SelectorType:H0,numberSelector:LH}=(ye(),F(Br)),{setFeature:aTe}=(jt(),F(Al)),{HttpRequest:cTe}=(V(),F(wo)),{compressStream:uTe}=PH(),{compressString:lTe}=kH(),{isArrayBuffer:dTe}=(j(),F(To)),{normalizeProvider:NH}=(J(),F(bo)),FH="AWS_DISABLE_REQUEST_COMPRESSION",BH="disable_request_compression",UH=!1,pTe={environmentVariableSelector:t=>MH(t,FH,H0.ENV),configFileSelector:t=>MH(t,BH,H0.CONFIG),default:UH},GH="AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES",qH="request_min_compression_size_bytes",HH=10240,fTe={environmentVariableSelector:t=>LH(t,GH,H0.ENV),configFileSelector:t=>LH(t,qH,H0.CONFIG),default:HH},yO;(function(t){t.GZIP="gzip"})(yO||(yO={}));var mTe=[yO.GZIP],gTe=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!dTe(t),jH=(t,e)=>(r,n)=>async o=>{if(!cTe.isInstance(o.request)||await t.disableRequestCompression())return r(o);let{request:i}=o,{body:a,headers:c}=i,{encodings:u,streamRequiresLength:f}=e,m=a,y=c;for(let _ of u)if(mTe.includes(_)){let C=!1;if(gTe(a))if(!f)m=await uTe(a),C=!0;else throw new Error("Compression is not supported for streaming blobs that require a length.");else{let A=t.bodyLengthChecker(a),x=await t.requestMinCompressionSizeBytes();A&&A>=x&&(m=await lTe(a),C=!0)}if(C){c["content-encoding"]?y={...c,"content-encoding":`${c["content-encoding"]}, ${_}`}:y={...c,"content-encoding":_},y["content-encoding"].includes("gzip")&&aTe(n,"GZIP_REQUEST_COMPRESSION","L");break}}return r({...o,request:{...i,body:m,headers:y}})},zH={name:"compressionMiddleware",step:"build",tags:["REQUEST_BODY_COMPRESSION","GZIP"],override:!0,priority:"high"},hTe=(t,e)=>({applyToStack:r=>{r.add(jH(t,e),zH)}}),STe=t=>{let{disableRequestCompression:e,requestMinCompressionSizeBytes:r}=t;return Object.assign(t,{disableRequestCompression:NH(e),requestMinCompressionSizeBytes:async()=>{let n=await NH(r)();if(n<0||n>10485760)throw new RangeError(`The value for requestMinCompressionSizeBytes must be between 0 and 10485760 inclusive. The provided value ${n} is outside this range."`);return n}})};Mn.DEFAULT_DISABLE_REQUEST_COMPRESSION=UH;Mn.DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES=HH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS=pTe;Mn.NODE_DISABLE_REQUEST_COMPRESSION_ENV_NAME=FH;Mn.NODE_DISABLE_REQUEST_COMPRESSION_INI_NAME=BH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS=fTe;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_ENV_NAME=GH;Mn.NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_INI_NAME=qH;Mn.compressionMiddleware=jH;Mn.compressionMiddlewareOptions=zH;Mn.getCompressionPlugin=hTe;Mn.resolveCompressionConfig=STe});var j0,z0,WH=g(()=>{V();j0=t=>ft.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,z0=t=>ft.isInstance(t)?t.headers?.age??t.headers?.Age:void 0});var pf,KH=g(()=>{pf=t=>new Date(Date.now()+t)});var V0,QH=g(()=>{V0=(t,e,r,n)=>{if(n!==void 0)return e;let o=Date.parse(t),s=Date.now();return r!==void 0&&s-r>9e5?e:r!==void 0?o-(r+s)/2:o-s}});var EO=g(()=>{WH();KH();QH()});var YH,ff,yTe,xl,tr,_O,RO=g(()=>{V();YH=Ie(Eo());EO();ff=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},yTe=t=>t.context?.[YH.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,xl=async t=>{let e=ff("context",t.context),r=ff("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=await ff("signer",r.signer)(n),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:r,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}},tr=class{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let o=await xl(n),{config:s,signer:i}=o,{signingRegion:a,signingName:c}=o,u=n.context;if(u?.authSchemes?.length??!1){let[_,C]=u.authSchemes;_?.name==="sigv4a"&&C?.name==="sigv4"&&(a=C?.signingRegion??a,c=C?.signingName??c)}let f=await s.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=f;let m=f||yTe(n);return n._skipClockSkewSampling=m,m||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await i.sign(e,{signingDate:f?new Date:pf(s.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let o=n.ServerTime??j0(n.$response);if(o){let s=ff("config",e.config),i=e._preRequestSystemClockOffset,a=e._requestSentAt,c=z0(n.$response),u=V0(o,s.systemClockOffset,a,c);s.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==i||i!==void 0&&i!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=j0(e);if(n){let o=ff("config",r.config),s=r._requestSentAt,i=z0(e);o.systemClockOffset=V0(n,o.systemClockOffset,s,i)}}},_O=tr});var Ti,JH=g(()=>{V();EO();RO();Ti=class extends tr{async sign(e,r,n){if(!re.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:o,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}=await xl(n),f=(await o.sigv4aSigningRegionSet?.()??a??[i]).join(","),m=await o.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=m,m||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await s.sign(e,{signingDate:m?new Date:pf(o.systemClockOffset),signingRegion:f,signingService:c})}}});var CO,XH=g(()=>{CO=t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[]});var W0,bO=g(()=>{W0=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`});var ZH,ej,No,tj=g(()=>{XH();bO();ZH="AWS_AUTH_SCHEME_PREFERENCE",ej="auth_scheme_preference",No={environmentVariableSelector:(t,e)=>{if(e?.signingName&&W0(e.signingName)in t)return["httpBearerAuth"];if(ZH in t)return CO(t[ZH])},configFileSelector:t=>{if(ej in t)return CO(t[ej])},default:[]}});var mf,gf,rj=g(()=>{jt();ye();mf=t=>(t.sigv4aSigningRegionSet=Jn(t.sigv4aSigningRegionSet),t),gf={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Dn("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Dn("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var MO=st(fe=>{var{hasOwn:vl,fromUtf8:nj,fromHex:ETe,toHex:Oc,toUint8Array:hf,isArrayBuffer:_Te}=(j(),F(To)),{normalizeProvider:oj}=(J(),F(bo)),{escapeUri:K0,HttpRequest:cj}=(V(),F(wo)),AO=class{format(e){let r=[];for(let s in e){if(!vl(e,s))continue;let i=nj(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.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":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(e.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(e.value,3),i;case"string":let a=nj(e.value),c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7),c.setUint16(1,a.byteLength,!1);let u=new Uint8Array(c.buffer);return u.set(a,3),u;case"timestamp":let f=new Uint8Array(9);return f[0]=8,f.set(xO.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!RTe.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(ETe(e.value.replace(/-/g,"")),1),m}}},sj;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(sj||(sj={}));var RTe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,xO=class t{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256)r[n]=o;return e<0&&ij(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&ij(e),parseInt(Oc(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function ij(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var uj="X-Amz-Algorithm",lj="X-Amz-Credential",IO="X-Amz-Date",dj="X-Amz-SignedHeaders",pj="X-Amz-Expires",wO="X-Amz-Signature",PO="X-Amz-Security-Token",CTe="X-Amz-Region-Set",OO="authorization",$O=IO.toLowerCase(),fj="date",mj=[OO,$O,fj],gj=wO.toLowerCase(),Z0="x-amz-content-sha256",hj=PO.toLowerCase(),bTe="host",Sj={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},yj=/^proxy-/,Ej=/^sec-/,ATe=[/^proxy-/i,/^sec-/i],Q0="AWS4-HMAC-SHA256",xTe="AWS4-ECDSA-P256-SHA256",_j="AWS4-HMAC-SHA256-PAYLOAD",Rj="UNSIGNED-PAYLOAD",Cj=50,kO="aws4_request",bj=3600*24*7,Aj=({query:t={}})=>{let e=[],r={};for(let n in t){if(!vl(t,n)||n.toLowerCase()===gj)continue;let o=K0(n);e.push(o);let s=t[n];typeof s=="string"?r[o]=`${o}=${K0(s)}`:Array.isArray(s)&&(r[o]=s.slice(0).reduce((i,a)=>i.concat([`${o}=${K0(a)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},TTe=t=>vTe(t).toISOString().replace(/\.\d{3}Z$/,"Z"),vTe=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,ey=class{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){this.service=o,this.sha256=s,this.uriEscapePath=i,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=oj(n),this.credentialProvider=oj(r)}createCanonicalRequest(e,r,n){let o=Object.keys(r).sort();return`${e.method}
26
25
  ${this.getCanonicalPath(e)}
27
- ${YG(e)}
26
+ ${Aj(e)}
28
27
  ${o.map(s=>`${s}:${r[s]}`).join(`
29
28
  `)}
30
29
 
31
30
  ${o.join(";")}
32
- ${n}`}async createStringToSign(e,r,n,o){let s=new this.sha256;s.update(hp(n));let i=await s.digest();return`${o}
31
+ ${n}`}async createStringToSign(e,r,n,o){let s=new this.sha256;s.update(hf(n));let i=await s.digest();return`${o}
33
32
  ${e}
34
33
  ${r}
35
- ${tc(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return qS(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=cSe(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},zu={},HS=[],zS=(t,e,r)=>`${t}/${e}/${r}/${iI}`,ZG=async(t,e,r,n,o)=>{let s=await LG(t,e.secretAccessKey,e.accessKeyId),i=`${r}:${n}:${o}:${tc(s)}:${e.sessionToken}`;if(i in zu)return zu[i];for(HS.push(i);HS.length>JG;)delete zu[HS.shift()];let a=`AWS4${e.secretAccessKey}`;for(let c of[r,n,o,iI])a=await LG(t,a,c);return zu[i]=a},lSe=()=>{HS.length=0,Object.keys(zu).forEach(t=>{delete zu[t]})},LG=(t,e,r)=>{let n=new t(e);return n.update(hp(r)),n.digest()},YP=({headers:t},e,r)=>{let n={};for(let o of Object.keys(t).sort()){if(t[o]==null)continue;let s=o.toLowerCase();(s in zG||e?.has(s)||VG.test(s)||WG.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[o].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},VS=async({headers:t,body:e},r)=>{for(let n in t)if(Vu(t,n)&&n.toLowerCase()===WS)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||rSe(e)){let n=new r;return n.update(hp(e)),tc(await n.digest())}return QG},e4=(t,e)=>{t=t.toLowerCase();for(let r in e)if(Vu(e,r)&&t===r.toLowerCase())return!0;return!1},t4=(t,e={})=>{let{headers:r,query:n={}}=NG.clone(t);for(let o in r){if(!Vu(r,o))continue;let s=o.toLowerCase();(s.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(s)||e.hoistableHeaders?.has(s))&&(n[o]=r[o],delete r[o])}return{...t,headers:r,query:n}},ZP=t=>{t=NG.clone(t);for(let e in t.headers)Vu(t.headers,e)&&qG.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},eI=class extends KS{headerFormatter=new JP;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:c,signingRegion:u,signingService:f}=r,m=await this.credentialProvider();this.validateResolvedCredentials(m);let y=u??await this.regionProvider(),{longDate:_,shortDate:R}=this.formatDate(n);if(o>XG)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let b=zS(R,y,f??this.service),C=t4(ZP(e),{unhoistableHeaders:i,hoistableHeaders:c});m.sessionToken&&(C.query[nI]=m.sessionToken),C.query[MG]=jS,C.query[BG]=`${m.accessKeyId}/${b}`,C.query[tI]=_,C.query[UG]=o.toString(10);let x=YP(C,s,a);return C.query[FG]=this.getCanonicalHeaderList(x),C.query[rI]=await this.getSignature(_,b,this.getSigningKey(m,y,R,f),this.createCanonicalRequest(C,x,await VS(e,this.sha256))),C}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:o,signingRegion:s,signingService:i,eventStreamCredentials:a}){let c=s??await this.regionProvider(),{shortDate:u,longDate:f}=this.formatDate(n),m=zS(u,c,i??this.service),y=await VS({headers:{},body:r},this.sha256),_=new this.sha256;_.update(e);let R=tc(await _.digest()),b=[KG,f,m,o,R,y].join(`
36
- `);return this.signString(b,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}={}){let i=s??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,a,c,o));return u.update(hp(e)),tc(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:s,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=s??await this.regionProvider(),u=ZP(e),{longDate:f,shortDate:m}=this.formatDate(r),y=zS(m,c,i??this.service);u.headers[sI]=f,a.sessionToken&&(u.headers[HG]=a.sessionToken);let _=await VS(u,this.sha256);!e4(WS,u.headers)&&this.applyChecksum&&(u.headers[WS]=_);let R=YP(u,o,n),b=await this.getSignature(f,y,this.getSigningKey(a,c,m,i),this.createCanonicalRequest(u,R,_));return u.headers[oI]=`${jS} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(R)}, Signature=${b}`,u}async getSignature(e,r,n,o){let s=await this.createStringToSign(e,r,o,jS),i=new this.sha256(await n);return i.update(hp(s)),tc(await i.digest())}getSigningKey(e,r,n,o){return ZG(this.sha256,e,n,r,o||this.service)}},dSe={SignatureV4a:null};ce.ALGORITHM_IDENTIFIER=jS;ce.ALGORITHM_IDENTIFIER_V4A=aSe;ce.ALGORITHM_QUERY_PARAM=MG;ce.ALWAYS_UNSIGNABLE_HEADERS=zG;ce.AMZ_DATE_HEADER=sI;ce.AMZ_DATE_QUERY_PARAM=tI;ce.AUTH_HEADER=oI;ce.CREDENTIAL_QUERY_PARAM=BG;ce.DATE_HEADER=GG;ce.EVENT_ALGORITHM_IDENTIFIER=KG;ce.EXPIRES_QUERY_PARAM=UG;ce.GENERATED_HEADERS=qG;ce.HOST_HEADER=sSe;ce.KEY_TYPE_IDENTIFIER=iI;ce.MAX_CACHE_SIZE=JG;ce.MAX_PRESIGNED_TTL=XG;ce.PROXY_HEADER_PATTERN=VG;ce.REGION_SET_PARAM=oSe;ce.SEC_HEADER_PATTERN=WG;ce.SHA256_HEADER=WS;ce.SIGNATURE_HEADER=jG;ce.SIGNATURE_QUERY_PARAM=rI;ce.SIGNED_HEADERS_QUERY_PARAM=FG;ce.SignatureV4=eI;ce.SignatureV4Base=KS;ce.TOKEN_HEADER=HG;ce.TOKEN_QUERY_PARAM=nI;ce.UNSIGNABLE_PATTERNS=iSe;ce.UNSIGNED_PAYLOAD=QG;ce.clearCredentialCache=lSe;ce.createScope=zS;ce.getCanonicalHeaders=YP;ce.getCanonicalQuery=YG;ce.getPayloadHash=VS;ce.getSigningKey=ZG;ce.hasHeader=e4;ce.moveHeadersToQuery=t4;ce.prepareRequest=ZP;ce.signatureV4aContainer=dSe});var Sp=Ct(JS=>{var{SignatureV4:pSe,signatureV4aContainer:r4}=aI(),gp={CrtSignerV4:null},cI="X-Amz-S3session-Token",n4=cI.toLowerCase(),QS=class extends pSe{async signWithCredentials(e,r,n){let o=o4(r);e.headers[n4]=r.sessionToken;let s=this;return s4(s,o),s.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let o=o4(r);return delete e.headers[n4],e.headers[cI]=r.sessionToken,e.query=e.query??{},e.query[cI]=r.sessionToken,s4(this,o),this.presign(e,n)}};function o4(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function s4(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}var uI=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof gp.CrtSignerV4=="function"?"crt":typeof r4.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new QS(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),s=gp.CrtSignerV4;if(s&&o instanceof s)return o.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),o=gp.CrtSignerV4;if(o&&n instanceof o)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=gp.CrtSignerV4,r=r4.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};JS.SignatureV4MultiRegion=uI;JS.SignatureV4SignWithCredentials=QS;JS.signatureV4CrtContainer=gp});var i4,XS,a4=h(()=>{i4=Oe(Sp()),XS=class extends i4.SignatureV4SignWithCredentials{}});var c4,u4,l4,fSe,d4,mSe,hSe,p4,lI=h(()=>{Re();c4="Directory",u4="S3Express",l4="sigv4-s3express",fSe="X-Amz-S3session-Token",d4=fSe.toLowerCase(),mSe="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",hSe="s3_disable_express_session_auth",p4={environmentVariableSelector:t=>Ue(t,mSe,$e.ENV),configFileSelector:t=>Ue(t,hSe,$e.CONFIG),default:!1}});var dI,pI,f4,m4=h(()=>{ye();z();lI();dI=t=>(e,r)=>async n=>{if(r.endpointV2){let o=r.endpointV2,s=o.properties?.authSchemes?.[0]?.name===l4;if((o.properties?.backend===u4||o.properties?.bucketType===c4)&&(qe(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:a});r.s3ExpressIdentity=c,X.isInstance(n.request)&&c.sessionToken&&(n.request.headers[d4]=c.sessionToken)}}}return e(n)},pI={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},f4=t=>({applyToStack:e=>{e.add(dI(t),pI)}})});var h4,g4=h(()=>{h4=async(t,e,r,n)=>{let o=await n.signWithCredentials(r,t,{});if(o.headers["X-Amz-Security-Token"]||o.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return o}});var gSe,SSe,S4,fI,y4,E4=h(()=>{hr();Q();z();g4();gSe=t=>e=>{throw e},SSe=(t,e)=>{},S4=Za,fI=t=>(e,r)=>async n=>{if(!X.isInstance(n.request))return e(n);let s=Ie(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u;r.s3ExpressIdentity?u=await h4(r.s3ExpressIdentity,i,n.request,await t.signer()):u=await c.sign(n.request,a,i);let f=await e({...n,request:u}).catch((c.errorHandler||gSe)(i));return(c.successHandler||SSe)(f.response,i),f},y4=t=>({applyToStack:e=>{e.addRelativeTo(fI(t),Za)}})});function R4(t){return _4.Readable.from(Buffer.from(t))}var _4,b4=h(()=>{_4=require("node:stream")});var ySe,mI,ESe,hI,C4,x4=h(()=>{z();b4();ySe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},mI=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(!it.isInstance(s))return o;let{statusCode:i,body:a}=s;if(i<200||i>=300)return o;let c=await ESe(a,t);if(s.body=R4(c),c.length===0&&ySe[r.commandName]){let f=new Error("S3 aborted request");throw f.$metadata={httpStatusCode:503},f.name="InternalError",f}let u=t.utf8Encoder(c.subarray(c.length-16));return u&&u.endsWith("</Error>")&&(s.statusCode=503),o},ESe=(t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),hI={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},C4=t=>({applyToStack:e=>{e.addRelativeTo(mI(t),hI)}})});var yp,gI,A4=h(()=>{yp=t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,gI=t=>{let e=t.split(":");if(e.length<6||e[0]!=="arn")throw new Error("Malformed ARN");let[,r,n,o,s,...i]=e;return{partition:r,service:n,region:o,accountId:s,resource:i.join(":")}}});var SI=h(()=>{A4()});function T4(t){return(e,r)=>async n=>{if(t.bucketEndpoint){let o=r.endpointV2;if(o){let s=n.input.Bucket;if(typeof s=="string")try{let i=new URL(s);r.endpointV2={...o,url:i}}catch(i){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(a):r.logger?.warn?.(a),i}}}return e(n)}}var w4,v4=h(()=>{w4={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"}});function yI({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:n}}=r;if(!t&&typeof n=="string"&&!yp(n)&&n.indexOf("/")>=0){let o=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw o.name="InvalidBucketName",o}return e({...r})}}var EI,P4,I4=h(()=>{SI();v4();EI={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},P4=t=>({applyToStack:e=>{e.add(yI(t),EI),e.addRelativeTo(T4(t),w4)}})});var _I,D4=h(()=>{_I=Symbol("@smithy/core/cbor::tagSymbol")});var Ep,RI=h(()=>{Ep=(t,e)=>{let r=n=>{let o=n;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o};if(e.__type!==void 0)return r(e.__type)}});function ny(t){let e=t.getSchema(),r=e[O4];if(r)return r;let n=[],o=[];for(let[a,c]of t.structIterator())n.push(a),o.push(c);let s=new Array(n.length);for(let a=0;a<n.length;++a)s[a]=_Se(n[a]);let i={memberNames:n,memberSchemas:o,encodedKeys:s};return e[O4]=i,i}function _Se(t){let e;oy?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let o=new Uint8Array(n+r);return n===1?o[0]=96|r:n===2?(o[0]=120,o[1]=r):(o[0]=121,o[1]=r>>8,o[2]=r&255),o.set(e,n),o}function M4(t){return oy?Buffer.allocUnsafe(t):new Uint8Array(t)}function Ju(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){ys(fr());return}Le(1),ie[ee++]=246;return}if(t.isUnitSchema()){Le(1),zt(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){YS(e);return}if(t.isTimestampSchema()&&e instanceof Date){AI(e);return}if(t.isStructSchema()){bSe(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){L4(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){CI(t,e,!1,n);return}if(e instanceof Date){AI(e);return}if(e instanceof Uint8Array){YS(e);return}if(e instanceof K){U4(e);return}if(e[_I]){let s=e;F4(s.tag,s.value);return}if(t.isDocumentSchema()){Array.isArray(e)?L4(t,e,!0,n):CI(t,e,!0,n);return}if(t.isBigDecimalSchema()){Xu(e);return}CI(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let s=(n?.base64Decoder??We)(e);YS(s);return}ys(e);return}if(typeof e=="number"){Le(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?sy(e):OI(e);return}if(typeof e=="boolean"){Le(1),ie[ee++]=224|(e?21:20);return}if(typeof e=="bigint"){ty(e);return}ys(String(e))}function bSe(t,e,r){if(t.isUnionSchema()){let m=!1;for(let[y,_]of t.structIterator()){let R=e[y];if(R!=null){Le(9),zt(5,1),ys(y),Ju(_,R,t,r),m=!0;break}}if(!m){let{$unknown:y}=e;Array.isArray(y)?(Le(9),zt(5,1),ys(y[0]),Xu(y[1])):(Le(9),zt(5,0))}return}let n=ny(t),{memberNames:o,memberSchemas:s,encodedKeys:i}=n,a=o.length,c;a<24?c=1:a<256?c=2:c=3,Le(c);let u=ee;ee+=c;let f=0;for(let m=0;m<a;++m){let y=e[o[m]];if(y==null&&!s[m].isIdempotencyToken())continue;let _=i[m];Le(_.length),ie.set(_,ee),ee+=_.length,Ju(s[m],y,t,r),++f}if(typeof e.__type=="string")for(let m in e)H(e,m)&&(o.includes(m)||(ys(m),Xu(e[m]),++f));c===1?ie[u]=160|f:c===2?(ie[u]=184,ie[u+1]=f):(ie[u]=185,ie[u+1]=f>>8,ie[u+2]=f&255)}function L4(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema();if(r||o){let i=[];for(let a=0;a<e.length;++a){let c=e[a];r?c!==void 0&&i.push(c):(c!=null||o)&&i.push(c)}Le(9),zt(4,i.length);for(let a=0;a<i.length;++a)Ju(s,i[a],void 0,n)}else{let i=0;for(let a=0;a<e.length;++a)e[a]!=null&&++i;Le(9),zt(4,i);for(let a=0;a<e.length;++a)e[a]!=null&&Ju(s,e[a],void 0,n)}}function CI(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema(),i=[];for(let a in e){if(!H(e,a))continue;let c=e[a];(r?c!==void 0:c!=null||o)&&i.push(a)}Le(9),zt(5,i.length);for(let a=0;a<i.length;++a){let c=i[a];ys(c),Ju(s,e[c],void 0,n)}}function Xu(t){if(t==null){Le(1),ie[ee++]=246;return}if(typeof t=="string"){ys(t);return}if(typeof t=="number"){Le(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?sy(t):OI(t);return}if(typeof t=="boolean"){Le(1),ie[ee++]=224|(t?21:20);return}if(typeof t=="bigint"){ty(t);return}if(t instanceof Uint8Array){YS(t);return}if(t instanceof Date){AI(t);return}if(t instanceof K){U4(t);return}if(t[_I]){let e=t;F4(e.tag,e.value);return}if(Array.isArray(t)){Le(9),zt(4,t.length);for(let e=0;e<t.length;++e)Xu(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Le(9),zt(5,e.length);for(let r=0;r<e.length;++r)ys(e[r]),Xu(t[e[r]]);return}ys(String(t))}function Le(t){if(ee+t>ie.length){let e=ie.length*2;for(;e<ee+t;)e*=2;let r=M4(e);r.set(ie.subarray(0,ee)),ie=r,nc=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function zt(t,e){if(e<24)ie[ee++]=t<<5|e;else if(e<256)ie[ee++]=t<<5|24,ie[ee++]=e;else if(e<65536)ie[ee++]=t<<5|25,ie[ee++]=e>>8,ie[ee++]=e&255;else if(e<4294967296)ie[ee++]=t<<5|26,nc.setUint32(ee,e),ee+=4;else{ie[ee++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;nc.setUint32(ee,r),nc.setUint32(ee+4,n),ee+=8}}function B4(t,e){let r=Number(e);if(r<4294967296){zt(t,r);return}ie[ee++]=t<<5|27,nc.setBigUint64(ee,e),ee+=8}function ys(t){let e=t.length;if(e<=23){let r=Wu.get(t);if(r){Le(r.bytes.length),ie.set(r.bytes,ee),ee+=r.bytes.length,r.epoch=bI;return}let n=ee;N4(t,e);let o=ee,s=Uint8Array.prototype.slice.call(ie,n,o);if(Wu.size>=k4){if($4)return;let i=0;for(let[a,c]of Wu){if(i>=1024)break;c.epoch!==bI&&(Wu.delete(a),++i)}if(i===0){$4=!0;return}}Wu.size<k4&&Wu.set(t,{epoch:bI,bytes:s});return}N4(t,e)}function N4(t,e){if(oy){let r=e*3;Le(r+9);let n=Buffer.byteLength(t);zt(3,n),ee+=ie.write(t,ee)}else{let r=e*3;Le(r+9);let n=ee,s=RSe.encodeInto(t,ie.subarray(n+9)).written,i;s<24?i=1:s<256?i=2:s<65536?i=3:s<4294967296?i=5:i=9,i<9&&ie.copyWithin(n+i,n+9,n+9+s),ee=n,zt(3,s),ee+=s}}function OI(t){Le(9),ie[ee++]=251,nc.setFloat64(ee,t),ee+=8}function sy(t){Le(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;zt(r,n)}function ty(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Le(9),B4(r,n);else{let o=n.toString(2),s=Math.ceil(o.length/8),i=new Uint8Array(s),a=n;for(let c=s-1;c>=0;--c)i[c]=Number(a&BigInt(255)),a>>=BigInt(8);Le(s+16),ie[ee++]=e?194:195,zt(2,s),ie.set(i,ee),ee+=s}}function YS(t){Le(t.length+9),zt(2,t.length),ie.set(t,ee),ee+=t.length}function F4(t,e){Le(9),typeof t=="bigint"?B4(6,t):zt(6,t),Xu(e)}function U4(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let o=e.indexOf("."),s=o===-1?0:e.length-o-1,i=r-BigInt(s),a=BigInt(e.replace(".",""));Le(9),ie[ee++]=196,zt(4,2),Le(9),i>=-0x20000000000000n&&i<=0x1fffffffffffffn?sy(Number(i)):ty(i),ty(a)}function AI(t){Le(18),zt(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?sy(e):OI(e)}var ey,O4,oy,RSe,xI,ie,nc,ee,k4,Wu,bI,$4,kI=h(()=>{Z();z();ne();j();D4();ey=class extends jt{write(e,r){ee=0;let n=N.of(e);Ju(n,r,void 0,this.serdeContext)}flush(){let e=ie.subarray(0,ee);return ee=0,ie=M4(xI),nc=new DataView(ie.buffer,ie.byteOffset,ie.byteLength),e}},O4=Symbol.for("@smithy/cbor-struct-cache");oy=typeof Buffer<"u",RSe=new TextEncoder,xI=2048,ie=oy?Buffer.allocUnsafe(xI):new Uint8Array(xI),nc=new DataView(ie.buffer,ie.byteOffset,ie.byteLength),ee=0,k4=2048,Wu=new Map,bI=0,$4=!1});function yn(t){if(V>=Vt)throw new Error("unexpected end of CBOR payload.");let e=(ct[V]&224)>>5;if((ct[V]&31)===31&&e>=2&&e<=5)return wSe(t,e);switch(e){case 0:return OSe();case 1:return kSe();case 2:return ly();case 3:return Yu();case 4:return CSe(t);case 5:return xSe(t);case 6:return TSe(t);case 7:return LSe();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function CSe(t){let e=uy(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let o=0;o<e;++o)n[o]=yn(r);return n}function xSe(t){let e=uy();if(t.isStructSchema())return ASe(t,e,V);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let o=0;o<e;++o){let s=Yu();n[s]=yn(r)}return n}function ASe(t,e,r){let n=t.isUnionSchema(),o=ny(t),{memberSchemas:s,encodedKeys:i,memberNames:a}=o,c=i.length,u={},f,m,y=0,_=!1,R=0;for(let b=0;b<e;++b){let C=H4(i,c,R);if(C>=0){R=C+1,R>=c&&(R=0);let x=yn(s[C]);x!=null&&(u[a[C]]=x)}else{let x=Yu(),w=yn(N.of(15));x==="__type"&&typeof w=="string"?_=!0:(f=x,m=w,++y)}}if(n){let b=!0;for(let C in u)if(H(u,C)){b=!1;break}b&&y===1&&(u.$unknown=[f,m])}else if(_){V=r;let b=N.of(15);for(let C=0;C<e;++C){let x=Yu(),w=yn(b);x in u||(u[x]=w)}}return u}function TSe(t){let e=cy(),r=typeof e=="bigint"?Number(e):e;if(r===1){let s=N.of(15),i=yn(s);return Ti(i)}if(r===2||r===3){let s=ly(),i=BigInt(0);for(let a=0;a<s.length;++a)i=i<<BigInt(8)|BigInt(s[a]);return r===3?-i-BigInt(1):i}if(r===4){let s=N.of(15),i=yn(s),[a,c]=i,u=c<0?-1:1,f=BigInt(u)*BigInt(c),m=String(f),y=c<0?"-":"",_;if(typeof a=="number"&&Math.abs(a)<=2**28){let b=a,C="0".repeat(Math.abs(b)+1)+m;_=b===0?C:C.slice(0,C.length+b)+"."+C.slice(b),_=_.replace(/^0+/g,""),_===""&&(_="0"),_[0]==="."&&(_="0"+_),_=y+_}else{let b=BigInt(a);if(m.length===1)_=y+m+"e"+String(b);else{let C=b+BigInt(m.length-1);_=y+m[0]+"."+m.slice(1)+"e"+String(C)}}return Ph(_)}let n=N.of(15),o=yn(n);return{tag:z4(e),value:o}}function wSe(t,e){switch(e){case 3:return vSe();case 2:return PSe();case 4:return ISe(t);case 5:return DSe(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function vSe(){V+=1;let t=[],e=0;for(;V<Vt;){if(ct[V]===255){V+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return j4?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):LI.decode(n)}let r=ly();t.push(r),e+=r.length}throw new Error("expected break marker.")}function PSe(){V+=1;let t=[],e=0;for(;V<Vt;){if(ct[V]===255){V+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return n}let r=ly();t.push(r),e+=r.length}throw new Error("expected break marker.")}function ISe(t){V+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;V<Vt;){if(ct[V]===255)return V+=1,r;r.push(yn(e))}throw new Error("expected break marker.")}function DSe(t){if(V+=1,t.isStructSchema()){let n=ny(t),{memberSchemas:o,encodedKeys:s,memberNames:i}=n,a=s.length,c=t.isUnionSchema(),u={},f,m,y=0,_=0;for(;V<Vt;){if(ct[V]===255){if(V+=1,c){let b=!0;for(let C in u)if(H(u,C)){b=!1;break}b&&y===1&&(u.$unknown=[f,m])}return u}let R=H4(s,a,_);if(R>=0){_=R+1,_>=a&&(_=0);let b=yn(o[R]);b!=null&&(u[i[R]]=b)}else{let b=Yu(),C=yn(N.of(15));b!=="__type"&&(f=b,m=C,++y)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;V<Vt;){if(ct[V]===255)return V+=1,r;let n=Yu();r[n]=yn(e)}throw new Error("expected break marker.")}function H4(t,e,r){let n=t[r];if(V+n.length<=Vt&&q4(V,n))return V+=n.length,r;for(let o=0;o<e;++o){if(o===r)continue;let s=t[o];if(V+s.length<=Vt&&q4(V,s))return V+=s.length,o}return-1}function q4(t,e){let r=e.length;if(ct[t]!==e[0])return!1;for(let n=1;n<r;++n)if(ct[t+n]!==e[n])return!1;return!0}function cy(){let t=ct[V]&31;if(t<24)return V+=1,t;switch(t){case 24:return Vt-V<2&&Xs(1),V+=2,ct[V-1];case 25:return Vt-V<3&&Xs(2),V+=3,Vi.getUint16(V-2);case 26:return Vt-V<5&&Xs(4),V+=5,Vi.getUint32(V-4);case 27:{Vt-V<9&&Xs(8),V+=9;let e=Vi.getUint32(V-8);return e<2097152?e*4294967296+Vi.getUint32(V-4):Vi.getBigUint64(V-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function uy(){let t=cy();return typeof t=="bigint"?Number(t):t}function OSe(){let t=cy();return z4(t)}function kSe(){let t=cy();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function ly(){let t=uy();Vt-V<t&&Xs(t);let e=V;return V+=t,ct.subarray(e,e+t)}function Yu(){let t=uy();Vt-V<t&&Xs(t);let e=V;return V+=t,t<24?$Se(e,t):NI?ct.toString("utf-8",e,e+t):LI.decode(ct.subarray(e,e+t))}function $Se(t,e){let r=e;for(let i=0;i<e;++i)r=r*31+ct[t+i]|0;let n=r>>>0&MI-1,o=G4[n];if(o!==void 0&&o.length===e){let i=!0;for(let a=0;a<e;++a)if(o.charCodeAt(a)!==ct[t+a]){i=!1;break}if(i)return $I[n]=bp,o}let s=NI?ct.toString("utf-8",t,t+e):LI.decode(ct.subarray(t,t+e));return $I[n]!==bp&&(G4[n]=s,$I[n]=bp),s}function LSe(){let t=V,e=ct[t]&31;switch(e){case 21:return V=t+1,!0;case 20:return V=t+1,!1;case 22:return V=t+1,null;case 23:return V=t+1,null;case 25:return Vt-t<3&&Xs(2),V=t+3,NSe(ct[t+1],ct[t+2]);case 26:return Vt-t<5&&Xs(4),V=t+5,Vi.getFloat32(t+1);case 27:return Vt-t<9&&Xs(8),V=t+9,Vi.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function NSe(t,e){let r=t>>7,n=(t&124)>>2,o=(t&3)<<8|e,s=r===0?1:-1;return n===0?o===0?0:s*(Math.pow(2,-14)*(o/1024)):n===31?o===0?s*(1/0):NaN:s*(Math.pow(2,n-15)*(1+o/1024))}function z4(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function Xs(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function iy(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return Ti(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return Ti(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof K||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),o=[];for(let s of e)o.push(iy(n,s));return o}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let o in e)H(e,o)&&(r[o]=iy(n,e[o]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),o;if(n){o=new Set;for(let s in e)H(e,s)&&s!=="__type"&&o.add(s)}for(let[s,i]of t.structIterator())n&&o.delete(s),e[s]!=null&&(r[s]=iy(i,e[s]));if(n&&o?.size===1){let s=!0;for(let i in r)if(H(r,i)){s=!1;break}if(s){let i=o.values().next().value;r.$unknown=[i,e[i]]}}else if(typeof e.__type=="string")for(let s in e)H(e,s)&&(s in r||(r[s]=e[s]))}return r}var ay,j4,LI,ct,NI,Vi,V,Vt,MI,G4,$I,bp,V4=h(()=>{Z();z();ne();j();kI();ay=class extends jt{read(e,r){return ct=r,NI=j4&&r instanceof Buffer,Vi=new DataView(r.buffer,r.byteOffset,r.byteLength),V=0,Vt=r.length,bp=bp+1&65535,yn(N.of(e))}readValue(e,r){return iy(N.of(e),r)}},j4=typeof Buffer<"u",LI=new TextDecoder,ct=new Uint8Array(0),NI=!1,Vi=new DataView(new ArrayBuffer(0)),V=0,Vt=0,MI=2048,G4=new Array(MI),$I=new Uint16Array(MI),bp=0});var dy,W4=h(()=>{z();kI();V4();dy=class extends jt{createSerializer(){let e=new ey;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ay;return e.setSerdeContext(this.serdeContext),e}}});var Cp,K4=h(()=>{z();ne();Z();W4();RI();Cp=class extends Dn{codec=new dy;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),Yr(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):(o.body||(this.serializer.write(15,{}),o.body=this.serializer.flush()),o.body instanceof Uint8Array&&(o.headers["content-length"]=String(o.body.byteLength)));let{service:s,operation:i}=Ie(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=Ep(n,o)??"Unknown",a=["*"],{defaultNamespace:c}=this.options;a.unshift(c);let[u,f]=i.includes("#")?i.split("#"):[void 0,i];u&&a.unshift(u);let m={$metadata:s,$fault:n.statusCode<500?"client":"server"},y=[this.compositeErrorRegistry];u&&y.push(ke.for(u)),y.push(ke.for(c));let[_,R,b]=this.resolveError(f,a,y);if(b==="native"||b==="synthetic"){o.Message&&(o.message=o.Message);let G=b==="synthetic"?new R({name:f}):new Error(f);throw Object.assign(G,m,o)}let C=N.of(_),x=o.message??o.Message??"Unknown",w=new R({}),U={};for(let[G,ue]of C.structIterator())U[G]=this.deserializer.readValue(ue,o[G]);throw Object.assign(w,m,{$fault:C.getMergedTraits().error,message:x},U)}getDefaultContentType(){return"application/cbor"}}});var Q4=h(()=>{RI();K4()});var Ln,Zu=h(()=>{Q();ne();Ln=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),o=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(o){let s=o.getMergedTraits().mediaType;return s||(o.isStringSchema()?"text/plain":o.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(i=>{let{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:f,httpPrefixHeaders:m}=i.getMergedTraits();return!a&&!c&&!u&&!f&&m===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,o,s,i){let a=e;e.includes("#")&&([,a]=e.split("#"));let c={$metadata:s,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:c}}catch{o.message=o.message??o.Message??"UnknownError";let f=this.errorRegistry,m=f.getBaseException();if(m){let R=f.getErrorCtor(m)??Error;throw this.decorateServiceException(Object.assign(new R({name:a}),c),o)}let y=o,_=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(_),{name:a},c),o)}}compose(e,r,n){let o=n;r.includes("#")&&([o]=r.split("#"));let s=ke.for(o),i=ke.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(s),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,o=Fa(e,r);n&&(o.message=n);let s=o.Error??{};s.Type=o.Error?.Type,s.Code=o.Error?.Code,s.Message=o.Error?.message??o.Error?.Message??n,o.Error=s;let i=o.$metadata.requestId;return i&&(o.RequestId=i),o}return Fa(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[o,s]=n.split(";"),i=Object.keys(e),a={Code:o,Type:s};e.Code=o,e.Type=s;for(let c=0;c<i.length;c++){let u=i[c];a[u==="message"?"Message":u]=e[u]}delete a.__type,e.Error=a}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(o=>N.of(o).getMergedTraits().awsQueryError?.[0]===r)}}}});var py,J4=h(()=>{Q4();ne();Zu();py=class extends Cp{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Ln(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),o}async handleError(e,r,n,o,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,n);let i=(()=>{let R=n.headers["x-amzn-query-error"];return R&&this.awsQueryCompatible?R.split(";")[0]:Ep(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=N.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({}),_={};for(let[R,b]of u.structIterator())o[R]!=null&&(_[R]=this.deserializer.readValue(b,o[R]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,_),this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}}});var ut,So=h(()=>{ut=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var Wi,fy=h(()=>{Wi=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function my(){if(xp===void 0)try{if(typeof Buffer!="function")xp=!1;else{let t=JSON.parse(Buffer.from([123,125]));xp=t!==null&&typeof t=="object"}}catch{xp=!1}return xp}var xp,BI=h(()=>{});function el(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?BSe(n,e)?e:new K(n,"bigDecimal"):MSe(n)?new K(n,"bigDecimal"):/[eE]/.test(n)?FSe(n):BigInt(n)}return e}function MSe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function BSe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return FI(t)===FI(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===FI(n):!1}function FI(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function FSe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var hy=h(()=>{j()});function tl(t){let e=N.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(UI in r)return r[UI];let n=gy(e,new Set);return r[UI]=n,n}return gy(e,new Set)}function gy(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(gy(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(gy(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var UI,Sy=h(()=>{ne();UI=Symbol.for("@aws-sdk/reviver")});var yy,GI=h(()=>{z();j();yy=(t,e)=>gt(t,e).then(r=>(e?.utf8Encoder??Fe)(r))});async function oc(t,e,r){let n;if(my()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await gt(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await yy(t,e)),n.length===0)return{};let o=r&&tl(r)?el:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var Y4,X4,qI,Ey,_y,Z4,rl=h(()=>{z();GI();BI();hy();Sy();Y4=async(t,e)=>{let r=await oc(t,e);return r.message=r.message??r.Message,r},X4=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),qI=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},Ey=(t,e)=>Z4(t,e,["header","code","type"]),_y=(t,e,r=!1)=>Z4(t,e,r?["code","header","type"]:["type","code","header"]),Z4=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=X4(t??{},"x-amzn-errortype");if(o!==void 0)return qI(t[o]);break;case"code":let s=X4(e??{},"code");if(s&&e[s]!==void 0)return qI(e[s]);break;case"type":if(e?.__type!==void 0)return qI(e.__type);break}}});function Nn(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var Ap=h(()=>{});var nl,jI=h(()=>{z();ne();j();So();fy();BI();hy();Sy();rl();Ap();nl=class extends ut{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=tl(e)?el:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&my()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await oc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=N.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)c==="__proto__"&&Nn(a),a[c]=this._read(i,a[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return We(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?Me.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ke(o,this.settings)){case 5:return zo(r);case 6:return Zr(r);case 7:return Vo(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof K)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new K(i.string,i.type):new K(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof K||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){a==="__proto__"&&Nn(i);let c=i[a];c instanceof K||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new Wi(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var Ry,eq,tq=h(()=>{j();Ry=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>eq+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),eq=e),this.string=Fe(this)}return this.string}},eq=0});function HI(t){return Ry.allocUnsafe(t)}var by,rq,nq,USe,GSe,ol,Cy,xy,oq,qSe,jSe,HSe,Es,sq,sl,zI=h(()=>{z();ne();j();So();tq();by=new TextEncoder,rq=123,nq=125,USe=91,GSe=93,ol=34,Cy=58,xy=44,oq=92,qSe=new Uint8Array([116,114,117,101]),jSe=new Uint8Array([102,97,108,115,101]),HSe=new Uint8Array([110,117,108,108]),Es=new Array(128).fill(null);Es[8]="b";Es[9]="t";Es[10]="n";Es[12]="f";Es[13]="r";Es[34]='"';Es[92]="\\";for(let t=0;t<32;t++)Es[t]===null&&(Es[t]="u00"+t.toString(16).padStart(2,"0"));sq=2048;sl=class t extends ut{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=HI(sq)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=N.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=N.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),by.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=HI(sq),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=HI(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=ol;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=ol,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=ol;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Es[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=oq;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=by.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=ol}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=oq,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=ol;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=ol,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&N.of(e).isIdempotencyToken()){this.writeAsciiQuoted(fr());return}return}this.ensure(4),this.json.set(HSe,this.i),this.i+=4;return}let o=N.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(Me.from(r).toString());return}}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof K){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??Ce)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(qSe,i),i+=4):(a.set(jSe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=rq;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=xy),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Cy,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Cy,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=xy),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Cy,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=nq}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=by.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=USe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=xy),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=GSe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=by.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=rq;let i=!0;for(let a in r){let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=xy),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Cy,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=nq}writeTimestamp(e,r){switch(Ke(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(dr(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Ki,Ay=h(()=>{So();jI();zI();Ki=class extends ut{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new sl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new nl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Qi,Ty=h(()=>{z();ne();Zu();Ay();rl();Qi=class extends Dn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=s??new Ki({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new Ln(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,o.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(Yr(e.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(e,r,n,o,s){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(o,n);let a=_y(n,o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,s,i?this.mixin.findQueryCompatibleError:void 0),f=N.of(c),m=o.message??o.Message??"UnknownError",y=this.compositeErrorRegistry.getErrorCtor(c)??Error,_=new y({}),R={},b=this.codec.createDeserializer();for(let[C,x]of f.structIterator())o[C]!=null&&(R[C]=b.readObject(x,o[C]));throw i&&this.mixin.queryCompatOutput(o,R),this.mixin.decorateServiceException(Object.assign(_,u,{$fault:f.getMergedTraits().error,message:m},R),o)}}});var wy,iq=h(()=>{Ty();wy=class extends Qi{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var vy,aq=h(()=>{Ty();vy=class extends Qi{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var _s,cq=h(()=>{z();ne();Zu();Ay();rl();_s=class extends $i{serializer;deserializer;codec;mixin=new Ln;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Ki(o),this.serializer=new Bi(this.codec.createSerializer(),o),this.deserializer=new Mi(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=N.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return o.body==null&&o.headers["content-type"]===this.getDefaultContentType()&&(o.body="{}"),o}async deserializeResponse(e,r,n){let o=await super.deserializeResponse(e,r,n),s=N.of(e.output);for(let[i,a]of s.structIterator())a.getMemberTraits().httpPayload&&!(i in o)&&(o[i]=null);return o}async handleError(e,r,n,o,s){let i=Ey(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=N.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},R=this.codec.createDeserializer();for(let[b,C]of u.structIterator()){let x=C.getMergedTraits().jsonName??b;_[b]=R.readObject(C,o[x])}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/json"}}});var il,VI=h(()=>{z();ne();j();j();So();fy();hy();Sy();rl();Ap();il=class extends ut{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=tl(e)?el:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await oc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=N.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new Wi(i,c));for(let[y,_]of o.structIterator()){let R=y;f&&(R=_.getMergedTraits().jsonName??R,u[R]=y),a&&m.mark(R),i[R]!=null&&(c[y]=this._read(_,i[R]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){let _=i[y],R=f?u[y]??y:y;R in c||(c[R]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)c==="__proto__"&&Nn(a),a[c]=this._read(i,r[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return We(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?Me.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ke(o,this.settings)){case 5:return zo(r);case 6:return Zr(r);case 7:return Vo(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof K)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new K(i.string,i.type):new K(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){a==="__proto__"&&Nn(i);let c=r[a];c instanceof K?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var uq,Py,lq=h(()=>{j();uq="\u039D",Py=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof K){let n=`${uq+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${uq+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var al,WI=h(()=>{z();ne();j();So();lq();Ap();al=class extends ut{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=N.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Py;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=N.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=N.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let R=m;c&&(R=y.getMergedTraits().jsonName??m,u[m]=R),a[R]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&Nn(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){let f=r[u];(c||f!=null)&&(u==="__proto__"&&Nn(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ce)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ke(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return dr(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof K&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return fr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?Me.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ce)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ce)(r);let i=Array.isArray(r)?[]:{};for(let a in r){let c=r[a];a==="__proto__"&&Nn(i),c instanceof K?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var Iy,dq=h(()=>{So();VI();WI();Iy=class extends ut{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new al(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new il(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var ky=Ct(Oy=>{var zSe=/[&<>"]/g,VSe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function WSe(t){return t.replace(zSe,e=>VSe[e])}var KSe=/[&"'<>\r\n\u0085\u2028]/g,QSe={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","\x85":"&#x85;","\u2028":"&#x2028;"};function JSe(t){return t.replace(KSe,e=>QSe[e])}var Dy=class{value;constructor(e){this.value=e}toString(){return JSe(""+this.value)}},QI=class t{name;children;attributes={};static of(e,r,n){let o=new t(e);return r!==void 0&&o.addChildNode(new Dy(r)),n!==void 0&&o.withName(n),o}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let o=t.of(r,e[r]).withName(n);this.c(o)}}l(e,r,n,o){e[r]!=null&&o().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,o){if(e[r]!=null){let s=o(),i=new t(n);s.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let o of Object.keys(n)){let s=n[o];s!=null&&(r+=` ${o}="${WSe(""+s)}"`)}return r+=e?`>${this.children.map(o=>o.toString()).join("")}</${this.name}>`:"/>"}};function KI(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function XSe(t){return new JI(t).parse()}var JI=class t{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
34
+ ${Oc(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let s of e.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return K0(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=TTe(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},Tl={},Y0=[],J0=(t,e,r)=>`${t}/${e}/${r}/${kO}`,xj=async(t,e,r,n,o)=>{let s=await aj(t,e.secretAccessKey,e.accessKeyId),i=`${r}:${n}:${o}:${Oc(s)}:${e.sessionToken}`;if(i in Tl)return Tl[i];for(Y0.push(i);Y0.length>Cj;)delete Tl[Y0.shift()];let a=`AWS4${e.secretAccessKey}`;for(let c of[r,n,o,kO])a=await aj(t,a,c);return Tl[i]=a},DTe=()=>{Y0.length=0,Object.keys(Tl).forEach(t=>{delete Tl[t]})},aj=(t,e,r)=>{let n=new t(e);return n.update(hf(r)),n.digest()},TO=({headers:t},e,r)=>{let n={};for(let o of Object.keys(t).sort()){if(t[o]==null)continue;let s=o.toLowerCase();(s in Sj||e?.has(s)||yj.test(s)||Ej.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[o].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},X0=async({headers:t,body:e},r)=>{for(let n in t)if(vl(t,n)&&n.toLowerCase()===Z0)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||_Te(e)){let n=new r;return n.update(hf(e)),Oc(await n.digest())}return Rj},Tj=(t,e)=>{t=t.toLowerCase();for(let r in e)if(vl(e,r)&&t===r.toLowerCase())return!0;return!1},vj=(t,e={})=>{let{headers:r,query:n={}}=cj.clone(t);for(let o in r){if(!vl(r,o))continue;let s=o.toLowerCase();(s.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(s)||e.hoistableHeaders?.has(s))&&(n[o]=r[o],delete r[o])}return{...t,headers:r,query:n}},vO=t=>{t=cj.clone(t);for(let e in t.headers)vl(t.headers,e)&&mj.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},DO=class extends ey{headerFormatter=new AO;constructor({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:r,region:n,service:o,sha256:s,uriEscapePath:i})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:c,signingRegion:u,signingService:f}=r,m=await this.credentialProvider();this.validateResolvedCredentials(m);let y=u??await this.regionProvider(),{longDate:_,shortDate:C}=this.formatDate(n);if(o>bj)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=J0(C,y,f??this.service),x=vj(vO(e),{unhoistableHeaders:i,hoistableHeaders:c});m.sessionToken&&(x.query[PO]=m.sessionToken),x.query[uj]=Q0,x.query[lj]=`${m.accessKeyId}/${A}`,x.query[IO]=_,x.query[pj]=o.toString(10);let T=TO(x,s,a);return x.query[dj]=this.getCanonicalHeaderList(T),x.query[wO]=await this.getSignature(_,A,this.getSigningKey(m,y,C,f),this.createCanonicalRequest(x,T,await X0(e,this.sha256))),x}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:o,signingRegion:s,signingService:i,eventStreamCredentials:a}){let c=s??await this.regionProvider(),{shortDate:u,longDate:f}=this.formatDate(n),m=J0(u,c,i??this.service),y=await X0({headers:{},body:r},this.sha256),_=new this.sha256;_.update(e);let C=Oc(await _.digest()),A=[_j,f,m,o,C,y].join(`
35
+ `);return this.signString(A,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:o,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:o,eventStreamCredentials:s}={}){let i=s??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(i,a,c,o));return u.update(hf(e)),Oc(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:s,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=s??await this.regionProvider(),u=vO(e),{longDate:f,shortDate:m}=this.formatDate(r),y=J0(m,c,i??this.service);u.headers[$O]=f,a.sessionToken&&(u.headers[hj]=a.sessionToken);let _=await X0(u,this.sha256);!Tj(Z0,u.headers)&&this.applyChecksum&&(u.headers[Z0]=_);let C=TO(u,o,n),A=await this.getSignature(f,y,this.getSigningKey(a,c,m,i),this.createCanonicalRequest(u,C,_));return u.headers[OO]=`${Q0} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(C)}, Signature=${A}`,u}async getSignature(e,r,n,o){let s=await this.createStringToSign(e,r,o,Q0),i=new this.sha256(await n);return i.update(hf(s)),Oc(await i.digest())}getSigningKey(e,r,n,o){return xj(this.sha256,e,n,r,o||this.service)}},ITe={SignatureV4a:null};fe.ALGORITHM_IDENTIFIER=Q0;fe.ALGORITHM_IDENTIFIER_V4A=xTe;fe.ALGORITHM_QUERY_PARAM=uj;fe.ALWAYS_UNSIGNABLE_HEADERS=Sj;fe.AMZ_DATE_HEADER=$O;fe.AMZ_DATE_QUERY_PARAM=IO;fe.AUTH_HEADER=OO;fe.CREDENTIAL_QUERY_PARAM=lj;fe.DATE_HEADER=fj;fe.EVENT_ALGORITHM_IDENTIFIER=_j;fe.EXPIRES_QUERY_PARAM=pj;fe.GENERATED_HEADERS=mj;fe.HOST_HEADER=bTe;fe.KEY_TYPE_IDENTIFIER=kO;fe.MAX_CACHE_SIZE=Cj;fe.MAX_PRESIGNED_TTL=bj;fe.PROXY_HEADER_PATTERN=yj;fe.REGION_SET_PARAM=CTe;fe.SEC_HEADER_PATTERN=Ej;fe.SHA256_HEADER=Z0;fe.SIGNATURE_HEADER=gj;fe.SIGNATURE_QUERY_PARAM=wO;fe.SIGNED_HEADERS_QUERY_PARAM=dj;fe.SignatureV4=DO;fe.SignatureV4Base=ey;fe.TOKEN_HEADER=hj;fe.TOKEN_QUERY_PARAM=PO;fe.UNSIGNABLE_PATTERNS=ATe;fe.UNSIGNED_PAYLOAD=Rj;fe.clearCredentialCache=DTe;fe.createScope=J0;fe.getCanonicalHeaders=TO;fe.getCanonicalQuery=Aj;fe.getPayloadHash=X0;fe.getSigningKey=xj;fe.hasHeader=Tj;fe.moveHeadersToQuery=vj;fe.prepareRequest=vO;fe.signatureV4aContainer=ITe});function wTe(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=af(e,sf,bl):r?n=Jn(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function PTe(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var LO,NO,Dj=g(()=>{Ee();jt();LO=Ie(MO()),NO=t=>e=>{let r=e.credentials,n=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(f){f&&f!==r&&f!==o&&(n=!0),r=f;let m=wTe(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),y=PTe(e,m);if(n&&!y.attributed){let _=typeof r=="object"&&r!==null;o=async C=>{let x=await y(C);return _&&(!x.$source||Object.keys(x.$source).length===0)?Yi(x,"CREDENTIALS_CODE","e"):x},o.memoized=y.memoized,o.configBound=y.configBound,o.attributed=!0}else o=y},get(){return o},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=Jn(e.signer):e.regionInfoProvider?c=()=>Jn(e.region)().then(async f=>[await e.regionInfoProvider(f,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},f]).then(([f,m])=>{let{signingRegion:y,signingService:_}=f;e.signingRegion=e.signingRegion||y||m,e.signingName=e.signingName||_||e.serviceId;let C={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},A=e.signerConstructor||LO.SignatureV4;return new A(C)}):c=async f=>{f=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Jn(e.region)(),properties:{}},f);let m=f.signingRegion,y=f.signingName;e.signingRegion=e.signingRegion||m,e.signingName=e.signingName||y||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},C=e.signerConstructor||LO.SignatureV4;return new C(_)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:c,disableClockSkewCorrection:Jn(e.disableClockSkewCorrection??t)})}});var FO=g(()=>{RO();JH();tj();rj();Dj()});var OTe,$Te,Ij,wj=g(()=>{ye();OTe="AWS_DISABLE_CLOCK_SKEW_CORRECTION",$Te="disable_clock_skew_correction",Ij={environmentVariableSelector:t=>Ve(t,OTe,Be.ENV),configFileSelector:t=>Ve(t,$Te,Be.CONFIG),default:!1}});var Pj,Oj=g(()=>{ye();wj();Pj=ue(Ij)});var Dl={};Ct(Dl,{AWSSDKSigV4Signer:()=>_O,AwsSdkSigV4ASigner:()=>Ti,AwsSdkSigV4Signer:()=>tr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>No,NODE_SIGV4A_CONFIG_OPTIONS:()=>gf,getBearerTokenEnvKey:()=>W0,resolveAWSSDKSigV4Config:()=>kTe,resolveAwsSdkSigV4AConfig:()=>mf,resolveAwsSdkSigV4Config:()=>js,validateSigningProperties:()=>xl});var js,kTe,rr=g(()=>{FO();bO();FO();Oj();js=NO(Pj),kTe=js});var BO=st(Ra=>{var{setCredentialFeature:MTe}=(Ee(),F(kn)),{CredentialsProviderError:LTe}=(ye(),F(Br)),$j="AWS_ACCESS_KEY_ID",kj="AWS_SECRET_ACCESS_KEY",Mj="AWS_SESSION_TOKEN",Lj="AWS_CREDENTIAL_EXPIRATION",Nj="AWS_CREDENTIAL_SCOPE",Fj="AWS_ACCOUNT_ID",NTe=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[$j],r=process.env[kj],n=process.env[Mj],o=process.env[Lj],s=process.env[Nj],i=process.env[Fj];if(e&&r){let a={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...o&&{expiration:new Date(o)},...s&&{credentialScope:s},...i&&{accountId:i}};return MTe(a,"CREDENTIALS_ENV_VARS","g"),a}throw new LTe("Unable to find environment variable credentials.",{logger:t?.logger})};Ra.ENV_ACCOUNT_ID=Fj;Ra.ENV_CREDENTIAL_SCOPE=Nj;Ra.ENV_EXPIRATION=Lj;Ra.ENV_KEY=$j;Ra.ENV_SECRET=kj;Ra.ENV_SESSION=Mj;Ra.fromEnv=NTe});var ry=st(Xn=>{var{ProviderError:UO,CredentialsProviderError:Ca,loadConfig:zO}=(ye(),F(Br)),FTe=require("node:http"),{parseUrl:BTe}=(V(),F(wo)),qj=t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string",Hj=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),jj=1e3,zj=0,VO=({maxRetries:t=zj,timeout:e=jj})=>({maxRetries:t,timeout:e});function Ef(t){return new Promise((e,r)=>{let n=FTe.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{r(Object.assign(new UO("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{r(new UO("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:s=400}=o;(s<200||300<=s)&&(r(Object.assign(new UO("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let i=[];o.on("data",a=>{i.push(a)}),o.on("end",()=>{e(Buffer.concat(i)),n.destroy()})}),n.end()})}var qO=(t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},Sf="AWS_CONTAINER_CREDENTIALS_FULL_URI",ty="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",HO="AWS_CONTAINER_AUTHORIZATION_TOKEN",UTe=(t={})=>{let{timeout:e,maxRetries:r}=VO(t);return()=>qO(async()=>{let n=await zTe({logger:t.logger}),o=JSON.parse(await GTe(e,n));if(!qj(o))throw new Ca("Invalid response received from instance metadata service.",{logger:t.logger});return Hj(o)},r)},GTe=async(t,e)=>(process.env[HO]&&(e.headers={...e.headers,Authorization:process.env[HO]}),(await Ef({...e,timeout:t})).toString()),qTe="169.254.170.2",HTe=new Set(["localhost","127.0.0.1"]),jTe=new Set(["http:","https:"]),zTe=async({logger:t})=>{if(process.env[ty])return{hostname:qTe,path:process.env[ty]};if(process.env[Sf]){let e;try{e=new URL(process.env[Sf])}catch{throw new Ca(`${process.env[Sf]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!HTe.has(e.hostname))throw new Ca(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!jTe.has(e.protocol))throw new Ca(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new Ca(`The container metadata credential provider cannot be used unless the ${ty} or ${Sf} environment variable is set`,{tryNextLink:!1,logger:t})},jO=class t extends Ca{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},yf;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(yf||(yf={}));var VTe="AWS_EC2_METADATA_SERVICE_ENDPOINT",WTe="ec2_metadata_service_endpoint",KTe={environmentVariableSelector:t=>t[VTe],configFileSelector:t=>t[WTe],default:void 0},Il;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(Il||(Il={}));var QTe="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",YTe="ec2_metadata_service_endpoint_mode",JTe={environmentVariableSelector:t=>t[QTe],configFileSelector:t=>t[YTe],default:Il.IPv4},Vj=async()=>BTe(await XTe()||await ZTe()),XTe=async()=>zO(KTe)(),ZTe=async()=>{let t=await zO(JTe)();switch(t){case Il.IPv4:return yf.IPv4;case Il.IPv6:return yf.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(Il)}`)}},eve=300,tve=300,rve="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Bj=(t,e)=>{let r=eve+Math.floor(Math.random()*tve),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
36
+ For more information, please visit: `+rve);let o=t.originalExpiration??t.expiration;return{...t,...o?{originalExpiration:o}:{},expiration:n}},nve=(t,e={})=>{let r=e?.logger||console,n;return async()=>{let o;try{o=await t(),o.expiration&&o.expiration.getTime()<Date.now()&&(o=Bj(o,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),o=Bj(n,r);else throw s}return n=o,o}},Wj="/latest/meta-data/iam/security-credentials/",ove="/latest/api/token",GO="AWS_EC2_METADATA_V1_DISABLED",Uj="ec2_metadata_v1_disabled",Gj="x-aws-ec2-metadata-token",sve=(t={})=>nve(ive(t),{logger:t.logger}),ive=(t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:o,maxRetries:s}=VO(t),i=async(a,c)=>{if(e||c.headers?.[Gj]==null){let m=!1,y=!1,_=await zO({environmentVariableSelector:C=>{let A=C[GO];if(y=!!A&&A!=="false",A===void 0)throw new Ca(`${GO} not set in env, checking config file next.`,{logger:t.logger});return y},configFileSelector:C=>{let A=C[Uj];return m=!!A&&A!=="false",m},default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||_){let C=[];throw t.ec2MetadataV1Disabled&&C.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),m&&C.push(`config file profile (${Uj})`),y&&C.push(`process environment variable (${GO})`),new jO(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${C.join(", ")}].`)}}let f=(await qO(async()=>{let m;try{m=await cve(c)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)).trim();return qO(async()=>{let m;try{m=await uve(f,c,t)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)};return async()=>{let a=await Vj();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),i(s,{...a,timeout:o});{let c;try{c=(await ave({...a,timeout:o})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),i(s,{...a,timeout:o})}return i(s,{...a,headers:{[Gj]:c},timeout:o})}}},ave=async t=>Ef({...t,path:ove,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),cve=async t=>(await Ef({...t,path:Wj})).toString(),uve=async(t,e,r)=>{let n=JSON.parse((await Ef({...e,path:Wj+t})).toString());if(!qj(n))throw new Ca("Invalid response received from instance metadata service.",{logger:r.logger});return Hj(n)};Xn.DEFAULT_MAX_RETRIES=zj;Xn.DEFAULT_TIMEOUT=jj;Xn.ENV_CMDS_AUTH_TOKEN=HO;Xn.ENV_CMDS_FULL_URI=Sf;Xn.ENV_CMDS_RELATIVE_URI=ty;Xn.Endpoint=yf;Xn.fromContainerMetadata=UTe;Xn.fromInstanceMetadata=sve;Xn.getInstanceMetadataEndpoint=Vj;Xn.httpRequest=Ef;Xn.providerConfigFromInit=VO});var zs=st(Rf=>{var{hasOwn:Zj}=(j(),F(To)),{streamCollector:lve}=(j(),F(To));Rf.streamCollector=lve;var{buildQueryString:e6,HttpResponse:t6}=(V(),F(wo)),ny=require("node:https"),{Readable:dve}=require("node:stream"),WO=require("node:http2");function sy(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let o=new Error("Request aborted");return o.name="AbortError",o.cause=e,o}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}var pve=["ECONNRESET","EPIPE","ETIMEDOUT"],r6=t=>{let e={};for(let r in t){if(!Zj(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},vr={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},Kj=1e3,fve=(t,e,r=0)=>{if(!r)return-1;let n=o=>{let s=vr.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-o),i=a=>{a?.connecting?a.on("connect",()=>{vr.clearTimeout(s)}):vr.clearTimeout(s)};t.socket?i(t.socket):t.on("socket",i)};return r<2e3?(n(0),0):vr.setTimeout(n.bind(null,Kj),Kj)},mve=(t,e,r=0,n,o)=>r?vr.setTimeout(()=>{let s=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let i=Object.assign(new Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(i),e(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",o?.warn?.(s)},r):-1,gve=3e3,hve=(t,{keepAlive:e,keepAliveMsecs:r},n=gve)=>{if(e!==!0)return-1;let o=()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",s=>{s.setKeepAlive(e,r||0)})};return n===0?(o(),0):vr.setTimeout(o,n)},Qj=3e3,Sve=(t,e,r=0)=>{let n=o=>{let s=r-o,i=()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};t.socket?(t.socket.setTimeout(s,i),t.on("close",()=>t.socket?.removeListener("timeout",i))):t.setTimeout(s,i)};return 0<r&&r<6e3?(n(0),0):vr.setTimeout(n.bind(null,r===0?0:Qj),Qj)},Yj=6e3;async function n6(t,e,r=Yj,n=!1){let o=e.headers,s=o?o.Expect||o.expect:void 0,i=-1,a=!0;!n&&s==="100-continue"&&(a=await Promise.race([new Promise(c=>{i=Number(vr.setTimeout(()=>c(!0),Math.max(Yj,r)))}),new Promise(c=>{t.on("continue",()=>{vr.clearTimeout(i),c(!0)}),t.on("response",()=>{vr.clearTimeout(i),c(!1)}),t.on("error",()=>{vr.clearTimeout(i),c(!1)})})])),a&&yve(t,e.body)}function yve(t,e){if(e instanceof dve){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let o=e;if(typeof o=="object"&&o.buffer&&typeof o.byteOffset=="number"&&typeof o.byteLength=="number"){t.end(Buffer.from(o.buffer,o.byteOffset,o.byteLength));return}t.end(Buffer.from(e));return}t.end()}var Eve=0,oy,Jj,KO=class t{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:o,requests:s,maxSockets:i}=e;if(typeof i!="number"||i===1/0||Date.now()-15e3<r)return r;if(o&&s)for(let c in o){if(!Zj(o,c))continue;let u=o[c]?.length??0,f=s[c]?.length??0;if(u>=i&&f>=2*i)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${f} additional requests are enqueued.
37
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
38
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(this.resolveDefaultConfig(o))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let o=this.config,s=o.logger,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,f=-1,m=-1,y=-1,_=-1,C=-1,A=()=>{vr.clearTimeout(f),vr.clearTimeout(m),vr.clearTimeout(y),vr.clearTimeout(_),vr.clearTimeout(C)},x=async ie=>{await u,A(),a(ie)},T=async ie=>{await u,A(),c(ie)};if(r?.aborted){let ie=sy(r);T(ie);return}let I=e.headers,q=I?(I.Expect??I.expect)==="100-continue":!1,H=i?o.httpsAgent:o.httpAgent;q&&!this.externalAgent&&(H=new(i?ny.Agent:oy)({keepAlive:!1,maxSockets:1/0})),f=vr.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(H,this.socketWarningTimestamp,s)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));let me=e.query?e6(e.query):"",et;if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";et=`${ie}:${Gt}`}let ot=e.path;me&&(ot+=`?${me}`),e.fragment&&(ot+=`#${e.fragment}`);let tt=e.hostname??"";tt[0]==="["&&tt.endsWith("]")?tt=e.hostname.slice(1,-1):tt=e.hostname;let pt={headers:e.headers,host:tt,method:e.method,path:ot,port:e.port,agent:H,auth:et},Jr=(i?ny.request:Jj)(pt,ie=>{let Gt=new t6({statusCode:ie.statusCode||-1,reason:ie.statusMessage,headers:r6(ie.headers),body:ie});x({response:Gt})});if(Jr.on("error",ie=>{pve.includes(ie.code)?T(Object.assign(ie,{name:"TimeoutError"})):T(ie)}),r){let ie=()=>{Jr.destroy();let Gt=sy(r);T(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Jr.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}let fn=n??o.requestTimeout;m=fve(Jr,T,o.connectionTimeout),y=mve(Jr,T,fn,o.throwOnRequestTimeout,s??console),_=Sve(Jr,T,o.socketTimeout);let Xt=pt.agent;typeof Xt=="object"&&"keepAlive"in Xt&&(C=hve(Jr,{keepAlive:Xt.keepAlive,keepAliveMsecs:Xt.keepAliveMsecs})),u=n6(Jr,e,fn,this.externalAgent).catch(ie=>(A(),c(ie)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:u}=e||{},f=!0,m=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let y=require("node:http"),{Agent:_,request:C}=y.default??y;return Jj=C,oy=_,i instanceof oy||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new oy({keepAlive:f,maxSockets:m,...i})},httpsAgent:a instanceof ny.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new ny.Agent({keepAlive:f,maxSockets:m,...a}),logger:u}}},_ve=new Uint16Array(1),_f=class{id=_ve[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},QO=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new _f(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},YO=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=o.poll();if(u)return u.retain(),u}let s=new _f(this.connect(n)),i=s.deref();this.config.maxConcurrency&&i.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,s)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};return i.on("goaway",a),i.on("error",c),i.on("frameError",c),i.on("close",c),r.requestTimeout&&i.setTimeout(r.requestTimeout,c),o.offerLast(s),s.retain(),s}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),o=new _f(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let i=()=>{o.destroy()};s.on("error",i),s.on("frameError",i),s.on("close",i);let a=r.requestTimeout??3e5;return s.setTimeout(a,i),o.retain(),o}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[r]={sessions:o}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new QO;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?WO.connect(e):WO.connect(e,this.connectOptions)}},{constants:Xj}=WO,JO=class t{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new YO({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(o||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:f,nodeHttp2ConnectOptions:m}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),f&&this.connectionManager.setMaxConcurrentStreams(f),m&&this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,a=i||o,c=n??s;return new Promise((u,f)=>{let m=!1,y,_=async ie=>{await y,u(ie)},C=async ie=>{await y,f(ie)};if(r?.aborted){m=!0;let ie=sy(r);C(ie);return}let{hostname:A,method:x,port:T,protocol:I,query:q}=e,H="";if(e.username!=null||e.password!=null){let ie=e.username??"",Gt=e.password??"";H=`${ie}:${Gt}@`}let me=`${I}//${H}${A}${T?`:${T}`:""}`,et={destination:new URL(me)},ot={requestTimeout:this.config?.sessionTimeout,isEventStream:o},tt=a?this.connectionManager.createIsolatedSession(et,ot):this.connectionManager.lease(et,ot),pt=tt.deref(),Yr=ie=>{a&&tt.destroy(),m=!0,C(ie)},Jr=q?e6(q):"",fn=e.path;Jr&&(fn+=`?${Jr}`),e.fragment&&(fn+=`#${e.fragment}`);let Xt=pt.request({...e.headers,[Xj.HTTP2_HEADER_PATH]:fn,[Xj.HTTP2_HEADER_METHOD]:x});if(c&&Xt.setTimeout(c,()=>{Xt.close();let ie=new Error(`Stream timed out because of no activity for ${c} ms`);ie.name="TimeoutError",Yr(ie)}),r){let ie=()=>{Xt.close();let Gt=sy(r);Yr(Gt)};if(typeof r.addEventListener=="function"){let Gt=r;Gt.addEventListener("abort",ie,{once:!0}),Xt.once("close",()=>Gt.removeEventListener("abort",ie))}else r.onabort=ie}Xt.on("frameError",(ie,Gt,qbe)=>{Yr(new Error(`Frame type id ${ie} in stream id ${qbe} has failed with code ${Gt}.`))}),Xt.on("error",Yr),Xt.on("aborted",()=>{Yr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Xt.rstCode}.`))}),Xt.on("response",ie=>{let Gt=new t6({statusCode:ie[":status"]??-1,headers:r6(ie),body:Xt});m=!0,_({response:Gt}),a&&(pt.close(),Xt.on("end",()=>{tt.destroy()}))}),Xt.on("close",()=>{if(a?tt.destroy():this.connectionManager.release(et,tt),!m){let ie=new Error("Unexpected error: http2 request did not get a response");pt.destroyed&&(ie.name="TimeoutError"),Yr(ie)}}),y=n6(Xt,e,c)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Rf.DEFAULT_REQUEST_TIMEOUT=Eve;Rf.NodeHttp2Handler=JO;Rf.NodeHttpHandler=KO});var XO=st(s6=>{var{setCredentialFeature:Rve}=(Ee(),F(kn)),{CredentialsProviderError:$c}=(ye(),F(Br)),{NodeHttpHandler:Cve}=zs(),bve=require("node:fs/promises"),{HttpRequest:Ave}=(V(),F(wo)),{sdkStreamMixin:xve,parseRfc3339DateTime:Tve}=(j(),F(To)),vve="169.254.170.2",Dve="169.254.170.23",Ive="[fd00:ec2::23]",wve=(t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===vve||t.hostname===Dve||t.hostname===Ive)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=o=>{let s=parseInt(o,10);return 0<=s&&s<=255};if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new $c(`URL not accepted. It must either be HTTPS or match one of the following:
39
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
40
+ - ECS container host 169.254.170.2
41
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};function Pve(t){return new Ave({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}async function Ove(t,e){let n=await xve(t.body).transformToString();if(t.statusCode===200){let o=JSON.parse(n);if(typeof o.AccessKeyId!="string"||typeof o.SecretAccessKey!="string"||typeof o.Token!="string"||typeof o.Expiration!="string")throw new $c("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.Token,expiration:Tve(o.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let o={};try{o=JSON.parse(n)}catch{}throw Object.assign(new $c(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:o.Code,Message:o.Message})}throw new $c(`Server responded with status: ${t.statusCode}`,{logger:e})}var $ve=(t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(s=>setTimeout(s,r))}return await t()},kve="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Mve="http://169.254.170.2",Lve="AWS_CONTAINER_CREDENTIALS_FULL_URI",Nve="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Fve="AWS_CONTAINER_AUTHORIZATION_TOKEN",Bve=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[kve],n=t.awsContainerCredentialsFullUri??process.env[Lve],o=t.awsContainerAuthorizationToken??process.env[Fve],s=t.awsContainerAuthorizationTokenFile??process.env[Nve],i=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsRelativeUri will take precedence.")),o&&s&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${Mve}${r}`;else if(n)e=n;else throw new $c(`No HTTP credential provider host provided.
42
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);wve(a,t.logger);let c=Cve.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,f=$ve(async()=>{let m=Pve(a);s?m.headers.Authorization=o6((await bve.readFile(s)).toString()):o&&(m.headers.Authorization=o6(o));try{let y=await c.handle(m,{requestTimeout:u});return Ove(y.response).then(_=>Rve(_,"CREDENTIALS_HTTP","z"))}catch(y){throw new $c(String(y),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await f()}finally{c.destroy?.()}}},o6=t=>{if(t.includes(`\r
43
+ `))throw new $c("Authorization token contains invalid \\r\\n sequence.");return t};s6.fromHttp=Bve});function Uve(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Gve(t){return{schemeId:"smithy.api#noAuth"}}var i6,a6,c6,ZO=g(()=>{rr();J();i6=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});a6=t=>{let e=[];return t.operation==="CreateToken"?e.push(Gve(t)):e.push(Uve(t)),e},c6=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var u6,l6,e$=g(()=>{u6=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),l6={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ba,Cf=g(()=>{ba={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var t$,d6=g(()=>{t$=Symbol("@smithy/core/cbor::tagSymbol")});var bf,r$=g(()=>{bf=(t,e)=>{let r=n=>{let o=n;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o};if(e.__type!==void 0)return r(e.__type)}});function dy(t){let e=t.getSchema(),r=e[p6];if(r)return r;let n=[],o=[];for(let[a,c]of t.structIterator())n.push(a),o.push(c);let s=new Array(n.length);for(let a=0;a<n.length;++a)s[a]=Hve(n[a]);let i={memberNames:n,memberSchemas:o,encodedKeys:s};return e[p6]=i,i}function Hve(t){let e;py?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let o=new Uint8Array(n+r);return n===1?o[0]=96|r:n===2?(o[0]=120,o[1]=r):(o[0]=121,o[1]=r>>8,o[2]=r&255),o.set(e,n),o}function S6(t){return py?Buffer.allocUnsafe(t):new Uint8Array(t)}function $l(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Vs(xr());return}Ue(1),de[se++]=246;return}if(t.isUnitSchema()){Ue(1),nr(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){iy(e);return}if(t.isTimestampSchema()&&e instanceof Date){i$(e);return}if(t.isStructSchema()){zve(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){g6(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){o$(t,e,!1,n);return}if(e instanceof Date){i$(e);return}if(e instanceof Uint8Array){iy(e);return}if(e instanceof Y){_6(e);return}if(e[t$]){let s=e;E6(s.tag,s.value);return}if(t.isDocumentSchema()){Array.isArray(e)?g6(t,e,!0,n):o$(t,e,!0,n);return}if(t.isBigDecimalSchema()){kl(e);return}o$(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let s=(n?.base64Decoder??Xe)(e);iy(s);return}Vs(e);return}if(typeof e=="number"){Ue(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?fy(e):f$(e);return}if(typeof e=="boolean"){Ue(1),de[se++]=224|(e?21:20);return}if(typeof e=="bigint"){uy(e);return}Vs(String(e))}function zve(t,e,r){if(t.isUnionSchema()){let m=!1;for(let[y,_]of t.structIterator()){let C=e[y];if(C!=null){Ue(9),nr(5,1),Vs(y),$l(_,C,t,r),m=!0;break}}if(!m){let{$unknown:y}=e;Array.isArray(y)?(Ue(9),nr(5,1),Vs(y[0]),kl(y[1])):(Ue(9),nr(5,0))}return}let n=dy(t),{memberNames:o,memberSchemas:s,encodedKeys:i}=n,a=o.length,c;a<24?c=1:a<256?c=2:c=3,Ue(c);let u=se;se+=c;let f=0;for(let m=0;m<a;++m){let y=e[o[m]];if(y==null&&!s[m].isIdempotencyToken())continue;let _=i[m];Ue(_.length),de.set(_,se),se+=_.length,$l(s[m],y,t,r),++f}if(typeof e.__type=="string")for(let m in e)W(e,m)&&(o.includes(m)||(Vs(m),kl(e[m]),++f));c===1?de[u]=160|f:c===2?(de[u]=184,de[u+1]=f):(de[u]=185,de[u+1]=f>>8,de[u+2]=f&255)}function g6(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema();if(r||o){let i=[];for(let a=0;a<e.length;++a){let c=e[a];r?c!==void 0&&i.push(c):(c!=null||o)&&i.push(c)}Ue(9),nr(4,i.length);for(let a=0;a<i.length;++a)$l(s,i[a],void 0,n)}else{let i=0;for(let a=0;a<e.length;++a)e[a]!=null&&++i;Ue(9),nr(4,i);for(let a=0;a<e.length;++a)e[a]!=null&&$l(s,e[a],void 0,n)}}function o$(t,e,r,n){let o=!!t.getMergedTraits().sparse,s=t.getValueSchema(),i=[];for(let a in e){if(!W(e,a))continue;let c=e[a];(r?c!==void 0:c!=null||o)&&i.push(a)}Ue(9),nr(5,i.length);for(let a=0;a<i.length;++a){let c=i[a];Vs(c),$l(s,e[c],void 0,n)}}function kl(t){if(t==null){Ue(1),de[se++]=246;return}if(typeof t=="string"){Vs(t);return}if(typeof t=="number"){Ue(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?fy(t):f$(t);return}if(typeof t=="boolean"){Ue(1),de[se++]=224|(t?21:20);return}if(typeof t=="bigint"){uy(t);return}if(t instanceof Uint8Array){iy(t);return}if(t instanceof Date){i$(t);return}if(t instanceof Y){_6(t);return}if(t[t$]){let e=t;E6(e.tag,e.value);return}if(Array.isArray(t)){Ue(9),nr(4,t.length);for(let e=0;e<t.length;++e)kl(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Ue(9),nr(5,e.length);for(let r=0;r<e.length;++r)Vs(e[r]),kl(t[e[r]]);return}Vs(String(t))}function Ue(t){if(se+t>de.length){let e=de.length*2;for(;e<se+t;)e*=2;let r=S6(e);r.set(de.subarray(0,se)),de=r,Mc=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function nr(t,e){if(e<24)de[se++]=t<<5|e;else if(e<256)de[se++]=t<<5|24,de[se++]=e;else if(e<65536)de[se++]=t<<5|25,de[se++]=e>>8,de[se++]=e&255;else if(e<4294967296)de[se++]=t<<5|26,Mc.setUint32(se,e),se+=4;else{de[se++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Mc.setUint32(se,r),Mc.setUint32(se+4,n),se+=8}}function y6(t,e){let r=Number(e);if(r<4294967296){nr(t,r);return}de[se++]=t<<5|27,Mc.setBigUint64(se,e),se+=8}function Vs(t){let e=t.length;if(e<=23){let r=wl.get(t);if(r){Ue(r.bytes.length),de.set(r.bytes,se),se+=r.bytes.length,r.epoch=n$;return}let n=se;h6(t,e);let o=se,s=Uint8Array.prototype.slice.call(de,n,o);if(wl.size>=f6){if(m6)return;let i=0;for(let[a,c]of wl){if(i>=1024)break;c.epoch!==n$&&(wl.delete(a),++i)}if(i===0){m6=!0;return}}wl.size<f6&&wl.set(t,{epoch:n$,bytes:s});return}h6(t,e)}function h6(t,e){if(py){let r=e*3;Ue(r+9);let n=Buffer.byteLength(t);nr(3,n),se+=de.write(t,se)}else{let r=e*3;Ue(r+9);let n=se,s=jve.encodeInto(t,de.subarray(n+9)).written,i;s<24?i=1:s<256?i=2:s<65536?i=3:s<4294967296?i=5:i=9,i<9&&de.copyWithin(n+i,n+9,n+9+s),se=n,nr(3,s),se+=s}}function f$(t){Ue(9),de[se++]=251,Mc.setFloat64(se,t),se+=8}function fy(t){Ue(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;nr(r,n)}function uy(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Ue(9),y6(r,n);else{let o=n.toString(2),s=Math.ceil(o.length/8),i=new Uint8Array(s),a=n;for(let c=s-1;c>=0;--c)i[c]=Number(a&BigInt(255)),a>>=BigInt(8);Ue(s+16),de[se++]=e?194:195,nr(2,s),de.set(i,se),se+=s}}function iy(t){Ue(t.length+9),nr(2,t.length),de.set(t,se),se+=t.length}function E6(t,e){Ue(9),typeof t=="bigint"?y6(6,t):nr(6,t),kl(e)}function _6(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let o=e.indexOf("."),s=o===-1?0:e.length-o-1,i=r-BigInt(s),a=BigInt(e.replace(".",""));Ue(9),de[se++]=196,nr(4,2),Ue(9),i>=-0x20000000000000n&&i<=0x1fffffffffffffn?fy(Number(i)):uy(i),uy(a)}function i$(t){Ue(18),nr(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?fy(e):f$(e)}var cy,p6,py,jve,s$,de,Mc,se,f6,wl,n$,m6,m$=g(()=>{oe();V();ae();j();d6();cy=class extends Zt{write(e,r){se=0;let n=B.of(e);$l(n,r,void 0,this.serdeContext)}flush(){let e=de.subarray(0,se);return se=0,de=S6(s$),Mc=new DataView(de.buffer,de.byteOffset,de.byteLength),e}},p6=Symbol.for("@smithy/cbor-struct-cache");py=typeof Buffer<"u",jve=new TextEncoder,s$=2048,de=py?Buffer.allocUnsafe(s$):new Uint8Array(s$),Mc=new DataView(de.buffer,de.byteOffset,de.byteLength),se=0,f6=2048,wl=new Map,n$=0,m6=!1});function Ln(t){if(K>=or)throw new Error("unexpected end of CBOR payload.");let e=(gt[K]&224)>>5;if((gt[K]&31)===31&&e>=2&&e<=5)return Yve(t,e);switch(e){case 0:return tDe();case 1:return rDe();case 2:return yy();case 3:return Ml();case 4:return Vve(t);case 5:return Wve(t);case 6:return Qve(t);case 7:return oDe();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function Vve(t){let e=Sy(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let o=0;o<e;++o)n[o]=Ln(r);return n}function Wve(t){let e=Sy();if(t.isStructSchema())return Kve(t,e,K);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let o=0;o<e;++o){let s=Ml();n[s]=Ln(r)}return n}function Kve(t,e,r){let n=t.isUnionSchema(),o=dy(t),{memberSchemas:s,encodedKeys:i,memberNames:a}=o,c=i.length,u={},f,m,y=0,_=!1,C=0;for(let A=0;A<e;++A){let x=A6(i,c,C);if(x>=0){C=x+1,C>=c&&(C=0);let T=Ln(s[x]);T!=null&&(u[a[x]]=T)}else{let T=Ml(),I=Ln(B.of(15));T==="__type"&&typeof I=="string"?_=!0:(f=T,m=I,++y)}}if(n){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}else if(_){K=r;let A=B.of(15);for(let x=0;x<e;++x){let T=Ml(),I=Ln(A);T in u||(u[T]=I)}}return u}function Qve(t){let e=hy(),r=typeof e=="bigint"?Number(e):e;if(r===1){let s=B.of(15),i=Ln(s);return na(i)}if(r===2||r===3){let s=yy(),i=BigInt(0);for(let a=0;a<s.length;++a)i=i<<BigInt(8)|BigInt(s[a]);return r===3?-i-BigInt(1):i}if(r===4){let s=B.of(15),i=Ln(s),[a,c]=i,u=c<0?-1:1,f=BigInt(u)*BigInt(c),m=String(f),y=c<0?"-":"",_;if(typeof a=="number"&&Math.abs(a)<=2**28){let A=a,x="0".repeat(Math.abs(A)+1)+m;_=A===0?x:x.slice(0,x.length+A)+"."+x.slice(A),_=_.replace(/^0+/g,""),_===""&&(_="0"),_[0]==="."&&(_="0"+_),_=y+_}else{let A=BigInt(a);if(m.length===1)_=y+m+"e"+String(A);else{let x=A+BigInt(m.length-1);_=y+m[0]+"."+m.slice(1)+"e"+String(x)}}return Vh(_)}let n=B.of(15),o=Ln(n);return{tag:x6(e),value:o}}function Yve(t,e){switch(e){case 3:return Jve();case 2:return Xve();case 4:return Zve(t);case 5:return eDe(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function Jve(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return b6?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):h$.decode(n)}let r=yy();t.push(r),e+=r.length}throw new Error("expected break marker.")}function Xve(){K+=1;let t=[],e=0;for(;K<or;){if(gt[K]===255){K+=1;let n=new Uint8Array(e),o=0;for(let s=0;s<t.length;++s)n.set(t[s],o),o+=t[s].length;return n}let r=yy();t.push(r),e+=r.length}throw new Error("expected break marker.")}function Zve(t){K+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;K<or;){if(gt[K]===255)return K+=1,r;r.push(Ln(e))}throw new Error("expected break marker.")}function eDe(t){if(K+=1,t.isStructSchema()){let n=dy(t),{memberSchemas:o,encodedKeys:s,memberNames:i}=n,a=s.length,c=t.isUnionSchema(),u={},f,m,y=0,_=0;for(;K<or;){if(gt[K]===255){if(K+=1,c){let A=!0;for(let x in u)if(W(u,x)){A=!1;break}A&&y===1&&(u.$unknown=[f,m])}return u}let C=A6(s,a,_);if(C>=0){_=C+1,_>=a&&(_=0);let A=Ln(o[C]);A!=null&&(u[i[C]]=A)}else{let A=Ml(),x=Ln(B.of(15));A!=="__type"&&(f=A,m=x,++y)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;K<or;){if(gt[K]===255)return K+=1,r;let n=Ml();r[n]=Ln(e)}throw new Error("expected break marker.")}function A6(t,e,r){let n=t[r];if(K+n.length<=or&&C6(K,n))return K+=n.length,r;for(let o=0;o<e;++o){if(o===r)continue;let s=t[o];if(K+s.length<=or&&C6(K,s))return K+=s.length,o}return-1}function C6(t,e){let r=e.length;if(gt[t]!==e[0])return!1;for(let n=1;n<r;++n)if(gt[t+n]!==e[n])return!1;return!0}function hy(){let t=gt[K]&31;if(t<24)return K+=1,t;switch(t){case 24:return or-K<2&&vi(1),K+=2,gt[K-1];case 25:return or-K<3&&vi(2),K+=3,Aa.getUint16(K-2);case 26:return or-K<5&&vi(4),K+=5,Aa.getUint32(K-4);case 27:{or-K<9&&vi(8),K+=9;let e=Aa.getUint32(K-8);return e<2097152?e*4294967296+Aa.getUint32(K-4):Aa.getBigUint64(K-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function Sy(){let t=hy();return typeof t=="bigint"?Number(t):t}function tDe(){let t=hy();return x6(t)}function rDe(){let t=hy();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function yy(){let t=Sy();or-K<t&&vi(t);let e=K;return K+=t,gt.subarray(e,e+t)}function Ml(){let t=Sy();or-K<t&&vi(t);let e=K;return K+=t,t<24?nDe(e,t):S$?gt.toString("utf-8",e,e+t):h$.decode(gt.subarray(e,e+t))}function nDe(t,e){let r=e;for(let i=0;i<e;++i)r=r*31+gt[t+i]|0;let n=r>>>0&y$-1,o=R6[n];if(o!==void 0&&o.length===e){let i=!0;for(let a=0;a<e;++a)if(o.charCodeAt(a)!==gt[t+a]){i=!1;break}if(i)return g$[n]=Tf,o}let s=S$?gt.toString("utf-8",t,t+e):h$.decode(gt.subarray(t,t+e));return g$[n]!==Tf&&(R6[n]=s,g$[n]=Tf),s}function oDe(){let t=K,e=gt[t]&31;switch(e){case 21:return K=t+1,!0;case 20:return K=t+1,!1;case 22:return K=t+1,null;case 23:return K=t+1,null;case 25:return or-t<3&&vi(2),K=t+3,sDe(gt[t+1],gt[t+2]);case 26:return or-t<5&&vi(4),K=t+5,Aa.getFloat32(t+1);case 27:return or-t<9&&vi(8),K=t+9,Aa.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function sDe(t,e){let r=t>>7,n=(t&124)>>2,o=(t&3)<<8|e,s=r===0?1:-1;return n===0?o===0?0:s*(Math.pow(2,-14)*(o/1024)):n===31?o===0?s*(1/0):NaN:s*(Math.pow(2,n-15)*(1+o/1024))}function x6(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function vi(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function my(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return na(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return na(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof Y||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),o=[];for(let s of e)o.push(my(n,s));return o}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let o in e)W(e,o)&&(r[o]=my(n,e[o]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),o;if(n){o=new Set;for(let s in e)W(e,s)&&s!=="__type"&&o.add(s)}for(let[s,i]of t.structIterator())n&&o.delete(s),e[s]!=null&&(r[s]=my(i,e[s]));if(n&&o?.size===1){let s=!0;for(let i in r)if(W(r,i)){s=!1;break}if(s){let i=o.values().next().value;r.$unknown=[i,e[i]]}}else if(typeof e.__type=="string")for(let s in e)W(e,s)&&(s in r||(r[s]=e[s]))}return r}var gy,b6,h$,gt,S$,Aa,K,or,y$,R6,g$,Tf,T6=g(()=>{oe();V();ae();j();m$();gy=class extends Zt{read(e,r){return gt=r,S$=b6&&r instanceof Buffer,Aa=new DataView(r.buffer,r.byteOffset,r.byteLength),K=0,or=r.length,Tf=Tf+1&65535,Ln(B.of(e))}readValue(e,r){return my(B.of(e),r)}},b6=typeof Buffer<"u",h$=new TextDecoder,gt=new Uint8Array(0),S$=!1,Aa=new DataView(new ArrayBuffer(0)),K=0,or=0,y$=2048,R6=new Array(y$),g$=new Uint16Array(y$),Tf=0});var Ey,v6=g(()=>{V();m$();T6();Ey=class extends Zt{createSerializer(){let e=new cy;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new gy;return e.setSerdeContext(this.serdeContext),e}}});var vf,D6=g(()=>{V();ae();oe();v6();r$();vf=class extends Qn{codec=new Ey;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),mn(e.input)==="unit"?(delete o.body,delete o.headers["content-type"]):(o.body||(this.serializer.write(15,{}),o.body=this.serializer.flush()),o.body instanceof Uint8Array&&(o.headers["content-length"]=String(o.body.byteLength)));let{service:s,operation:i}=Le(n),a=`/service/${s}/operation/${i}`;return o.path.endsWith("/")?o.path+=a.slice(1):o.path+=a,o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=bf(n,o)??"Unknown",a=["*"],{defaultNamespace:c}=this.options;a.unshift(c);let[u,f]=i.includes("#")?i.split("#"):[void 0,i];u&&a.unshift(u);let m={$metadata:s,$fault:n.statusCode<500?"client":"server"},y=[this.compositeErrorRegistry];u&&y.push(Fe.for(u)),y.push(Fe.for(c));let[_,C,A]=this.resolveError(f,a,y);if(A==="native"||A==="synthetic"){o.Message&&(o.message=o.Message);let H=A==="synthetic"?new C({name:f}):new Error(f);throw Object.assign(H,m,o)}let x=B.of(_),T=o.message??o.Message??"Unknown",I=new C({}),q={};for(let[H,me]of x.structIterator())q[H]=this.deserializer.readValue(me,o[H]);throw Object.assign(I,m,{$fault:x.getMergedTraits().error,message:T},q)}getDefaultContentType(){return"application/cbor"}}});var I6=g(()=>{r$();D6()});var Zn,Ll=g(()=>{J();ae();Zn=class{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),o=Object.values(n).find(s=>!!s.getMergedTraits().httpPayload);if(o){let s=o.getMergedTraits().mediaType;return s||(o.isStringSchema()?"text/plain":o.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(i=>{let{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:f,httpPrefixHeaders:m}=i.getMergedTraits();return!a&&!c&&!u&&!f&&m===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,o,s,i){let a=e;e.includes("#")&&([,a]=e.split("#"));let c={$metadata:s,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:c}}catch{o.message=o.message??o.Message??"UnknownError";let f=this.errorRegistry,m=f.getBaseException();if(m){let C=f.getErrorCtor(m)??Error;throw this.decorateServiceException(Object.assign(new C({name:a}),c),o)}let y=o,_=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(_),{name:a},c),o)}}compose(e,r,n){let o=n;r.includes("#")&&([o]=r.split("#"));let s=Fe.for(o),i=Fe.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(s),e.copyFrom(i),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,o=Sc(e,r);n&&(o.message=n);let s=o.Error??{};s.Type=o.Error?.Type,s.Code=o.Error?.Code,s.Message=o.Error?.message??o.Error?.Message??n,o.Error=s;let i=o.$metadata.requestId;return i&&(o.RequestId=i),o}return Sc(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[o,s]=n.split(";"),i=Object.keys(e),a={Code:o,Type:s};e.Code=o,e.Type=s;for(let c=0;c<i.length;c++){let u=i[c];a[u==="message"?"Message":u]=e[u]}delete a.__type,e.Error=a}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(o=>B.of(o).getMergedTraits().awsQueryError?.[0]===r)}}}});var _y,w6=g(()=>{I6();ae();Ll();_y=class extends vf{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),o}async handleError(e,r,n,o,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(o,n);let i=(()=>{let C=n.headers["x-amzn-query-error"];return C&&this.awsQueryCompatible?C.split(";")[0]:bf(n,o)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({}),_={};for(let[C,A]of u.structIterator())o[C]!=null&&(_[C]=this.deserializer.readValue(A,o[C]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(o,_),this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}}});var ht,Bo=g(()=>{ht=class{serdeContext;setSerdeContext(e){this.serdeContext=e}}});var xa,Ry=g(()=>{xa=class{from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),o=new Set(n);o.delete("__type"),this.keys=o}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function Cy(){if(Df===void 0)try{if(typeof Buffer!="function")Df=!1;else{let t=JSON.parse(Buffer.from([123,125]));Df=t!==null&&typeof t=="object"}}catch{Df=!1}return Df}var Df,E$=g(()=>{});function Nl(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?aDe(n,e)?e:new Y(n,"bigDecimal"):iDe(n)?new Y(n,"bigDecimal"):/[eE]/.test(n)?cDe(n):BigInt(n)}return e}function iDe(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function aDe(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return _$(t)===_$(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===_$(n):!1}function _$(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),o;if(n===-1)o=r;else{let s=parseInt(r.slice(n+1),10),i=r.slice(0,n),a=i.indexOf("."),c,u;a===-1?(c=i,u=i.length):(c=i.slice(0,a)+i.slice(a+1),u=a),c=c.replace(/0+$/,"")||"0";let f=u+s;c==="0"?o="0":f<=0?o="0."+"0".repeat(-f)+c:f>=c.length?o=c+"0".repeat(f-c.length):o=c.slice(0,f)+"."+c.slice(f)}return o.includes(".")&&(o=o.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+o}function cDe(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),o=t.slice(n?1:0,e),s=o.indexOf("."),i,a;if(s===-1)i=o,a=r;else{i=o.slice(0,s)+o.slice(s+1);let u=o.length-s-1;a=r-u}i=i.replace(/0+$/,"")||"0";let c=BigInt(i)*10n**BigInt(a+(o.replace(".","").length-i.length));return n?-c:c}var by=g(()=>{j()});function Fl(t){let e=B.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(R$ in r)return r[R$];let n=Ay(e,new Set);return r[R$]=n,n}return Ay(e,new Set)}function Ay(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(Ay(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(Ay(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var R$,xy=g(()=>{ae();R$=Symbol.for("@aws-sdk/reviver")});var Ty,C$=g(()=>{V();j();Ty=(t,e)=>At(t,e).then(r=>(e?.utf8Encoder??ze)(r))});async function Lc(t,e,r){let n;if(Cy()&&typeof t?.[Symbol.asyncIterator]=="function"){let s=await At(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?n=s:n=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(n||(n=await Ty(t,e)),n.length===0)return{};let o=r&&Fl(r)?Nl:void 0;try{return JSON.parse(n,o)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),s}}var O6,P6,b$,vy,Dy,$6,Bl=g(()=>{V();C$();E$();by();xy();O6=async(t,e)=>{let r=await Lc(t,e);return r.message=r.message??r.Message,r},P6=(t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),b$=t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},vy=(t,e)=>$6(t,e,["header","code","type"]),Dy=(t,e,r=!1)=>$6(t,e,r?["code","header","type"]:["type","code","header"]),$6=({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let o=P6(t??{},"x-amzn-errortype");if(o!==void 0)return b$(t[o]);break;case"code":let s=P6(e??{},"code");if(s&&e[s]!==void 0)return b$(e[s]);break;case"type":if(e?.__type!==void 0)return b$(e.__type);break}}});function eo(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var If=g(()=>{});var Ul,A$=g(()=>{V();ae();j();Bo();Ry();E$();by();xy();Bl();If();Ul=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Fl(e)?Nl:void 0,o;if(typeof r=="string"){if(r.length===0)return{};o=JSON.parse(r,n)}else if(r instanceof Uint8Array&&Cy()){if(r.byteLength===0)return{};let s=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);o=JSON.parse(s,n)}else o=await Lc(r,this.serdeContext,e);return this._read(e,o)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema())return this._readStruct(o,r);if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema();if(this.needsTransform(i))for(let a=0;a<r.length;++a)r[a]=this._read(i,r[a]);return r}if(o.isMapSchema()){let i=o.getValueSchema(),a=r;if(this.needsTransform(i))for(let c in a)c==="__proto__"&&eo(a),a[c]=this._read(i,a[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema()&&n)if(Array.isArray(r))for(let i=0;i<r.length;++i){let a=r[i];a instanceof Y||(r[i]=this._read(o,a))}else{let i=r;for(let a in i){a==="__proto__"&&eo(i);let c=i[a];c instanceof Y||(i[a]=this._read(o,c))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),o={},s,i=typeof r.__type=="string",{jsonName:a}=this.settings;a&&i&&(s={});let c;n&&(c=new xa(r,o));for(let[u,f]of e.structIterator()){let m=u;a&&(m=f.getMergedTraits().jsonName??m,i&&(s[m]=u)),n&&c.mark(m),r[m]!=null&&(o[u]=this._read(f,r[m]))}if(n)c.writeUnknown();else if(i)for(let u in r){let f=r[u],m=a?s[u]??u:u;m in o||(o[m]=f)}return o}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var Iy,k6,M6=g(()=>{j();Iy=class t extends Uint8Array{string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>k6+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),k6=e),this.string=ze(this)}return this.string}},k6=0});function x$(t){return Iy.allocUnsafe(t)}var wy,L6,N6,uDe,lDe,Gl,Py,Oy,F6,dDe,pDe,fDe,Ws,B6,ql,T$=g(()=>{V();ae();j();Bo();M6();wy=new TextEncoder,L6=123,N6=125,uDe=91,lDe=93,Gl=34,Py=58,Oy=44,F6=92,dDe=new Uint8Array([116,114,117,101]),pDe=new Uint8Array([102,97,108,115,101]),fDe=new Uint8Array([110,117,108,108]),Ws=new Array(128).fill(null);Ws[8]="b";Ws[9]="t";Ws[10]="n";Ws[12]="f";Ws[13]="r";Ws[34]='"';Ws[92]="\\";for(let t=0;t<32;t++)Ws[t]===null&&(Ws[t]="u00"+t.toString(16).padStart(2,"0"));B6=2048;ql=class t extends ht{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=x$(B6)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=B.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=B.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let o=`"__type":"${n.getName(!0)??"Unknown"}",`,s=o.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),wy.encodeInto(o,this.json.subarray(1)),this.i+=s}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=x$(B6),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let o=n.length*2;for(;o<r+e;)o*=2;let s=x$(o);s.set(this.json),this.json=s}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:o}=this;for(let s=0;s<r;++s)o[n]=e.charCodeAt(s),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:o}=this;n[o++]=Gl;for(let s=0;s<r;++s)n[o++]=e.charCodeAt(s);n[o++]=Gl,this.i=o}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=Gl;let r=e.length;for(let n=0;n<r;++n){let o=e.charCodeAt(n);if(o>34&&o<92)this.json[this.i++]=o;else if(o<128){let s=Ws[o];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=F6;for(let i=0;i<s.length;i++)this.json[this.i++]=s.charCodeAt(i)}else this.json[this.i++]=o}else if(o>=55296&&o<=56319){let s=n+1<r?e.charCodeAt(n+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:i}=wy.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=i,++n}else this.ensure(6),this.writeUnicodeEscape(o)}else if(o>=56320&&o<=57343)this.ensure(6),this.writeUnicodeEscape(o);else{let{i:s,json:i}=this;o<2048?(i[s++]=192|o>>6,i[s++]=128|o&63):(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|o&63),this.i=s}}this.json[this.i++]=Gl}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=F6,r[n++]=117;let o=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)r[n++]=o.charCodeAt(s);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,o=t.B64,s=this.i;n[s++]=Gl;let i=e.length,a=i%3,c=i-a;for(let u=0;u<c;u+=3){let f=e[u],m=e[u+1],y=e[u+2];n[s++]=o[f>>2],n[s++]=o[(f&3)<<4|m>>4],n[s++]=o[(m&15)<<2|y>>6],n[s++]=o[y&63]}if(a===2){let u=e[c],f=e[c+1];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4|f>>4],n[s++]=o[(f&15)<<2],n[s++]=61}else if(a===1){let u=e[c];n[s++]=o[u>>2],n[s++]=o[(u&3)<<4],n[s++]=61,n[s++]=61}n[s++]=Gl,this.i=s}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&B.of(e).isIdempotencyToken()){this.writeAsciiQuoted(xr());return}return}this.ensure(4),this.json.set(fDe,this.i),this.i+=4;return}let o=B.of(e),s=typeof r=="object";if(o.isStringSchema()){let i=o.getMergedTraits().mediaType;if(i&&(i==="application/json"||i.endsWith("+json"))){this.writeJsonString(qe.from(r).toString());return}}if(s){if(o.isStructSchema()){this.writeStruct(o,r);return}if(Array.isArray(r)&&(o.isListSchema()||o.isDocumentSchema())){this.writeList(o,r,o.isDocumentSchema());return}if(o.isMapSchema()){this.writeMap(o,r,!1);return}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema())){this.writeTimestamp(o,r);return}if(r instanceof Y){this.writeAscii(r.string);return}if(o.isDocumentSchema()){Array.isArray(r)?this.writeList(o,r,!0):this.writeMap(o,r,!0);return}let i=JSON.stringify(r);this.writeAscii(i);return}if(typeof r=="string"){if(o.isBlobSchema()){let i=(this.serdeContext?.base64Encoder??De)(r);this.writeAsciiQuoted(i);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let i=String(r);this.writeAscii(i);return}if(typeof r=="boolean"){this.ensure(5);let{i,json:a}=this;r?(a.set(dDe,i),i+=4):(a.set(pDe,i),i+=5),this.i=i;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=L6;let n=!1,o=typeof r.__type=="string",s;o&&(s=new Set);for(let[i,a]of e.structIterator()){let c=r[i];if(c==null&&!a.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=Oy),n=!0;let u=this.settings.jsonName?a.getMergedTraits().jsonName??i:i;s&&(s.add(i),s.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Py,this.writeValue(a,c,e)}if(!n&&e.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Py,this.writeValue(15,c,e)}}else if(o)for(let i in r){if(s.has(i))continue;s.add(i);let a=r[i];n&&(this.ensure(1),this.json[this.i++]=Oy),n=!0,this.writeAsciiQuoted(i),this.ensure(1),this.json[this.i++]=Py,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=N6}writeList(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let u=0;u<r.length;++u){let f=r[u];if(Number.isNaN(f)||f===1/0||f===-1/0||f==null&&!o){a=!0;break}}let c;if(!a)c=JSON.stringify(r);else{let u=[];for(let f=0;f<r.length;++f){let m=r[f];m==null&&!o||(Number.isNaN(m)||m===1/0||m===-1/0?u.push(String(m)):u.push(m))}c=JSON.stringify(u)}this.ensure(c.length*3),this.i+=wy.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=uDe;let i=!1;for(let a=0;a<r.length;++a){let c=r[a];(n?c===void 0:c==null&&!o)||(i&&(this.ensure(1),this.json[this.i++]=Oy),this.writeValue(s,c,void 0),i=!0)}this.ensure(1),this.json[this.i++]=lDe}writeMap(e,r,n){let o=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!n&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let u in r){let f=r[u];Number.isNaN(f)||f===1/0||f===-1/0?((a??={})[u]=f,r[u]=String(f)):f===null&&!o&&((a??={})[u]=null,r[u]=void 0)}let c=JSON.stringify(r);a&&Object.assign(r,a),this.ensure(c.length*3),this.i+=wy.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=L6;let i=!0;for(let a in r){let c=r[a];(n?c===void 0:c==null&&!o)||(i||(this.ensure(1),this.json[this.i++]=Oy),i=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=Py,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=N6}writeTimestamp(e,r){switch(Ze(e,this.settings)){case 5:{let o=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(o);return}case 6:{this.writeAsciiQuoted(br(r));return}case 7:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}default:{let o=String(r.getTime()/1e3);this.writeAscii(o);return}}}}});var Ta,$y=g(()=>{Bo();A$();T$();Ta=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new ql(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Ul(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var va,ky=g(()=>{V();ae();Ll();$y();Bl();va=class extends Qn{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=s??new Ta({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new Zn(this.awsQueryCompatible)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);return o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,o.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(o.headers["x-amzn-query-mode"]="true"),(mn(e.input)==="unit"||!o.body)&&(o.body="{}"),o}getPayloadCodec(){return this.codec}async handleError(e,r,n,o,s){let{awsQueryCompatible:i}=this;i&&this.mixin.setQueryCompatError(o,n);let a=Dy(n,o,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,s,i?this.mixin.findQueryCompatibleError:void 0),f=B.of(c),m=o.message??o.Message??"UnknownError",y=this.compositeErrorRegistry.getErrorCtor(c)??Error,_=new y({}),C={},A=this.codec.createDeserializer();for(let[x,T]of f.structIterator())o[x]!=null&&(C[x]=A.readObject(T,o[x]));throw i&&this.mixin.queryCompatOutput(o,C),this.mixin.decorateServiceException(Object.assign(_,u,{$fault:f.getMergedTraits().error,message:m},C),o)}}});var My,U6=g(()=>{ky();My=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var Ly,G6=g(()=>{ky();Ly=class extends va{constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:o,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Ks,q6=g(()=>{V();ae();Ll();$y();Bl();Ks=class extends la{serializer;deserializer;codec;mixin=new Zn;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Ta(o),this.serializer=new ma(this.codec.createSerializer(),o),this.deserializer=new fa(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return o.body==null&&o.headers["content-type"]===this.getDefaultContentType()&&(o.body="{}"),o}async deserializeResponse(e,r,n){let o=await super.deserializeResponse(e,r,n),s=B.of(e.output);for(let[i,a]of s.structIterator())a.getMemberTraits().httpPayload&&!(i in o)&&(o[i]=null);return o}async handleError(e,r,n,o,s){let i=vy(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().jsonName??A;_[A]=C.readObject(x,o[T])}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/json"}}});var Hl,v$=g(()=>{V();ae();j();j();Bo();Ry();by();xy();Bl();If();Hl=class extends ht{settings;constructor(e){super(),this.settings=e}async read(e,r){let n=Fl(e)?Nl:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Lc(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",o=B.of(e);if(n){if(o.isStructSchema()){let i=r,a=o.isUnionSchema(),c={},u,{jsonName:f}=this.settings;f&&(u={});let m;a&&(m=new xa(i,c));for(let[y,_]of o.structIterator()){let C=y;f&&(C=_.getMergedTraits().jsonName??C,u[C]=y),a&&m.mark(C),i[C]!=null&&(c[y]=this._read(_,i[C]))}if(a)m.writeUnknown();else if(typeof i.__type=="string")for(let y in i){let _=i[y],C=f?u[y]??y:y;C in c||(c[C]=_)}return c}if(Array.isArray(r)&&o.isListSchema()){let i=o.getValueSchema(),a=[];for(let c of r)a.push(this._read(i,c));return a}if(o.isMapSchema()){let i=o.getValueSchema(),a={};for(let c in r)c==="__proto__"&&eo(a),a[c]=this._read(i,r[c]);return a}}if(o.isBlobSchema()&&typeof r=="string")return Xe(r);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?qe.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(Ze(o,this.settings)){case 5:return Ss(r);case 6:return gn(r);case 7:return ys(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof Y)return r;let i=r;return i.type==="bigDecimal"&&"string"in i?new Y(i.string,i.type):new Y(String(r),"bigDecimal")}if(o.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(o.isDocumentSchema())if(n){let i=Array.isArray(r)?[]:{};for(let a in r){a==="__proto__"&&eo(i);let c=r[a];c instanceof Y?i[a]=c:i[a]=this._read(o,c)}return i}else return structuredClone(r);return r}}});var H6,Ny,j6=g(()=>{j();H6="\u039D",Ny=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Y){let n=`${H6+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),o=`${H6+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var jl,D$=g(()=>{V();ae();j();Bo();j6();If();jl=class extends ht{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=B.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Ny;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=B.of(e).getName(!0))}_write(e,r,n){let o=r!==null&&typeof r=="object",s=B.of(e);if(o){if(s.isStructSchema()){let i=r,a={},{jsonName:c}=this.settings,u;c&&(u={});let f=0;for(let[m,y]of s.structIterator()){let _=this._write(y,i[m],s);if(_!==void 0){let C=m;c&&(C=y.getMergedTraits().jsonName??m,u[m]=C),a[C]=_,f++}}if(s.isUnionSchema()&&f===0){let{$unknown:m}=i;if(Array.isArray(m)){let[y,_]=m;y==="__proto__"&&eo(a),a[y]=this._write(15,_)}}else if(typeof i.__type=="string")for(let m in i){let y=i[m],_=c?u[m]??m:m;_ in a||(a[_]=this._write(15,y))}return a}if(Array.isArray(r)&&s.isListSchema()){let i=s.getValueSchema(),a=[],c=!!s.getMergedTraits().sparse;for(let u of r)(c||u!=null)&&a.push(this._write(i,u));return a}if(s.isMapSchema()){let i=s.getValueSchema(),a={},c=!!s.getMergedTraits().sparse;for(let u in r){let f=r[u];(c||f!=null)&&(u==="__proto__"&&eo(a),a[u]=this._write(i,f))}return a}if(r instanceof Uint8Array&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Ze(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return br(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Y&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return xr();let i=s.getMergedTraits().mediaType;return r!=null&&i&&(i==="application/json"||i.endsWith("+json"))?qe.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??De)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??De)(r);let i=Array.isArray(r)?[]:{};for(let a in r){let c=r[a];a==="__proto__"&&eo(i),c instanceof Y?(this.useReplacer=!0,i[a]=c):i[a]=this._write(s,c)}return i}else return structuredClone(r);return r}}}});var Fy,z6=g(()=>{Bo();v$();D$();Fy=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new jl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Hl(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Gy=st(Uy=>{var mDe=/[&<>"]/g,gDe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function hDe(t){return t.replace(mDe,e=>gDe[e])}var SDe=/[&"'<>\r\n\u0085\u2028]/g,yDe={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","\x85":"&#x85;","\u2028":"&#x2028;"};function EDe(t){return t.replace(SDe,e=>yDe[e])}var By=class{value;constructor(e){this.value=e}toString(){return EDe(""+this.value)}},w$=class t{name;children;attributes={};static of(e,r,n){let o=new t(e);return r!==void 0&&o.addChildNode(new By(r)),n!==void 0&&o.withName(n),o}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let o=t.of(r,e[r]).withName(n);this.c(o)}}l(e,r,n,o){e[r]!=null&&o().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,o){if(e[r]!=null){let s=o(),i=new t(n);s.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let o of Object.keys(n)){let s=n[o];s!=null&&(r+=` ${o}="${hDe(""+s)}"`)}return r+=e?`>${this.children.map(o=>o.toString()).join("")}</${this.name}>`:"/>"}};function I$(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function _De(t){return new P$(t).parse()}var P$=class t{x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
37
44
  `),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i<r&&(e.trim(),!(e.i>=r));)if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(e,r=!0){let n=this;return r?n.x.startsWith(e,n.i):n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let r=this,n=r.x.indexOf(e,r.i);if(n===-1)throw new Error(`@aws-sdk XML parse error: expected "${e}" not found.`);let o=r.x.slice(r.i,n);return r.i=n+e.length,o}trim(){let e=this;for(;e.i<e.z&&` \r
38
45
  `.includes(e.x[e.i]);)++e.i}readAttrValue(){let e=this,r=e.x[e.i];++e.i;let n="";for(;e.i<e.z&&e.x[e.i]!==r;)n+=e.x[e.i++];return++e.i,e.decodeEntities(n)}parseTag(){let e=this;++e.i;let r="";for(;e.i<e.z&&!` \r
39
46
  >/`.includes(e.x[e.i]);)r+=e.x[e.i++];let n=!1,o={};for(;e.i<e.z&&(e.trim(),!">/".includes(e.x[e.i]));){let f="";for(;e.i<e.z&&!`= \r
40
- >/?`.includes(e.x[e.i]);)f+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),f==="__proto__"&&KI(o),o[f]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?o:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let s=[],i=[],a=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,s.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(a=!0,i.push(e.parseTag()));else{let f="";for(;e.i<e.z&&e.x[e.i]!=="<";)f+=e.x[e.i++];s.push(e.decodeEntities(f))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let c=e.readTo(">").trim();if(c!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${c}>.`);if(!n&&s.length===0&&!a)return{tag:r,value:""};if(!n&&!a){let f=s.length===1?s[0]:s.join("");return f.trim()===""&&f.includes(`
47
+ >/?`.includes(e.x[e.i]);)f+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),f==="__proto__"&&I$(o),o[f]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?o:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++e.i;let s=[],i=[],a=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,s.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(a=!0,i.push(e.parseTag()));else{let f="";for(;e.i<e.z&&e.x[e.i]!=="<";)f+=e.x[e.i++];s.push(e.decodeEntities(f))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let c=e.readTo(">").trim();if(c!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${c}>.`);if(!n&&s.length===0&&!a)return{tag:r,value:""};if(!n&&!a){let f=s.length===1?s[0]:s.join("");return f.trim()===""&&f.includes(`
41
48
  `)?{tag:r,value:""}:{tag:r,value:f}}let u={};for(let f of s)f.trim()===""&&f.includes(`
42
- `)||(u["#text"]="#text"in u?u["#text"]+f:f);for(let f of i)f.tag==="__proto__"&&KI(u),f.tag in u?Array.isArray(u[f.tag])?u[f.tag].push(f.value):u[f.tag]=[u[f.tag],f.value]:u[f.tag]=f.value;for(let[f,m]of Object.entries(o))f==="__proto__"&&KI(u),u[f]=m;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,o,s)=>n?String.fromCharCode(parseInt(n,16)):o?String.fromCharCode(parseInt(o,10)):t.ENTITIES[s]??"")}};Oy.XmlNode=QI;Oy.XmlText=Dy;Oy.parseXML=XSe});var pq,Ji,$y=h(()=>{pq=Oe(ky());Q();z();ne();j();So();fy();Ap();Ji=class extends ut{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Ni(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let o=N.of(e),s=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){let u={},f=Object.keys(s)[0];return s[f].isBlobSchema()?u[f]=r:u[f]=this.read(s[f],r),u}let a=(this.serdeContext?.utf8Encoder??Fe)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=N.of(e);if(n.isUnitSchema())return;let o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!o.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],u=a.getMergedTraits().xmlName??"member",f=s?r:(r[0]??r)[u];if(f==null)return c;let m=Array.isArray(f)?f:[f];for(let y of m)c.push(this.readSchema(a,y));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),u;s?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let f=a.getMergedTraits().xmlName??"key",m=c.getMergedTraits().xmlName??"value";for(let y of u){let _=y[f],R=y[m];_==="__proto__"&&Nn(i),i[_]=this.readSchema(c,R)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new Wi(r,i));for(let[u,f]of n.structIterator()){let m=f.getMergedTraits(),y=m.httpPayload?m.xmlName??f.getName():f.getMemberTraits().xmlName??u;a&&c.mark(y),r[y]!=null&&(i[u]=this.readSchema(f,r[y]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,pq.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",o=Object.keys(r)[0],s=r[o];return s[n]&&(s[o]=s[n],delete s[n]),Ga(s)}return{}}}});var cl,XI=h(()=>{z();ne();j();j();So();cl=class extends ut{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let o=N.of(e);if(n&&!n.endsWith(".")&&(n+="."),o.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Ce)(r)));else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):o.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(fr()));else if(o.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(o.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof K?r.string:String(r)));else if(o.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ke(o,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(dr(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(o.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(o.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let s=o.getValueSchema(),i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened,a=1;for(let c of r){if(c==null)continue;let u=s.getMergedTraits(),f=this.getKey("member",u.xmlName,u.ec2QueryName),m=i?`${n}${a}`:`${n}${f}.${a}`;this.write(s,c,m),++a}}}else if(o.isMapSchema()){if(r&&typeof r=="object"){let s=o.getKeySchema(),i=o.getValueSchema(),a=o.getMergedTraits().xmlFlattened,c=1;for(let u in r){let f=r[u];if(f==null)continue;let m=s.getMergedTraits(),y=this.getKey("key",m.xmlName,m.ec2QueryName),_=a?`${n}${c}.${y}`:`${n}entry.${c}.${y}`,R=i.getMergedTraits(),b=this.getKey("value",R.xmlName,R.ec2QueryName),C=a?`${n}${c}.${b}`:`${n}entry.${c}.${b}`;this.write(s,u,_),this.write(i,f,C),++c}}}else if(o.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[i,a]of o.structIterator()){if(r[i]==null&&!a.isIdempotencyToken())continue;let c=a.getMergedTraits(),u=this.getKey(i,c.xmlName,c.ec2QueryName,"struct"),f=`${n}${u}`;this.write(a,r[i],f),s=!0}if(!s&&o.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i,u=`${n}${a}`;this.write(15,c,u)}}}}else if(!o.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,o){let{ec2:s,capitalizeKeys:i}=this.settings;if(s&&n)return n;let a=r??e;return i&&o==="struct"?a[0].toUpperCase()+a.slice(1):a}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${io(e)}=`}writeValue(e){this.buffer+=io(e)}}});var Xi,YI=h(()=>{z();ne();Zu();$y();XI();Xi=class extends Dn{options;serializer;deserializer;mixin=new Ln;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new cl(r),this.deserializer=new Ji(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]="application/x-www-form-urlencoded",(Yr(e.input)==="unit"||!o.body)&&(o.body="");let s=e.name.split("#")[1]??e.name;return o.body=`Action=${s}&Version=${this.options.version}`+o.body,o.body.endsWith("&")&&(o.body=o.body.slice(-1)),o}async deserializeResponse(e,r,n){let o=this.deserializer,s=N.of(e.output),i={};if(n.statusCode>=300){let f=await gt(n.body,r);f.byteLength>0&&Object.assign(i,await o.read(15,f)),await this.handleError(e,r,n,i,this.deserializeMetadata(n))}for(let f in n.headers){let m=n.headers[f];delete n.headers[f],n.headers[f.toLowerCase()]=m}let a=e.name.split("#")[1]??e.name,c=s.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,u=await gt(n.body,r);return u.byteLength>0&&Object.assign(i,await o.read(s,u,c)),i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,r,n,o,s){let i=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let a=this.loadQueryError(o)??{},c=this.loadQueryErrorMessage(o);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};let{errorSchema:u,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,a,s,this.mixin.findQueryCompatibleError),m=N.of(u),y=this.compositeErrorRegistry.getErrorCtor(u)??Error,_=new y({}),R={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[b,C]of m.structIterator()){let x=C.getMergedTraits().xmlName??b,w=a[x]??o[x];R[b]=this.deserializer.readSchema(C,w)}throw this.mixin.decorateServiceException(Object.assign(_,f,{$fault:m.getMergedTraits().error,message:c},R),o)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var Ly,fq=h(()=>{YI();Ly=class extends Xi{options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var mq,ZI,hq,Ny,eD=h(()=>{mq=Oe(ky());Q();GI();ZI=(t,e)=>yy(t,e).then(r=>{if(r.length){let n;try{n=(0,mq.parseXML)(r)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:r}),a}let o="#text",s=Object.keys(n)[0],i=n[s];return i[o]&&(i[s]=i[o],delete i[o]),Ga(i)}return{}}),hq=async(t,e)=>{let r=await ZI(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},Ny=(t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"}});var qr,ul,tD=h(()=>{qr=Oe(ky());z();ne();j();j();So();ul=class extends ut{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=N.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??We)(r);else{this.buffer=this.writeStruct(n,r,void 0);let o=n.getMergedTraits();o.httpPayload&&!o.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let o=e.getMergedTraits(),s=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=qr.XmlNode.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[f,m]of e.structIterator()){let y=r[f];if(y!=null||m.isIdempotencyToken()){if(m.getMergedTraits().xmlAttribute){i.addAttribute(m.getMergedTraits().xmlName??f,this.writeSimple(m,y));continue}if(m.isListSchema())this.writeList(m,y,i,c);else if(m.isMapSchema())this.writeMap(m,y,i,c);else if(m.isStructSchema())i.addChildNode(this.writeStruct(m,y,c));else{let _=qr.XmlNode.of(m.getMergedTraits().xmlName??m.getMemberName());this.writeSimpleInto(m,y,_,c),i.addChildNode(_)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[f,m]=u,y=qr.XmlNode.of(f);if(typeof m!="string")if(r instanceof qr.XmlNode||r instanceof qr.XmlText)i.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,m,y,c),i.addChildNode(y)}return c&&i.addAttribute(a,c),i}writeList(e,r,n,o){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),i=e.getValueSchema(),a=i.getMergedTraits(),c=!!a.sparse,u=!!s.xmlFlattened,[f,m]=this.getXmlnsAttribute(e,o),y=(_,R)=>{if(i.isListSchema())this.writeList(i,Array.isArray(R)?R:[R],_,m);else if(i.isMapSchema())this.writeMap(i,R,_,m);else if(i.isStructSchema()){let b=this.writeStruct(i,R,m);_.addChildNode(b.withName(u?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let b=qr.XmlNode.of(u?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(i,R,b,m),_.addChildNode(b)}};if(u)for(let _ of r)(c||_!=null)&&y(n,_);else{let _=qr.XmlNode.of(s.xmlName??e.getMemberName());m&&_.addAttribute(f,m);for(let R of r)(c||R!=null)&&y(_,R);n.addChildNode(_)}}writeMap(e,r,n,o,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getKeySchema(),u=a.getMergedTraits().xmlName??"key",f=e.getValueSchema(),m=f.getMergedTraits(),y=m.xmlName??"value",_=!!m.sparse,R=!!i.xmlFlattened,[b,C]=this.getXmlnsAttribute(e,o),x=(w,U,G)=>{let ue=qr.XmlNode.of(u,U),[Qe,Ze]=this.getXmlnsAttribute(a,C);Ze&&ue.addAttribute(Qe,Ze),w.addChildNode(ue);let Je=qr.XmlNode.of(y);f.isListSchema()?this.writeList(f,G,Je,C):f.isMapSchema()?this.writeMap(f,G,Je,C,!0):f.isStructSchema()?Je=this.writeStruct(f,G,C):this.writeSimpleInto(f,G,Je,C),w.addChildNode(Je)};if(R)for(let w in r){let U=r[w];if(_||U!=null){let G=qr.XmlNode.of(i.xmlName??e.getMemberName());x(G,w,U),n.addChildNode(G)}}else{let w;s||(w=qr.XmlNode.of(i.xmlName??e.getMemberName()),C&&w.addAttribute(b,C),n.addChildNode(w));for(let U in r){let G=r[U];if(_||G!=null){let ue=qr.XmlNode.of("entry");x(ue,U,G),(s?n:w).addChildNode(ue)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=N.of(e),o=null;if(r&&typeof r=="object")if(n.isBlobSchema())o=(this.serdeContext?.base64Encoder??Ce)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ke(n,this.settings)){case 5:o=r.toISOString().replace(".000Z","Z");break;case 6:o=dr(r);break;case 7:o=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),o=dr(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof K?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(o=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?o=fr():o=String(r)),o===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return o}writeSimpleInto(e,r,n,o){let s=this.writeSimple(e,r),i=N.of(e),a=new qr.XmlText(s),[c,u]=this.getXmlnsAttribute(i,o);u&&n.addAttribute(c,u),n.addChildNode(a)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[o,s]=n.xmlNamespace??[];return s&&s!==r?[o?`xmlns:${o}`:"xmlns",s]:[void 0,void 0]}}});var ll,rD=h(()=>{So();$y();tD();ll=class extends ut{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new ul(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Ji(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var dl,gq=h(()=>{z();ne();Zu();eD();rD();dl=class extends $i{codec;serializer;deserializer;mixin=new Ln;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new ll(r),this.serializer=new Bi(this.codec.createSerializer(),r),this.deserializer=new Mi(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=N.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return typeof o.body=="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body),o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=Ny(n,o)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),o.Error&&typeof o.Error=="object")for(let b of Object.keys(o.Error))o[b]=o.Error[b],b.toLowerCase()==="message"&&(o.message=o.Error[b]);o.RequestId&&!s.requestId&&(s.requestId=o.RequestId);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=N.of(a),f=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},R=this.codec.createDeserializer();for(let[b,C]of u.structIterator()){let x=C.getMergedTraits().xmlName??b,w=o.Error?.[x]??o[x];_[b]=R.readSchema(C,w)}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var Sq,yq=h(()=>{j();Sq=t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,Rh(t)}});var Eq,_q,Rq,bq=h(()=>{Eq=t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},_q=t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},Rq=t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t}});var nD={};mt(nD,{AwsEc2QueryProtocol:()=>Ly,AwsJson1_0Protocol:()=>wy,AwsJson1_1Protocol:()=>vy,AwsJsonRpcProtocol:()=>Qi,AwsQueryProtocol:()=>Xi,AwsRestJsonProtocol:()=>_s,AwsRestXmlProtocol:()=>dl,AwsSmithyRpcV2CborProtocol:()=>py,JsonCodec:()=>Iy,JsonCodec2:()=>Ki,JsonShapeDeserializer:()=>il,JsonShapeDeserializer2:()=>nl,JsonShapeSerializer:()=>al,JsonShapeSerializer2:()=>sl,QueryShapeSerializer:()=>cl,XmlCodec:()=>ll,XmlShapeDeserializer:()=>Ji,XmlShapeSerializer:()=>ul,_toBool:()=>_q,_toNum:()=>Rq,_toStr:()=>Eq,awsExpectUnion:()=>Sq,loadJsonRpcErrorCode:()=>_y,loadRestJsonErrorCode:()=>Ey,loadRestXmlErrorCode:()=>Ny,parseJsonBody:()=>oc,parseJsonErrorBody:()=>Y4,parseXmlBody:()=>ZI,parseXmlErrorBody:()=>hq});var Yi=h(()=>{J4();iq();aq();Ty();cq();dq();VI();WI();Ay();jI();zI();rl();fq();YI();XI();gq();rD();$y();tD();eD();yq();bq()});var My,Cq=h(()=>{Yi();ne();My=class extends dl{async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=N.of(e.input),i=s.getSchema(),a=0,c=i[6]??0;if(r&&typeof r=="object")for(let[u,f]of s.structIterator()){if(++a>c)break;if(u==="Bucket"){if(!r.Bucket&&f.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return o}}});var oD,sD,xq,Aq=h(()=>{Re();oD="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS",sD="s3_disable_multiregion_access_points",xq={environmentVariableSelector:t=>Ue(t,oD,$e.ENV),configFileSelector:t=>Ue(t,sD,$e.CONFIG),default:!1}});var iD,aD,Tq,wq=h(()=>{Re();iD="AWS_S3_USE_ARN_REGION",aD="s3_use_arn_region",Tq={environmentVariableSelector:t=>Ue(t,iD,$e.ENV),configFileSelector:t=>Ue(t,aD,$e.CONFIG),default:void 0}});var YSe,ZSe,eye,uD,tye,vq,cD,Pq,Iq,Dq,Oq,By,kq,$q,Lq,Fy,Uy,Nq,Gy,qy,Zi,Mq,jy,Bq,Hy,Fq,lD=h(()=>{YSe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ZSe=/(\d+\.){3}\d+/,eye=/\.\./,uD=/\./,tye=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,vq=/^s3(-external-1)?\.amazonaws\.com$/,cD="amazonaws.com",Pq=t=>typeof t.bucketName=="string",Iq=t=>YSe.test(t)&&!ZSe.test(t)&&!eye.test(t),Dq=t=>{let e=t.match(tye);return[e[4],t.replace(new RegExp(`^${e[0]}`),"")]},Oq=t=>vq.test(t)?["us-east-1",cD]:Dq(t),By=t=>vq.test(t)?[t.replace(`.${cD}`,""),cD]:Dq(t),kq=t=>{if(t.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},$q=t=>{if(t!=="s3"&&t!=="s3-outposts"&&t!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")},Lq=t=>{if(t!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")},Fy=t=>{if(t!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")},Uy=(t,e)=>{if(t!==e.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${t}" but expected "${e.clientPartition}"`)},Nq=(t,e)=>{},Gy=t=>{if(["s3-external-1","aws-global"].includes(t))throw new Error(`Client region ${t} is not regional`)},qy=t=>{if(!/[0-9]{12}/.exec(t))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Zi=(t,e={tlsCompatible:!0})=>{if(t.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||e?.tlsCompatible&&uD.test(t))throw new Error(`Invalid DNS label ${t}`)},Mq=t=>{if(t.isCustomEndpoint){if(t.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}},jy=t=>{let e=t.includes(":")?":":"/",[r,...n]=t.split(e);if(r==="accesspoint"){if(n.length!==1||n[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${e}{accesspointname}`);return{accesspointName:n[0]}}else if(r==="outpost"){if(!n[0]||n[1]!=="accesspoint"||!n[2]||n.length!==3)throw new Error(`Outpost ARN should have resource outpost${e}{outpostId}${e}accesspoint${e}{accesspointName}`);let[o,s,i]=n;return{outpostId:o,accesspointName:i}}else throw new Error(`ARN resource should begin with 'accesspoint${e}' or 'outpost${e}'`)},Bq=t=>{},Hy=t=>{if(t)throw new Error("FIPS region is not supported with Outpost.")},Fq=t=>{try{t.split(".").forEach(e=>{Zi(e)})}catch{throw new Error(`"${t}" is not a DNS compatible name.`)}}});var Tp,rye,nye,oye,sye,iye,aye,dD=h(()=>{lD();Tp=t=>(Mq(t),Pq(t)?rye(t):nye(t)),rye=({accelerateEndpoint:t=!1,clientRegion:e,baseHostname:r,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:i=!1,tlsCompatible:a=!0,isCustomEndpoint:c=!1})=>{let[u,f]=c?[e,r]:Oq(r);return i||!Iq(n)||a&&uD.test(n)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${u}.${f}`:r}:(t?r=`s3-accelerate${o?".dualstack":""}.${f}`:o&&(r=`s3.dualstack.${u}.${f}`),{bucketEndpoint:!0,hostname:`${n}.${r}`})},nye=t=>{let{isCustomEndpoint:e,baseHostname:r,clientRegion:n}=t,o=e?r:By(r)[1],{pathStyleEndpoint:s,accelerateEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:c=!0,bucketName:u,clientPartition:f="aws"}=t;kq({pathStyleEndpoint:s,accelerateEndpoint:i,tlsCompatible:c});let{service:m,partition:y,accountId:_,region:R,resource:b}=u;$q(m),Uy(y,{clientPartition:f}),qy(_);let{accesspointName:C,outpostId:x}=jy(b);return m==="s3-object-lambda"?oye({...t,tlsCompatible:c,bucketName:u,accesspointName:C,hostnameSuffix:o}):R===""?sye({...t,clientRegion:n,mrapAlias:C,hostnameSuffix:o}):x?iye({...t,clientRegion:n,outpostId:x,accesspointName:C,hostnameSuffix:o}):aye({...t,clientRegion:n,accesspointName:C,hostnameSuffix:o})},oye=({dualstackEndpoint:t=!1,fipsEndpoint:e=!1,tlsCompatible:r=!0,useArnRegion:n,clientRegion:o,clientSigningRegion:s=o,accesspointName:i,bucketName:a,hostnameSuffix:c})=>{let{accountId:u,region:f,service:m}=a;Gy(o);let y=`${i}-${u}`;Zi(y,{tlsCompatible:r});let _=n?f:o,R=n?f:s;return{bucketEndpoint:!0,hostname:`${y}.${m}${e?"-fips":""}.${_}.${c}`,signingRegion:R,signingService:m}},sye=({disableMultiregionAccessPoints:t,dualstackEndpoint:e=!1,isCustomEndpoint:r,mrapAlias:n,hostnameSuffix:o})=>{if(t===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return Fq(n),{bucketEndpoint:!0,hostname:`${n}${r?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},iye=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:i=!1,tlsCompatible:a=!0,accesspointName:c,isCustomEndpoint:u,hostnameSuffix:f})=>{Gy(e);let m=`${c}-${n.accountId}`;Zi(m,{tlsCompatible:a});let y=t?n.region:e,_=t?n.region:r;return Fy(n.service),Zi(o,{tlsCompatible:a}),Hy(i),{bucketEndpoint:!0,hostname:`${`${m}.${o}`}${u?"":`.s3-outposts.${y}`}.${f}`,signingRegion:_,signingService:"s3-outposts"}},aye=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:i=!0,accesspointName:a,isCustomEndpoint:c,hostnameSuffix:u})=>{Gy(e);let f=`${a}-${n.accountId}`;Zi(f,{tlsCompatible:i});let m=t?n.region:e,y=t?n.region:r;return Lq(n.service),{bucketEndpoint:!0,hostname:`${f}${c?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${m}`}.${u}`,signingRegion:y}}});var pD,fD,Uq,Gq=h(()=>{SI();z();dD();pD=t=>(e,r)=>async n=>{let{Bucket:o}=n.input,s=t.bucketEndpoint,i=n.request;if(X.isInstance(i)){if(t.bucketEndpoint)i.hostname=o;else if(yp(o)){let a=gI(o),c=await t.region(),u=await t.useDualstackEndpoint(),f=await t.useFipsEndpoint(),{partition:m,signingRegion:y=c}=await t.regionInfoProvider(c,{useDualstackEndpoint:u,useFipsEndpoint:f})||{},_=await t.useArnRegion(),{hostname:R,bucketEndpoint:b,signingRegion:C,signingService:x}=Tp({bucketName:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:f,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",useArnRegion:_,clientPartition:m,clientSigningRegion:y,clientRegion:c,isCustomEndpoint:t.isCustomEndpoint,disableMultiregionAccessPoints:await t.disableMultiregionAccessPoints()});C&&C!==y&&(r.signing_region=C),x&&x!=="s3"&&(r.signing_service=x),i.hostname=R,s=b}else{let a=await t.region(),c=await t.useDualstackEndpoint(),u=await t.useFipsEndpoint(),{hostname:f,bucketEndpoint:m}=Tp({bucketName:o,clientRegion:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:c,fipsEndpoint:u,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",isCustomEndpoint:t.isCustomEndpoint});i.hostname=f,s=m}s&&(i.path=i.path.replace(/^(\/)?[^\/]+/,""),i.path===""&&(i.path="/"))}return e({...n,request:i})},fD={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},Uq=t=>({applyToStack:e=>{e.addRelativeTo(pD(t),fD)}})});function qq(t){let{bucketEndpoint:e=!1,forcePathStyle:r=!1,useAccelerateEndpoint:n=!1,useArnRegion:o,disableMultiregionAccessPoints:s=!1}=t;return Object.assign(t,{bucketEndpoint:e,forcePathStyle:r,useAccelerateEndpoint:n,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)})}var jq=h(()=>{});function mD(t){return e=>async r=>{let{request:n}=r;if(t.expectContinueHeader!==!1&&X.isInstance(n)&&n.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let o=!0;if(typeof t.expectContinueHeader=="number")try{o=(Number(n.headers?.["content-length"])??t.bodyLengthChecker?.(n.body)??1/0)>=t.expectContinueHeader}catch{}else o=!!t.expectContinueHeader;o&&(n.headers.Expect="100-continue")}return e({...r,request:n})}}var hD,Hq,zq=h(()=>{z();hD={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Hq=t=>({applyToStack:e=>{e.add(mD(t),hD)}})});function gD(t){return e=>async r=>{let{CreateBucketConfiguration:n}=r.input,o=await t.region();return!n?.LocationConstraint&&!n?.Location&&o!=="us-east-1"&&(r.input.CreateBucketConfiguration=r.input.CreateBucketConfiguration??{},r.input.CreateBucketConfiguration.LocationConstraint=o),e(r)}}var SD,Vq,Wq=h(()=>{SD={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},Vq=t=>({applyToStack:e=>{e.add(gD(t),SD)}})});function Kq(t){return t}var Qq=h(()=>{});function yD(t){return e=>async r=>{let n={...r.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let i=n[s.target];if(i){let a;typeof i=="string"?_D(i,t)?a=t.base64Decoder(i):(a=t.utf8Decoder(i),n[s.target]=t.base64Encoder(a)):(a=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),n[s.target]=t.base64Encoder(a));let c=new t.md5;c.update(a),n[s.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:n})}}function _D(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}var ED,Jq,Xq=h(()=>{ED={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Jq=t=>({applyToStack:e=>{e.add(yD(t),ED)}})});var Yq={};mt(Yq,{NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS:()=>xq,NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME:()=>oD,NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME:()=>sD,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:()=>p4,NODE_USE_ARN_REGION_CONFIG_OPTIONS:()=>Tq,NODE_USE_ARN_REGION_ENV_NAME:()=>iD,NODE_USE_ARN_REGION_INI_NAME:()=>aD,S3ExpressIdentityCache:()=>ju,S3ExpressIdentityCacheEntry:()=>zi,S3ExpressIdentityProviderImpl:()=>Hu,S3RestXmlProtocol:()=>My,SignatureV4S3Express:()=>XS,addExpectContinueMiddleware:()=>mD,addExpectContinueMiddlewareOptions:()=>hD,bucketEndpointMiddleware:()=>pD,bucketEndpointMiddlewareOptions:()=>fD,bucketHostname:()=>Tp,checkContentLengthHeader:()=>UP,checkContentLengthHeaderMiddlewareOptions:()=>GP,getAddExpectContinuePlugin:()=>Hq,getArnResources:()=>jy,getBucketEndpointPlugin:()=>Uq,getCheckContentLengthHeaderPlugin:()=>CG,getLocationConstraintPlugin:()=>Vq,getRegionRedirectMiddlewarePlugin:()=>AG,getS3ExpiresMiddlewarePlugin:()=>PG,getS3ExpressHttpSigningPlugin:()=>y4,getS3ExpressPlugin:()=>f4,getSsecPlugin:()=>Jq,getSuffixForArnEndpoint:()=>By,getThrow200ExceptionsPlugin:()=>C4,getValidateBucketNamePlugin:()=>P4,isValidBase64EncodedSSECustomerKey:()=>_D,locationConstraintMiddleware:()=>gD,locationConstraintMiddlewareOptions:()=>SD,regionRedirectEndpointMiddleware:()=>US,regionRedirectEndpointMiddlewareOptions:()=>GS,regionRedirectMiddleware:()=>jP,regionRedirectMiddlewareOptions:()=>HP,resolveBucketEndpointConfig:()=>qq,resolveLocationConstraintConfig:()=>Kq,resolveS3Config:()=>wG,s3ExpiresMiddleware:()=>KP,s3ExpiresMiddlewareOptions:()=>QP,s3ExpressHttpSigningMiddleware:()=>fI,s3ExpressHttpSigningMiddlewareOptions:()=>S4,s3ExpressMiddleware:()=>dI,s3ExpressMiddlewareOptions:()=>pI,ssecMiddleware:()=>yD,ssecMiddlewareOptions:()=>ED,throw200ExceptionsMiddleware:()=>mI,throw200ExceptionsMiddlewareOptions:()=>hI,validateAccountId:()=>qy,validateBucketNameMiddleware:()=>yI,validateBucketNameMiddlewareOptions:()=>EI,validateDNSHostLabel:()=>Zi,validateNoDualstack:()=>Bq,validateNoFIPS:()=>Hy,validateOutpostService:()=>Fy,validatePartition:()=>Uy,validateRegion:()=>Nq});var Zq=h(()=>{xG();qP();TG();vG();IG();zP();VP();WP();a4();lI();m4();E4();x4();I4();Cq();Aq();wq();Gq();dD();jq();lD();zq();Wq();Qq();Xq()});var zy,Vy,ej=h(()=>{z();zy=t=>it.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,Vy=t=>it.isInstance(t)?t.headers?.age??t.headers?.Age:void 0});var wp,tj=h(()=>{wp=t=>new Date(Date.now()+t)});var Wy,rj=h(()=>{Wy=(t,e,r,n)=>{if(n!==void 0)return e;let o=Date.parse(t),s=Date.now();return r!==void 0&&s-r>9e5?e:r!==void 0?o-(r+s)/2:o-s}});var RD=h(()=>{ej();tj();rj()});var nj,vp,cye,pl,Wt,bD,CD=h(()=>{z();nj=Oe(eo());RD();vp=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},cye=t=>t.context?.[nj.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,pl=async t=>{let e=vp("context",t.context),r=vp("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],s=await vp("signer",r.signer)(n),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:r,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}},Wt=class{async sign(e,r,n){if(!X.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let o=await pl(n),{config:s,signer:i}=o,{signingRegion:a,signingName:c}=o,u=n.context;if(u?.authSchemes?.length??!1){let[_,R]=u.authSchemes;_?.name==="sigv4a"&&R?.name==="sigv4"&&(a=R?.signingRegion??a,c=R?.signingName??c)}let f=await s.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=f;let m=f||cye(n);return n._skipClockSkewSampling=m,m||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await i.sign(e,{signingDate:f?new Date:wp(s.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let o=n.ServerTime??zy(n.$response);if(o){let s=vp("config",e.config),i=e._preRequestSystemClockOffset,a=e._requestSentAt,c=Vy(n.$response),u=Wy(o,s.systemClockOffset,a,c);s.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==i||i!==void 0&&i!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=zy(e);if(n){let o=vp("config",r.config),s=r._requestSentAt,i=Vy(e);o.systemClockOffset=Wy(n,o.systemClockOffset,s,i)}}},bD=Wt});var Ys,oj=h(()=>{z();RD();CD();Ys=class extends Wt{async sign(e,r,n){if(!X.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:o,signer:s,signingRegion:i,signingRegionSet:a,signingName:c}=await pl(n),f=(await o.sigv4aSigningRegionSet?.()??a??[i]).join(","),m=await o.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=m,m||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await s.sign(e,{signingDate:m?new Date:wp(o.systemClockOffset),signingRegion:f,signingService:c})}}});var xD,sj=h(()=>{xD=t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[]});var Ky,AD=h(()=>{Ky=t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`});var ij,aj,yo,cj=h(()=>{sj();AD();ij="AWS_AUTH_SCHEME_PREFERENCE",aj="auth_scheme_preference",yo={environmentVariableSelector:(t,e)=>{if(e?.signingName&&Ky(e.signingName)in t)return["httpBearerAuth"];if(ij in t)return xD(t[ij])},configFileSelector:t=>{if(aj in t)return xD(t[aj])},default:[]}});var Pp,Ip,uj=h(()=>{hr();Re();Pp=t=>(t.sigv4aSigningRegionSet=kn(t.sigv4aSigningRegionSet),t),Ip={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new fn("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new fn("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});function uye(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=cp(e,ap,qu):r?n=kn(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function lye(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var TD,wD,lj=h(()=>{ye();hr();TD=Oe(aI()),wD=t=>e=>{let r=e.credentials,n=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(f){f&&f!==r&&f!==o&&(n=!0),r=f;let m=uye(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),y=lye(e,m);if(n&&!y.attributed){let _=typeof r=="object"&&r!==null;o=async R=>{let C=await y(R);return _&&(!C.$source||Object.keys(C.$source).length===0)?yi(C,"CREDENTIALS_CODE","e"):C},o.memoized=y.memoized,o.configBound=y.configBound,o.attributed=!0}else o=y},get(){return o},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=kn(e.signer):e.regionInfoProvider?c=()=>kn(e.region)().then(async f=>[await e.regionInfoProvider(f,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},f]).then(([f,m])=>{let{signingRegion:y,signingService:_}=f;e.signingRegion=e.signingRegion||y||m,e.signingName=e.signingName||_||e.serviceId;let R={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},b=e.signerConstructor||TD.SignatureV4;return new b(R)}):c=async f=>{f=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await kn(e.region)(),properties:{}},f);let m=f.signingRegion,y=f.signingName;e.signingRegion=e.signingRegion||m,e.signingName=e.signingName||y||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},R=e.signerConstructor||TD.SignatureV4;return new R(_)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:c,disableClockSkewCorrection:kn(e.disableClockSkewCorrection??t)})}});var vD=h(()=>{CD();oj();cj();uj();lj()});var dye,pye,dj,pj=h(()=>{Re();dye="AWS_DISABLE_CLOCK_SKEW_CORRECTION",pye="disable_clock_skew_correction",dj={environmentVariableSelector:t=>Ue(t,dye,$e.ENV),configFileSelector:t=>Ue(t,pye,$e.CONFIG),default:!1}});var fj,mj=h(()=>{Re();pj();fj=oe(dj)});var Dp={};mt(Dp,{AWSSDKSigV4Signer:()=>bD,AwsSdkSigV4ASigner:()=>Ys,AwsSdkSigV4Signer:()=>Wt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>yo,NODE_SIGV4A_CONFIG_OPTIONS:()=>Ip,getBearerTokenEnvKey:()=>Ky,resolveAWSSDKSigV4Config:()=>fye,resolveAwsSdkSigV4AConfig:()=>Pp,resolveAwsSdkSigV4Config:()=>Rs,validateSigningProperties:()=>pl});var Rs,fye,gr=h(()=>{vD();AD();vD();mj();Rs=wD(fj),fye=Rs});var PD=Ct(ea=>{var{setCredentialFeature:mye}=(ye(),F($n)),{CredentialsProviderError:hye}=(Re(),F(en)),hj="AWS_ACCESS_KEY_ID",gj="AWS_SECRET_ACCESS_KEY",Sj="AWS_SESSION_TOKEN",yj="AWS_CREDENTIAL_EXPIRATION",Ej="AWS_CREDENTIAL_SCOPE",_j="AWS_ACCOUNT_ID",gye=t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[hj],r=process.env[gj],n=process.env[Sj],o=process.env[yj],s=process.env[Ej],i=process.env[_j];if(e&&r){let a={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...o&&{expiration:new Date(o)},...s&&{credentialScope:s},...i&&{accountId:i}};return mye(a,"CREDENTIALS_ENV_VARS","g"),a}throw new hye("Unable to find environment variable credentials.",{logger:t?.logger})};ea.ENV_ACCOUNT_ID=_j;ea.ENV_CREDENTIAL_SCOPE=Ej;ea.ENV_EXPIRATION=yj;ea.ENV_KEY=hj;ea.ENV_SECRET=gj;ea.ENV_SESSION=Sj;ea.fromEnv=gye});var Jy=Ct(Mn=>{var{ProviderError:ID,CredentialsProviderError:ta,loadConfig:LD}=(Re(),F(en)),Sye=require("node:http"),{parseUrl:yye}=(z(),F(Qs)),xj=t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string",Aj=t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),Tj=1e3,wj=0,ND=({maxRetries:t=wj,timeout:e=Tj})=>({maxRetries:t,timeout:e});function $p(t){return new Promise((e,r)=>{let n=Sye.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{r(Object.assign(new ID("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{r(new ID("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:s=400}=o;(s<200||300<=s)&&(r(Object.assign(new ID("Error response received from instance metadata service"),{statusCode:s})),n.destroy());let i=[];o.on("data",a=>{i.push(a)}),o.on("end",()=>{e(Buffer.concat(i)),n.destroy()})}),n.end()})}var OD=(t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},Op="AWS_CONTAINER_CREDENTIALS_FULL_URI",Qy="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",kD="AWS_CONTAINER_AUTHORIZATION_TOKEN",Eye=(t={})=>{let{timeout:e,maxRetries:r}=ND(t);return()=>OD(async()=>{let n=await xye({logger:t.logger}),o=JSON.parse(await _ye(e,n));if(!xj(o))throw new ta("Invalid response received from instance metadata service.",{logger:t.logger});return Aj(o)},r)},_ye=async(t,e)=>(process.env[kD]&&(e.headers={...e.headers,Authorization:process.env[kD]}),(await $p({...e,timeout:t})).toString()),Rye="169.254.170.2",bye=new Set(["localhost","127.0.0.1"]),Cye=new Set(["http:","https:"]),xye=async({logger:t})=>{if(process.env[Qy])return{hostname:Rye,path:process.env[Qy]};if(process.env[Op]){let e;try{e=new URL(process.env[Op])}catch{throw new ta(`${process.env[Op]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!bye.has(e.hostname))throw new ta(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!Cye.has(e.protocol))throw new ta(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new ta(`The container metadata credential provider cannot be used unless the ${Qy} or ${Op} environment variable is set`,{tryNextLink:!1,logger:t})},$D=class t extends ta{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},kp;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(kp||(kp={}));var Aye="AWS_EC2_METADATA_SERVICE_ENDPOINT",Tye="ec2_metadata_service_endpoint",wye={environmentVariableSelector:t=>t[Aye],configFileSelector:t=>t[Tye],default:void 0},fl;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(fl||(fl={}));var vye="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",Pye="ec2_metadata_service_endpoint_mode",Iye={environmentVariableSelector:t=>t[vye],configFileSelector:t=>t[Pye],default:fl.IPv4},vj=async()=>yye(await Dye()||await Oye()),Dye=async()=>LD(wye)(),Oye=async()=>{let t=await LD(Iye)();switch(t){case fl.IPv4:return kp.IPv4;case fl.IPv6:return kp.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(fl)}`)}},kye=300,$ye=300,Lye="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Rj=(t,e)=>{let r=kye+Math.floor(Math.random()*$ye),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
43
- For more information, please visit: `+Lye);let o=t.originalExpiration??t.expiration;return{...t,...o?{originalExpiration:o}:{},expiration:n}},Nye=(t,e={})=>{let r=e?.logger||console,n;return async()=>{let o;try{o=await t(),o.expiration&&o.expiration.getTime()<Date.now()&&(o=Rj(o,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),o=Rj(n,r);else throw s}return n=o,o}},Pj="/latest/meta-data/iam/security-credentials/",Mye="/latest/api/token",DD="AWS_EC2_METADATA_V1_DISABLED",bj="ec2_metadata_v1_disabled",Cj="x-aws-ec2-metadata-token",Bye=(t={})=>Nye(Fye(t),{logger:t.logger}),Fye=(t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:o,maxRetries:s}=ND(t),i=async(a,c)=>{if(e||c.headers?.[Cj]==null){let m=!1,y=!1,_=await LD({environmentVariableSelector:R=>{let b=R[DD];if(y=!!b&&b!=="false",b===void 0)throw new ta(`${DD} not set in env, checking config file next.`,{logger:t.logger});return y},configFileSelector:R=>{let b=R[bj];return m=!!b&&b!=="false",m},default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||_){let R=[];throw t.ec2MetadataV1Disabled&&R.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),m&&R.push(`config file profile (${bj})`),y&&R.push(`process environment variable (${DD})`),new $D(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${R.join(", ")}].`)}}let f=(await OD(async()=>{let m;try{m=await Gye(c)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)).trim();return OD(async()=>{let m;try{m=await qye(f,c,t)}catch(y){throw y.statusCode===401&&(e=!1),y}return m},a)};return async()=>{let a=await vj();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),i(s,{...a,timeout:o});{let c;try{c=(await Uye({...a,timeout:o})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),i(s,{...a,timeout:o})}return i(s,{...a,headers:{[Cj]:c},timeout:o})}}},Uye=async t=>$p({...t,path:Mye,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Gye=async t=>(await $p({...t,path:Pj})).toString(),qye=async(t,e,r)=>{let n=JSON.parse((await $p({...e,path:Pj+t})).toString());if(!xj(n))throw new ta("Invalid response received from instance metadata service.",{logger:r.logger});return Aj(n)};Mn.DEFAULT_MAX_RETRIES=wj;Mn.DEFAULT_TIMEOUT=Tj;Mn.ENV_CMDS_AUTH_TOKEN=kD;Mn.ENV_CMDS_FULL_URI=Op;Mn.ENV_CMDS_RELATIVE_URI=Qy;Mn.Endpoint=kp;Mn.fromContainerMetadata=Eye;Mn.fromInstanceMetadata=Bye;Mn.getInstanceMetadataEndpoint=vj;Mn.httpRequest=$p;Mn.providerConfigFromInit=ND});var Zs=Ct(Np=>{var{hasOwn:Lj}=(j(),F(Pi)),{streamCollector:jye}=(j(),F(Pi));Np.streamCollector=jye;var{buildQueryString:Nj,HttpResponse:Mj}=(z(),F(Qs)),Xy=require("node:https"),{Readable:Hye}=require("node:stream"),MD=require("node:http2");function Zy(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let o=new Error("Request aborted");return o.name="AbortError",o.cause=e,o}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}var zye=["ECONNRESET","EPIPE","ETIMEDOUT"],Bj=t=>{let e={};for(let r in t){if(!Lj(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},Sr={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},Ij=1e3,Vye=(t,e,r=0)=>{if(!r)return-1;let n=o=>{let s=Sr.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-o),i=a=>{a?.connecting?a.on("connect",()=>{Sr.clearTimeout(s)}):Sr.clearTimeout(s)};t.socket?i(t.socket):t.on("socket",i)};return r<2e3?(n(0),0):Sr.setTimeout(n.bind(null,Ij),Ij)},Wye=(t,e,r=0,n,o)=>r?Sr.setTimeout(()=>{let s=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let i=Object.assign(new Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(i),e(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",o?.warn?.(s)},r):-1,Kye=3e3,Qye=(t,{keepAlive:e,keepAliveMsecs:r},n=Kye)=>{if(e!==!0)return-1;let o=()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",s=>{s.setKeepAlive(e,r||0)})};return n===0?(o(),0):Sr.setTimeout(o,n)},Dj=3e3,Jye=(t,e,r=0)=>{let n=o=>{let s=r-o,i=()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};t.socket?(t.socket.setTimeout(s,i),t.on("close",()=>t.socket?.removeListener("timeout",i))):t.setTimeout(s,i)};return 0<r&&r<6e3?(n(0),0):Sr.setTimeout(n.bind(null,r===0?0:Dj),Dj)},Oj=6e3;async function Fj(t,e,r=Oj,n=!1){let o=e.headers,s=o?o.Expect||o.expect:void 0,i=-1,a=!0;!n&&s==="100-continue"&&(a=await Promise.race([new Promise(c=>{i=Number(Sr.setTimeout(()=>c(!0),Math.max(Oj,r)))}),new Promise(c=>{t.on("continue",()=>{Sr.clearTimeout(i),c(!0)}),t.on("response",()=>{Sr.clearTimeout(i),c(!1)}),t.on("error",()=>{Sr.clearTimeout(i),c(!1)})})])),a&&Xye(t,e.body)}function Xye(t,e){if(e instanceof Hye){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let o=e;if(typeof o=="object"&&o.buffer&&typeof o.byteOffset=="number"&&typeof o.byteLength=="number"){t.end(Buffer.from(o.buffer,o.byteOffset,o.byteLength));return}t.end(Buffer.from(e));return}t.end()}var Yye=0,Yy,kj,BD=class t{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:o,requests:s,maxSockets:i}=e;if(typeof i!="number"||i===1/0||Date.now()-15e3<r)return r;if(o&&s)for(let c in o){if(!Lj(o,c))continue;let u=o[c]?.length??0,f=s[c]?.length??0;if(u>=i&&f>=2*i)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${f} additional requests are enqueued.
44
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
45
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(this.resolveDefaultConfig(o))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let o=this.config,s=o.logger,i=e.protocol==="https:";return!i&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,f=-1,m=-1,y=-1,_=-1,R=-1,b=()=>{Sr.clearTimeout(f),Sr.clearTimeout(m),Sr.clearTimeout(y),Sr.clearTimeout(_),Sr.clearTimeout(R)},C=async te=>{await u,b(),a(te)},x=async te=>{await u,b(),c(te)};if(r?.aborted){let te=Zy(r);x(te);return}let w=e.headers,U=w?(w.Expect??w.expect)==="100-continue":!1,G=i?o.httpsAgent:o.httpAgent;U&&!this.externalAgent&&(G=new(i?Xy.Agent:Yy)({keepAlive:!1,maxSockets:1/0})),f=Sr.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(G,this.socketWarningTimestamp,s)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2e3)+(o.connectionTimeout??1e3));let ue=e.query?Nj(e.query):"",Qe;if(e.username!=null||e.password!=null){let te=e.username??"",kt=e.password??"";Qe=`${te}:${kt}`}let Ze=e.path;ue&&(Ze+=`?${ue}`),e.fragment&&(Ze+=`#${e.fragment}`);let Je=e.hostname??"";Je[0]==="["&&Je.endsWith("]")?Je=e.hostname.slice(1,-1):Je=e.hostname;let st={headers:e.headers,host:Je,method:e.method,path:Ze,port:e.port,agent:G,auth:Qe},Fr=(i?Xy.request:kj)(st,te=>{let kt=new Mj({statusCode:te.statusCode||-1,reason:te.statusMessage,headers:Bj(te.headers),body:te});C({response:kt})});if(Fr.on("error",te=>{zye.includes(te.code)?x(Object.assign(te,{name:"TimeoutError"})):x(te)}),r){let te=()=>{Fr.destroy();let kt=Zy(r);x(kt)};if(typeof r.addEventListener=="function"){let kt=r;kt.addEventListener("abort",te,{once:!0}),Fr.once("close",()=>kt.removeEventListener("abort",te))}else r.onabort=te}let Jr=n??o.requestTimeout;m=Vye(Fr,x,o.connectionTimeout),y=Wye(Fr,x,Jr,o.throwOnRequestTimeout,s??console),_=Jye(Fr,x,o.socketTimeout);let qt=st.agent;typeof qt=="object"&&"keepAlive"in qt&&(R=Qye(Fr,{keepAlive:qt.keepAlive,keepAliveMsecs:qt.keepAliveMsecs})),u=Fj(Fr,e,Jr,this.externalAgent).catch(te=>(b(),c(te)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...n,[e]:r})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:u}=e||{},f=!0,m=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let y=require("node:http"),{Agent:_,request:R}=y.default??y;return kj=R,Yy=_,i instanceof Yy||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new Yy({keepAlive:f,maxSockets:m,...i})},httpsAgent:a instanceof Xy.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new Xy.Agent({keepAlive:f,maxSockets:m,...a}),logger:u}}},Zye=new Uint16Array(1),Lp=class{id=Zye[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},FD=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Lp(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},UD=class{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=o.poll();if(u)return u.retain(),u}let s=new Lp(this.connect(n)),i=s.deref();this.config.maxConcurrency&&i.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let a=()=>{this.removeFromPoolAndClose(n,s)},c=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};return i.on("goaway",a),i.on("error",c),i.on("frameError",c),i.on("close",c),r.requestTimeout&&i.setTimeout(r.requestTimeout,c),o.offerLast(s),s.retain(),s}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),o=new Lp(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let i=()=>{o.destroy()};s.on("error",i),s.on("frameError",i),s.on("close",i);let a=r.requestTimeout??3e5;return s.setTimeout(a,i),o.retain(),o}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[r]={sessions:o}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new FD;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?MD.connect(e):MD.connect(e,this.connectOptions)}},{constants:$j}=MD,GD=class t{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new UD({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(o=>{r(o||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:f,nodeHttp2ConnectOptions:m}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),f&&this.connectionManager.setMaxConcurrentStreams(f),m&&this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:i}=this.config,a=i||o,c=n??s;return new Promise((u,f)=>{let m=!1,y,_=async te=>{await y,u(te)},R=async te=>{await y,f(te)};if(r?.aborted){m=!0;let te=Zy(r);R(te);return}let{hostname:b,method:C,port:x,protocol:w,query:U}=e,G="";if(e.username!=null||e.password!=null){let te=e.username??"",kt=e.password??"";G=`${te}:${kt}@`}let ue=`${w}//${G}${b}${x?`:${x}`:""}`,Qe={destination:new URL(ue)},Ze={requestTimeout:this.config?.sessionTimeout,isEventStream:o},Je=a?this.connectionManager.createIsolatedSession(Qe,Ze):this.connectionManager.lease(Qe,Ze),st=Je.deref(),Br=te=>{a&&Je.destroy(),m=!0,R(te)},Fr=U?Nj(U):"",Jr=e.path;Fr&&(Jr+=`?${Fr}`),e.fragment&&(Jr+=`#${e.fragment}`);let qt=st.request({...e.headers,[$j.HTTP2_HEADER_PATH]:Jr,[$j.HTTP2_HEADER_METHOD]:C});if(c&&qt.setTimeout(c,()=>{qt.close();let te=new Error(`Stream timed out because of no activity for ${c} ms`);te.name="TimeoutError",Br(te)}),r){let te=()=>{qt.close();let kt=Zy(r);Br(kt)};if(typeof r.addEventListener=="function"){let kt=r;kt.addEventListener("abort",te,{once:!0}),qt.once("close",()=>kt.removeEventListener("abort",te))}else r.onabort=te}qt.on("frameError",(te,kt,Nme)=>{Br(new Error(`Frame type id ${te} in stream id ${Nme} has failed with code ${kt}.`))}),qt.on("error",Br),qt.on("aborted",()=>{Br(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${qt.rstCode}.`))}),qt.on("response",te=>{let kt=new Mj({statusCode:te[":status"]??-1,headers:Bj(te),body:qt});m=!0,_({response:kt}),a&&(st.close(),qt.on("end",()=>{Je.destroy()}))}),qt.on("close",()=>{if(a?Je.destroy():this.connectionManager.release(Qe,Je),!m){let te=new Error("Unexpected error: http2 request did not get a response");st.destroyed&&(te.name="TimeoutError"),Br(te)}}),y=Fj(qt,e,c)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};Np.DEFAULT_REQUEST_TIMEOUT=Yye;Np.NodeHttp2Handler=GD;Np.NodeHttpHandler=BD});var qD=Ct(Gj=>{var{setCredentialFeature:e0e}=(ye(),F($n)),{CredentialsProviderError:sc}=(Re(),F(en)),{NodeHttpHandler:t0e}=Zs(),r0e=require("node:fs/promises"),{HttpRequest:n0e}=(z(),F(Qs)),{sdkStreamMixin:o0e,parseRfc3339DateTime:s0e}=(j(),F(Pi)),i0e="169.254.170.2",a0e="169.254.170.23",c0e="[fd00:ec2::23]",u0e=(t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===i0e||t.hostname===a0e||t.hostname===c0e)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=o=>{let s=parseInt(o,10);return 0<=s&&s<=255};if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new sc(`URL not accepted. It must either be HTTPS or match one of the following:
46
- - loopback CIDR 127.0.0.0/8 or [::1/128]
47
- - ECS container host 169.254.170.2
48
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};function l0e(t){return new n0e({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}async function d0e(t,e){let n=await o0e(t.body).transformToString();if(t.statusCode===200){let o=JSON.parse(n);if(typeof o.AccessKeyId!="string"||typeof o.SecretAccessKey!="string"||typeof o.Token!="string"||typeof o.Expiration!="string")throw new sc("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.Token,expiration:s0e(o.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let o={};try{o=JSON.parse(n)}catch{}throw Object.assign(new sc(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:o.Code,Message:o.Message})}throw new sc(`Server responded with status: ${t.statusCode}`,{logger:e})}var p0e=(t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(s=>setTimeout(s,r))}return await t()},f0e="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",m0e="http://169.254.170.2",h0e="AWS_CONTAINER_CREDENTIALS_FULL_URI",g0e="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",S0e="AWS_CONTAINER_AUTHORIZATION_TOKEN",y0e=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[f0e],n=t.awsContainerCredentialsFullUri??process.env[h0e],o=t.awsContainerAuthorizationToken??process.env[S0e],s=t.awsContainerAuthorizationTokenFile??process.env[g0e],i=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsRelativeUri will take precedence.")),o&&s&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${m0e}${r}`;else if(n)e=n;else throw new sc(`No HTTP credential provider host provided.
49
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);u0e(a,t.logger);let c=t0e.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,f=p0e(async()=>{let m=l0e(a);s?m.headers.Authorization=Uj((await r0e.readFile(s)).toString()):o&&(m.headers.Authorization=Uj(o));try{let y=await c.handle(m,{requestTimeout:u});return d0e(y.response).then(_=>e0e(_,"CREDENTIALS_HTTP","z"))}catch(y){throw new sc(String(y),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await f()}finally{c.destroy?.()}}},Uj=t=>{if(t.includes(`\r
50
- `))throw new sc("Authorization token contains invalid \\r\\n sequence.");return t};Gj.fromHttp=y0e});function E0e(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function _0e(t){return{schemeId:"smithy.api#noAuth"}}var qj,jj,Hj,jD=h(()=>{gr();Q();qj=async(t,e,r)=>({operation:Ie(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});jj=t=>{let e=[];return t.operation==="CreateToken"?e.push(_0e(t)):e.push(E0e(t)),e},Hj=t=>{let e=Rs(t);return Object.assign(e,{authSchemePreference:xe(t.authSchemePreference??[])})}});var zj,Vj,HD=h(()=>{zj=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Vj={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ra,Mp=h(()=>{ra={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var Bp,ic,e0,Wj,Xj,t0,zD,Kj,VD,ml,Qj,Jj,b0e,sn,C0e,Yj,Zj=h(()=>{Ge();Bp="ref",ic=-1,e0=!0,Wj="isSet",Xj="PartitionResult",t0="booleanEquals",zD="getAttr",Kj={[Bp]:"Endpoint"},VD={[Bp]:Xj},ml={},Qj=[{[Bp]:"Region"}],Jj={conditions:[[Wj,[Kj]],[Wj,Qj],["aws.partition",Qj,Xj],[t0,[{[Bp]:"UseFIPS"},e0]],[t0,[{[Bp]:"UseDualStack"},e0]],[t0,[{fn:zD,argv:[VD,"supportsDualStack"]},e0]],[t0,[{fn:zD,argv:[VD,"supportsFIPS"]},e0]],["stringEquals",[{fn:zD,argv:[VD,"name"]},"aws-us-gov"]]],results:[[ic],[ic,"Invalid Configuration: FIPS and custom endpoint are not supported"],[ic,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Kj,ml],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ml],[ic,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",ml],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",ml],[ic,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",ml],[ic,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",ml],[ic,"Invalid Configuration: Missing Region"]]},b0e=2,sn=1e8,C0e=new Int32Array([-1,1,-1,0,13,3,1,4,sn+12,2,5,sn+12,3,8,6,4,7,sn+11,5,sn+9,sn+10,4,11,9,6,10,sn+8,7,sn+6,sn+7,5,12,sn+5,6,sn+4,sn+5,3,sn+1,14,4,sn+2,sn+3]),Yj=vn.from(C0e,b0e,Jj.conditions,Jj.results)});var x0e,eH,tH=h(()=>{ye();Ge();Zj();x0e=new Pn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),eH=(t,e={})=>x0e.get(t,()=>es(Yj,{endpointParams:t,logger:e.logger}));tn.aws=ho});var Kt,r0=h(()=>{Q();Kt=class t extends An{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Fp,Up,Gp,qp,jp,Hp,zp,Vp,Wp,Kp,Qp,WD=h(()=>{r0();Fp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Up=class t extends Kt{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Gp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},qp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},jp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Hp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},zp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Vp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Wp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Kp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Qp=class t extends Kt{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var A0e,T0e,w0e,v0e,P0e,I0e,D0e,O0e,k0e,$0e,L0e,N0e,M0e,B0e,F0e,U0e,G0e,q0e,j0e,H0e,bs,z0e,V0e,W0e,K0e,Q0e,lt,J0e,Eo,X0e,Y0e,_o,Z0e,rH,nH,eEe,oH,tEe,rEe,nEe,xt,sH,iH,Bn,aH,cH,uH,lH,dH,pH,fH,mH,hH,gH,SH,KD,oEe,sEe,iEe,aEe,yH,EH,_H,QD,n0=h(()=>{ne();WD();r0();A0e="AccessDeniedException",T0e="AuthorizationPendingException",w0e="AccessToken",v0e="ClientSecret",P0e="CreateToken",I0e="CreateTokenRequest",D0e="CreateTokenResponse",O0e="CodeVerifier",k0e="ExpiredTokenException",$0e="InvalidClientException",L0e="InvalidGrantException",N0e="InvalidRequestException",M0e="InternalServerException",B0e="InvalidScopeException",F0e="IdToken",U0e="RefreshToken",G0e="SlowDownException",q0e="UnauthorizedClientException",j0e="UnsupportedGrantTypeException",H0e="accessToken",bs="client",z0e="clientId",V0e="clientSecret",W0e="codeVerifier",K0e="code",Q0e="deviceCode",lt="error",J0e="expiresIn",Eo="error_description",X0e="grantType",Y0e="http",_o="httpError",Z0e="idToken",rH="reason",nH="refreshToken",eEe="redirectUri",oH="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",tEe="scope",rEe="server",nEe="tokenType",xt="com.amazonaws.ssooidc",sH=new ke(oH),iH=[-3,oH,"SSOOIDCServiceException",0,[],[]];sH.registerError(iH,Kt);Bn=new ke(xt),aH=[-3,xt,A0e,{[lt]:bs,[_o]:400},[lt,rH,Eo],[0,0,0]];Bn.registerError(aH,Fp);cH=[-3,xt,T0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(cH,Up);uH=[-3,xt,k0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(uH,Gp);lH=[-3,xt,M0e,{[lt]:rEe,[_o]:500},[lt,Eo],[0,0]];Bn.registerError(lH,qp);dH=[-3,xt,$0e,{[lt]:bs,[_o]:401},[lt,Eo],[0,0]];Bn.registerError(dH,jp);pH=[-3,xt,L0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(pH,Hp);fH=[-3,xt,N0e,{[lt]:bs,[_o]:400},[lt,rH,Eo],[0,0,0]];Bn.registerError(fH,zp);mH=[-3,xt,B0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(mH,Vp);hH=[-3,xt,G0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(hH,Wp);gH=[-3,xt,q0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(gH,Kp);SH=[-3,xt,j0e,{[lt]:bs,[_o]:400},[lt,Eo],[0,0]];Bn.registerError(SH,Qp);KD=[sH,Bn],oEe=[0,xt,w0e,8,0],sEe=[0,xt,v0e,8,0],iEe=[0,xt,O0e,8,0],aEe=[0,xt,F0e,8,0],yH=[0,xt,U0e,8,0],EH=[3,xt,I0e,0,[z0e,V0e,X0e,Q0e,K0e,nH,tEe,eEe,W0e],[0,[()=>sEe,0],0,0,0,[()=>yH,0],64,0,[()=>iEe,0]],3],_H=[3,xt,D0e,0,[H0e,nEe,J0e,nH,Z0e],[[()=>oEe,0],0,1,[()=>yH,0],[()=>aEe,0]]],QD=[9,xt,P0e,{[Y0e]:["POST","/token",200]},()=>EH,()=>_H]});var RH,bH=h(()=>{gr();Yi();hr();In();Q();z();j();jD();tH();n0();RH=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??We,base64Encoder:t?.base64Encoder??Ce,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??eH,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??jj,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pr}],logger:t?.logger??new wr,protocol:t?.protocol??_s,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:KD,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??rn,urlParser:t?.urlParser??lr,utf8Decoder:t?.utf8Decoder??$t,utf8Encoder:t?.utf8Encoder??Fe})});var o0,CH,xH=h(()=>{Mp();ye();gr();Q();Re();on();j();o0=Oe(Zs());bH();CH=t=>{Go(process.version);let e=Yo(t),r=()=>e().then(Uo),n=RH(t);Mo(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oe(yo,o),bodyLengthChecker:t?.bodyLengthChecker??Wo,defaultUserAgentProvider:t?.defaultUserAgentProvider??mo({serviceId:n.serviceId,clientVersion:ra.version}),maxAttempts:t?.maxAttempts??oe(as,t),region:t?.region??oe(pr,{...Gr,...o}),requestHandler:o0.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??oe({...us,default:async()=>(await r()).retryMode||On},t),streamCollector:t?.streamCollector??o0.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??oe(Jo,o),useFipsEndpoint:t?.useFipsEndpoint??oe(Xo,o),userAgentAppId:t?.userAgentAppId??oe(hs,o)}}});var AH,TH,wH=h(()=>{AH=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},TH=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var vH,PH=h(()=>{ye();Q();z();wH();vH=(t,e)=>{let r=Object.assign(gs(t),no(t),ts(t),AH(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ss(r),qo(r),rs(r),TH(r))}});var Jp,JD=h(()=>{ye();hr();Q();Re();Ge();z();on();ne();jD();HD();xH();PH();Jp=class extends Tr{config;constructor(...[e]){let r=CH(e||{});super(r),this.initConfig=r;let n=zj(r),o=fs(n),s=cs(o),i=mn(s),a=i,c=Vs(a),u=Hj(c),f=vH(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Bo(this.config)),this.middlewareStack.use(ms(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(ds(this.config)),this.middlewareStack.use(ps(this.config)),this.middlewareStack.use(po(this.config,{httpAuthSchemeParametersProvider:qj,identityProviderConfigProvider:async m=>new Sn({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(fo(this.config))}destroy(){super.destroy()}}});var IH,DH,OH,kH=h(()=>{Q();Ge();HD();IH=jo(Vj,"AWSSSOOIDCService","SSOOIDCClient",Ws),DH={},OH=(t,e,r,n)=>[]});var Xp,XD=h(()=>{kH();n0();Xp=class extends IH(DH,OH,"CreateToken",QD){}});var cEe,s0,$H=h(()=>{Q();XD();JD();cEe={CreateTokenCommand:Xp},s0=class extends Jp{};Fo(cEe,s0)});var LH=h(()=>{XD()});var uEe,lEe,NH=h(()=>{uEe={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},lEe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var MH=h(()=>{});var YD={};mt(YD,{$Command:()=>Ur,AccessDeniedException:()=>Fp,AccessDeniedException$:()=>aH,AccessDeniedExceptionReason:()=>uEe,AuthorizationPendingException:()=>Up,AuthorizationPendingException$:()=>cH,CreateToken$:()=>QD,CreateTokenCommand:()=>Xp,CreateTokenRequest$:()=>EH,CreateTokenResponse$:()=>_H,ExpiredTokenException:()=>Gp,ExpiredTokenException$:()=>uH,InternalServerException:()=>qp,InternalServerException$:()=>lH,InvalidClientException:()=>jp,InvalidClientException$:()=>dH,InvalidGrantException:()=>Hp,InvalidGrantException$:()=>pH,InvalidRequestException:()=>zp,InvalidRequestException$:()=>fH,InvalidRequestExceptionReason:()=>lEe,InvalidScopeException:()=>Vp,InvalidScopeException$:()=>mH,SSOOIDC:()=>s0,SSOOIDCClient:()=>Jp,SSOOIDCServiceException:()=>Kt,SSOOIDCServiceException$:()=>iH,SlowDownException:()=>Wp,SlowDownException$:()=>hH,UnauthorizedClientException:()=>Kp,UnauthorizedClientException$:()=>gH,UnsupportedGrantTypeException:()=>Qp,UnsupportedGrantTypeException$:()=>SH,__Client:()=>Tr,errorTypeRegistries:()=>KD});var ZD=h(()=>{JD();$H();LH();Q();n0();NH();WD();MH();r0()});var GH=Ct(Yp=>{var{setTokenFeature:dEe}=(ye(),F($n)),{getBearerTokenEnvKey:pEe}=(gr(),F(Dp)),{TokenProviderError:Ro,getSSOTokenFilepath:fEe,parseKnownFiles:mEe,getProfileName:hEe,loadSsoSessionData:gEe,getSSOTokenFromFile:SEe,memoize:yEe,chain:EEe}=(Re(),F(en)),{promises:_Ee}=require("node:fs"),REe=({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new Ro("Please pass 'signingName' to compute environment variable key",{logger:t});let r=pEe(e);if(!(r in process.env))throw new Ro(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return dEe(n,"BEARER_SERVICE_ENV_VARS","3"),n},bEe=300*1e3,eO="To refresh this SSO session run 'aws sso login' with the corresponding profile.",CEe=async(t,e={},r)=>{let{SSOOIDCClient:n}=(ZD(),F(YD)),o=i=>e.clientConfig?.[i]??e.parentClientConfig?.[i]??r?.[i];return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},xEe=async(t,e,r={},n)=>{let{CreateTokenCommand:o}=(ZD(),F(YD));return(await CEe(e,r,n)).send(new o({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},BH=t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new Ro(`Token is expired. ${eO}`,!1)},ac=(t,e,r=!1)=>{if(typeof e>"u")throw new Ro(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${eO}`,!1)},{writeFile:AEe}=_Ee,TEe=(t,e)=>{let r=fEe(t),n=JSON.stringify(e,null,2);return AEe(r,n)},FH=new Map,UH=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await mEe(t),n=hEe({profile:t.profile??e?.profile}),o=r[n];if(o){if(!o.sso_session)throw new Ro(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new Ro(`Profile '${n}' could not be found in shared credentials file.`,!1);let s=o.sso_session,a=(await gEe(t))[s];if(!a)throw new Ro(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let R of["sso_start_url","sso_region"])if(!a[R])throw new Ro(`Sso session '${s}' is missing required property '${R}'.`,!1);a.sso_start_url;let c=a.sso_region,u;try{u=await SEe(s)}catch{throw new Ro(`The SSO session token associated with profile=${n} was not found or is invalid. ${eO}`,!1)}ac("accessToken",u.accessToken),ac("expiresAt",u.expiresAt);let{accessToken:f,expiresAt:m}=u,y={token:f,expiration:new Date(m)};if(y.expiration.getTime()-Date.now()>bEe)return y;let _=FH.get(s)??0;if(Date.now()-_<30*1e3)return BH(y),y;ac("clientId",u.clientId,!0),ac("clientSecret",u.clientSecret,!0),ac("refreshToken",u.refreshToken,!0);try{FH.set(s,Date.now());let R=await xEe(u,c,t,e);ac("accessToken",R.accessToken),ac("expiresIn",R.expiresIn);let b=new Date(Date.now()+R.expiresIn*1e3);try{await TEe(s,{...u,accessToken:R.accessToken,expiresAt:b.toISOString(),refreshToken:R.refreshToken})}catch{}return{token:R.accessToken,expiration:b}}catch{return BH(y),y}},wEe=({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new Ro("Please pass a valid token to fromStatic",!1);return t},vEe=(t={})=>yEe(EEe(UH(t),async()=>{throw new Ro("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0);Yp.fromEnvSigningName=REe;Yp.fromSso=UH;Yp.fromStatic=wEe;Yp.nodeProvider=vEe});function PEe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function IEe(t){return{schemeId:"smithy.api#noAuth"}}var qH,jH,HH,tO=h(()=>{gr();Q();qH=async(t,e,r)=>({operation:Ie(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});jH=t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(IEe(t)):e.push(PEe(t)),e},HH=t=>{let e=Rs(t);return Object.assign(e,{authSchemePreference:xe(t.authSchemePreference??[])})}});var zH,VH,rO=h(()=>{zH=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),VH={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Zp,cc,i0,WH,XH,a0,nO,KH,oO,hl,QH,JH,DEe,an,OEe,YH,ZH=h(()=>{Ge();Zp="ref",cc=-1,i0=!0,WH="isSet",XH="PartitionResult",a0="booleanEquals",nO="getAttr",KH={[Zp]:"Endpoint"},oO={[Zp]:XH},hl={},QH=[{[Zp]:"Region"}],JH={conditions:[[WH,[KH]],[WH,QH],["aws.partition",QH,XH],[a0,[{[Zp]:"UseFIPS"},i0]],[a0,[{[Zp]:"UseDualStack"},i0]],[a0,[{fn:nO,argv:[oO,"supportsDualStack"]},i0]],[a0,[{fn:nO,argv:[oO,"supportsFIPS"]},i0]],["stringEquals",[{fn:nO,argv:[oO,"name"]},"aws-us-gov"]]],results:[[cc],[cc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[cc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[KH,hl],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",hl],[cc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",hl],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",hl],[cc,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",hl],[cc,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",hl],[cc,"Invalid Configuration: Missing Region"]]},DEe=2,an=1e8,OEe=new Int32Array([-1,1,-1,0,13,3,1,4,an+12,2,5,an+12,3,8,6,4,7,an+11,5,an+9,an+10,4,11,9,6,10,an+8,7,an+6,an+7,5,12,an+5,6,an+4,an+5,3,an+1,14,4,an+2,an+3]),YH=vn.from(OEe,DEe,JH.conditions,JH.results)});var kEe,e6,t6=h(()=>{ye();Ge();ZH();kEe=new Pn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),e6=(t,e={})=>kEe.get(t,()=>es(YH,{endpointParams:t,logger:e.logger}));tn.aws=ho});var bo,c0=h(()=>{Q();bo=class t extends An{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var ef,tf,rf,nf,sO=h(()=>{c0();ef=class t extends bo{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tf=class t extends bo{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rf=class t extends bo{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nf=class t extends bo{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var $Ee,LEe,NEe,MEe,BEe,FEe,UEe,GEe,qEe,jEe,HEe,zEe,VEe,WEe,KEe,u0,l0,QEe,JEe,d0,XEe,r6,p0,YEe,ZEe,e_e,n6,t_e,r_e,n_e,Fn,o6,s6,of,i6,a6,c6,u6,iO,o_e,s_e,i_e,l6,d6,p6,aO,f0=h(()=>{ne();sO();c0();$Ee="AccessTokenType",LEe="GetRoleCredentials",NEe="GetRoleCredentialsRequest",MEe="GetRoleCredentialsResponse",BEe="InvalidRequestException",FEe="RoleCredentials",UEe="ResourceNotFoundException",GEe="SecretAccessKeyType",qEe="SessionTokenType",jEe="TooManyRequestsException",HEe="UnauthorizedException",zEe="accountId",VEe="accessKeyId",WEe="accessToken",KEe="account_id",u0="client",l0="error",QEe="expiration",JEe="http",d0="httpError",XEe="httpHeader",r6="httpQuery",p0="message",YEe="roleCredentials",ZEe="roleName",e_e="role_name",n6="smithy.ts.sdk.synthetic.com.amazonaws.sso",t_e="secretAccessKey",r_e="sessionToken",n_e="x-amz-sso_bearer_token",Fn="com.amazonaws.sso",o6=new ke(n6),s6=[-3,n6,"SSOServiceException",0,[],[]];o6.registerError(s6,bo);of=new ke(Fn),i6=[-3,Fn,BEe,{[l0]:u0,[d0]:400},[p0],[0]];of.registerError(i6,ef);a6=[-3,Fn,UEe,{[l0]:u0,[d0]:404},[p0],[0]];of.registerError(a6,tf);c6=[-3,Fn,jEe,{[l0]:u0,[d0]:429},[p0],[0]];of.registerError(c6,rf);u6=[-3,Fn,HEe,{[l0]:u0,[d0]:401},[p0],[0]];of.registerError(u6,nf);iO=[o6,of],o_e=[0,Fn,$Ee,8,0],s_e=[0,Fn,GEe,8,0],i_e=[0,Fn,qEe,8,0],l6=[3,Fn,NEe,0,[ZEe,zEe,WEe],[[0,{[r6]:e_e}],[0,{[r6]:KEe}],[()=>o_e,{[XEe]:n_e}]],3],d6=[3,Fn,MEe,0,[YEe],[[()=>p6,0]]],p6=[3,Fn,FEe,0,[VEe,t_e,r_e,QEe],[0,[()=>s_e,0],[()=>i_e,0],1]],aO=[9,Fn,LEe,{[JEe]:["GET","/federation/credentials",200]},()=>l6,()=>d6]});var f6,m6=h(()=>{gr();Yi();hr();In();Q();z();j();tO();t6();f0();f6=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??We,base64Encoder:t?.base64Encoder??Ce,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??e6,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??jH,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pr}],logger:t?.logger??new wr,protocol:t?.protocol??_s,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:iO,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??rn,urlParser:t?.urlParser??lr,utf8Decoder:t?.utf8Decoder??$t,utf8Encoder:t?.utf8Encoder??Fe})});var m0,h6,g6=h(()=>{Mp();ye();gr();Q();Re();on();j();m0=Oe(Zs());m6();h6=t=>{Go(process.version);let e=Yo(t),r=()=>e().then(Uo),n=f6(t);Mo(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oe(yo,o),bodyLengthChecker:t?.bodyLengthChecker??Wo,defaultUserAgentProvider:t?.defaultUserAgentProvider??mo({serviceId:n.serviceId,clientVersion:ra.version}),maxAttempts:t?.maxAttempts??oe(as,t),region:t?.region??oe(pr,{...Gr,...o}),requestHandler:m0.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??oe({...us,default:async()=>(await r()).retryMode||On},t),streamCollector:t?.streamCollector??m0.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??oe(Jo,o),useFipsEndpoint:t?.useFipsEndpoint??oe(Xo,o),userAgentAppId:t?.userAgentAppId??oe(hs,o)}}});var S6,y6,E6=h(()=>{S6=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},y6=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var _6,R6=h(()=>{ye();Q();z();E6();_6=(t,e)=>{let r=Object.assign(gs(t),no(t),ts(t),S6(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ss(r),qo(r),rs(r),y6(r))}});var sf,cO=h(()=>{ye();hr();Q();Re();Ge();z();on();ne();tO();rO();g6();R6();sf=class extends Tr{config;constructor(...[e]){let r=h6(e||{});super(r),this.initConfig=r;let n=zH(r),o=fs(n),s=cs(o),i=mn(s),a=i,c=Vs(a),u=HH(c),f=_6(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Bo(this.config)),this.middlewareStack.use(ms(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(ds(this.config)),this.middlewareStack.use(ps(this.config)),this.middlewareStack.use(po(this.config,{httpAuthSchemeParametersProvider:qH,identityProviderConfigProvider:async m=>new Sn({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(fo(this.config))}destroy(){super.destroy()}}});var b6,C6,x6,A6=h(()=>{Q();Ge();rO();b6=jo(VH,"SWBPortalService","SSOClient",Ws),C6={},x6=(t,e,r,n)=>[]});var af,uO=h(()=>{A6();f0();af=class extends b6(C6,x6,"GetRoleCredentials",aO){}});var a_e,h0,T6=h(()=>{Q();uO();cO();a_e={GetRoleCredentialsCommand:af},h0=class extends sf{};Fo(a_e,h0)});var w6=h(()=>{uO()});var v6=h(()=>{});var P6={};mt(P6,{$Command:()=>Ur,GetRoleCredentials$:()=>aO,GetRoleCredentialsCommand:()=>af,GetRoleCredentialsRequest$:()=>l6,GetRoleCredentialsResponse$:()=>d6,InvalidRequestException:()=>ef,InvalidRequestException$:()=>i6,ResourceNotFoundException:()=>tf,ResourceNotFoundException$:()=>a6,RoleCredentials$:()=>p6,SSO:()=>h0,SSOClient:()=>sf,SSOServiceException:()=>bo,SSOServiceException$:()=>s6,TooManyRequestsException:()=>rf,TooManyRequestsException$:()=>c6,UnauthorizedException:()=>nf,UnauthorizedException$:()=>u6,__Client:()=>Tr,errorTypeRegistries:()=>iO});var I6=h(()=>{cO();T6();w6();Q();f0();sO();v6();c0()});var D6=Ct(lO=>{var{GetRoleCredentialsCommand:c_e,SSOClient:u_e}=(I6(),F(P6));lO.GetRoleCredentialsCommand=c_e;lO.SSOClient=u_e});var dO=Ct(g0=>{var{CredentialsProviderError:Co,getSSOTokenFromFile:l_e,getProfileName:d_e,parseKnownFiles:p_e,loadSsoSessionData:f_e}=(Re(),F(en)),{setCredentialFeature:O6}=(ye(),F($n)),{fromSso:m_e}=GH(),$6=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),cf=!1,k6=async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:s,clientConfig:i,parentClientConfig:a,callerClientConfig:c,profile:u,filepath:f,configFilepath:m,ignoreCache:y,logger:_})=>{let R,b="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let Jr=await m_e({profile:u,filepath:f,configFilepath:m,ignoreCache:y,clientConfig:i,parentClientConfig:a,logger:_})({callerClientConfig:c});R={accessToken:Jr.token,expiresAt:new Date(Jr.expiration).toISOString()}}catch(Jr){throw new Co(Jr.message,{tryNextLink:cf,logger:_})}else try{R=await l_e(t)}catch{throw new Co(`The SSO session associated with this profile is invalid. ${b}`,{tryNextLink:cf,logger:_})}if(new Date(R.expiresAt).getTime()-Date.now()<=0)throw new Co(`The SSO session associated with this profile has expired. ${b}`,{tryNextLink:cf,logger:_});let{accessToken:C}=R,{SSOClient:x,GetRoleCredentialsCommand:w}=D6(),U=s||new x(Object.assign({},i??{},{logger:i?.logger??c?.logger??a?.logger,region:i?.region??n,userAgentAppId:i?.userAgentAppId??c?.userAgentAppId??a?.userAgentAppId})),G;try{G=await U.send(new w({accountId:r,roleName:o,accessToken:C}))}catch(Jr){throw new Co(Jr,{tryNextLink:cf,logger:_})}let{roleCredentials:{accessKeyId:ue,secretAccessKey:Qe,sessionToken:Ze,expiration:Je,credentialScope:st,accountId:Br}={}}=G;if(!ue||!Qe||!Ze||!Je)throw new Co("SSO returns an invalid temporary credential.",{tryNextLink:cf,logger:_});let Fr={accessKeyId:ue,secretAccessKey:Qe,sessionToken:Ze,expiration:new Date(Je),...st&&{credentialScope:st},...Br&&{accountId:Br}};return e?O6(Fr,"CREDENTIALS_SSO","s"):O6(Fr,"CREDENTIALS_SSO_LEGACY","u"),Fr},L6=(t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:o,sso_role_name:s}=t;if(!r||!n||!o||!s)throw new Co(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
51
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},h_e=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t,{ssoClient:a}=t,c=d_e({profile:t.profile??e?.profile});if(!r&&!n&&!o&&!s&&!i){let f=(await p_e(t))[c];if(!f)throw new Co(`Profile ${c} was not found.`,{logger:t.logger});if(!$6(f))throw new Co(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(f?.sso_session){let x=(await f_e(t))[f.sso_session],w=` configurations in profile ${c} and sso-session ${f.sso_session}`;if(o&&o!==x.sso_region)throw new Co("Conflicting SSO region"+w,{tryNextLink:!1,logger:t.logger});if(r&&r!==x.sso_start_url)throw new Co("Conflicting SSO start_url"+w,{tryNextLink:!1,logger:t.logger});f.sso_region=x.sso_region,f.sso_start_url=x.sso_start_url}let{sso_start_url:m,sso_account_id:y,sso_region:_,sso_role_name:R,sso_session:b}=L6(f,t.logger);return k6({ssoStartUrl:m,ssoSession:b,ssoAccountId:y,ssoRegion:_,ssoRoleName:R,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!o||!s)throw new Co('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return k6({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};g0.fromSSO=h_e;g0.isSsoProfile=$6;g0.validateSsoProfile=L6});var Sl,uc,uf,N6,H6,lf,yr,pO,M6,B6,F6,U6,G6,Er,fO,gl,q6,j6,g_e,Ae,S_e,z6,V6=h(()=>{Ge();Sl="ref",uc=-1,uf=!0,N6="isSet",H6="PartitionResult",lf="booleanEquals",yr="stringEquals",pO="getAttr",M6="us-east-1",B6="sigv4",F6="sts",U6="https://sts.{Region}.{PartitionResult#dnsSuffix}",G6={[Sl]:"Endpoint"},Er={[Sl]:"Region"},fO={[Sl]:H6},gl={},q6=[Er],j6={conditions:[[N6,[G6]],[N6,q6],["aws.partition",q6,H6],[lf,[{[Sl]:"UseFIPS"},uf]],[lf,[{[Sl]:"UseDualStack"},uf]],[yr,[Er,"aws-global"]],[lf,[{[Sl]:"UseGlobalEndpoint"},uf]],[yr,[Er,"eu-central-1"]],[lf,[{fn:pO,argv:[fO,"supportsDualStack"]},uf]],[lf,[{fn:pO,argv:[fO,"supportsFIPS"]},uf]],[yr,[Er,"ap-south-1"]],[yr,[Er,"eu-north-1"]],[yr,[Er,"eu-west-1"]],[yr,[Er,"eu-west-2"]],[yr,[Er,"eu-west-3"]],[yr,[Er,"sa-east-1"]],[yr,[Er,M6]],[yr,[Er,"us-east-2"]],[yr,[Er,"us-west-2"]],[yr,[Er,"us-west-1"]],[yr,[Er,"ca-central-1"]],[yr,[Er,"ap-southeast-1"]],[yr,[Er,"ap-northeast-1"]],[yr,[Er,"ap-southeast-2"]],[yr,[{fn:pO,argv:[fO,"name"]},"aws-us-gov"]]],results:[[uc],["https://sts.amazonaws.com",{authSchemes:[{name:B6,signingName:F6,signingRegion:M6}]}],[U6,{authSchemes:[{name:B6,signingName:F6,signingRegion:"{Region}"}]}],[uc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[uc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[G6,gl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",gl],[uc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",gl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",gl],[uc,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",gl],[uc,"DualStack is enabled but this partition does not support DualStack"],[U6,gl],[uc,"Invalid Configuration: Missing Region"]]},g_e=2,Ae=1e8,S_e=new Int32Array([-1,1,-1,0,30,3,1,4,Ae+14,2,5,Ae+14,3,25,6,4,24,7,5,Ae+1,8,6,9,Ae+13,7,Ae+1,10,10,Ae+1,11,11,Ae+1,12,12,Ae+1,13,13,Ae+1,14,14,Ae+1,15,15,Ae+1,16,16,Ae+1,17,17,Ae+1,18,18,Ae+1,19,19,Ae+1,20,20,Ae+1,21,21,Ae+1,22,22,Ae+1,23,23,Ae+1,Ae+2,8,Ae+11,Ae+12,4,28,26,9,27,Ae+10,24,Ae+8,Ae+9,8,29,Ae+7,9,Ae+6,Ae+7,3,Ae+3,31,4,Ae+4,Ae+5]),z6=vn.from(S_e,g_e,j6.conditions,j6.results)});var y_e,S0,mO=h(()=>{ye();Ge();V6();y_e=new Pn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),S0=(t,e={})=>y_e.get(t,()=>es(z6,{endpointParams:t,logger:e.logger}));tn.aws=ho});function Q6(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function hO(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function J6(t){return{schemeId:"smithy.api#noAuth"}}var W6,E_e,__e,K6,R_e,b_e,X6,Y6,gO=h(()=>{gr();W6=Oe(Sp());Q();Ge();mO();E_e=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=Ie(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await jd(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},__e=async(t,e,r)=>({operation:Ie(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),K6=E_e(__e);R_e=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let C=i.find(x=>{let w=x.name.toLowerCase();return w!=="sigv4a"&&w.startsWith("sigv4")});if(W6.SignatureV4MultiRegion.sigv4aDependency()==="none"&&C)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[_];if(!R)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let b=R(o);b.schemeId=_,b.signingProperties={...b.signingProperties||{},...m,...f},a.push(b)}return a},b_e=t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(J6(t)),e.push(hO(t))):(e.push(Q6(t)),e.push(hO(t))),e},X6=R_e(S0,b_e,{"aws.auth#sigv4":Q6,"aws.auth#sigv4a":hO,"smithy.api#noAuth":J6}),Y6=t=>{let e=Rs(t),r=Pp(e);return Object.assign(r,{authSchemePreference:xe(t.authSchemePreference??[])})}});var Z6,e5,SO=h(()=>{Z6=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),e5={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var cn,y0=h(()=>{Q();cn=class t extends An{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var df,pf,ff,mf,hf,gf,Sf,yO=h(()=>{y0();df=class t extends cn{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pf=class t extends cn{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ff=class t extends cn{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mf=class t extends cn{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hf=class t extends cn{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},gf=class t extends cn{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Sf=class t extends cn{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var C_e,x_e,A_e,T_e,w_e,v_e,EO,P_e,I_e,D_e,O_e,_O,k_e,t5,$_e,L_e,N_e,M_e,B_e,F_e,U_e,G_e,r5,n5,o5,q_e,j_e,H_e,z_e,V_e,W_e,s5,K_e,Q_e,i5,J_e,a5,X_e,Y_e,RO,Z_e,eRe,c5,u5,tRe,rRe,nRe,oRe,sRe,iRe,aRe,cRe,lc,dc,uRe,pc,fc,mc,lRe,l5,dRe,et,d5,p5,na,f5,m5,h5,g5,S5,y5,E5,bO,pRe,fRe,CO,_5,R5,b5,C5,xO,x5,A5,T5,w5,mRe,hRe,AO,TO,yf=h(()=>{ne();yO();y0();C_e="Arn",x_e="AccessKeyId",A_e="AssumeRole",T_e="AssumedRoleId",w_e="AssumeRoleRequest",v_e="AssumeRoleResponse",EO="AssumedRoleUser",P_e="AssumeRoleWithWebIdentity",I_e="AssumeRoleWithWebIdentityRequest",D_e="AssumeRoleWithWebIdentityResponse",O_e="Audience",_O="Credentials",k_e="ContextAssertion",t5="DurationSeconds",$_e="Expiration",L_e="ExternalId",N_e="ExpiredTokenException",M_e="IDPCommunicationErrorException",B_e="IDPRejectedClaimException",F_e="InvalidIdentityTokenException",U_e="Key",G_e="MalformedPolicyDocumentException",r5="MinimumSessionTokenSize",n5="Policy",o5="PolicyArns",q_e="ProviderArn",j_e="ProvidedContexts",H_e="ProvidedContextsListType",z_e="ProvidedContext",V_e="PolicyDescriptorType",W_e="ProviderId",s5="PackedPolicySize",K_e="PackedPolicyTooLargeException",Q_e="Provider",i5="RoleArn",J_e="RegionDisabledException",a5="RoleSessionName",X_e="SecretAccessKey",Y_e="SubjectFromWebIdentityToken",RO="SourceIdentity",Z_e="SerialNumber",eRe="SessionToken",c5="SessionTokenSize",u5="SessionTokenUtilization",tRe="Tags",rRe="TokenCode",nRe="TransitiveTagKeys",oRe="Tag",sRe="Value",iRe="WebIdentityToken",aRe="arn",cRe="accessKeySecretType",lc="awsQueryError",dc="client",uRe="clientTokenType",pc="error",fc="httpError",mc="message",lRe="policyDescriptorListType",l5="smithy.ts.sdk.synthetic.com.amazonaws.sts",dRe="tagListType",et="com.amazonaws.sts",d5=new ke(l5),p5=[-3,l5,"STSServiceException",0,[],[]];d5.registerError(p5,cn);na=new ke(et),f5=[-3,et,N_e,{[lc]:["ExpiredTokenException",400],[pc]:dc,[fc]:400},[mc],[0]];na.registerError(f5,df);m5=[-3,et,M_e,{[lc]:["IDPCommunicationError",400],[pc]:dc,[fc]:400},[mc],[0]];na.registerError(m5,Sf);h5=[-3,et,B_e,{[lc]:["IDPRejectedClaim",403],[pc]:dc,[fc]:403},[mc],[0]];na.registerError(h5,hf);g5=[-3,et,F_e,{[lc]:["InvalidIdentityToken",400],[pc]:dc,[fc]:400},[mc],[0]];na.registerError(g5,gf);S5=[-3,et,G_e,{[lc]:["MalformedPolicyDocument",400],[pc]:dc,[fc]:400},[mc],[0]];na.registerError(S5,pf);y5=[-3,et,K_e,{[lc]:["PackedPolicyTooLarge",400],[pc]:dc,[fc]:400},[mc],[0]];na.registerError(y5,ff);E5=[-3,et,J_e,{[lc]:["RegionDisabledException",403],[pc]:dc,[fc]:403},[mc],[0]];na.registerError(E5,mf);bO=[d5,na],pRe=[0,et,cRe,8,0],fRe=[0,et,uRe,8,0],CO=[3,et,EO,0,[T_e,C_e],[0,0],2],_5=[3,et,w_e,0,[i5,a5,o5,n5,t5,tRe,nRe,L_e,Z_e,rRe,RO,j_e,r5],[0,0,()=>w5,0,1,()=>hRe,64,0,0,0,0,()=>mRe,1],2],R5=[3,et,v_e,0,[_O,EO,s5,RO,u5,c5],[[()=>xO,0],()=>CO,1,0,1,1]],b5=[3,et,I_e,0,[i5,a5,iRe,W_e,o5,n5,t5,r5],[0,0,[()=>fRe,0],0,()=>w5,0,1,1],3],C5=[3,et,D_e,0,[_O,Y_e,EO,s5,Q_e,O_e,RO,u5,c5],[[()=>xO,0],0,()=>CO,1,0,0,0,1,1]],xO=[3,et,_O,0,[x_e,X_e,eRe,$_e],[0,[()=>pRe,0],0,4],4],x5=[3,et,V_e,0,[aRe],[0]],A5=[3,et,z_e,0,[q_e,k_e],[0,0]],T5=[3,et,oRe,0,[U_e,sRe],[0,0],2],w5=[1,et,lRe,0,()=>x5],mRe=[1,et,H_e,0,()=>A5],hRe=[1,et,dRe,0,()=>T5],AO=[9,et,A_e,0,()=>_5,()=>R5],TO=[9,et,P_e,0,()=>b5,()=>C5]});var v5,P5,I5=h(()=>{gr();Yi();v5=Oe(Sp());hr();In();Q();z();j();gO();mO();yf();P5=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??We,base64Encoder:t?.base64Encoder??Ce,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??S0,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??X6,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wt},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Ys},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pr}],logger:t?.logger??new wr,protocol:t?.protocol??Xi,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:bO,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??rn,signerConstructor:t?.signerConstructor??v5.SignatureV4MultiRegion,urlParser:t?.urlParser??lr,utf8Decoder:t?.utf8Decoder??$t,utf8Encoder:t?.utf8Encoder??Fe})});var E0,D5,O5=h(()=>{Mp();ye();gr();hr();Q();Re();on();j();E0=Oe(Zs());I5();D5=t=>{Go(process.version);let e=Yo(t),r=()=>e().then(Uo),n=P5(t);Mo(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oe(yo,o),bodyLengthChecker:t?.bodyLengthChecker??Wo,defaultUserAgentProvider:t?.defaultUserAgentProvider??mo({serviceId:n.serviceId,clientVersion:ra.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async i=>await t.credentialDefaultProvider(i?.__config||{})()),signer:new Wt},{schemeId:"aws.auth#sigv4a",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4a"),signer:new Ys},{schemeId:"smithy.api#noAuth",identityProvider:s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pr}],maxAttempts:t?.maxAttempts??oe(as,t),region:t?.region??oe(pr,{...Gr,...o}),requestHandler:E0.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??oe({...us,default:async()=>(await r()).retryMode||On},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??oe(Ip,o),streamCollector:t?.streamCollector??E0.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??oe(Jo,o),useFipsEndpoint:t?.useFipsEndpoint??oe(Xo,o),userAgentAppId:t?.userAgentAppId??oe(hs,o)}}});var k5,$5,L5=h(()=>{k5=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},$5=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var N5,M5=h(()=>{ye();Q();z();L5();N5=(t,e)=>{let r=Object.assign(gs(t),no(t),ts(t),k5(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ss(r),qo(r),rs(r),$5(r))}});var oa,_0=h(()=>{ye();hr();Q();Re();Ge();z();on();ne();gO();SO();O5();M5();oa=class extends Tr{config;constructor(...[e]){let r=D5(e||{});super(r),this.initConfig=r;let n=Z6(r),o=fs(n),s=cs(o),i=mn(s),a=i,c=Vs(a),u=Y6(c),f=N5(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Bo(this.config)),this.middlewareStack.use(ms(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(ds(this.config)),this.middlewareStack.use(ps(this.config)),this.middlewareStack.use(po(this.config,{httpAuthSchemeParametersProvider:K6,identityProviderConfigProvider:async m=>new Sn({"aws.auth#sigv4":m.credentials,"aws.auth#sigv4a":m.credentials})})),this.middlewareStack.use(fo(this.config))}destroy(){super.destroy()}}});var R0,b0,C0,wO=h(()=>{Q();Ge();SO();R0=jo(e5,"AWSSecurityTokenServiceV20110615","STSClient",Ws),b0={},C0=(t,e,r,n)=>[]});var hc,x0=h(()=>{wO();yf();hc=class extends R0(b0,C0,"AssumeRole",AO){}});var gc,A0=h(()=>{wO();yf();gc=class extends R0(b0,C0,"AssumeRoleWithWebIdentity",TO){}});var gRe,T0,B5=h(()=>{Q();x0();A0();_0();gRe={AssumeRoleCommand:hc,AssumeRoleWithWebIdentityCommand:gc},T0=class extends oa{};Fo(gRe,T0)});var F5=h(()=>{x0();A0()});var U5=h(()=>{});var G5,q5,j5,H5,z5,V5=h(()=>{ye();x0();A0();G5=t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},q5=async(t,e,r,n={})=>{let o=typeof t=="function"?await t():t,s=typeof e=="function"?await e():e,i="",a=o??s??(i=await PS(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${i} (STS default: AWS_REGION, profile region, or us-east-1)`),a},j5=(t,e)=>{let r,n;return async(o,s)=>{if(n=o,!r){let{logger:f=t?.parentClientConfig?.logger,profile:m=t?.parentClientConfig?.profile,region:y,requestHandler:_=t?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:b=t?.parentClientConfig?.userAgentAppId}=t,C=await q5(y,t?.parentClientConfig?.region,R,{logger:f,profile:m}),x=!z5(_);r=new e({...t,userAgentAppId:b,profile:m,credentialDefaultProvider:()=>async()=>n,region:C,requestHandler:x?_:void 0,logger:f})}let{Credentials:i,AssumedRoleUser:a}=await r.send(new hc(s));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let c=G5(a),u={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};return yi(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},H5=(t,e)=>{let r;return async n=>{if(!r){let{logger:c=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:_=t?.parentClientConfig?.userAgentAppId}=t,R=await q5(f,t?.parentClientConfig?.region,y,{logger:c,profile:u}),b=!z5(m);r=new e({...t,userAgentAppId:_,profile:u,region:R,requestHandler:b?m:void 0,logger:c})}let{Credentials:o,AssumedRoleUser:s}=await r.send(new gc(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let i=G5(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...i&&{accountId:i}};return i&&yi(a,"RESOLVED_ACCOUNT_ID","T"),yi(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},z5=t=>t?.metadata?.handlerProtocol==="h2"});var W5,K5,Q5,SRe,J5=h(()=>{V5();_0();W5=(t,e)=>e?class extends t{constructor(n){super(n);for(let o of e)this.middlewareStack.use(o)}}:t,K5=(t={},e)=>j5(t,W5(oa,e)),Q5=(t={},e)=>H5(t,W5(oa,e)),SRe=t=>e=>t({roleAssumer:K5(e),roleAssumerWithWebIdentity:Q5(e),...e})});var vO={};mt(vO,{$Command:()=>Ur,AssumeRole$:()=>AO,AssumeRoleCommand:()=>hc,AssumeRoleRequest$:()=>_5,AssumeRoleResponse$:()=>R5,AssumeRoleWithWebIdentity$:()=>TO,AssumeRoleWithWebIdentityCommand:()=>gc,AssumeRoleWithWebIdentityRequest$:()=>b5,AssumeRoleWithWebIdentityResponse$:()=>C5,AssumedRoleUser$:()=>CO,Credentials$:()=>xO,ExpiredTokenException:()=>df,ExpiredTokenException$:()=>f5,IDPCommunicationErrorException:()=>Sf,IDPCommunicationErrorException$:()=>m5,IDPRejectedClaimException:()=>hf,IDPRejectedClaimException$:()=>h5,InvalidIdentityTokenException:()=>gf,InvalidIdentityTokenException$:()=>g5,MalformedPolicyDocumentException:()=>pf,MalformedPolicyDocumentException$:()=>S5,PackedPolicyTooLargeException:()=>ff,PackedPolicyTooLargeException$:()=>y5,PolicyDescriptorType$:()=>x5,ProvidedContext$:()=>A5,RegionDisabledException:()=>mf,RegionDisabledException$:()=>E5,STS:()=>T0,STSClient:()=>oa,STSServiceException:()=>cn,STSServiceException$:()=>p5,Tag$:()=>T5,__Client:()=>Tr,decorateDefaultCredentialProvider:()=>SRe,errorTypeRegistries:()=>bO,getDefaultRoleAssumer:()=>K5,getDefaultRoleAssumerWithWebIdentity:()=>Q5});var PO=h(()=>{_0();B5();F5();Q();yf();yO();U5();J5();y0()});function yRe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function ERe(t){return{schemeId:"smithy.api#noAuth"}}var X5,Y5,Z5,IO=h(()=>{gr();Q();X5=async(t,e,r)=>({operation:Ie(e).operation,region:await xe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});Y5=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(ERe(t)):e.push(yRe(t)),e},Z5=t=>{let e=Rs(t);return Object.assign(e,{authSchemePreference:xe(t.authSchemePreference??[])})}});var ez,tz,DO=h(()=>{ez=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),tz={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var aa,sa,rz,yl,nz,El,oz,kO,ei,OO,sz,iz,ia,lz,az,w0,Ir,cz,uz,_Re,fe,RRe,dz,pz=h(()=>{Ge();aa="ref",sa=-1,rz=!1,yl=!0,nz="isSet",El="booleanEquals",oz="coalesce",kO="PartitionResult",ei="stringEquals",OO="getAttr",sz="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",iz={[aa]:"Endpoint"},ia={fn:OO,argv:[{[aa]:kO},"name"]},lz={[aa]:"Region"},az={[aa]:kO},w0={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Ir={},cz=[lz],uz={conditions:[[nz,cz],[El,[{fn:oz,argv:[{[aa]:"IsControlPlane"},rz]},yl]],[nz,[iz]],["aws.partition",cz,kO],[El,[{[aa]:"UseFIPS"},yl]],[ei,[ia,"aws"]],[El,[{fn:oz,argv:[{[aa]:"IsOAuthEndpoint"},rz]},yl]],[El,[{[aa]:"UseDualStack"},yl]],[ei,[ia,"aws-cn"]],[ei,[lz,"us-gov-west-1"]],[ei,[ia,"aws-us-gov"]],[El,[{fn:OO,argv:[az,"supportsFIPS"]},yl]],[ei,[ia,"aws-iso"]],[ei,[ia,"aws-iso-b"]],[ei,[ia,"aws-iso-f"]],[ei,[ia,"aws-iso-e"]],[ei,[ia,"aws-eusc"]],[El,[{fn:OO,argv:[az,"supportsDualStack"]},yl]]],results:[[sa],["https://signin.{Region}.api.aws",w0],["https://signin.{Region}.api.amazonwebservices.com.cn",w0],[sz,w0],[sa,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",w0],["https://{Region}.signin.aws.amazon.com",Ir],["https://{Region}.signin.amazonaws.cn",Ir],["https://{Region}.signin.amazonaws-us-gov.com",Ir],["https://{Region}.signin.c2shome.ic.gov",Ir],["https://{Region}.signin.sc2shome.sgov.gov",Ir],["https://{Region}.signin.csphome.hci.ic.gov",Ir],["https://{Region}.signin.csphome.adc-e.uk",Ir],["https://{Region}.signin.amazonaws-eusc.eu",Ir],["https://signin-fips.amazonaws-us-gov.com",Ir],["https://{Region}.signin-fips.amazonaws-us-gov.com",Ir],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Ir],[sa,"Invalid Configuration: FIPS and custom endpoint are not supported"],[sa,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[iz,Ir],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ir],[sa,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Ir],[sa,"FIPS is enabled but this partition does not support FIPS"],[sz,Ir],[sa,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Ir],[sa,"Invalid Configuration: Missing Region"]]},_Re=2,fe=1e8,RRe=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,fe+27,6,fe+4,fe+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,fe+7,13,10,fe+8,14,12,fe+9,15,13,fe+10,16,14,fe+11,17,15,fe+12,18,16,fe+13,fe+16,6,fe+5,20,7,21,fe+6,17,fe+24,fe+25,6,fe+4,23,7,27,24,9,fe+14,25,10,fe+15,26,11,fe+22,fe+23,11,28,fe+21,17,fe+20,fe+21,2,35,30,3,39,31,4,32,fe+27,6,fe+4,33,7,fe+27,34,9,fe+14,fe+27,3,39,36,4,38,37,7,fe+18,fe+19,6,fe+4,fe+17,5,fe+1,40,8,fe+2,fe+3]),dz=vn.from(RRe,_Re,uz.conditions,uz.results)});var bRe,fz,mz=h(()=>{ye();Ge();pz();bRe=new Pn({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),fz=(t,e={})=>bRe.get(t,()=>es(dz,{endpointParams:t,logger:e.logger}));tn.aws=ho});var xo,v0=h(()=>{Q();xo=class t extends An{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Ef,_f,Rf,bf,$O=h(()=>{v0();Ef=class t extends xo{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},_f=class t extends xo{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},Rf=class t extends xo{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},bf=class t extends xo{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var CRe,xRe,ARe,TRe,wRe,vRe,PRe,IRe,DRe,ORe,kRe,$Re,LRe,NRe,MRe,hz,LO,BRe,FO,gz,Sz,FRe,ca,NO,URe,MO,GRe,bz,UO,yz,_r,I0,qRe,P0,Ez,Cz,_z,Rz,jRe,HRe,zRe,BO,VRe,Dr,xz,Az,Cf,Tz,wz,vz,Pz,GO,WRe,Iz,Dz,Oz,kz,$z,Lz,Nz,Mz,qO,jO,xf=h(()=>{ne();$O();v0();CRe="AccessDeniedException",xRe="AccessToken",ARe="CreateOAuth2Token",TRe="CreateOAuth2TokenRequest",wRe="CreateOAuth2TokenRequestBody",vRe="CreateOAuth2TokenResponseBody",PRe="CreateOAuth2TokenResponse",IRe="CreateOAuth2TokenWithIAM",DRe="CreateOAuth2TokenWithIAMRequest",ORe="CreateOAuth2TokenWithIAMResponse",kRe="InternalServerException",$Re="OAuthAccessToken",LRe="RefreshToken",NRe="TooManyRequestsError",MRe="ValidationException",hz="accessKeyId",LO="accessToken",BRe="access_token",FO="client",gz="clientId",Sz="codeVerifier",FRe="code",ca="error",NO="expiresIn",URe="expires_in",MO="grantType",GRe="grant_type",bz="http",UO="httpError",yz="idToken",_r="jsonName",I0="message",qRe="resource",P0="refreshToken",Ez="redirectUri",Cz="smithy.ts.sdk.synthetic.com.amazonaws.signin",_z="secretAccessKey",Rz="sessionToken",jRe="server",HRe="tokenInput",zRe="tokenOutput",BO="tokenType",VRe="token_type",Dr="com.amazonaws.signin",xz=new ke(Cz),Az=[-3,Cz,"SigninServiceException",0,[],[]];xz.registerError(Az,xo);Cf=new ke(Dr),Tz=[-3,Dr,CRe,{[ca]:FO},[ca,I0],[0,0],2];Cf.registerError(Tz,Ef);wz=[-3,Dr,kRe,{[ca]:jRe,[UO]:500},[ca,I0],[0,0],2];Cf.registerError(wz,_f);vz=[-3,Dr,NRe,{[ca]:FO,[UO]:429},[ca,I0],[0,0],2];Cf.registerError(vz,Rf);Pz=[-3,Dr,MRe,{[ca]:FO,[UO]:400},[ca,I0],[0,0],2];Cf.registerError(Pz,bf);GO=[xz,Cf],WRe=[0,Dr,$Re,8,0],Iz=[0,Dr,LRe,8,0],Dz=[3,Dr,xRe,8,[hz,_z,Rz],[[0,{[_r]:hz}],[0,{[_r]:_z}],[0,{[_r]:Rz}]],3],Oz=[3,Dr,TRe,0,[HRe],[[()=>kz,16]],1],kz=[3,Dr,wRe,0,[gz,MO,FRe,Ez,Sz,P0],[[0,{[_r]:gz}],[0,{[_r]:MO}],0,[0,{[_r]:Ez}],[0,{[_r]:Sz}],[()=>Iz,{[_r]:P0}]],2],$z=[3,Dr,PRe,0,[zRe],[[()=>Lz,16]],1],Lz=[3,Dr,vRe,0,[LO,BO,NO,P0,yz],[[()=>Dz,{[_r]:LO}],[0,{[_r]:BO}],[1,{[_r]:NO}],[()=>Iz,{[_r]:P0}],[0,{[_r]:yz}]],4],Nz=[3,Dr,DRe,0,[MO,qRe],[[0,{[_r]:GRe}],0],2],Mz=[3,Dr,ORe,0,[LO,BO,NO],[[()=>WRe,{[_r]:BRe}],[0,{[_r]:VRe}],[1,{[_r]:URe}]],3],qO=[9,Dr,ARe,{[bz]:["POST","/v1/token",200]},()=>Oz,()=>$z],jO=[9,Dr,IRe,{[bz]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>Nz,()=>Mz]});var Bz,Fz=h(()=>{gr();Yi();hr();In();Q();z();j();IO();mz();xf();Bz=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??We,base64Encoder:t?.base64Encoder??Ce,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??fz,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Y5,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Wt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pr}],logger:t?.logger??new wr,protocol:t?.protocol??_s,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:GO,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??rn,urlParser:t?.urlParser??lr,utf8Decoder:t?.utf8Decoder??$t,utf8Encoder:t?.utf8Encoder??Fe})});var D0,Uz,Gz=h(()=>{Mp();ye();gr();Q();Re();on();j();D0=Oe(Zs());Fz();Uz=t=>{Go(process.version);let e=Yo(t),r=()=>e().then(Uo),n=Bz(t);Mo(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oe(yo,o),bodyLengthChecker:t?.bodyLengthChecker??Wo,defaultUserAgentProvider:t?.defaultUserAgentProvider??mo({serviceId:n.serviceId,clientVersion:ra.version}),maxAttempts:t?.maxAttempts??oe(as,t),region:t?.region??oe(pr,{...Gr,...o}),requestHandler:D0.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??oe({...us,default:async()=>(await r()).retryMode||On},t),streamCollector:t?.streamCollector??D0.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??oe(Jo,o),useFipsEndpoint:t?.useFipsEndpoint??oe(Xo,o),userAgentAppId:t?.userAgentAppId??oe(hs,o)}}});var qz,jz,Hz=h(()=>{qz=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},jz=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var zz,Vz=h(()=>{ye();Q();z();Hz();zz=(t,e)=>{let r=Object.assign(gs(t),no(t),ts(t),qz(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Ss(r),qo(r),rs(r),jz(r))}});var Af,HO=h(()=>{ye();hr();Q();Re();Ge();z();on();ne();IO();DO();Gz();Vz();Af=class extends Tr{config;constructor(...[e]){let r=Uz(e||{});super(r),this.initConfig=r;let n=ez(r),o=fs(n),s=cs(o),i=mn(s),a=i,c=Vs(a),u=Z5(c),f=zz(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(Bo(this.config)),this.middlewareStack.use(ms(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(ns(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(ds(this.config)),this.middlewareStack.use(ps(this.config)),this.middlewareStack.use(po(this.config,{httpAuthSchemeParametersProvider:X5,identityProviderConfigProvider:async m=>new Sn({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(fo(this.config))}destroy(){super.destroy()}}});var O0,Wz,Kz,k0,zO=h(()=>{Q();Ge();DO();O0=jo(tz,"Signin","SigninClient",Ws),Wz={IsControlPlane:{type:"staticContextParams",value:!1}},Kz={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},k0=(t,e,r,n)=>[]});var Tf,VO=h(()=>{zO();xf();Tf=class extends O0(Wz,k0,"CreateOAuth2Token",qO){}});var wf,WO=h(()=>{zO();xf();wf=class extends O0(Kz,k0,"CreateOAuth2TokenWithIAM",jO){}});var KRe,$0,Qz=h(()=>{Q();VO();WO();HO();KRe={CreateOAuth2TokenCommand:Tf,CreateOAuth2TokenWithIAMCommand:wf},$0=class extends Af{};Fo(KRe,$0)});var Jz=h(()=>{VO();WO()});var QRe,Xz=h(()=>{QRe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var Yz=h(()=>{});var Zz={};mt(Zz,{$Command:()=>Ur,AccessDeniedException:()=>Ef,AccessDeniedException$:()=>Tz,AccessToken$:()=>Dz,CreateOAuth2Token$:()=>qO,CreateOAuth2TokenCommand:()=>Tf,CreateOAuth2TokenRequest$:()=>Oz,CreateOAuth2TokenRequestBody$:()=>kz,CreateOAuth2TokenResponse$:()=>$z,CreateOAuth2TokenResponseBody$:()=>Lz,CreateOAuth2TokenWithIAM$:()=>jO,CreateOAuth2TokenWithIAMCommand:()=>wf,CreateOAuth2TokenWithIAMRequest$:()=>Nz,CreateOAuth2TokenWithIAMResponse$:()=>Mz,InternalServerException:()=>_f,InternalServerException$:()=>wz,OAuth2ErrorCode:()=>QRe,Signin:()=>$0,SigninClient:()=>Af,SigninServiceException:()=>xo,SigninServiceException$:()=>Az,TooManyRequestsError:()=>Rf,TooManyRequestsError$:()=>vz,ValidationException:()=>bf,ValidationException$:()=>Pz,__Client:()=>Tr,errorTypeRegistries:()=>GO});var eV=h(()=>{HO();Qz();Jz();Q();xf();Xz();$O();Yz();v0()});var nV=Ct(rV=>{var{setCredentialFeature:JRe}=(ye(),F($n)),{CredentialsProviderError:ua,parseKnownFiles:XRe,getProfileName:YRe}=(Re(),F(en)),{HttpRequest:ZRe}=(z(),F(Qs)),{createHash:ebe,createPrivateKey:tbe,createPublicKey:rbe,sign:nbe}=require("node:crypto"),{promises:KO}=require("node:fs"),{homedir:obe}=require("node:os"),{dirname:sbe,join:tV}=require("node:path"),QO=class t{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new ua(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),o=new Date(r.accessToken.expiresAt).getTime(),s=new Date(e.accessToken.expiresAt).getTime(),i=o<=n&&s>n?e:r;if(new Date(i.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(i.accessToken);let{SigninClient:c,CreateOAuth2TokenCommand:u}=(eV(),F(Zz)),{logger:f,userAgentAppId:m}=this.callerClientConfig??{},_=(x=>x?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,R=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,b=new c({credentials:{accessKeyId:"",secretAccessKey:""},region:R,requestHandler:_,logger:f,userAgentAppId:m,...this.init?.clientConfig});this.createDPoPInterceptor(b.middlewareStack);let C={tokenInput:{clientId:i.clientId,refreshToken:i.refreshToken,grantType:"refresh_token"}};try{let x=await b.send(new u(C)),{accessKeyId:w,secretAccessKey:U,sessionToken:G}=x.tokenOutput?.accessToken??{},{refreshToken:ue,expiresIn:Qe}=x.tokenOutput??{};if(!w||!U||!G||!ue)throw new ua("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let Ze=(Qe??900)*1e3,Je=new Date(Date.now()+Ze),st={...i,accessToken:{...i.accessToken,accessKeyId:w,secretAccessKey:U,sessionToken:G,expiresAt:Je.toISOString()},refreshToken:ue};return await this.saveToken(st),this.toCredentials(st.accessToken)}catch(x){if(x.name==="AccessDeniedException"){let U=x.error,G;switch(U){case"TOKEN_EXPIRED":G="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":G="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":G="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:G=`Failed to refresh token: ${String(x)}. Please re-authenticate using \`aws login\``}throw new ua(G,{logger:this.logger,tryNextLink:!1})}if(new Date(i.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(x)}. Using existing token until expiry.`),this.toCredentials(i.accessToken);throw new ua(`Failed to refresh token: ${String(x)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await KO.readFile(e,"utf8"),n=JSON.parse(r),o=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!n[s]);if(n.accessToken?.accountId||o.push("accountId"),o.length>0)throw new ua(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new ua(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=sbe(r);try{await KO.mkdir(n,{recursive:!0})}catch{}await KO.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??tV(obe(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=ebe("sha256").update(r).digest("hex");return tV(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],o=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let s=e[r++],i=e.subarray(r,r+s);o=o[0]===0?o.subarray(1):o,i=i[0]===0?i.subarray(1):i;let a=Buffer.concat([Buffer.alloc(32-o.length),o]),c=Buffer.concat([Buffer.alloc(32-i.length),i]);return Buffer.concat([a,c])}createDPoPInterceptor(e){e.add(r=>async n=>{if(ZRe.isInstance(n.request)){let o=n.request,s=`${o.protocol}//${o.hostname}${o.port?`:${o.port}`:""}${o.path}`,i=await this.generateDpop(o.method,s);o.headers={...o.headers,DPoP:i}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let o=tbe({key:n.dpopKey,format:"pem",type:"sec1"}),i=rbe(o).export({format:"der",type:"spki"}),a=-1;for(let w=0;w<i.length;w++)if(i[w]===4){a=w;break}let c=i.slice(a+1,a+33),u=i.slice(a+33,a+65),f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:c.toString("base64url"),y:u.toString("base64url")}},m={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(f)).toString("base64url"),_=Buffer.from(JSON.stringify(m)).toString("base64url"),R=`${y}.${_}`,b=nbe("sha256",Buffer.from(R),o),x=this.derToRawSignature(b).toString("base64url");return`${R}.${x}`}catch(o){throw new ua(`Failed to generate Dpop proof: ${o instanceof Error?o.message:String(o)}`,{logger:this.logger,tryNextLink:!1})}}},ibe=t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await XRe(t||{}),n=YRe({profile:t?.profile??e?.profile}),o=r[n];if(!o?.login_session)throw new ua(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let i=await new QO(o,t,e).loadCredentials();return JRe(i,"CREDENTIALS_LOGIN","AD")};rV.fromLoginCredentials=ibe});var XO=Ct(oV=>{var{externalDataInterceptor:abe,CredentialsProviderError:JO,parseKnownFiles:cbe,getProfileName:ube}=(Re(),F(en)),{exec:lbe}=require("node:child_process"),{promisify:dbe}=require("node:util"),{setCredentialFeature:pbe}=(ye(),F($n)),fbe=(t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let s=new Date;if(new Date(e.Expiration)<s)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let o={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return pbe(o,"CREDENTIALS_PROCESS","w"),o},mbe=async(t,e,r)=>{let n=e[t];if(e[t]){let o=n.credential_process;if(o!==void 0){let s=dbe(abe?.getTokenRecord?.().exec??lbe);try{let{stdout:i}=await s(o),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return fbe(t,a,e)}catch(i){throw new JO(i.message,{logger:r})}}else throw new JO(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new JO(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},hbe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await cbe(t);return mbe(ube({profile:t.profile??e?.profile}),r,t.logger)};oV.fromProcess=hbe});var ZO=Ct(YO=>{var{setCredentialFeature:gbe}=(ye(),F($n)),{CredentialsProviderError:Sbe,externalDataInterceptor:ybe}=(Re(),F(en)),{readFileSync:Ebe}=require("node:fs"),iV=t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:o,providerId:s,policyArns:i,policy:a,durationSeconds:c}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:f}=(PO(),F(vO));u=f({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})},sV="AWS_WEB_IDENTITY_TOKEN_FILE",_be="AWS_ROLE_ARN",Rbe="AWS_ROLE_SESSION_NAME",bbe=(t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[sV],n=t?.roleArn??process.env[_be],o=t?.roleSessionName??process.env[Rbe];if(!r||!n)throw new Sbe("Web identity configuration not specified",{logger:t.logger});let s=await iV({...t,webIdentityToken:ybe?.getTokenRecord?.()[r]??Ebe(r,{encoding:"ascii"}),roleArn:n,roleSessionName:o})(e);return r===process.env[sV]&&gbe(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s};YO.fromTokenFile=bbe;YO.fromWebToken=iV});var fV=Ct(pV=>{var{CredentialsProviderError:L0,chain:Cbe,getProfileName:lV,parseKnownFiles:xbe}=(Re(),F(en)),{setCredentialFeature:ti}=(ye(),F($n)),Abe=(t,e,r)=>{let n={EcsContainer:async o=>{let{fromHttp:s}=qD(),{fromContainerMetadata:i}=Jy();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>Cbe(s(o??{}),i(o))().then(ek)},Ec2InstanceMetadata:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=Jy();return async()=>s(o)().then(ek)},Environment:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=PD();return async()=>s(o)().then(ek)}};if(t in n)return n[t];throw new L0(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},ek=t=>ti(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),Tbe=(t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(wbe(t,{profile:e,logger:r})||vbe(t,{profile:e,logger:r})),wbe=(t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},vbe=(t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},Pbe=async(t,e,r,n,o={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let i=e[t],{source_profile:a,region:c}=i;if(!r.roleAssumer){let{getDefaultRoleAssumer:f}=(PO(),F(vO));r.roleAssumer=f({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:c??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(a&&a in o)throw new L0(`Detected a cycle attempting to resolve credentials for profile ${lV(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${t}]`}`);let u=a?s(a,e,r,n,{...o,[a]:!0},aV(e[a]??{})):(await Abe(i.credential_source,t,r.logger)(r))();if(aV(i))return u.then(f=>ti(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let f={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id,DurationSeconds:parseInt(i.duration_seconds||"3600",10)},{mfa_serial:m}=i;if(m){if(!r.mfaCodeProvider)throw new L0(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});f.SerialNumber=m,f.TokenCode=await r.mfaCodeProvider(m)}let y=await u;return r.roleAssumer(y,f).then(_=>ti(_,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},aV=t=>!t.role_arn&&!!t.credential_source,Ibe=t=>!!(t&&t.login_session),Dbe=async(t,e,r)=>{let{fromLoginCredentials:n}=nV(),o=await n({...e,profile:t})({callerClientConfig:r});return ti(o,"CREDENTIALS_PROFILE_LOGIN","AC")},Obe=t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string",kbe=async(t,e)=>{let{fromProcess:r}=XO(),n=await r({...t,profile:e})();return ti(n,"CREDENTIALS_PROFILE_PROCESS","v")},$be=async(t,e,r={},n)=>{let{fromSSO:o}=dO();return o({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(s=>e.sso_session?ti(s,"CREDENTIALS_PROFILE_SSO","r"):ti(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},Lbe=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),cV=t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,uV=async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return ti(r,"CREDENTIALS_PROFILE","n")},Nbe=t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,Mbe=async(t,e,r)=>{let{fromTokenFile:n}=ZO(),o=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return ti(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},dV=async(t,e,r,n,o={},s=!1)=>{let i=e[t];if(Object.keys(o).length>0&&cV(i))return uV(i,r);if(s||Tbe(i,{profile:t,logger:r.logger}))return Pbe(t,e,r,n,o,dV);if(cV(i))return uV(i,r);if(Nbe(i))return Mbe(i,r,n);if(Obe(i))return kbe(r,t);if(Lbe(i))return await $be(t,i,r,n);if(Ibe(i))return Dbe(t,r,n);throw new L0(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},Bbe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await xbe(t);return dV(lV({profile:t.profile??e?.profile}),r,t,e)};pV.fromIni=Bbe});var B0=Ct(M0=>{var{ENV_KEY:Fbe,ENV_SECRET:Ube,fromEnv:Gbe}=PD(),{chain:qbe,CredentialsProviderError:N0,ENV_PROFILE:jbe}=(Re(),F(en)),mV="AWS_EC2_METADATA_DISABLED",Hbe=async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:o}=Jy();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=qD();return qbe(s(t),n(t))}return process.env[mV]&&process.env[mV]!=="false"?async()=>{throw new N0("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),o(t))};function zbe(t,e){let r=Vbe(t),n,o,s,i,a=async c=>{if(c?.forceRefresh)return i||(i=r(c).then(u=>{s=u}).finally(()=>{i=void 0})),await i,s;if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),n)await n;else if(!s||e?.(s))if(s)o||(o=r(c).then(u=>{s=u}).catch(()=>{}).finally(()=>{o=void 0}));else return n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}),a(c);return s};return a}var Vbe=t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(o){if(r=o,o?.tryNextLink)continue;throw o}throw r},hV=!1,Wbe=(t={})=>zbe([async()=>{if(t.profile??process.env[jbe])throw process.env[Fbe]&&process.env[Ube]&&(hV||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
49
+ `)||(u["#text"]="#text"in u?u["#text"]+f:f);for(let f of i)f.tag==="__proto__"&&I$(u),f.tag in u?Array.isArray(u[f.tag])?u[f.tag].push(f.value):u[f.tag]=[u[f.tag],f.value]:u[f.tag]=f.value;for(let[f,m]of Object.entries(o))f==="__proto__"&&I$(u),u[f]=m;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,o,s)=>n?String.fromCharCode(parseInt(n,16)):o?String.fromCharCode(parseInt(o,10)):t.ENTITIES[s]??"")}};Uy.XmlNode=w$;Uy.XmlText=By;Uy.parseXML=_De});var V6,Da,qy=g(()=>{V6=Ie(Gy());J();V();ae();j();Bo();Ry();If();Da=class extends ht{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new pa(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let o=B.of(e),s=o.getMemberSchemas();if(o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(s).find(u=>!!u.getMemberTraits().eventPayload)){let u={},f=Object.keys(s)[0];return s[f].isBlobSchema()?u[f]=r:u[f]=this.read(s[f],r),u}let a=(this.serdeContext?.utf8Encoder??ze)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=B.of(e);if(n.isUnitSchema())return;let o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!o.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],u=a.getMergedTraits().xmlName??"member",f=s?r:(r[0]??r)[u];if(f==null)return c;let m=Array.isArray(f)?f:[f];for(let y of m)c.push(this.readSchema(a,y));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),u;s?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let f=a.getMergedTraits().xmlName??"key",m=c.getMergedTraits().xmlName??"value";for(let y of u){let _=y[f],C=y[m];_==="__proto__"&&eo(i),i[_]=this.readSchema(c,C)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new xa(r,i));for(let[u,f]of n.structIterator()){let m=f.getMergedTraits(),y=m.httpPayload?m.xmlName??f.getName():f.getMemberTraits().xmlName??u;a&&c.mark(y),r[y]!=null&&(i[u]=this.readSchema(f,r[y]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,V6.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",o=Object.keys(r)[0],s=r[o];return s[n]&&(s[o]=s[n],delete s[n]),Ec(s)}return{}}}});var zl,O$=g(()=>{V();ae();j();j();Bo();zl=class extends ht{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let o=B.of(e);if(n&&!n.endsWith(".")&&(n+="."),o.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??De)(r)));else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):o.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(xr()));else if(o.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(o.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof Y?r.string:String(r)));else if(o.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),Ze(o,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(br(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(o.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(o.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let s=o.getValueSchema(),i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened,a=1;for(let c of r){if(c==null)continue;let u=s.getMergedTraits(),f=this.getKey("member",u.xmlName,u.ec2QueryName),m=i?`${n}${a}`:`${n}${f}.${a}`;this.write(s,c,m),++a}}}else if(o.isMapSchema()){if(r&&typeof r=="object"){let s=o.getKeySchema(),i=o.getValueSchema(),a=o.getMergedTraits().xmlFlattened,c=1;for(let u in r){let f=r[u];if(f==null)continue;let m=s.getMergedTraits(),y=this.getKey("key",m.xmlName,m.ec2QueryName),_=a?`${n}${c}.${y}`:`${n}entry.${c}.${y}`,C=i.getMergedTraits(),A=this.getKey("value",C.xmlName,C.ec2QueryName),x=a?`${n}${c}.${A}`:`${n}entry.${c}.${A}`;this.write(s,u,_),this.write(i,f,x),++c}}}else if(o.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[i,a]of o.structIterator()){if(r[i]==null&&!a.isIdempotencyToken())continue;let c=a.getMergedTraits(),u=this.getKey(i,c.xmlName,c.ec2QueryName,"struct"),f=`${n}${u}`;this.write(a,r[i],f),s=!0}if(!s&&o.isUnionSchema()){let{$unknown:i}=r;if(Array.isArray(i)){let[a,c]=i,u=`${n}${a}`;this.write(15,c,u)}}}}else if(!o.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,o){let{ec2:s,capitalizeKeys:i}=this.settings;if(s&&n)return n;let a=r??e;return i&&o==="struct"?a[0].toUpperCase()+a.slice(1):a}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${vo(e)}=`}writeValue(e){this.buffer+=vo(e)}}});var Ia,$$=g(()=>{V();ae();Ll();qy();O$();Ia=class extends Qn{options;serializer;deserializer;mixin=new Zn;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new zl(r),this.deserializer=new Da(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n);o.path.endsWith("/")||(o.path+="/"),o.headers["content-type"]="application/x-www-form-urlencoded",(mn(e.input)==="unit"||!o.body)&&(o.body="");let s=e.name.split("#")[1]??e.name;return o.body=`Action=${s}&Version=${this.options.version}`+o.body,o.body.endsWith("&")&&(o.body=o.body.slice(-1)),o}async deserializeResponse(e,r,n){let o=this.deserializer,s=B.of(e.output),i={};if(n.statusCode>=300){let f=await At(n.body,r);f.byteLength>0&&Object.assign(i,await o.read(15,f)),await this.handleError(e,r,n,i,this.deserializeMetadata(n))}for(let f in n.headers){let m=n.headers[f];delete n.headers[f],n.headers[f.toLowerCase()]=m}let a=e.name.split("#")[1]??e.name,c=s.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,u=await At(n.body,r);return u.byteLength>0&&Object.assign(i,await o.read(s,u,c)),i.$metadata=this.deserializeMetadata(n),i}useNestedResult(){return!0}async handleError(e,r,n,o,s){let i=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace);let a=this.loadQueryError(o)??{},c=this.loadQueryErrorMessage(o);a.message=c,a.Error={Type:a.Type,Code:a.Code,Message:c};let{errorSchema:u,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,a,s,this.mixin.findQueryCompatibleError),m=B.of(u),y=this.compositeErrorRegistry.getErrorCtor(u)??Error,_=new y({}),C={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[A,x]of m.structIterator()){let T=x.getMergedTraits().xmlName??A,I=a[T]??o[T];C[A]=this.deserializer.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(_,f,{$fault:m.getMergedTraits().error,message:c},C),o)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var Hy,W6=g(()=>{$$();Hy=class extends Ia{options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var K6,k$,Q6,jy,M$=g(()=>{K6=Ie(Gy());J();C$();k$=(t,e)=>Ty(t,e).then(r=>{if(r.length){let n;try{n=(0,K6.parseXML)(r)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:r}),a}let o="#text",s=Object.keys(n)[0],i=n[s];return i[o]&&(i[s]=i[o],delete i[o]),Ec(i)}return{}}),Q6=async(t,e)=>{let r=await k$(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},jy=(t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"}});var tn,Vl,L$=g(()=>{tn=Ie(Gy());V();ae();j();j();Bo();Vl=class extends ht{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=B.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Xe)(r);else{this.buffer=this.writeStruct(n,r,void 0);let o=n.getMergedTraits();o.httpPayload&&!o.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let o=e.getMergedTraits(),s=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!s||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let i=tn.XmlNode.of(s),[a,c]=this.getXmlnsAttribute(e,n);for(let[f,m]of e.structIterator()){let y=r[f];if(y!=null||m.isIdempotencyToken()){if(m.getMergedTraits().xmlAttribute){i.addAttribute(m.getMergedTraits().xmlName??f,this.writeSimple(m,y));continue}if(m.isListSchema())this.writeList(m,y,i,c);else if(m.isMapSchema())this.writeMap(m,y,i,c);else if(m.isStructSchema())i.addChildNode(this.writeStruct(m,y,c));else{let _=tn.XmlNode.of(m.getMergedTraits().xmlName??m.getMemberName());this.writeSimpleInto(m,y,_,c),i.addChildNode(_)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[f,m]=u,y=tn.XmlNode.of(f);if(typeof m!="string")if(r instanceof tn.XmlNode||r instanceof tn.XmlText)i.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,m,y,c),i.addChildNode(y)}return c&&i.addAttribute(a,c),i}writeList(e,r,n,o){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let s=e.getMergedTraits(),i=e.getValueSchema(),a=i.getMergedTraits(),c=!!a.sparse,u=!!s.xmlFlattened,[f,m]=this.getXmlnsAttribute(e,o),y=(_,C)=>{if(i.isListSchema())this.writeList(i,Array.isArray(C)?C:[C],_,m);else if(i.isMapSchema())this.writeMap(i,C,_,m);else if(i.isStructSchema()){let A=this.writeStruct(i,C,m);_.addChildNode(A.withName(u?s.xmlName??e.getMemberName():a.xmlName??"member"))}else{let A=tn.XmlNode.of(u?s.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(i,C,A,m),_.addChildNode(A)}};if(u)for(let _ of r)(c||_!=null)&&y(n,_);else{let _=tn.XmlNode.of(s.xmlName??e.getMemberName());m&&_.addAttribute(f,m);for(let C of r)(c||C!=null)&&y(_,C);n.addChildNode(_)}}writeMap(e,r,n,o,s=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getKeySchema(),u=a.getMergedTraits().xmlName??"key",f=e.getValueSchema(),m=f.getMergedTraits(),y=m.xmlName??"value",_=!!m.sparse,C=!!i.xmlFlattened,[A,x]=this.getXmlnsAttribute(e,o),T=(I,q,H)=>{let me=tn.XmlNode.of(u,q),[et,ot]=this.getXmlnsAttribute(a,x);ot&&me.addAttribute(et,ot),I.addChildNode(me);let tt=tn.XmlNode.of(y);f.isListSchema()?this.writeList(f,H,tt,x):f.isMapSchema()?this.writeMap(f,H,tt,x,!0):f.isStructSchema()?tt=this.writeStruct(f,H,x):this.writeSimpleInto(f,H,tt,x),I.addChildNode(tt)};if(C)for(let I in r){let q=r[I];if(_||q!=null){let H=tn.XmlNode.of(i.xmlName??e.getMemberName());T(H,I,q),n.addChildNode(H)}}else{let I;s||(I=tn.XmlNode.of(i.xmlName??e.getMemberName()),x&&I.addAttribute(A,x),n.addChildNode(I));for(let q in r){let H=r[q];if(_||H!=null){let me=tn.XmlNode.of("entry");T(me,q,H),(s?n:I).addChildNode(me)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=B.of(e),o=null;if(r&&typeof r=="object")if(n.isBlobSchema())o=(this.serdeContext?.base64Encoder??De)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(Ze(n,this.settings)){case 5:o=r.toISOString().replace(".000Z","Z");break;case 6:o=br(r);break;case 7:o=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),o=br(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Y?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(o=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?o=xr():o=String(r)),o===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return o}writeSimpleInto(e,r,n,o){let s=this.writeSimple(e,r),i=B.of(e),a=new tn.XmlText(s),[c,u]=this.getXmlnsAttribute(i,o);u&&n.addAttribute(c,u),n.addChildNode(a)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[o,s]=n.xmlNamespace??[];return s&&s!==r?[o?`xmlns:${o}`:"xmlns",s]:[void 0,void 0]}}});var Wl,N$=g(()=>{Bo();qy();L$();Wl=class extends ht{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Vl(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Da(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Kl,Y6=g(()=>{V();ae();Ll();M$();N$();Kl=class extends la{codec;serializer;deserializer;mixin=new Zn;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Wl(r),this.serializer=new ma(this.codec.createSerializer(),r),this.deserializer=new fa(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input);if(!o.headers["content-type"]){let i=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);i&&(o.headers["content-type"]=i)}return typeof o.body=="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body),o}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,o,s){let i=jy(n,o)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,i,this.options.defaultNamespace),o.Error&&typeof o.Error=="object")for(let A of Object.keys(o.Error))o[A]=o.Error[A],A.toLowerCase()==="message"&&(o.message=o.Error[A]);o.RequestId&&!s.requestId&&(s.requestId=o.RequestId);let{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,n,o,s),u=B.of(a),f=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError",m=this.compositeErrorRegistry.getErrorCtor(a)??Error,y=new m({});await this.deserializeHttpMessage(a,r,n,o);let _={},C=this.codec.createDeserializer();for(let[A,x]of u.structIterator()){let T=x.getMergedTraits().xmlName??A,I=o.Error?.[T]??o[T];_[A]=C.readSchema(x,I)}throw this.mixin.decorateServiceException(Object.assign(y,c,{$fault:u.getMergedTraits().error,message:f},_),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var J6,X6=g(()=>{j();J6=t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,Fh(t)}});var Z6,e5,t5,r5=g(()=>{Z6=t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},e5=t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},t5=t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t}});var zy={};Ct(zy,{AwsEc2QueryProtocol:()=>Hy,AwsJson1_0Protocol:()=>My,AwsJson1_1Protocol:()=>Ly,AwsJsonRpcProtocol:()=>va,AwsQueryProtocol:()=>Ia,AwsRestJsonProtocol:()=>Ks,AwsRestXmlProtocol:()=>Kl,AwsSmithyRpcV2CborProtocol:()=>_y,JsonCodec:()=>Fy,JsonCodec2:()=>Ta,JsonShapeDeserializer:()=>Hl,JsonShapeDeserializer2:()=>Ul,JsonShapeSerializer:()=>jl,JsonShapeSerializer2:()=>ql,QueryShapeSerializer:()=>zl,XmlCodec:()=>Wl,XmlShapeDeserializer:()=>Da,XmlShapeSerializer:()=>Vl,_toBool:()=>e5,_toNum:()=>t5,_toStr:()=>Z6,awsExpectUnion:()=>J6,loadJsonRpcErrorCode:()=>Dy,loadRestJsonErrorCode:()=>vy,loadRestXmlErrorCode:()=>jy,parseJsonBody:()=>Lc,parseJsonErrorBody:()=>O6,parseXmlBody:()=>k$,parseXmlErrorBody:()=>Q6});var Di=g(()=>{w6();U6();G6();ky();q6();z6();v$();D$();$y();A$();T$();Bl();W6();$$();O$();Y6();N$();qy();L$();M$();X6();r5()});var wf,Nc,Vy,n5,a5,Wy,F$,o5,B$,Ql,s5,i5,RDe,En,CDe,c5,u5=g(()=>{He();wf="ref",Nc=-1,Vy=!0,n5="isSet",a5="PartitionResult",Wy="booleanEquals",F$="getAttr",o5={[wf]:"Endpoint"},B$={[wf]:a5},Ql={},s5=[{[wf]:"Region"}],i5={conditions:[[n5,[o5]],[n5,s5],["aws.partition",s5,a5],[Wy,[{[wf]:"UseFIPS"},Vy]],[Wy,[{[wf]:"UseDualStack"},Vy]],[Wy,[{fn:F$,argv:[B$,"supportsDualStack"]},Vy]],[Wy,[{fn:F$,argv:[B$,"supportsFIPS"]},Vy]],["stringEquals",[{fn:F$,argv:[B$,"name"]},"aws-us-gov"]]],results:[[Nc],[Nc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Nc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[o5,Ql],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ql],[Nc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Ql],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Ql],[Nc,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Ql],[Nc,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Ql],[Nc,"Invalid Configuration: Missing Region"]]},RDe=2,En=1e8,CDe=new Int32Array([-1,1,-1,0,13,3,1,4,En+12,2,5,En+12,3,8,6,4,7,En+11,5,En+9,En+10,4,11,9,6,10,En+8,7,En+6,En+7,5,12,En+5,6,En+4,En+5,3,En+1,14,4,En+2,En+3]),c5=Wn.from(CDe,RDe,i5.conditions,i5.results)});var bDe,l5,d5=g(()=>{Ee();He();u5();bDe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),l5=(t,e={})=>bDe.get(t,()=>Ts(c5,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var sr,Ky=g(()=>{J();sr=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Pf,Of,$f,kf,Mf,Lf,Nf,Ff,Bf,Uf,Gf,U$=g(()=>{Ky();Pf=class t extends sr{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Of=class t extends sr{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},$f=class t extends sr{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},kf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Mf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Lf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Nf=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},Ff=class t extends sr{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Bf=class t extends sr{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Uf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},Gf=class t extends sr{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var ADe,xDe,TDe,vDe,DDe,IDe,wDe,PDe,ODe,$De,kDe,MDe,LDe,NDe,FDe,BDe,UDe,GDe,qDe,HDe,Qs,jDe,zDe,VDe,WDe,KDe,St,QDe,Uo,YDe,JDe,Go,XDe,p5,f5,ZDe,m5,eIe,tIe,rIe,Pt,g5,h5,to,S5,y5,E5,_5,R5,C5,b5,A5,x5,T5,v5,G$,nIe,oIe,sIe,iIe,D5,I5,w5,q$,Qy=g(()=>{ae();U$();Ky();ADe="AccessDeniedException",xDe="AuthorizationPendingException",TDe="AccessToken",vDe="ClientSecret",DDe="CreateToken",IDe="CreateTokenRequest",wDe="CreateTokenResponse",PDe="CodeVerifier",ODe="ExpiredTokenException",$De="InvalidClientException",kDe="InvalidGrantException",MDe="InvalidRequestException",LDe="InternalServerException",NDe="InvalidScopeException",FDe="IdToken",BDe="RefreshToken",UDe="SlowDownException",GDe="UnauthorizedClientException",qDe="UnsupportedGrantTypeException",HDe="accessToken",Qs="client",jDe="clientId",zDe="clientSecret",VDe="codeVerifier",WDe="code",KDe="deviceCode",St="error",QDe="expiresIn",Uo="error_description",YDe="grantType",JDe="http",Go="httpError",XDe="idToken",p5="reason",f5="refreshToken",ZDe="redirectUri",m5="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",eIe="scope",tIe="server",rIe="tokenType",Pt="com.amazonaws.ssooidc",g5=new Fe(m5),h5=[-3,m5,"SSOOIDCServiceException",0,[],[]];g5.registerError(h5,sr);to=new Fe(Pt),S5=[-3,Pt,ADe,{[St]:Qs,[Go]:400},[St,p5,Uo],[0,0,0]];to.registerError(S5,Pf);y5=[-3,Pt,xDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(y5,Of);E5=[-3,Pt,ODe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(E5,$f);_5=[-3,Pt,LDe,{[St]:tIe,[Go]:500},[St,Uo],[0,0]];to.registerError(_5,kf);R5=[-3,Pt,$De,{[St]:Qs,[Go]:401},[St,Uo],[0,0]];to.registerError(R5,Mf);C5=[-3,Pt,kDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(C5,Lf);b5=[-3,Pt,MDe,{[St]:Qs,[Go]:400},[St,p5,Uo],[0,0,0]];to.registerError(b5,Nf);A5=[-3,Pt,NDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(A5,Ff);x5=[-3,Pt,UDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(x5,Bf);T5=[-3,Pt,GDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(T5,Uf);v5=[-3,Pt,qDe,{[St]:Qs,[Go]:400},[St,Uo],[0,0]];to.registerError(v5,Gf);G$=[g5,to],nIe=[0,Pt,TDe,8,0],oIe=[0,Pt,vDe,8,0],sIe=[0,Pt,PDe,8,0],iIe=[0,Pt,FDe,8,0],D5=[0,Pt,BDe,8,0],I5=[3,Pt,IDe,0,[jDe,zDe,YDe,KDe,WDe,f5,eIe,ZDe,VDe],[0,[()=>oIe,0],0,0,0,[()=>D5,0],64,0,[()=>sIe,0]],3],w5=[3,Pt,wDe,0,[HDe,rIe,QDe,f5,XDe],[[()=>nIe,0],0,1,[()=>D5,0],[()=>iIe,0]]],q$=[9,Pt,DDe,{[JDe]:["POST","/token",200]},()=>I5,()=>w5]});var P5,O5=g(()=>{rr();Di();jt();On();J();V();j();ZO();d5();Qy();P5=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??l5,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??a6,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:G$,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var Yy,$5,k5=g(()=>{Cf();Ee();rr();J();ye();en();j();Yy=Ie(zs());O5();$5=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=P5(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:Yy.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??Yy.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var M5,L5,N5=g(()=>{M5=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},L5=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var F5,B5=g(()=>{Ee();J();V();N5();F5=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),M5(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),L5(r))}});var qf,H$=g(()=>{Ee();jt();J();ye();He();V();en();ae();ZO();e$();k5();B5();qf=class extends Lr{config;constructor(...[e]){let r=$5(e||{});super(r),this.initConfig=r;let n=u6(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=c6(c),f=F5(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:i6,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var U5,G5,q5,H5=g(()=>{J();He();e$();U5=gs(l6,"AWSSSOOIDCService","SSOOIDCClient",bi),G5={},q5=(t,e,r,n)=>[]});var Hf,j$=g(()=>{H5();Qy();Hf=class extends U5(G5,q5,"CreateToken",q$){}});var aIe,Jy,j5=g(()=>{J();j$();H$();aIe={CreateTokenCommand:Hf},Jy=class extends qf{};ds(aIe,Jy)});var z5=g(()=>{j$()});var cIe,uIe,V5=g(()=>{cIe={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},uIe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var W5=g(()=>{});var z$={};Ct(z$,{$Command:()=>Xr,AccessDeniedException:()=>Pf,AccessDeniedException$:()=>S5,AccessDeniedExceptionReason:()=>cIe,AuthorizationPendingException:()=>Of,AuthorizationPendingException$:()=>y5,CreateToken$:()=>q$,CreateTokenCommand:()=>Hf,CreateTokenRequest$:()=>I5,CreateTokenResponse$:()=>w5,ExpiredTokenException:()=>$f,ExpiredTokenException$:()=>E5,InternalServerException:()=>kf,InternalServerException$:()=>_5,InvalidClientException:()=>Mf,InvalidClientException$:()=>R5,InvalidGrantException:()=>Lf,InvalidGrantException$:()=>C5,InvalidRequestException:()=>Nf,InvalidRequestException$:()=>b5,InvalidRequestExceptionReason:()=>uIe,InvalidScopeException:()=>Ff,InvalidScopeException$:()=>A5,SSOOIDC:()=>Jy,SSOOIDCClient:()=>qf,SSOOIDCServiceException:()=>sr,SSOOIDCServiceException$:()=>h5,SlowDownException:()=>Bf,SlowDownException$:()=>x5,UnauthorizedClientException:()=>Uf,UnauthorizedClientException$:()=>T5,UnsupportedGrantTypeException:()=>Gf,UnsupportedGrantTypeException$:()=>v5,__Client:()=>Lr,errorTypeRegistries:()=>G$});var V$=g(()=>{H$();j5();z5();J();Qy();V5();U$();W5();Ky()});var J5=st(jf=>{var{setTokenFeature:lIe}=(Ee(),F(kn)),{getBearerTokenEnvKey:dIe}=(rr(),F(Dl)),{TokenProviderError:qo,getSSOTokenFilepath:pIe,parseKnownFiles:fIe,getProfileName:mIe,loadSsoSessionData:gIe,getSSOTokenFromFile:hIe,memoize:SIe,chain:yIe}=(ye(),F(Br)),{promises:EIe}=require("node:fs"),_Ie=({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new qo("Please pass 'signingName' to compute environment variable key",{logger:t});let r=dIe(e);if(!(r in process.env))throw new qo(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return lIe(n,"BEARER_SERVICE_ENV_VARS","3"),n},RIe=300*1e3,W$="To refresh this SSO session run 'aws sso login' with the corresponding profile.",CIe=async(t,e={},r)=>{let{SSOOIDCClient:n}=(V$(),F(z$)),o=i=>e.clientConfig?.[i]??e.parentClientConfig?.[i]??r?.[i];return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:o("logger"),userAgentAppId:o("userAgentAppId")}))},bIe=async(t,e,r={},n)=>{let{CreateTokenCommand:o}=(V$(),F(z$));return(await CIe(e,r,n)).send(new o({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},K5=t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new qo(`Token is expired. ${W$}`,!1)},Fc=(t,e,r=!1)=>{if(typeof e>"u")throw new qo(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${W$}`,!1)},{writeFile:AIe}=EIe,xIe=(t,e)=>{let r=pIe(t),n=JSON.stringify(e,null,2);return AIe(r,n)},Q5=new Map,Y5=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await fIe(t),n=mIe({profile:t.profile??e?.profile}),o=r[n];if(o){if(!o.sso_session)throw new qo(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new qo(`Profile '${n}' could not be found in shared credentials file.`,!1);let s=o.sso_session,a=(await gIe(t))[s];if(!a)throw new qo(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!a[C])throw new qo(`Sso session '${s}' is missing required property '${C}'.`,!1);a.sso_start_url;let c=a.sso_region,u;try{u=await hIe(s)}catch{throw new qo(`The SSO session token associated with profile=${n} was not found or is invalid. ${W$}`,!1)}Fc("accessToken",u.accessToken),Fc("expiresAt",u.expiresAt);let{accessToken:f,expiresAt:m}=u,y={token:f,expiration:new Date(m)};if(y.expiration.getTime()-Date.now()>RIe)return y;let _=Q5.get(s)??0;if(Date.now()-_<30*1e3)return K5(y),y;Fc("clientId",u.clientId,!0),Fc("clientSecret",u.clientSecret,!0),Fc("refreshToken",u.refreshToken,!0);try{Q5.set(s,Date.now());let C=await bIe(u,c,t,e);Fc("accessToken",C.accessToken),Fc("expiresIn",C.expiresIn);let A=new Date(Date.now()+C.expiresIn*1e3);try{await xIe(s,{...u,accessToken:C.accessToken,expiresAt:A.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:A}}catch{return K5(y),y}},TIe=({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new qo("Please pass a valid token to fromStatic",!1);return t},vIe=(t={})=>SIe(yIe(Y5(t),async()=>{throw new qo("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0);jf.fromEnvSigningName=_Ie;jf.fromSso=Y5;jf.fromStatic=TIe;jf.nodeProvider=vIe});function DIe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function IIe(t){return{schemeId:"smithy.api#noAuth"}}var X5,Z5,ez,K$=g(()=>{rr();J();X5=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});Z5=t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(IIe(t)):e.push(DIe(t)),e},ez=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var tz,rz,Q$=g(()=>{tz=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),rz={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var zf,Bc,Xy,nz,az,Zy,Y$,oz,J$,Yl,sz,iz,wIe,_n,PIe,cz,uz=g(()=>{He();zf="ref",Bc=-1,Xy=!0,nz="isSet",az="PartitionResult",Zy="booleanEquals",Y$="getAttr",oz={[zf]:"Endpoint"},J$={[zf]:az},Yl={},sz=[{[zf]:"Region"}],iz={conditions:[[nz,[oz]],[nz,sz],["aws.partition",sz,az],[Zy,[{[zf]:"UseFIPS"},Xy]],[Zy,[{[zf]:"UseDualStack"},Xy]],[Zy,[{fn:Y$,argv:[J$,"supportsDualStack"]},Xy]],[Zy,[{fn:Y$,argv:[J$,"supportsFIPS"]},Xy]],["stringEquals",[{fn:Y$,argv:[J$,"name"]},"aws-us-gov"]]],results:[[Bc],[Bc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Bc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[oz,Yl],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Bc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Yl],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Yl],[Bc,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Yl],[Bc,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Yl],[Bc,"Invalid Configuration: Missing Region"]]},wIe=2,_n=1e8,PIe=new Int32Array([-1,1,-1,0,13,3,1,4,_n+12,2,5,_n+12,3,8,6,4,7,_n+11,5,_n+9,_n+10,4,11,9,6,10,_n+8,7,_n+6,_n+7,5,12,_n+5,6,_n+4,_n+5,3,_n+1,14,4,_n+2,_n+3]),cz=Wn.from(PIe,wIe,iz.conditions,iz.results)});var OIe,lz,dz=g(()=>{Ee();He();uz();OIe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),lz=(t,e={})=>OIe.get(t,()=>Ts(cz,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var Ho,eE=g(()=>{J();Ho=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var Vf,Wf,Kf,Qf,X$=g(()=>{eE();Vf=class t extends Ho{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wf=class t extends Ho{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kf=class t extends Ho{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qf=class t extends Ho{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var $Ie,kIe,MIe,LIe,NIe,FIe,BIe,UIe,GIe,qIe,HIe,jIe,zIe,VIe,WIe,tE,rE,KIe,QIe,nE,YIe,pz,oE,JIe,XIe,ZIe,fz,ewe,twe,rwe,ro,mz,gz,Yf,hz,Sz,yz,Ez,Z$,nwe,owe,swe,_z,Rz,Cz,ek,sE=g(()=>{ae();X$();eE();$Ie="AccessTokenType",kIe="GetRoleCredentials",MIe="GetRoleCredentialsRequest",LIe="GetRoleCredentialsResponse",NIe="InvalidRequestException",FIe="RoleCredentials",BIe="ResourceNotFoundException",UIe="SecretAccessKeyType",GIe="SessionTokenType",qIe="TooManyRequestsException",HIe="UnauthorizedException",jIe="accountId",zIe="accessKeyId",VIe="accessToken",WIe="account_id",tE="client",rE="error",KIe="expiration",QIe="http",nE="httpError",YIe="httpHeader",pz="httpQuery",oE="message",JIe="roleCredentials",XIe="roleName",ZIe="role_name",fz="smithy.ts.sdk.synthetic.com.amazonaws.sso",ewe="secretAccessKey",twe="sessionToken",rwe="x-amz-sso_bearer_token",ro="com.amazonaws.sso",mz=new Fe(fz),gz=[-3,fz,"SSOServiceException",0,[],[]];mz.registerError(gz,Ho);Yf=new Fe(ro),hz=[-3,ro,NIe,{[rE]:tE,[nE]:400},[oE],[0]];Yf.registerError(hz,Vf);Sz=[-3,ro,BIe,{[rE]:tE,[nE]:404},[oE],[0]];Yf.registerError(Sz,Wf);yz=[-3,ro,qIe,{[rE]:tE,[nE]:429},[oE],[0]];Yf.registerError(yz,Kf);Ez=[-3,ro,HIe,{[rE]:tE,[nE]:401},[oE],[0]];Yf.registerError(Ez,Qf);Z$=[mz,Yf],nwe=[0,ro,$Ie,8,0],owe=[0,ro,UIe,8,0],swe=[0,ro,GIe,8,0],_z=[3,ro,MIe,0,[XIe,jIe,VIe],[[0,{[pz]:ZIe}],[0,{[pz]:WIe}],[()=>nwe,{[YIe]:rwe}]],3],Rz=[3,ro,LIe,0,[JIe],[[()=>Cz,0]]],Cz=[3,ro,FIe,0,[zIe,ewe,twe,KIe],[0,[()=>owe,0],[()=>swe,0],1]],ek=[9,ro,kIe,{[QIe]:["GET","/federation/credentials",200]},()=>_z,()=>Rz]});var bz,Az=g(()=>{rr();Di();jt();On();J();V();j();K$();dz();sE();bz=t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??lz,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Z5,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Z$,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var iE,xz,Tz=g(()=>{Cf();Ee();rr();J();ye();en();j();iE=Ie(zs());Az();xz=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=bz(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:iE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??iE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var vz,Dz,Iz=g(()=>{vz=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Dz=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var wz,Pz=g(()=>{Ee();J();V();Iz();wz=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),vz(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),Dz(r))}});var Jf,tk=g(()=>{Ee();jt();J();ye();He();V();en();ae();K$();Q$();Tz();Pz();Jf=class extends Lr{config;constructor(...[e]){let r=xz(e||{});super(r),this.initConfig=r;let n=tz(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=ez(c),f=wz(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:X5,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var Oz,$z,kz,Mz=g(()=>{J();He();Q$();Oz=gs(rz,"SWBPortalService","SSOClient",bi),$z={},kz=(t,e,r,n)=>[]});var Xf,rk=g(()=>{Mz();sE();Xf=class extends Oz($z,kz,"GetRoleCredentials",ek){}});var iwe,aE,Lz=g(()=>{J();rk();tk();iwe={GetRoleCredentialsCommand:Xf},aE=class extends Jf{};ds(iwe,aE)});var Nz=g(()=>{rk()});var Fz=g(()=>{});var Bz={};Ct(Bz,{$Command:()=>Xr,GetRoleCredentials$:()=>ek,GetRoleCredentialsCommand:()=>Xf,GetRoleCredentialsRequest$:()=>_z,GetRoleCredentialsResponse$:()=>Rz,InvalidRequestException:()=>Vf,InvalidRequestException$:()=>hz,ResourceNotFoundException:()=>Wf,ResourceNotFoundException$:()=>Sz,RoleCredentials$:()=>Cz,SSO:()=>aE,SSOClient:()=>Jf,SSOServiceException:()=>Ho,SSOServiceException$:()=>gz,TooManyRequestsException:()=>Kf,TooManyRequestsException$:()=>yz,UnauthorizedException:()=>Qf,UnauthorizedException$:()=>Ez,__Client:()=>Lr,errorTypeRegistries:()=>Z$});var Uz=g(()=>{tk();Lz();Nz();J();sE();X$();Fz();eE()});var Gz=st(nk=>{var{GetRoleCredentialsCommand:awe,SSOClient:cwe}=(Uz(),F(Bz));nk.GetRoleCredentialsCommand=awe;nk.SSOClient=cwe});var ok=st(cE=>{var{CredentialsProviderError:jo,getSSOTokenFromFile:uwe,getProfileName:lwe,parseKnownFiles:dwe,loadSsoSessionData:pwe}=(ye(),F(Br)),{setCredentialFeature:qz}=(Ee(),F(kn)),{fromSso:fwe}=J5(),jz=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),Zf=!1,Hz=async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:o,ssoClient:s,clientConfig:i,parentClientConfig:a,callerClientConfig:c,profile:u,filepath:f,configFilepath:m,ignoreCache:y,logger:_})=>{let C,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let fn=await fwe({profile:u,filepath:f,configFilepath:m,ignoreCache:y,clientConfig:i,parentClientConfig:a,logger:_})({callerClientConfig:c});C={accessToken:fn.token,expiresAt:new Date(fn.expiration).toISOString()}}catch(fn){throw new jo(fn.message,{tryNextLink:Zf,logger:_})}else try{C=await uwe(t)}catch{throw new jo(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:Zf,logger:_})}if(new Date(C.expiresAt).getTime()-Date.now()<=0)throw new jo(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:Zf,logger:_});let{accessToken:x}=C,{SSOClient:T,GetRoleCredentialsCommand:I}=Gz(),q=s||new T(Object.assign({},i??{},{logger:i?.logger??c?.logger??a?.logger,region:i?.region??n,userAgentAppId:i?.userAgentAppId??c?.userAgentAppId??a?.userAgentAppId})),H;try{H=await q.send(new I({accountId:r,roleName:o,accessToken:x}))}catch(fn){throw new jo(fn,{tryNextLink:Zf,logger:_})}let{roleCredentials:{accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:tt,credentialScope:pt,accountId:Yr}={}}=H;if(!me||!et||!ot||!tt)throw new jo("SSO returns an invalid temporary credential.",{tryNextLink:Zf,logger:_});let Jr={accessKeyId:me,secretAccessKey:et,sessionToken:ot,expiration:new Date(tt),...pt&&{credentialScope:pt},...Yr&&{accountId:Yr}};return e?qz(Jr,"CREDENTIALS_SSO","s"):qz(Jr,"CREDENTIALS_SSO_LEGACY","u"),Jr},zz=(t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:o,sso_role_name:s}=t;if(!r||!n||!o||!s)throw new jo(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
50
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},mwe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t,{ssoClient:a}=t,c=lwe({profile:t.profile??e?.profile});if(!r&&!n&&!o&&!s&&!i){let f=(await dwe(t))[c];if(!f)throw new jo(`Profile ${c} was not found.`,{logger:t.logger});if(!jz(f))throw new jo(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(f?.sso_session){let T=(await pwe(t))[f.sso_session],I=` configurations in profile ${c} and sso-session ${f.sso_session}`;if(o&&o!==T.sso_region)throw new jo("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==T.sso_start_url)throw new jo("Conflicting SSO start_url"+I,{tryNextLink:!1,logger:t.logger});f.sso_region=T.sso_region,f.sso_start_url=T.sso_start_url}let{sso_start_url:m,sso_account_id:y,sso_region:_,sso_role_name:C,sso_session:A}=zz(f,t.logger);return Hz({ssoStartUrl:m,ssoSession:A,ssoAccountId:y,ssoRegion:_,ssoRoleName:C,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!o||!s)throw new jo('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return Hz({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};cE.fromSSO=mwe;cE.isSsoProfile=jz;cE.validateSsoProfile=zz});var tm=st(lE=>{var{SignatureV4:gwe,signatureV4aContainer:Vz}=MO(),em={CrtSignerV4:null},sk="X-Amz-S3session-Token",Wz=sk.toLowerCase(),uE=class extends gwe{async signWithCredentials(e,r,n){let o=Kz(r);e.headers[Wz]=r.sessionToken;let s=this;return Qz(s,o),s.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let o=Kz(r);return delete e.headers[Wz],e.headers[sk]=r.sessionToken,e.query=e.query??{},e.query[sk]=r.sessionToken,Qz(this,o),this.presign(e,n)}};function Kz(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}function Qz(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}var ik=class{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof em.CrtSignerV4=="function"?"crt":typeof Vz.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new uE(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let o=this.getSigv4aSigner(),s=em.CrtSignerV4;if(s&&o instanceof s)return o.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),o=em.CrtSignerV4;if(o&&n instanceof o)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=em.CrtSignerV4,r=Vz.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};lE.SignatureV4MultiRegion=ik;lE.SignatureV4SignWithCredentials=uE;lE.signatureV4CrtContainer=em});var Xl,Uc,rm,Yz,oV,nm,Dr,ak,Jz,Xz,Zz,eV,tV,Ir,ck,Jl,rV,nV,hwe,Pe,Swe,sV,iV=g(()=>{He();Xl="ref",Uc=-1,rm=!0,Yz="isSet",oV="PartitionResult",nm="booleanEquals",Dr="stringEquals",ak="getAttr",Jz="us-east-1",Xz="sigv4",Zz="sts",eV="https://sts.{Region}.{PartitionResult#dnsSuffix}",tV={[Xl]:"Endpoint"},Ir={[Xl]:"Region"},ck={[Xl]:oV},Jl={},rV=[Ir],nV={conditions:[[Yz,[tV]],[Yz,rV],["aws.partition",rV,oV],[nm,[{[Xl]:"UseFIPS"},rm]],[nm,[{[Xl]:"UseDualStack"},rm]],[Dr,[Ir,"aws-global"]],[nm,[{[Xl]:"UseGlobalEndpoint"},rm]],[Dr,[Ir,"eu-central-1"]],[nm,[{fn:ak,argv:[ck,"supportsDualStack"]},rm]],[nm,[{fn:ak,argv:[ck,"supportsFIPS"]},rm]],[Dr,[Ir,"ap-south-1"]],[Dr,[Ir,"eu-north-1"]],[Dr,[Ir,"eu-west-1"]],[Dr,[Ir,"eu-west-2"]],[Dr,[Ir,"eu-west-3"]],[Dr,[Ir,"sa-east-1"]],[Dr,[Ir,Jz]],[Dr,[Ir,"us-east-2"]],[Dr,[Ir,"us-west-2"]],[Dr,[Ir,"us-west-1"]],[Dr,[Ir,"ca-central-1"]],[Dr,[Ir,"ap-southeast-1"]],[Dr,[Ir,"ap-northeast-1"]],[Dr,[Ir,"ap-southeast-2"]],[Dr,[{fn:ak,argv:[ck,"name"]},"aws-us-gov"]]],results:[[Uc],["https://sts.amazonaws.com",{authSchemes:[{name:Xz,signingName:Zz,signingRegion:Jz}]}],[eV,{authSchemes:[{name:Xz,signingName:Zz,signingRegion:"{Region}"}]}],[Uc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Uc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[tV,Jl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Jl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Jl],[Uc,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Jl],[Uc,"DualStack is enabled but this partition does not support DualStack"],[eV,Jl],[Uc,"Invalid Configuration: Missing Region"]]},hwe=2,Pe=1e8,Swe=new Int32Array([-1,1,-1,0,30,3,1,4,Pe+14,2,5,Pe+14,3,25,6,4,24,7,5,Pe+1,8,6,9,Pe+13,7,Pe+1,10,10,Pe+1,11,11,Pe+1,12,12,Pe+1,13,13,Pe+1,14,14,Pe+1,15,15,Pe+1,16,16,Pe+1,17,17,Pe+1,18,18,Pe+1,19,19,Pe+1,20,20,Pe+1,21,21,Pe+1,22,22,Pe+1,23,23,Pe+1,Pe+2,8,Pe+11,Pe+12,4,28,26,9,27,Pe+10,24,Pe+8,Pe+9,8,29,Pe+7,9,Pe+6,Pe+7,3,Pe+3,31,4,Pe+4,Pe+5]),sV=Wn.from(Swe,hwe,nV.conditions,nV.results)});var ywe,dE,uk=g(()=>{Ee();He();iV();ywe=new Kn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),dE=(t,e={})=>ywe.get(t,()=>Ts(sV,{endpointParams:t,logger:e.logger}));hn.aws=Lo});function uV(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function lk(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function lV(t){return{schemeId:"smithy.api#noAuth"}}var aV,Ewe,_we,cV,Rwe,Cwe,dV,pV,dk=g(()=>{rr();aV=Ie(tm());J();He();uk();Ewe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=Le(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await Fp(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},_we=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),cV=Ewe(_we);Rwe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(aV.SignatureV4MultiRegion.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},Cwe=t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(lV(t)),e.push(lk(t))):(e.push(uV(t)),e.push(lk(t))),e},dV=Rwe(dE,Cwe,{"aws.auth#sigv4":uV,"aws.auth#sigv4a":lk,"smithy.api#noAuth":lV}),pV=t=>{let e=js(t),r=mf(e);return Object.assign(r,{authSchemePreference:we(t.authSchemePreference??[])})}});var fV,mV,pk=g(()=>{fV=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),mV={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Rn,pE=g(()=>{J();Rn=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var om,sm,im,am,cm,um,lm,fk=g(()=>{pE();om=class t extends Rn{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sm=class t extends Rn{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},im=class t extends Rn{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},am=class t extends Rn{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cm=class t extends Rn{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},um=class t extends Rn{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lm=class t extends Rn{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var bwe,Awe,xwe,Twe,vwe,Dwe,mk,Iwe,wwe,Pwe,Owe,gk,$we,gV,kwe,Mwe,Lwe,Nwe,Fwe,Bwe,Uwe,Gwe,hV,SV,yV,qwe,Hwe,jwe,zwe,Vwe,Wwe,EV,Kwe,Qwe,_V,Ywe,RV,Jwe,Xwe,hk,Zwe,ePe,CV,bV,tPe,rPe,nPe,oPe,sPe,iPe,aPe,cPe,Gc,qc,uPe,Hc,jc,zc,lPe,AV,dPe,it,xV,TV,wa,vV,DV,IV,wV,PV,OV,$V,Sk,pPe,fPe,yk,kV,MV,LV,NV,Ek,FV,BV,UV,GV,mPe,gPe,_k,Rk,dm=g(()=>{ae();fk();pE();bwe="Arn",Awe="AccessKeyId",xwe="AssumeRole",Twe="AssumedRoleId",vwe="AssumeRoleRequest",Dwe="AssumeRoleResponse",mk="AssumedRoleUser",Iwe="AssumeRoleWithWebIdentity",wwe="AssumeRoleWithWebIdentityRequest",Pwe="AssumeRoleWithWebIdentityResponse",Owe="Audience",gk="Credentials",$we="ContextAssertion",gV="DurationSeconds",kwe="Expiration",Mwe="ExternalId",Lwe="ExpiredTokenException",Nwe="IDPCommunicationErrorException",Fwe="IDPRejectedClaimException",Bwe="InvalidIdentityTokenException",Uwe="Key",Gwe="MalformedPolicyDocumentException",hV="MinimumSessionTokenSize",SV="Policy",yV="PolicyArns",qwe="ProviderArn",Hwe="ProvidedContexts",jwe="ProvidedContextsListType",zwe="ProvidedContext",Vwe="PolicyDescriptorType",Wwe="ProviderId",EV="PackedPolicySize",Kwe="PackedPolicyTooLargeException",Qwe="Provider",_V="RoleArn",Ywe="RegionDisabledException",RV="RoleSessionName",Jwe="SecretAccessKey",Xwe="SubjectFromWebIdentityToken",hk="SourceIdentity",Zwe="SerialNumber",ePe="SessionToken",CV="SessionTokenSize",bV="SessionTokenUtilization",tPe="Tags",rPe="TokenCode",nPe="TransitiveTagKeys",oPe="Tag",sPe="Value",iPe="WebIdentityToken",aPe="arn",cPe="accessKeySecretType",Gc="awsQueryError",qc="client",uPe="clientTokenType",Hc="error",jc="httpError",zc="message",lPe="policyDescriptorListType",AV="smithy.ts.sdk.synthetic.com.amazonaws.sts",dPe="tagListType",it="com.amazonaws.sts",xV=new Fe(AV),TV=[-3,AV,"STSServiceException",0,[],[]];xV.registerError(TV,Rn);wa=new Fe(it),vV=[-3,it,Lwe,{[Gc]:["ExpiredTokenException",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(vV,om);DV=[-3,it,Nwe,{[Gc]:["IDPCommunicationError",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(DV,lm);IV=[-3,it,Fwe,{[Gc]:["IDPRejectedClaim",403],[Hc]:qc,[jc]:403},[zc],[0]];wa.registerError(IV,cm);wV=[-3,it,Bwe,{[Gc]:["InvalidIdentityToken",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(wV,um);PV=[-3,it,Gwe,{[Gc]:["MalformedPolicyDocument",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(PV,sm);OV=[-3,it,Kwe,{[Gc]:["PackedPolicyTooLarge",400],[Hc]:qc,[jc]:400},[zc],[0]];wa.registerError(OV,im);$V=[-3,it,Ywe,{[Gc]:["RegionDisabledException",403],[Hc]:qc,[jc]:403},[zc],[0]];wa.registerError($V,am);Sk=[xV,wa],pPe=[0,it,cPe,8,0],fPe=[0,it,uPe,8,0],yk=[3,it,mk,0,[Twe,bwe],[0,0],2],kV=[3,it,vwe,0,[_V,RV,yV,SV,gV,tPe,nPe,Mwe,Zwe,rPe,hk,Hwe,hV],[0,0,()=>GV,0,1,()=>gPe,64,0,0,0,0,()=>mPe,1],2],MV=[3,it,Dwe,0,[gk,mk,EV,hk,bV,CV],[[()=>Ek,0],()=>yk,1,0,1,1]],LV=[3,it,wwe,0,[_V,RV,iPe,Wwe,yV,SV,gV,hV],[0,0,[()=>fPe,0],0,()=>GV,0,1,1],3],NV=[3,it,Pwe,0,[gk,Xwe,mk,EV,Qwe,Owe,hk,bV,CV],[[()=>Ek,0],0,()=>yk,1,0,0,0,1,1]],Ek=[3,it,gk,0,[Awe,Jwe,ePe,kwe],[0,[()=>pPe,0],0,4],4],FV=[3,it,Vwe,0,[aPe],[0]],BV=[3,it,zwe,0,[qwe,$we],[0,0]],UV=[3,it,oPe,0,[Uwe,sPe],[0,0],2],GV=[1,it,lPe,0,()=>FV],mPe=[1,it,jwe,0,()=>BV],gPe=[1,it,dPe,0,()=>UV],_k=[9,it,xwe,0,()=>kV,()=>MV],Rk=[9,it,Iwe,0,()=>LV,()=>NV]});var qV,HV,jV=g(()=>{rr();Di();qV=Ie(tm());jt();On();J();V();j();dk();uk();dm();HV=t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??dE,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??dV,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ia,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Sk,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??Sn,signerConstructor:t?.signerConstructor??qV.SignatureV4MultiRegion,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var fE,zV,VV=g(()=>{Cf();Ee();rr();jt();J();ye();en();j();fE=Ie(zs());jV();zV=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=HV(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4")||(async i=>await t.credentialDefaultProvider(i?.__config||{})()),signer:new tr},{schemeId:"aws.auth#sigv4a",identityProvider:s=>s.getIdentityProvider("aws.auth#sigv4a"),signer:new Ti},{schemeId:"smithy.api#noAuth",identityProvider:s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:fE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ue(gf,o),streamCollector:t?.streamCollector??fE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var WV,KV,QV=g(()=>{WV=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},KV=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var YV,JV=g(()=>{Ee();J();V();QV();YV=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),WV(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),KV(r))}});var Pa,mE=g(()=>{Ee();jt();J();ye();He();V();en();ae();dk();pk();VV();JV();Pa=class extends Lr{config;constructor(...[e]){let r=zV(e||{});super(r),this.initConfig=r;let n=fV(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=pV(c),f=YV(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:cV,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials,"aws.auth#sigv4a":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var gE,hE,SE,Ck=g(()=>{J();He();pk();gE=gs(mV,"AWSSecurityTokenServiceV20110615","STSClient",bi),hE={},SE=(t,e,r,n)=>[]});var Vc,yE=g(()=>{Ck();dm();Vc=class extends gE(hE,SE,"AssumeRole",_k){}});var Wc,EE=g(()=>{Ck();dm();Wc=class extends gE(hE,SE,"AssumeRoleWithWebIdentity",Rk){}});var hPe,_E,XV=g(()=>{J();yE();EE();mE();hPe={AssumeRoleCommand:Vc,AssumeRoleWithWebIdentityCommand:Wc},_E=class extends Pa{};ds(hPe,_E)});var ZV=g(()=>{yE();EE()});var eW=g(()=>{});var tW,rW,nW,oW,sW,iW=g(()=>{Ee();yE();EE();tW=t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},rW=async(t,e,r,n={})=>{let o=typeof t=="function"?await t():t,s=typeof e=="function"?await e():e,i="",a=o??s??(i=await q0(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${o} (credential provider clientConfig)`,`${s} (contextual client)`,`${i} (STS default: AWS_REGION, profile region, or us-east-1)`),a},nW=(t,e)=>{let r,n;return async(o,s)=>{if(n=o,!r){let{logger:f=t?.parentClientConfig?.logger,profile:m=t?.parentClientConfig?.profile,region:y,requestHandler:_=t?.parentClientConfig?.requestHandler,credentialProviderLogger:C,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,x=await rW(y,t?.parentClientConfig?.region,C,{logger:f,profile:m}),T=!sW(_);r=new e({...t,userAgentAppId:A,profile:m,credentialDefaultProvider:()=>async()=>n,region:x,requestHandler:T?_:void 0,logger:f})}let{Credentials:i,AssumedRoleUser:a}=await r.send(new Vc(s));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let c=tW(a),u={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...c&&{accountId:c}};return Yi(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},oW=(t,e)=>{let r;return async n=>{if(!r){let{logger:c=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:_=t?.parentClientConfig?.userAgentAppId}=t,C=await rW(f,t?.parentClientConfig?.region,y,{logger:c,profile:u}),A=!sW(m);r=new e({...t,userAgentAppId:_,profile:u,region:C,requestHandler:A?m:void 0,logger:c})}let{Credentials:o,AssumedRoleUser:s}=await r.send(new Wc(n));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let i=tW(s),a={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...i&&{accountId:i}};return i&&Yi(a,"RESOLVED_ACCOUNT_ID","T"),Yi(a,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),a}},sW=t=>t?.metadata?.handlerProtocol==="h2"});var aW,cW,uW,SPe,lW=g(()=>{iW();mE();aW=(t,e)=>e?class extends t{constructor(n){super(n);for(let o of e)this.middlewareStack.use(o)}}:t,cW=(t={},e)=>nW(t,aW(Pa,e)),uW=(t={},e)=>oW(t,aW(Pa,e)),SPe=t=>e=>t({roleAssumer:cW(e),roleAssumerWithWebIdentity:uW(e),...e})});var bk={};Ct(bk,{$Command:()=>Xr,AssumeRole$:()=>_k,AssumeRoleCommand:()=>Vc,AssumeRoleRequest$:()=>kV,AssumeRoleResponse$:()=>MV,AssumeRoleWithWebIdentity$:()=>Rk,AssumeRoleWithWebIdentityCommand:()=>Wc,AssumeRoleWithWebIdentityRequest$:()=>LV,AssumeRoleWithWebIdentityResponse$:()=>NV,AssumedRoleUser$:()=>yk,Credentials$:()=>Ek,ExpiredTokenException:()=>om,ExpiredTokenException$:()=>vV,IDPCommunicationErrorException:()=>lm,IDPCommunicationErrorException$:()=>DV,IDPRejectedClaimException:()=>cm,IDPRejectedClaimException$:()=>IV,InvalidIdentityTokenException:()=>um,InvalidIdentityTokenException$:()=>wV,MalformedPolicyDocumentException:()=>sm,MalformedPolicyDocumentException$:()=>PV,PackedPolicyTooLargeException:()=>im,PackedPolicyTooLargeException$:()=>OV,PolicyDescriptorType$:()=>FV,ProvidedContext$:()=>BV,RegionDisabledException:()=>am,RegionDisabledException$:()=>$V,STS:()=>_E,STSClient:()=>Pa,STSServiceException:()=>Rn,STSServiceException$:()=>TV,Tag$:()=>UV,__Client:()=>Lr,decorateDefaultCredentialProvider:()=>SPe,errorTypeRegistries:()=>Sk,getDefaultRoleAssumer:()=>cW,getDefaultRoleAssumerWithWebIdentity:()=>uW});var Ak=g(()=>{mE();XV();ZV();J();dm();fk();eW();lW();pE()});function yPe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function EPe(t){return{schemeId:"smithy.api#noAuth"}}var dW,pW,fW,xk=g(()=>{rr();J();dW=async(t,e,r)=>({operation:Le(e).operation,region:await we(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});pW=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(EPe(t)):e.push(yPe(t)),e},fW=t=>{let e=js(t);return Object.assign(e,{authSchemePreference:we(t.authSchemePreference??[])})}});var mW,gW,Tk=g(()=>{mW=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),gW={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ka,Oa,hW,Zl,SW,ed,yW,Dk,Ii,vk,EW,_W,$a,AW,RW,RE,Gr,CW,bW,_Pe,_e,RPe,xW,TW=g(()=>{He();ka="ref",Oa=-1,hW=!1,Zl=!0,SW="isSet",ed="booleanEquals",yW="coalesce",Dk="PartitionResult",Ii="stringEquals",vk="getAttr",EW="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",_W={[ka]:"Endpoint"},$a={fn:vk,argv:[{[ka]:Dk},"name"]},AW={[ka]:"Region"},RW={[ka]:Dk},RE={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Gr={},CW=[AW],bW={conditions:[[SW,CW],[ed,[{fn:yW,argv:[{[ka]:"IsControlPlane"},hW]},Zl]],[SW,[_W]],["aws.partition",CW,Dk],[ed,[{[ka]:"UseFIPS"},Zl]],[Ii,[$a,"aws"]],[ed,[{fn:yW,argv:[{[ka]:"IsOAuthEndpoint"},hW]},Zl]],[ed,[{[ka]:"UseDualStack"},Zl]],[Ii,[$a,"aws-cn"]],[Ii,[AW,"us-gov-west-1"]],[Ii,[$a,"aws-us-gov"]],[ed,[{fn:vk,argv:[RW,"supportsFIPS"]},Zl]],[Ii,[$a,"aws-iso"]],[Ii,[$a,"aws-iso-b"]],[Ii,[$a,"aws-iso-f"]],[Ii,[$a,"aws-iso-e"]],[Ii,[$a,"aws-eusc"]],[ed,[{fn:vk,argv:[RW,"supportsDualStack"]},Zl]]],results:[[Oa],["https://signin.{Region}.api.aws",RE],["https://signin.{Region}.api.amazonwebservices.com.cn",RE],[EW,RE],[Oa,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",RE],["https://{Region}.signin.aws.amazon.com",Gr],["https://{Region}.signin.amazonaws.cn",Gr],["https://{Region}.signin.amazonaws-us-gov.com",Gr],["https://{Region}.signin.c2shome.ic.gov",Gr],["https://{Region}.signin.sc2shome.sgov.gov",Gr],["https://{Region}.signin.csphome.hci.ic.gov",Gr],["https://{Region}.signin.csphome.adc-e.uk",Gr],["https://{Region}.signin.amazonaws-eusc.eu",Gr],["https://signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin-fips.amazonaws-us-gov.com",Gr],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Oa,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[_W,Gr],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Gr],[Oa,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"FIPS is enabled but this partition does not support FIPS"],[EW,Gr],[Oa,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Gr],[Oa,"Invalid Configuration: Missing Region"]]},_Pe=2,_e=1e8,RPe=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,_e+27,6,_e+4,_e+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,_e+7,13,10,_e+8,14,12,_e+9,15,13,_e+10,16,14,_e+11,17,15,_e+12,18,16,_e+13,_e+16,6,_e+5,20,7,21,_e+6,17,_e+24,_e+25,6,_e+4,23,7,27,24,9,_e+14,25,10,_e+15,26,11,_e+22,_e+23,11,28,_e+21,17,_e+20,_e+21,2,35,30,3,39,31,4,32,_e+27,6,_e+4,33,7,_e+27,34,9,_e+14,_e+27,3,39,36,4,38,37,7,_e+18,_e+19,6,_e+4,_e+17,5,_e+1,40,8,_e+2,_e+3]),xW=Wn.from(RPe,_Pe,bW.conditions,bW.results)});var CPe,vW,DW=g(()=>{Ee();He();TW();CPe=new Kn({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),vW=(t,e={})=>CPe.get(t,()=>Ts(xW,{endpointParams:t,logger:e.logger}));hn.aws=Lo});var zo,CE=g(()=>{J();zo=class t extends jn{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var pm,fm,mm,gm,Ik=g(()=>{CE();pm=class t extends zo{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},fm=class t extends zo{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},mm=class t extends zo{static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},gm=class t extends zo{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var bPe,APe,xPe,TPe,vPe,DPe,IPe,wPe,PPe,OPe,$Pe,kPe,MPe,LPe,NPe,IW,wk,FPe,kk,wW,PW,BPe,Ma,Pk,UPe,Ok,GPe,LW,Mk,OW,wr,AE,qPe,bE,$W,NW,kW,MW,HPe,jPe,zPe,$k,VPe,qr,FW,BW,hm,UW,GW,qW,HW,Lk,WPe,jW,zW,VW,WW,KW,QW,YW,JW,Nk,Fk,Sm=g(()=>{ae();Ik();CE();bPe="AccessDeniedException",APe="AccessToken",xPe="CreateOAuth2Token",TPe="CreateOAuth2TokenRequest",vPe="CreateOAuth2TokenRequestBody",DPe="CreateOAuth2TokenResponseBody",IPe="CreateOAuth2TokenResponse",wPe="CreateOAuth2TokenWithIAM",PPe="CreateOAuth2TokenWithIAMRequest",OPe="CreateOAuth2TokenWithIAMResponse",$Pe="InternalServerException",kPe="OAuthAccessToken",MPe="RefreshToken",LPe="TooManyRequestsError",NPe="ValidationException",IW="accessKeyId",wk="accessToken",FPe="access_token",kk="client",wW="clientId",PW="codeVerifier",BPe="code",Ma="error",Pk="expiresIn",UPe="expires_in",Ok="grantType",GPe="grant_type",LW="http",Mk="httpError",OW="idToken",wr="jsonName",AE="message",qPe="resource",bE="refreshToken",$W="redirectUri",NW="smithy.ts.sdk.synthetic.com.amazonaws.signin",kW="secretAccessKey",MW="sessionToken",HPe="server",jPe="tokenInput",zPe="tokenOutput",$k="tokenType",VPe="token_type",qr="com.amazonaws.signin",FW=new Fe(NW),BW=[-3,NW,"SigninServiceException",0,[],[]];FW.registerError(BW,zo);hm=new Fe(qr),UW=[-3,qr,bPe,{[Ma]:kk},[Ma,AE],[0,0],2];hm.registerError(UW,pm);GW=[-3,qr,$Pe,{[Ma]:HPe,[Mk]:500},[Ma,AE],[0,0],2];hm.registerError(GW,fm);qW=[-3,qr,LPe,{[Ma]:kk,[Mk]:429},[Ma,AE],[0,0],2];hm.registerError(qW,mm);HW=[-3,qr,NPe,{[Ma]:kk,[Mk]:400},[Ma,AE],[0,0],2];hm.registerError(HW,gm);Lk=[FW,hm],WPe=[0,qr,kPe,8,0],jW=[0,qr,MPe,8,0],zW=[3,qr,APe,8,[IW,kW,MW],[[0,{[wr]:IW}],[0,{[wr]:kW}],[0,{[wr]:MW}]],3],VW=[3,qr,TPe,0,[jPe],[[()=>WW,16]],1],WW=[3,qr,vPe,0,[wW,Ok,BPe,$W,PW,bE],[[0,{[wr]:wW}],[0,{[wr]:Ok}],0,[0,{[wr]:$W}],[0,{[wr]:PW}],[()=>jW,{[wr]:bE}]],2],KW=[3,qr,IPe,0,[zPe],[[()=>QW,16]],1],QW=[3,qr,DPe,0,[wk,$k,Pk,bE,OW],[[()=>zW,{[wr]:wk}],[0,{[wr]:$k}],[1,{[wr]:Pk}],[()=>jW,{[wr]:bE}],[0,{[wr]:OW}]],4],YW=[3,qr,PPe,0,[Ok,qPe],[[0,{[wr]:GPe}],0],2],JW=[3,qr,OPe,0,[wk,$k,Pk],[[()=>WPe,{[wr]:FPe}],[0,{[wr]:VPe}],[1,{[wr]:UPe}]],3],Nk=[9,qr,xPe,{[LW]:["POST","/v1/token",200]},()=>VW,()=>KW],Fk=[9,qr,wPe,{[LW]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>YW,()=>JW]});var XW,ZW=g(()=>{rr();Di();jt();On();J();V();j();xk();DW();Sm();XW=t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Xe,base64Encoder:t?.base64Encoder??De,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??vW,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??pW,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tr},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ur}],logger:t?.logger??new Nr,protocol:t?.protocol??Ks,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Lk,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??Sn,urlParser:t?.urlParser??Cr,utf8Decoder:t?.utf8Decoder??qt,utf8Encoder:t?.utf8Encoder??ze})});var xE,e8,t8=g(()=>{Cf();Ee();rr();J();ye();en();j();xE=Ie(zs());ZW();e8=t=>{fs(process.version);let e=As(t),r=()=>e().then(ps),n=XW(t);us(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ue(No,o),bodyLengthChecker:t?.bodyLengthChecker??Es,defaultUserAgentProvider:t?.defaultUserAgentProvider??Mo({serviceId:n.serviceId,clientVersion:ba.version}),maxAttempts:t?.maxAttempts??ue($s,t),region:t?.region??ue(Ar,{...Zr,...o}),requestHandler:xE.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ue({...Ms,default:async()=>(await r()).retryMode||Yn},t),streamCollector:t?.streamCollector??xE.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ue(Cs,o),useFipsEndpoint:t?.useFipsEndpoint??ue(bs,o),userAgentAppId:t?.userAgentAppId??ue(Gs,o)}}});var r8,n8,o8=g(()=>{r8=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},n8=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()})});var s8,i8=g(()=>{Ee();J();V();o8();s8=(t,e)=>{let r=Object.assign(qs(t),Co(t),vs(t),r8(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Hs(r),ms(r),Ds(r),n8(r))}});var ym,Bk=g(()=>{Ee();jt();J();ye();He();V();en();ae();xk();Tk();t8();i8();ym=class extends Lr{config;constructor(...[e]){let r=e8(e||{});super(r),this.initConfig=r;let n=mW(r),o=Bs(n),s=ks(o),i=In(s),a=i,c=Ci(a),u=fW(c),f=s8(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(Us(this.config)),this.middlewareStack.use(xi(this.config)),this.middlewareStack.use(Is(this.config)),this.middlewareStack.use(Ls(this.config)),this.middlewareStack.use(Ns(this.config)),this.middlewareStack.use(Fs(this.config)),this.middlewareStack.use($o(this.config,{httpAuthSchemeParametersProvider:dW,identityProviderConfigProvider:async m=>new $n({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(ko(this.config))}destroy(){super.destroy()}}});var TE,a8,c8,vE,Uk=g(()=>{J();He();Tk();TE=gs(gW,"Signin","SigninClient",bi),a8={IsControlPlane:{type:"staticContextParams",value:!1}},c8={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},vE=(t,e,r,n)=>[]});var Em,Gk=g(()=>{Uk();Sm();Em=class extends TE(a8,vE,"CreateOAuth2Token",Nk){}});var _m,qk=g(()=>{Uk();Sm();_m=class extends TE(c8,vE,"CreateOAuth2TokenWithIAM",Fk){}});var KPe,DE,u8=g(()=>{J();Gk();qk();Bk();KPe={CreateOAuth2TokenCommand:Em,CreateOAuth2TokenWithIAMCommand:_m},DE=class extends ym{};ds(KPe,DE)});var l8=g(()=>{Gk();qk()});var QPe,d8=g(()=>{QPe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var p8=g(()=>{});var f8={};Ct(f8,{$Command:()=>Xr,AccessDeniedException:()=>pm,AccessDeniedException$:()=>UW,AccessToken$:()=>zW,CreateOAuth2Token$:()=>Nk,CreateOAuth2TokenCommand:()=>Em,CreateOAuth2TokenRequest$:()=>VW,CreateOAuth2TokenRequestBody$:()=>WW,CreateOAuth2TokenResponse$:()=>KW,CreateOAuth2TokenResponseBody$:()=>QW,CreateOAuth2TokenWithIAM$:()=>Fk,CreateOAuth2TokenWithIAMCommand:()=>_m,CreateOAuth2TokenWithIAMRequest$:()=>YW,CreateOAuth2TokenWithIAMResponse$:()=>JW,InternalServerException:()=>fm,InternalServerException$:()=>GW,OAuth2ErrorCode:()=>QPe,Signin:()=>DE,SigninClient:()=>ym,SigninServiceException:()=>zo,SigninServiceException$:()=>BW,TooManyRequestsError:()=>mm,TooManyRequestsError$:()=>qW,ValidationException:()=>gm,ValidationException$:()=>HW,__Client:()=>Lr,errorTypeRegistries:()=>Lk});var m8=g(()=>{Bk();u8();l8();J();Sm();d8();Ik();p8();CE()});var S8=st(h8=>{var{setCredentialFeature:YPe}=(Ee(),F(kn)),{CredentialsProviderError:La,parseKnownFiles:JPe,getProfileName:XPe}=(ye(),F(Br)),{HttpRequest:ZPe}=(V(),F(wo)),{createHash:eOe,createPrivateKey:tOe,createPublicKey:rOe,sign:nOe}=require("node:crypto"),{promises:Hk}=require("node:fs"),{homedir:oOe}=require("node:os"),{dirname:sOe,join:g8}=require("node:path"),jk=class t{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new La(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),o=new Date(r.accessToken.expiresAt).getTime(),s=new Date(e.accessToken.expiresAt).getTime(),i=o<=n&&s>n?e:r;if(new Date(i.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(i.accessToken);let{SigninClient:c,CreateOAuth2TokenCommand:u}=(m8(),F(f8)),{logger:f,userAgentAppId:m}=this.callerClientConfig??{},_=(T=>T?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,C=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new c({credentials:{accessKeyId:"",secretAccessKey:""},region:C,requestHandler:_,logger:f,userAgentAppId:m,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let x={tokenInput:{clientId:i.clientId,refreshToken:i.refreshToken,grantType:"refresh_token"}};try{let T=await A.send(new u(x)),{accessKeyId:I,secretAccessKey:q,sessionToken:H}=T.tokenOutput?.accessToken??{},{refreshToken:me,expiresIn:et}=T.tokenOutput??{};if(!I||!q||!H||!me)throw new La("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let ot=(et??900)*1e3,tt=new Date(Date.now()+ot),pt={...i,accessToken:{...i.accessToken,accessKeyId:I,secretAccessKey:q,sessionToken:H,expiresAt:tt.toISOString()},refreshToken:me};return await this.saveToken(pt),this.toCredentials(pt.accessToken)}catch(T){if(T.name==="AccessDeniedException"){let q=T.error,H;switch(q){case"TOKEN_EXPIRED":H="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":H="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":H="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:H=`Failed to refresh token: ${String(T)}. Please re-authenticate using \`aws login\``}throw new La(H,{logger:this.logger,tryNextLink:!1})}if(new Date(i.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(T)}. Using existing token until expiry.`),this.toCredentials(i.accessToken);throw new La(`Failed to refresh token: ${String(T)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await Hk.readFile(e,"utf8"),n=JSON.parse(r),o=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!n[s]);if(n.accessToken?.accountId||o.push("accountId"),o.length>0)throw new La(`Token validation failed, missing fields: ${o.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new La(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=sOe(r);try{await Hk.mkdir(n,{recursive:!0})}catch{}await Hk.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??g8(oOe(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=eOe("sha256").update(r).digest("hex");return g8(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],o=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let s=e[r++],i=e.subarray(r,r+s);o=o[0]===0?o.subarray(1):o,i=i[0]===0?i.subarray(1):i;let a=Buffer.concat([Buffer.alloc(32-o.length),o]),c=Buffer.concat([Buffer.alloc(32-i.length),i]);return Buffer.concat([a,c])}createDPoPInterceptor(e){e.add(r=>async n=>{if(ZPe.isInstance(n.request)){let o=n.request,s=`${o.protocol}//${o.hostname}${o.port?`:${o.port}`:""}${o.path}`,i=await this.generateDpop(o.method,s);o.headers={...o.headers,DPoP:i}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let o=tOe({key:n.dpopKey,format:"pem",type:"sec1"}),i=rOe(o).export({format:"der",type:"spki"}),a=-1;for(let I=0;I<i.length;I++)if(i[I]===4){a=I;break}let c=i.slice(a+1,a+33),u=i.slice(a+33,a+65),f={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:c.toString("base64url"),y:u.toString("base64url")}},m={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(f)).toString("base64url"),_=Buffer.from(JSON.stringify(m)).toString("base64url"),C=`${y}.${_}`,A=nOe("sha256",Buffer.from(C),o),T=this.derToRawSignature(A).toString("base64url");return`${C}.${T}`}catch(o){throw new La(`Failed to generate Dpop proof: ${o instanceof Error?o.message:String(o)}`,{logger:this.logger,tryNextLink:!1})}}},iOe=t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await JPe(t||{}),n=XPe({profile:t?.profile??e?.profile}),o=r[n];if(!o?.login_session)throw new La(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let i=await new jk(o,t,e).loadCredentials();return YPe(i,"CREDENTIALS_LOGIN","AD")};h8.fromLoginCredentials=iOe});var Vk=st(y8=>{var{externalDataInterceptor:aOe,CredentialsProviderError:zk,parseKnownFiles:cOe,getProfileName:uOe}=(ye(),F(Br)),{exec:lOe}=require("node:child_process"),{promisify:dOe}=require("node:util"),{setCredentialFeature:pOe}=(Ee(),F(kn)),fOe=(t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let s=new Date;if(new Date(e.Expiration)<s)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let o={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return pOe(o,"CREDENTIALS_PROCESS","w"),o},mOe=async(t,e,r)=>{let n=e[t];if(e[t]){let o=n.credential_process;if(o!==void 0){let s=dOe(aOe?.getTokenRecord?.().exec??lOe);try{let{stdout:i}=await s(o),a;try{a=JSON.parse(i.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return fOe(t,a,e)}catch(i){throw new zk(i.message,{logger:r})}}else throw new zk(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new zk(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},gOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await cOe(t);return mOe(uOe({profile:t.profile??e?.profile}),r,t.logger)};y8.fromProcess=gOe});var Kk=st(Wk=>{var{setCredentialFeature:hOe}=(Ee(),F(kn)),{CredentialsProviderError:SOe,externalDataInterceptor:yOe}=(ye(),F(Br)),{readFileSync:EOe}=require("node:fs"),_8=t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:o,providerId:s,policyArns:i,policy:a,durationSeconds:c}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:f}=(Ak(),F(bk));u=f({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:o,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})},E8="AWS_WEB_IDENTITY_TOKEN_FILE",_Oe="AWS_ROLE_ARN",ROe="AWS_ROLE_SESSION_NAME",COe=(t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[E8],n=t?.roleArn??process.env[_Oe],o=t?.roleSessionName??process.env[ROe];if(!r||!n)throw new SOe("Web identity configuration not specified",{logger:t.logger});let s=await _8({...t,webIdentityToken:yOe?.getTokenRecord?.()[r]??EOe(r,{encoding:"ascii"}),roleArn:n,roleSessionName:o})(e);return r===process.env[E8]&&hOe(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s};Wk.fromTokenFile=COe;Wk.fromWebToken=_8});var v8=st(T8=>{var{CredentialsProviderError:IE,chain:bOe,getProfileName:A8,parseKnownFiles:AOe}=(ye(),F(Br)),{setCredentialFeature:wi}=(Ee(),F(kn)),xOe=(t,e,r)=>{let n={EcsContainer:async o=>{let{fromHttp:s}=XO(),{fromContainerMetadata:i}=ry();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>bOe(s(o??{}),i(o))().then(Qk)},Ec2InstanceMetadata:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=ry();return async()=>s(o)().then(Qk)},Environment:async o=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=BO();return async()=>s(o)().then(Qk)}};if(t in n)return n[t];throw new IE(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},Qk=t=>wi(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),TOe=(t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(vOe(t,{profile:e,logger:r})||DOe(t,{profile:e,logger:r})),vOe=(t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},DOe=(t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},IOe=async(t,e,r,n,o={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let i=e[t],{source_profile:a,region:c}=i;if(!r.roleAssumer){let{getDefaultRoleAssumer:f}=(Ak(),F(bk));r.roleAssumer=f({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:c??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(a&&a in o)throw new IE(`Detected a cycle attempting to resolve credentials for profile ${A8(r)}. Profiles visited: `+Object.keys(o).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${t}]`}`);let u=a?s(a,e,r,n,{...o,[a]:!0},R8(e[a]??{})):(await xOe(i.credential_source,t,r.logger)(r))();if(R8(i))return u.then(f=>wi(f,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let f={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id,DurationSeconds:parseInt(i.duration_seconds||"3600",10)},{mfa_serial:m}=i;if(m){if(!r.mfaCodeProvider)throw new IE(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});f.SerialNumber=m,f.TokenCode=await r.mfaCodeProvider(m)}let y=await u;return r.roleAssumer(y,f).then(_=>wi(_,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},R8=t=>!t.role_arn&&!!t.credential_source,wOe=t=>!!(t&&t.login_session),POe=async(t,e,r)=>{let{fromLoginCredentials:n}=S8(),o=await n({...e,profile:t})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_LOGIN","AC")},OOe=t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string",$Oe=async(t,e)=>{let{fromProcess:r}=Vk(),n=await r({...t,profile:e})();return wi(n,"CREDENTIALS_PROFILE_PROCESS","v")},kOe=async(t,e,r={},n)=>{let{fromSSO:o}=ok();return o({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(s=>e.sso_session?wi(s,"CREDENTIALS_PROFILE_SSO","r"):wi(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},MOe=t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),C8=t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,b8=async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return wi(r,"CREDENTIALS_PROFILE","n")},LOe=t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,NOe=async(t,e,r)=>{let{fromTokenFile:n}=Kk(),o=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return wi(o,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},x8=async(t,e,r,n,o={},s=!1)=>{let i=e[t];if(Object.keys(o).length>0&&C8(i))return b8(i,r);if(s||TOe(i,{profile:t,logger:r.logger}))return IOe(t,e,r,n,o,x8);if(C8(i))return b8(i,r);if(LOe(i))return NOe(i,r,n);if(OOe(i))return $Oe(r,t);if(MOe(i))return await kOe(t,i,r,n);if(wOe(i))return POe(t,r,n);throw new IE(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},FOe=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await AOe(t);return x8(A8({profile:t.profile??e?.profile}),r,t,e)};T8.fromIni=FOe});var Rm=st(PE=>{var{ENV_KEY:BOe,ENV_SECRET:UOe,fromEnv:GOe}=BO(),{chain:qOe,CredentialsProviderError:wE,ENV_PROFILE:HOe}=(ye(),F(Br)),D8="AWS_EC2_METADATA_DISABLED",jOe=async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:o}=ry();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=XO();return qOe(s(t),n(t))}return process.env[D8]&&process.env[D8]!=="false"?async()=>{throw new wE("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),o(t))};function zOe(t,e){let r=VOe(t),n,o,s,i,a=async c=>{if(c?.forceRefresh)return i||(i=r(c).then(u=>{s=u}).finally(()=>{i=void 0})),await i,s;if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),n)await n;else if(!s||e?.(s))if(s)o||(o=r(c).then(u=>{s=u}).catch(()=>{}).finally(()=>{o=void 0}));else return n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}),a(c);return s};return a}var VOe=t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(o){if(r=o,o?.tryNextLink)continue;throw o}throw r},I8=!1,WOe=(t={})=>zOe([async()=>{if(t.profile??process.env[HOe])throw process.env[BOe]&&process.env[UOe]&&(I8||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
52
51
  Multiple credential sources detected:
53
52
  Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
54
53
  This SDK will proceed with the AWS_PROFILE value.
@@ -56,4 +55,5 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
56
55
  However, a future version may change this behavior to prefer the ENV static credentials.
57
56
  Please ensure that your environment only sets either the AWS_PROFILE or the
58
57
  AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
59
- `),hV=!0)),new N0("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Gbe(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t;if(!r&&!n&&!o&&!s&&!i)throw new N0("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=dO();return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=fV();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=XO();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=ZO();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Hbe(t))()),async()=>{throw new N0("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],gV),Kbe=t=>t?.expiration!==void 0,gV=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;M0.credentialsTreatedAsExpired=gV;M0.credentialsWillNeedRefresh=Kbe;M0.defaultProvider=Wbe});var yt,SV,yV,Qbe,ri,F0=h(()=>{j();yt=64,SV=20,yV=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),Qbe=new Int32Array([1518500249,1859775393,2400959708,3395469782]),ri=class t{digestLength=SV;state=Int32Array.from(yV);w;buffer=new Uint8Array(yt);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let n=new Uint8Array(yt*2);for(let o=0;o<yt;++o)n[o]=54^r[o],n[o+yt]=92^r[o];this.inner.update(n.subarray(0,yt)),this.outer.update(n.subarray(yt))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:n}=e;if(this.bytesHashed+=n,this.bufferLength>0){for(;n>0&&this.bufferLength<yt;)this.buffer[this.bufferLength++]=e[r++],--n;this.bufferLength===yt&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;n>=yt;)this.hashBuffer(e,r),r+=yt,n-=yt;for(;n>0;)this.buffer[this.bufferLength++]=e[r++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(yV),this.buffer=new Uint8Array(yt),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed/536870912|0,s=this.bytesHashed<<3;if(r[n++]=128,n>yt-8){for(let c=n;c<yt;++c)r[c]=0;this.hashBufferWith(e,r,0),n=0}for(let c=n;c<yt-8;++c)r[c]=0;let i=new DataView(r.buffer,r.byteOffset,yt);i.setUint32(yt-8,o,!1),i.setUint32(yt-4,s,!1),this.hashBufferWith(e,r,0);let a=new Uint8Array(SV);return a[0]=e[0]>>>24&255,a[1]=e[0]>>>16&255,a[2]=e[0]>>>8&255,a[3]=e[0]&255,a[4]=e[1]>>>24&255,a[5]=e[1]>>>16&255,a[6]=e[1]>>>8&255,a[7]=e[1]&255,a[8]=e[2]>>>24&255,a[9]=e[2]>>>16&255,a[10]=e[2]>>>8&255,a[11]=e[2]&255,a[12]=e[3]>>>24&255,a[13]=e[3]>>>16&255,a[14]=e[3]>>>8&255,a[15]=e[3]&255,a[16]=e[4]>>>24&255,a[17]=e[4]>>>16&255,a[18]=e[4]>>>8&255,a[19]=e[4]&255,a}static normalizeKey(e){let r=ht(e);if(r.byteLength>yt){let o=new t;o.update(r);let s=o.digestSync(),i=new Uint8Array(yt);return i.set(s),i}let n=new Uint8Array(yt);return n.set(r),n}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,n){let o=this.w??=new Int32Array(80),s=e[0],i=e[1],a=e[2],c=e[3],u=e[4];for(let f=0;f<16;++f)o[f]=(r[n+f*4]&255)<<24|(r[n+f*4+1]&255)<<16|(r[n+f*4+2]&255)<<8|r[n+f*4+3]&255;for(let f=16;f<80;++f){let m=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=m<<1|m>>>31}for(let f=0;f<80;++f){let m=f<20?0:f<40?1:f<60?2:3,y=((s<<5|s>>>27)+(m===0?i&a^~i&c:m===2?i&a^i&c^a&c:i^a^c)|0)+(u+(Qbe[m]+o[f]|0)|0)|0;u=c,c=a,a=i<<30|i>>>2,i=s,s=y}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+u|0}}});function Xbe(){return class{digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,vf.createHmac)("sha1",Ybe(this.secret)):(0,vf.createHash)("sha1")}}}function Ybe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var vf,Jbe,tk,EV=h(()=>{vf=require("node:crypto");F0();Jbe=(()=>{try{return(0,vf.createHash)("sha1"),!0}catch{return!1}})(),tk=Jbe?Xbe():ri});var Zbe,eCe,tCe,U0,rCe,G0,_V=h(()=>{j();F0();({digest:Zbe,sign:eCe,importKey:tCe}=globalThis?.crypto?.subtle??{}),U0=typeof Zbe=="function"&&typeof eCe=="function"&&typeof tCe=="function"?globalThis.crypto.subtle:void 0,rCe=8*1024*1024,G0=class{digestLength=20;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=ht(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=rCe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=wn(this.pending);if(U0){if(this.secret){this.finished=!0;let o=await U0.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),s=await U0.sign("HMAC",o,e);return new Uint8Array(s)}let n=await U0.digest("SHA-1",e);return new Uint8Array(n)}let r=new ri(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new ri(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var RV={};mt(RV,{Sha1:()=>tk,Sha1Js:()=>ri,Sha1Node:()=>tk,Sha1WebCrypto:()=>G0,Sha256:()=>rn,Sha256Js:()=>co,Sha256Node:()=>rn});var bV=h(()=>{F0();EV();_V();In()});var fre=Ct(d=>{var{getFlexibleChecksumsPlugin:la,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:nCe,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:oCe,resolveFlexibleChecksumsConfig:sCe}=(bG(),F(RG)),{awsEndpointFunctions:iCe,emitWarningIfUnsupportedVersion:aCe,createDefaultUserAgentProvider:cCe,NODE_APP_ID_CONFIG_OPTIONS:uCe,getAwsRegionExtensionConfiguration:lCe,resolveAwsRegionExtensionConfiguration:dCe,resolveUserAgentConfig:pCe,resolveHostHeaderConfig:fCe,getUserAgentPlugin:mCe,getHostHeaderPlugin:hCe,getLoggerPlugin:gCe,getRecursionDetectionPlugin:SCe}=(ye(),F($n)),{getThrow200ExceptionsPlugin:da,getSsecPlugin:Cl,getLocationConstraintPlugin:yCe,getS3ExpiresMiddlewarePlugin:a8,getCheckContentLengthHeaderPlugin:ECe,S3RestXmlProtocol:_Ce,NODE_USE_ARN_REGION_CONFIG_OPTIONS:RCe,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:bCe,resolveS3Config:CCe,getValidateBucketNamePlugin:xCe,getAddExpectContinuePlugin:ACe,getRegionRedirectMiddlewarePlugin:TCe,getS3ExpressPlugin:wCe,getS3ExpressHttpSigningPlugin:vCe}=(Zq(),F(Yq)),{getHttpAuthSchemeEndpointRuleSetPlugin:PCe,DefaultIdentityProviderConfig:ICe,getHttpSigningPlugin:DCe,createPaginator:qf}=(hr(),F(_S)),{normalizeProvider:c8,getSmithyContext:u8,makeBuilder:OCe,ServiceException:kCe,NoOpLogger:$Ce,emitWarningIfUnsupportedVersion:LCe,loadConfigsForDefaultMode:NCe,getDefaultExtensionConfiguration:MCe,resolveDefaultRuntimeConfig:BCe,Client:l8,createWaiter:pa,checkExceptions:kR,WaiterState:Cs,createAggregatedClient:FCe}=(Q(),F(bi)),{Command:UCe}=(Q(),F(bi));d.$Command=UCe;d.__Client=l8;var{resolveDefaultsModeConfig:GCe,loadConfig:Un,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:qCe,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:jCe,NODE_REGION_CONFIG_OPTIONS:HCe,NODE_REGION_CONFIG_FILE_OPTIONS:zCe,resolveRegionConfig:VCe}=(Re(),F(en)),{BinaryDecisionDiagram:WCe,EndpointCache:KCe,decideEndpoint:QCe,customEndpointFunctions:JCe,resolveParams:XCe,getEndpointPlugin:YCe,resolveEndpointConfig:ZCe}=(Ge(),F(ug)),{eventStreamSerdeProvider:exe,resolveEventStreamSerdeConfig:txe}=(Dg(),F(Ig)),{parseUrl:rxe,getHttpHandlerExtensionConfiguration:nxe,resolveHttpHandlerRuntimeConfig:oxe,getContentLengthPlugin:sxe}=(z(),F(Qs)),{DEFAULT_RETRY_MODE:ixe,NODE_RETRY_MODE_CONFIG_OPTIONS:axe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:cxe,resolveRetryConfig:uxe,getRetryPlugin:lxe}=(on(),F(pS)),{TypeRegistry:d8,getSchemaSerdePlugin:dxe}=(ne(),F(uh)),{resolveAwsSdkSigV4Config:pxe,resolveAwsSdkSigV4AConfig:fxe,AwsSdkSigV4Signer:mxe,AwsSdkSigV4ASigner:hxe,NODE_SIGV4A_CONFIG_OPTIONS:gxe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Sxe}=(gr(),F(Dp)),{SignatureV4MultiRegion:p8}=Sp(),{defaultProvider:yxe}=B0(),{Sha256:Exe,Md5:_xe,readableStreamHasher:Rxe}=(In(),F(wg)),{toUtf8:bxe,fromUtf8:Cxe,sdkStreamMixin:xxe,getAwsChunkedEncodingStream:Axe,toBase64:Txe,fromBase64:wxe,calculateBodyLength:vxe}=(j(),F(Pi)),{streamCollector:Pxe,NodeHttpHandler:Ixe}=Zs(),{Sha1:Dxe}=(bV(),F(RV)),je="ref",de="argv",f8="backend",As="authSchemes",qn="disableDoubleEncoding",jn="signingName",ai="signingRegion",_k="signingRegionSet",J=-1,Ne=!0,Gn=!1,rk="isSet",Ao="booleanEquals",Te="stringEquals",Or="coalesce",jr="substring",Nt="",CV="aws.partition",m8="partitionResult",xV="accessPointSuffix",AV="regionPrefix",q0=t=>"outpostId_ssa_"+t+Nt,h8="hardwareType",nk="ite",ni="isValidHostLabel",ci="sigv4",TV="aws.isVirtualHostableS3Bucket",g8="url",Hr="getAttr",S8="bucketArn",oi="--",y8="arnType",wV="accesspoint",ok=t=>"accessPointName_ssa_"+t+Nt,Rk="s3-object-lambda",If="s3-outposts",vV="bucketPartition",E8="us-east-1",PV="outpostType",En="name",Df="s3",sk="{url#scheme}://{Bucket}.{url#authority}{url#path}",j0="{url#scheme}://{url#authority}{url#path}",IV="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",DV="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",OV="https://{Bucket}.s3.{partitionResult#dnsSuffix}",kV=t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}",$V=t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`",bk="sigv4a",LV="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",NV="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",MV="https://s3.{partitionResult#dnsSuffix}",BV={[je]:"UseFIPS"},FV={[je]:"UseDualStack"},Jt={[je]:"Bucket"},ik={fn:Hr,[de]:[{[je]:m8},En]},UV={[je]:g8},_l={[je]:"Region"},si={[je]:S8},GV={[je]:y8},ak={[je]:"accessPointName_ssa_1"},H0={fn:Hr,[de]:[si,"region"]},qV={[je]:h8},ck={fn:Hr,[de]:[si,"service"]},jV={fn:Hr,[de]:[si,"accountId"]},z0={[f8]:"S3Express",[As]:[{[qn]:!0,[En]:"{_s3e_auth}",[jn]:"s3express",[ai]:"{Region}"}]},HV={[f8]:"S3Express",[As]:[{[qn]:!0,[En]:ci,[jn]:"s3express",[ai]:"{Region}"}]},V0={[As]:[{[qn]:!0,[En]:bk,[jn]:If,[_k]:["*"]},{[qn]:!0,[En]:ci,[jn]:If,[ai]:"{Region}"}]},Qt={[As]:[{[qn]:!0,[En]:ci,[jn]:Df,[ai]:E8}]},Et={[As]:[{[qn]:!0,[En]:ci,[jn]:Df,[ai]:"{Region}"}]},uk={[As]:[{[qn]:!0,[En]:ci,[jn]:Rk,[ai]:"{bucketArn#region}"}]},Pf={[As]:[{[qn]:!0,[En]:ci,[jn]:Df,[ai]:"{bucketArn#region}"}]},zV={[As]:[{[qn]:!0,[En]:bk,[jn]:If,[_k]:["*"]},{[qn]:!0,[En]:ci,[jn]:If,[ai]:"{bucketArn#region}"}]},lk={[As]:[{[qn]:!0,[En]:ci,[jn]:Rk,[ai]:"{Region}"}]},VV=[_l],WV=[{[je]:"Endpoint"}],dk=[Jt],KV=[Jt,0,7,!0],QV=[si,"resourceId[1]"],Oxe=["*"],JV={conditions:[[rk,VV],[Ao,[{[je]:"Accelerate"},Ne]],[Ao,[BV,Ne]],[Ao,[FV,Ne]],[rk,WV],[rk,dk],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,0,6,Ne]},Nt]},"--x-s3"]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:KV},Nt]},"--xa-s3"]],[CV,VV,m8],[jr,KV,xV],[Te,[{[je]:xV},"--op-s3"]],[jr,[Jt,8,12,Ne],AV],[jr,[Jt,32,49,Ne],q0(2)],[jr,[Jt,49,50,Ne],h8],[Ao,[{[je]:"ForcePathStyle"},Ne]],[Te,[ik,"aws-cn"]],[nk,[FV,".dualstack",Nt],"_s3e_ds"],[ni,[{[je]:q0(2)},Gn]],[nk,[BV,"-fips",Nt],"_s3e_fips"],[nk,[{fn:Or,[de]:[{[je]:"DisableS3ExpressSessionAuth"},Gn]},ci,"sigv4-s3express"],"_s3e_auth"],[TV,[Jt,Gn]],["parseURL",WV,g8],[Ao,[{fn:Or,[de]:[{[je]:"UseS3ExpressControlEndpoint"},Gn]},Ne]],[TV,[Jt,Ne]],[Te,[{fn:Hr,[de]:[UV,"scheme"]},"http"]],[ni,[_l,Gn]],["aws.parseArn",dk,S8],[Hr,[{fn:"split",[de]:[Jt,oi,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,0,4,Gn]},Nt]},"arn:"]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,16,18,Ne]},Nt]},oi]],[Ao,[{fn:Hr,[de]:[UV,"isIp"]},Ne]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,21,23,Ne]},Nt]},oi]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,27,29,Ne]},Nt]},oi]],[Te,[{[je]:AV},"beta"]],["uriEncode",dk,"uri_encoded_bucket"],[ni,[_l,Ne]],[Ao,[{fn:Or,[de]:[{[je]:"UseObjectLambdaEndpoint"},Gn]},Ne]],[Hr,[si,"resourceId[0]"],y8],[Te,[GV,Nt]],[Te,[GV,wV]],[Hr,QV,ok(1)],[Te,[ak,Nt]],[Te,[H0,Nt]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,14,16,Ne]},Nt]},oi]],[Te,[qV,"e"]],[Te,[qV,"o"]],[Te,[_l,"aws-global"]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,19,21,Ne]},Nt]},oi]],[Te,[ck,Rk]],[Ao,[{fn:Or,[de]:[{[je]:"DisableAccessPoints"},Gn]},Ne]],[Te,[ck,If]],[CV,[H0],vV],[ni,[ak,Ne]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,26,28,Ne]},Nt]},oi]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,15,17,Ne]},Nt]},oi]],[Hr,[si,"resourceId[4]"]],[Te,[{fn:Or,[de]:[{fn:jr,[de]:[Jt,20,22,Ne]},Nt]},oi]],[Ao,[{[je]:"UseGlobalEndpoint"},Ne]],[Te,[_l,E8]],[Hr,QV,q0(1)],[Ao,[{fn:Or,[de]:[{[je]:"UseArnRegion"},Ne]},Ne]],[ni,[{[je]:q0(1)},Gn]],[Hr,[si,"resourceId[2]"],PV],[Te,[_l,H0]],[Te,[{fn:Hr,[de]:[{[je]:vV},En]},ik]],[Ao,[{[je]:"DisableMultiRegionAccessPoints"},Ne]],[ni,[H0,Ne]],[Te,[{fn:Hr,[de]:[si,"partition"]},ik]],[Te,[jV,Nt]],[Te,[ck,Df]],[ni,[jV,Gn]],[Hr,[si,"resourceId[3]"],ok(2)],[ni,[ak,Gn]],[Te,[{[je]:PV},wV]],[ni,[{[je]:ok(2)},Gn]]],results:[[J],[J,"Accelerate cannot be used with FIPS"],[J,"Cannot set dual-stack in combination with a custom endpoint."],[J,"A custom endpoint cannot be combined with FIPS"],[J,"A custom endpoint cannot be combined with S3 Accelerate"],[J,"Partition does not support FIPS"],[J,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",z0],[sk,z0],[J,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",HV],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",z0],[J,"Unrecognized S3Express bucket name format."],[j0,z0],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",HV],[J,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",V0],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",V0],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",V0],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",V0],[J,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[J,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[J,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[J,"Custom endpoint `{Endpoint}` was not a valid URI"],[J,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",Et],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",Et],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",Et],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",Et],[IV,Qt],[sk,Qt],[IV,Et],[sk,Et],[DV,Qt],[DV,Et],[OV,Qt],[OV,Et],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",Et],[J,"Invalid region: region was not a valid DNS name."],[J,"S3 Object Lambda does not support Dual-stack"],[J,"S3 Object Lambda does not support S3 Accelerate"],[J,"Access points are not supported for this operation"],[J,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[J,"Invalid ARN: Missing account id"],[kV(1),uk],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",uk],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",uk],[J,$V(1)],[J,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[J,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[J,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[J,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[J,"Invalid ARN: bucket ARN is missing a region"],[J,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[J,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[J,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Pf],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Pf],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Pf],[kV(1),Pf],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Pf],[J,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[J,"S3 MRAP does not support dual-stack"],[J,"S3 MRAP does not support FIPS"],[J,"S3 MRAP does not support S3 Accelerate"],[J,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[As]:[{[qn]:Ne,name:bk,[jn]:Df,[_k]:Oxe}]}],[J,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[J,"Invalid Access Point Name"],[J,"S3 Outposts does not support Dual-stack"],[J,"S3 Outposts does not support FIPS"],[J,"S3 Outposts does not support S3 Accelerate"],[J,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",zV],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",zV],[J,$V(2)],[J,"Expected an outpost type `accesspoint`, found {outpostType}"],[J,"Invalid ARN: expected an access point name"],[J,"Invalid ARN: Expected a 4-component resource"],[J,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[J,"Invalid ARN: The Outpost Id was not set"],[J,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[J,"Invalid ARN: No ARN type specified"],[J,"Invalid ARN: `{Bucket}` was not a valid ARN"],[J,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Qt],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Et],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Qt],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Et],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Qt],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Et],[LV,Qt],[LV,Et],[NV,Qt],[NV,Et],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",Et],[J,"Path-style addressing cannot be used with S3 Accelerate"],[j0,lk],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",lk],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",lk],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",Et],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",Et],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",Qt],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",Et],[j0,Qt],[j0,Et],[MV,Qt],[MV,Et],["https://s3.{Region}.{partitionResult#dnsSuffix}",Et],[J,"A region must be set when sending requests to S3."]]},kxe=2,E=1e8,$xe=new Int32Array([-1,1,-1,0,3,E+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,E+115,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,E+86,38,E+86,29,39,47,30,48,E+58,31,50,32,E+85,51,33,136,55,E+76,34,59,35,E+84,60,39,36,61,37,E+83,62,38,146,63,41,E+46,61,40,E+83,62,41,150,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+81,73,46,E+80,74,E+78,E+79,40,48,E+57,41,E+57,49,42,185,50,48,62,51,49,E+45,52,51,53,526,60,56,54,62,E+55,55,63,57,E+46,62,E+55,57,64,58,E+54,66,59,E+53,69,60,E+65,70,61,E+52,72,E+64,E+51,49,E+45,63,51,64,526,60,67,65,62,E+55,66,63,68,E+46,62,E+55,68,64,69,E+54,66,70,E+53,68,E+47,71,70,72,E+52,72,E+50,E+51,25,74,E+42,46,E+39,75,57,76,E+41,58,E+40,E+41,26,E+88,78,28,E+87,79,34,82,80,35,81,545,36,E+103,E+115,46,E+97,83,57,84,E+99,58,E+98,E+99,5,101,86,8,87,E+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,E+14,95,35,96,E+42,36,E+103,E+42,22,E+13,98,35,99,E+42,36,E+101,100,46,E+110,E+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,E+23,26,107,502,37,108,E+86,38,E+86,109,39,112,110,48,E+58,111,50,136,E+85,40,113,E+57,41,E+57,114,42,115,500,48,E+56,116,52,117,E+72,65,E+69,E+72,21,501,E+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,E+23,23,128,129,24,189,129,26,130,197,37,131,E+86,38,E+86,132,39,159,133,48,E+58,134,50,135,E+85,51,141,136,55,E+76,137,59,138,E+84,60,E+83,139,61,140,E+83,63,E+83,E+46,55,E+76,142,59,143,E+84,60,148,144,61,145,E+83,62,147,146,63,150,E+46,63,153,E+46,61,149,E+83,62,153,150,64,151,E+54,66,152,E+53,70,E+82,E+52,64,154,E+54,66,155,E+53,70,156,E+52,71,157,E+81,73,158,E+80,74,E+77,E+79,40,160,E+57,41,E+57,161,42,185,162,48,174,163,49,E+45,164,51,165,526,60,168,166,62,E+55,167,63,169,E+46,62,E+55,169,64,170,E+54,66,171,E+53,69,172,E+65,70,173,E+52,72,E+63,E+51,49,E+45,175,51,176,526,60,179,177,62,E+55,178,63,180,E+46,62,E+55,180,64,181,E+54,66,182,E+53,68,E+47,183,70,184,E+52,72,E+48,E+51,48,E+56,186,52,187,E+72,65,E+69,188,67,E+70,E+71,25,E+36,E+42,21,191,E+23,25,192,E+42,30,194,193,46,E+34,E+36,46,E+33,E+35,21,196,E+23,26,E+88,197,28,E+87,198,34,201,199,35,200,545,36,E+101,E+115,46,E+95,E+96,17,203,E+22,20,204,E+21,21,205,550,33,206,550,44,E+16,207,45,E+18,E+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,E+9,20,217,227,21,231,E+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,E+12,19,226,224,20,225,E+9,21,E+9,E+12,20,230,227,21,228,E+9,30,229,E+9,34,E+7,E+9,21,231,415,30,232,E+8,34,E+7,E+8,4,E+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,E+86,38,E+86,248,39,249,518,40,250,E+57,41,E+57,251,42,538,252,48,E+43,253,49,E+45,254,51,255,526,60,258,256,62,E+55,257,63,259,E+46,62,E+55,259,64,260,E+54,66,261,E+53,69,262,E+65,70,263,E+52,72,E+62,E+51,25,265,E+42,46,E+31,E+32,26,E+88,267,28,E+87,268,34,269,544,46,E+93,E+94,8,397,E+9,8,407,E+9,3,346,273,4,E+3,274,5,284,275,8,276,E+115,15,E+5,277,16,278,281,18,279,281,19,280,281,22,E+14,281,35,282,E+42,36,E+102,283,46,E+106,E+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,E+86,38,E+86,291,39,292,307,40,293,E+57,41,E+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,E+5,302,20,337,303,26,304,341,37,305,E+86,38,E+86,306,39,309,307,48,E+58,308,50,E+74,E+85,40,310,E+57,41,E+57,311,42,335,312,48,324,313,49,E+45,314,51,315,526,60,318,316,62,E+55,317,63,319,E+46,62,E+55,319,64,320,E+54,66,321,E+53,69,322,E+65,70,323,E+52,72,E+61,E+51,49,E+45,325,51,326,526,60,329,327,62,E+55,328,63,330,E+46,62,E+55,330,64,331,E+54,66,332,E+53,68,E+47,333,70,334,E+52,72,E+49,E+51,48,E+56,336,52,E+67,E+72,25,338,E+42,46,E+27,E+28,15,E+5,340,26,E+88,341,28,E+87,342,34,345,343,35,344,545,36,E+102,E+115,46,E+91,E+92,4,E+2,347,5,357,348,8,349,E+115,15,E+5,350,16,351,354,18,352,354,19,353,354,22,E+14,354,35,355,E+42,36,E+43,356,46,E+104,E+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,E+5,367,20,387,368,26,369,391,37,370,E+86,38,E+86,371,39,372,518,40,373,E+57,41,E+57,374,42,538,375,48,E+43,376,49,E+45,377,51,378,526,60,381,379,62,E+55,380,63,382,E+46,62,E+55,382,64,383,E+54,66,384,E+53,69,385,E+65,70,386,E+52,72,E+60,E+51,25,388,E+42,46,E+25,E+26,15,E+5,390,26,E+88,391,28,E+87,392,34,393,544,46,E+89,E+90,15,E+5,547,8,396,E+9,15,E+5,397,16,398,410,18,399,410,19,400,410,20,401,E+9,27,402,E+12,29,E+11,403,31,E+11,404,32,E+11,422,8,406,E+9,15,E+5,407,16,408,410,18,409,410,19,411,410,20,E+12,E+9,20,414,412,22,413,E+9,34,E+10,E+9,22,416,415,27,419,E+12,27,418,417,34,E+10,E+12,34,E+10,419,43,E+11,420,47,E+11,421,53,E+11,422,54,E+11,423,56,E+11,E+12,2,E+1,425,3,478,426,4,E+4,427,5,438,428,8,429,E+115,16,430,433,18,431,433,19,432,433,22,E+14,433,35,434,E+42,36,E+44,435,46,E+112,436,57,437,E+114,58,E+113,E+114,6,E+6,439,7,E+6,440,8,450,441,14,501,442,26,443,502,37,444,E+86,38,E+86,445,39,446,465,40,447,E+57,41,E+57,448,42,471,449,48,E+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,E+42,46,E+37,E+38,20,540,461,26,462,474,37,463,E+86,38,E+86,464,39,467,465,48,E+58,466,50,E+75,E+85,40,468,E+57,41,E+57,469,42,471,470,48,E+44,524,48,E+44,472,52,E+68,E+72,26,E+88,474,28,E+87,475,34,E+100,476,35,477,545,36,E+44,E+115,4,E+2,479,5,488,480,8,481,E+115,16,482,485,18,483,485,19,484,485,22,E+14,485,35,486,E+42,36,E+43,487,46,E+108,E+109,6,E+6,489,7,E+6,490,8,503,491,14,501,492,26,493,502,37,494,E+86,38,E+86,495,39,496,518,40,497,E+57,41,E+57,498,42,538,499,48,E+43,500,49,E+45,526,26,E+88,502,28,E+87,E+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,E+42,46,E+29,E+30,20,540,514,26,515,542,37,516,E+86,38,E+86,517,39,520,518,48,E+58,519,50,E+73,E+85,40,521,E+57,41,E+57,522,42,538,523,48,E+43,524,49,E+45,525,51,529,526,60,E+55,527,62,E+55,528,63,E+55,E+46,60,532,530,62,E+55,531,63,533,E+46,62,E+55,533,64,534,E+54,66,535,E+53,69,536,E+65,70,537,E+52,72,E+59,E+51,48,E+43,539,52,E+66,E+72,25,E+24,E+42,26,E+88,542,28,E+87,543,34,E+100,544,35,546,545,36,E+42,E+115,36,E+43,E+115,17,548,E+22,20,549,E+21,33,552,550,44,E+17,551,45,E+19,E+20,44,E+15,553,45,E+15,E+20]),Lxe=WCe.from($xe,kxe,JV.conditions,JV.results),Nxe=new KCe({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),_8=(t,e={})=>Nxe.get(t,()=>QCe(Lxe,{endpointParams:t,logger:e.logger}));JCe.aws=iCe;var Mxe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=u8(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await XCe(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},Bxe=async(t,e,r)=>({operation:u8(e).operation,region:await c8(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Fxe=Mxe(Bxe);function R8(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function b8(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Uxe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let C=i.find(x=>{let w=x.name.toLowerCase();return w!=="sigv4a"&&w.startsWith("sigv4")});if(p8.sigv4aDependency()==="none"&&C)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[_];if(!R)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let b=R(o);b.schemeId=_,b.signingProperties={...b.signingProperties||{},...m,...f},a.push(b)}return a},Gxe=t=>{let e=[];switch(t.operation){default:e.push(R8(t)),e.push(b8(t))}return e},qxe=Uxe(_8,Gxe,{"aws.auth#sigv4":R8,"aws.auth#sigv4a":b8}),jxe=t=>{let e=pxe(t),r=fxe(e);return Object.assign(r,{authSchemePreference:c8(t.authSchemePreference??[])})},Hxe=t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),zxe={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},O=OCe(zxe,"AmazonS3","S3Client",YCe),un={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},Vxe={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}},Wxe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},q={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},C8={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},At={Bucket:{type:"contextParams",name:"Bucket"}},Kxe={},Qxe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}},$R={Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}},Jxe={UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}},re=(t,e,r,n)=>[da(r)],xl=(t,e,r,n)=>[da(r),Cl(r)],Xxe=(t,e,r,n)=>[da(r),yCe(r)],Rr=(t,e,r,n)=>[la(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})],tt=(t,e,r,n)=>[],fa=(t,e,r,n)=>[la(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),da(r)],Yxe=(t,e,r,n)=>[la(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]})],Zxe=(t,e,r,n)=>[la(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),Cl(r),a8(r)],eAe=(t,e,r,n)=>[da(r),Cl(r),a8(r)],x8=(t,e,r,n)=>[la(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})],A8=(t,e,r,n)=>[la(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),da(r)],tAe=(t,e,r,n)=>[la(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),ECe(r),da(r),Cl(r)],rAe=(t,e,r,n)=>[Cl(r)],nAe=(t,e,r,n)=>[la(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),da(r),Cl(r)],Xe=class t extends kCe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},W0=class t extends Xe{static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},K0=class t extends Xe{static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Q0=class t extends Xe{static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},J0=class t extends Xe{static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},X0=class t extends Xe{static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Y0=class t extends Xe{static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Z0=class t extends Xe{static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eE=class t extends Xe{static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},tE=class t extends Xe{static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rE=class t extends Xe{static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nE=class t extends Xe{static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oE=class t extends Xe{static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sE=class t extends Xe{static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iE=class t extends Xe{static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aE=class t extends Xe{static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cE=class t extends Xe{static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uE=class t extends Xe{static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lE=class t extends Xe{static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dE=class t extends Xe{static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pE=class t extends Xe{static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fE=class t extends Xe{static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oAe="Account",sAe="AnalyticsAndOperator",mE="AccelerateConfiguration",LR="AccessControlList",Al="ACL",T8="AnalyticsConfigurationList",Sc="AccessControlPolicy",w8="AccessControlTranslation",Of="AnalyticsConfiguration",iAe="AnnotationCount",aAe="AccessDenied",v8="AbortDate",cAe="AnnotationDirective",P8="AnnotationEntry",uAe="AnalyticsExportDestination",lAe="AnalyticsFilter",dAe="AllowedHeaders",pAe="AllowedHeader",fAe="AccountId",I8="AbortIncompleteMultipartUpload",XV="AccessKeyId",mAe="AnnotationList",hAe="AnnotationLimitExceeded",gAe="AllowedMethods",SAe="AbortMultipartUpload",yAe="AbortMultipartUploadOutput",EAe="AbortMultipartUploadRequest",_Ae="AllowedMethod",jf="AnnotationName",RAe="AnnotationNameTooLong",bAe="AllowedOrigins",CAe="AllowedOrigin",D8="AnnotationPayload",xAe="AccessPointAlias",O8="AccessPointArn",k8="AnnotationPrefix",AAe="AllowQuotedRecordDelimiter",Ck="AcceptRanges",$8="AbortRuleId",hE="AbacStatus",TAe="AnalyticsS3BucketDestination",wAe="ApplyServerSideEncryptionByDefault",vAe="ArchiveStatus",L8="AccessTier",gE="AnnotationTableConfiguration",N8="AnnotationTableConfigurationResult",PAe="AnnotationTableConfigurationUpdates",Hf="And",IAe="Annotations",v="Bucket",xk="BucketArn",DAe="BucketAlreadyExists",OAe="BucketAccountId",kAe="BucketAlreadyOwnedByYou",M8="BlockedEncryptionTypes",Ak="BypassGovernanceRetention",$Ae="BucketInfo",kr="BucketKeyEnabled",LAe="BucketLifecycleConfiguration",NAe="BucketLocationName",SE="BucketLoggingStatus",MAe="BucketLocationType",BAe="BucketNamespace",FAe="BucketName",B8="BytesProcessed",YV="BlockPublicAcls",ZV="BlockPublicPolicy",Tk="BucketRegion",F8="BytesReturned",U8="BytesScanned",zf="Body",wk="Buckets",G8="Checksum",le="ChecksumAlgorithm",UAe="CannedACL",GAe="CreateBucket",pk="CreateBucketConfiguration",qAe="CreateBucketMetadataConfiguration",jAe="CreateBucketMetadataConfigurationRequest",HAe="CreateBucketMetadataTableConfiguration",zAe="CreateBucketMetadataTableConfigurationRequest",VAe="CreateBucketOutput",WAe="CreateBucketRequest",Tl="CacheControl",Xt="ChecksumCRC32",Yt="ChecksumCRC32C",Zt="ChecksumCRC64NVME",Vf="Cache-Control",KAe="CreationDate",Wf="Content-Disposition",wl="ContentDisposition",QAe="ContinuationEvent",Kf="Content-Encoding",vl="ContentEncoding",JAe="CloudFunction",XAe="CloudFunctionConfiguration",Pl="ContentLanguage",Qf="Content-Language",Il="Content-Length",Dl="ContentLength",He="Content-MD5",er="ChecksumMD5",ze="ContentMD5",YAe="CompletedMultipartUpload",ZAe="CompleteMultipartUploadOutput",eTe="CreateMultipartUploadOutput",tTe="CompleteMultipartUploadResult",rTe="CompleteMultipartUploadRequest",nTe="CreateMultipartUploadRequest",q8="CompleteMultipartUpload",oTe="CreateMultipartUpload",vk="ChecksumMode",sTe="CopyObject",iTe="CopyObjectOutput",j8="CopyObjectResult",yE="CORSConfiguration",Pk="CORSRules",Ik="CORSRule",aTe="CopyObjectRequest",cTe="CommonPrefix",uTe="CommonPrefixList",lTe="CompletedPartList",H8="CopyPartResult",dTe="CompletedPart",NR="CommonPrefixes",Dk="ContentRange",pTe="ConfirmRemoveSelfBucketAccess",z8="Content-Range",Ol="ConfigurationState",tr="ChecksumSHA1",rr="ChecksumSHA256",nr="ChecksumSHA512",V8="CopySourceIfMatch",W8="CopySourceIfModifiedSince",K8="CopySourceIfNoneMatch",Q8="CopySourceIfUnmodifiedSince",fTe="CreateSessionOutput",mTe="CreateSessionResult",hTe="CopySourceRange",gTe="CreateSessionRequest",J8="CopySourceSSECustomerAlgorithm",Ok="CopySourceSSECustomerKey",X8="CopySourceSSECustomerKeyMD5",Y8="CSV",Z8="CopySourceVersionId",STe="CSVInput",yTe="CSVOutput",eW="CopySource",ETe="CreateSession",zr="ChecksumType",Jf="Content-Type",_Te="ClientToken",kl="ContentType",RTe="CompressionType",$r="ContinuationToken",or="ChecksumXXHASH64",sr="ChecksumXXHASH3",ir="ChecksumXXHASH128",tW="Condition",bTe="Code",CTe="Comments",rW="Contents",xTe="Cont",e8="Credentials",yc="Days",ATe="DaysAfterInitiation",TTe="DeleteBucket",wTe="DeleteBucketAnalyticsConfiguration",vTe="DeleteBucketAnalyticsConfigurationRequest",PTe="DeleteBucketCors",ITe="DeleteBucketCorsRequest",DTe="DeleteBucketEncryption",OTe="DeleteBucketEncryptionRequest",kTe="DeleteBucketInventoryConfiguration",$Te="DeleteBucketInventoryConfigurationRequest",LTe="DeleteBucketIntelligentTieringConfiguration",NTe="DeleteBucketIntelligentTieringConfigurationRequest",MTe="DeleteBucketLifecycle",BTe="DeleteBucketLifecycleRequest",FTe="DeleteBucketMetadataConfiguration",UTe="DeleteBucketMetadataConfigurationRequest",GTe="DeleteBucketMetricsConfigurationRequest",qTe="DeleteBucketMetricsConfiguration",jTe="DeleteBucketMetadataTableConfiguration",HTe="DeleteBucketMetadataTableConfigurationRequest",zTe="DeleteBucketOwnershipControls",VTe="DeleteBucketOwnershipControlsRequest",WTe="DeleteBucketPolicy",KTe="DeleteBucketPolicyRequest",QTe="DeleteBucketRequest",JTe="DeleteBucketReplicationRequest",XTe="DeleteBucketReplication",YTe="DeleteBucketTagging",ZTe="DeleteBucketTaggingRequest",ewe="DeleteBucketWebsite",twe="DeleteBucketWebsiteRequest",rwe="DataExport",nwe="DefaultEventHold",owe="DestinationIfMatch",swe="DestinationIfModifiedSince",iwe="DestinationIfNoneMatch",awe="DestinationIfUnmodifiedSince",Ec="DeleteMarker",cwe="DeleteMarkerEntry",nW="DeleteMarkerReplication",uwe="DeleteMarkerVersionId",oW="DeleteMarkers",kk="DisplayName",lwe="DeletedObject",dwe="DeleteObjectAnnotation",pwe="DeleteObjectAnnotationOutput",fwe="DeleteObjectAnnotationRequest",mwe="DeleteObjectOutput",hwe="DeleteObjectsOutput",gwe="DeleteObjectRequest",Swe="DeleteObjectsRequest",ywe="DeleteObjectTagging",Ewe="DeleteObjectTaggingOutput",_we="DeleteObjectTaggingRequest",Rwe="DeletedObjects",bwe="DeleteObject",Cwe="DeleteObjects",xwe="DeletePublicAccessBlock",Awe="DeletePublicAccessBlockRequest",Twe="DataRedundancy",sW="DefaultRetention",wwe="DeleteResult",iW="DestinationResult",aW="Date",fk="Delete",vwe="Deleted",ma="Delimiter",MR="Destination",Pwe="Description",cW="Details",$l="Error",Iwe="EmailAddress",uW="EventBridgeConfiguration",$="ExpectedBucketOwner",_c="EncryptionConfiguration",lW="ErrorCode",Dwe="ErrorDetails",$k="ErrorDocument",Owe="EndEvent",kwe="ExposeHeaders",dW="EventHoldDuration",$we="EventHold",Lwe="ExposeHeader",pW="ErrorMessage",Nwe="ExpiredObjectDeleteMarker",fW="ExistingObjectReplication",EE="ExpiresString",mW="ExpectedSourceBucketOwner",nt="ETag",Mwe="EncryptionTypeList",Bwe="EncryptionTypeMismatch",Lk="EncryptionType",ha="EncodingType",Fwe="EventThreshold",hW="ExpressionType",Nk="Encryption",Uwe="Enabled",gW="End",SW="Errors",Mk="Events",Bk="Event",xs="Expiration",To="Expires",yW="Expression",ui="Filter",EW="FieldDelimiter",Gwe="FileHeaderInfo",qwe="FetchOwner",_W="FilterRule",jwe="FilterRuleList",Hwe="FilterRules",zwe="Field",RW="Format",Vwe="Frequency",BR="Grants",Wwe="GetBucketAbac",Kwe="GetBucketAccelerateConfiguration",Qwe="GetBucketAccelerateConfigurationOutput",Jwe="GetBucketAnalyticsConfigurationOutput",Xwe="GetBucketAccelerateConfigurationRequest",Ywe="GetBucketAnalyticsConfigurationRequest",Zwe="GetBucketAnalyticsConfiguration",eve="GetBucketAbacOutput",tve="GetBucketAclOutput",rve="GetBucketAbacRequest",nve="GetBucketAclRequest",ove="GetBucketAcl",sve="GetBucketCors",ive="GetBucketCorsOutput",ave="GetBucketCorsRequest",cve="GetBucketEncryption",uve="GetBucketEncryptionOutput",lve="GetBucketEncryptionRequest",dve="GetBucketInventoryConfiguration",pve="GetBucketInventoryConfigurationOutput",fve="GetBucketInventoryConfigurationRequest",mve="GetBucketIntelligentTieringConfiguration",hve="GetBucketIntelligentTieringConfigurationOutput",gve="GetBucketIntelligentTieringConfigurationRequest",Sve="GetBucketLocation",yve="GetBucketLifecycleConfiguration",Eve="GetBucketLifecycleConfigurationOutput",_ve="GetBucketLifecycleConfigurationRequest",Rve="GetBucketLocationOutput",bve="GetBucketLoggingOutput",Cve="GetBucketLocationRequest",xve="GetBucketLoggingRequest",Ave="GetBucketLogging",Tve="GetBucketMetadataConfiguration",wve="GetBucketMetadataConfigurationOutput",vve="GetBucketMetricsConfigurationOutput",bW="GetBucketMetadataConfigurationResult",Pve="GetBucketMetadataConfigurationRequest",Ive="GetBucketMetricsConfigurationRequest",Dve="GetBucketMetricsConfiguration",Ove="GetBucketMetadataTableConfiguration",kve="GetBucketMetadataTableConfigurationOutput",CW="GetBucketMetadataTableConfigurationResult",$ve="GetBucketMetadataTableConfigurationRequest",Lve="GetBucketNotificationConfiguration",Nve="GetBucketNotificationConfigurationRequest",Mve="GetBucketOwnershipControls",Bve="GetBucketOwnershipControlsOutput",Fve="GetBucketOwnershipControlsRequest",Uve="GetBucketPolicy",Gve="GetBucketPolicyOutput",qve="GetBucketPolicyRequest",jve="GetBucketPolicyStatus",Hve="GetBucketPolicyStatusOutput",zve="GetBucketPolicyStatusRequest",Vve="GetBucketReplication",Wve="GetBucketReplicationOutput",Kve="GetBucketRequestPayment",Qve="GetBucketRequestPaymentOutput",Jve="GetBucketRequestPaymentRequest",Xve="GetBucketReplicationRequest",Yve="GetBucketTagging",Zve="GetBucketTaggingOutput",ePe="GetBucketTaggingRequest",tPe="GetBucketVersioning",rPe="GetBucketVersioningOutput",nPe="GetBucketVersioningRequest",oPe="GetBucketWebsite",sPe="GetBucketWebsiteOutput",iPe="GetBucketWebsiteRequest",Ll="GrantFullControl",xW="GlacierJobParameters",aPe="GetObject",cPe="GetObjectAcl",uPe="GetObjectAclOutput",lPe="GetObjectAnnotationOutput",dPe="GetObjectAttributesOutput",pPe="GetObjectAttributesParts",fPe="GetObjectAclRequest",mPe="GetObjectAnnotationRequest",hPe="GetObjectAttributesResponse",gPe="GetObjectAttributesRequest",SPe="GetObjectAnnotation",yPe="GetObjectAttributes",EPe="GetObjectLockConfiguration",_Pe="GetObjectLockConfigurationOutput",RPe="GetObjectLockConfigurationRequest",bPe="GetObjectLegalHold",CPe="GetObjectLegalHoldOutput",xPe="GetObjectLegalHoldRequest",APe="GetObjectOutput",TPe="GetObjectRequest",wPe="GetObjectRetentionOutput",vPe="GetObjectRetentionRequest",PPe="GetObjectRetention",IPe="GetObjectTagging",DPe="GetObjectTaggingOutput",OPe="GetObjectTorrentOutput",kPe="GetObjectTaggingRequest",$Pe="GetObjectTorrentRequest",LPe="GetObjectTorrent",NPe="GetPublicAccessBlock",MPe="GetPublicAccessBlockOutput",BPe="GetPublicAccessBlockRequest",Nl="GrantRead",Ml="GrantReadACP",Fk="GrantWrite",Bl="GrantWriteACP",Uk="Grant",Gk="Grantee",FPe="HeadBucket",UPe="HeadBucketOutput",GPe="HeadBucketRequest",qPe="HttpErrorCodeReturnedEquals",AW="HostName",jPe="HeadObject",HPe="HeadObjectOutput",zPe="HeadObjectRequest",VPe="HttpRedirectCode",Mt="Id",WPe="InvalidAnnotationName",kf="InventoryConfiguration",TW="InventoryConfigurationList",Fl="ID",qk="IndexDocument",KPe="InventoryDestination",QPe="IsEnabled",JPe="InventoryEncryption",XPe="InventoryFilter",wW="IsLatest",Ul="IfMatch",YPe="IfMatchInitiatedTime",ZPe="IfMatchLastModifiedTime",eIe="IfMatchSize",jk="If-Modified-Since",vW="IfModifiedSince",tIe="InitiateMultipartUploadResult",Rc="If-Match",Xf="IfNoneMatch",Gl="If-None-Match",rIe="InventoryOptionalFields",nIe="InvalidObjectState",oIe="IncludedObjectVersions",sIe="InvalidPrefix",t8="IgnorePublicAcls",iIe="IdempotencyParameterMismatch",r8="IsPublic",aIe="InvalidRequest",cIe="IsRestoreInProgress",Hk="InputSerialization",uIe="InventoryS3BucketDestination",lIe="InventorySchedule",Ts="IsTruncated",dIe="IntelligentTieringAndOperator",$f="IntelligentTieringConfiguration",PW="IntelligentTieringConfigurationList",IW="InventoryTableConfigurationResult",pIe="InventoryTableConfigurationUpdates",_E="InventoryTableConfiguration",fIe="IntelligentTieringFilter",DW="IfUnmodifiedSince",zk="If-Unmodified-Since",mIe="InvalidWriteOffset",Vk="Initiator",hIe="Initiated",OW="JSON",gIe="JSONInput",SIe="JSONOutput",RE="JournalTableConfiguration",kW="JournalTableConfigurationResult",yIe="JournalTableConfigurationUpdates",se="Key",EIe="KeyCount",_Ie="KeyId",RIe="KmsKeyArn",FR="KeyMarker",bIe="KMSContext",CIe="KMSKeyArn",xIe="KMSKeyId",AIe="KMSMasterKeyID",TIe="KeyPrefixEquals",bE="Location",wIe="ListAllMyBucketsResult",vIe="ListAllMyDirectoryBucketsResult",PIe="ListBuckets",IIe="ListBucketAnalyticsConfigurations",DIe="ListBucketAnalyticsConfigurationsOutput",OIe="ListBucketAnalyticsConfigurationResult",kIe="ListBucketAnalyticsConfigurationsRequest",$Ie="ListBucketInventoryConfigurations",LIe="ListBucketInventoryConfigurationsOutput",NIe="ListBucketInventoryConfigurationsRequest",MIe="ListBucketIntelligentTieringConfigurations",BIe="ListBucketIntelligentTieringConfigurationsOutput",FIe="ListBucketIntelligentTieringConfigurationsRequest",UIe="ListBucketMetricsConfigurations",GIe="ListBucketMetricsConfigurationsOutput",qIe="ListBucketMetricsConfigurationsRequest",jIe="ListBucketsOutput",HIe="ListBucketsRequest",$W="ListBucketResult",mk="LocationConstraint",hk="LifecycleConfiguration",zIe="ListDirectoryBuckets",VIe="ListDirectoryBucketsOutput",WIe="ListDirectoryBucketsRequest",Wk="LoggingEnabled",KIe="LifecycleExpiration",QIe="LambdaFunctionArn",JIe="LambdaFunctionConfiguration",XIe="LambdaFunctionConfigurationList",YIe="LambdaFunctionConfigurations",CE="LegalHold",ZIe="LocationInfo",eDe="ListInventoryConfigurationsResult",Hn="LastModified",tDe="ListMetricsConfigurationsResult",rDe="LastModifiedTime",nDe="ListMultipartUploads",oDe="ListMultipartUploadsOutput",sDe="ListMultipartUploadsResult",iDe="ListMultipartUploadsRequest",UR="Last-Modified",aDe="ListObjects",cDe="ListObjectAnnotations",uDe="ListObjectAnnotationsOutput",lDe="ListObjectAnnotationsRequest",dDe="ListObjectsOutput",pDe="ListObjectsRequest",fDe="ListObjectsV2",mDe="ListObjectsV2Output",hDe="ListObjectVersionsOutput",gDe="ListObjectsV2Request",SDe="ListObjectVersionsRequest",yDe="ListObjectVersions",EDe="ListParts",_De="ListPartsOutput",RDe="ListPartsResult",bDe="ListPartsRequest",CDe="LifecycleRule",xDe="LifecycleRuleAndOperator",ADe="LifecycleRuleFilter",TDe="LifecycleRules",wDe="ListVersionsResult",ql="Metadata",vDe="MetricsAndOperator",LW="MaxAnnotationResults",PDe="MaxAgeSeconds",IDe="MaxBuckets",gk="MetadataConfiguration",NW="MetricsConfigurationList",MW="MetadataConfigurationResult",Lf="MetricsConfiguration",DDe="MetadataDirective",ODe="MaxDirectoryBuckets",BW="MfaDelete",FW="MetadataEntry",kDe="MetricsFilter",Kk="MFA",UW="MFADelete",jl="MaxKeys",Qk="MissingMeta",$De="MpuObjectSize",GR="MaxParts",Sk="MetadataTableConfiguration",GW="MetadataTableConfigurationResult",LDe="MetadataTableEncryptionConfiguration",qW="MultipartUpload",NDe="MultipartUploadList",jW="MaxUploads",HW="Marker",zW="Metrics",MDe="Message",BDe="Minutes",VW="Mode",bc="Name",yk="NotificationConfiguration",FDe="NotificationConfigurationFilter",Hl="NextContinuationToken",WW="NoncurrentDays",UDe="NonEmptyKmsKeyArnString",GDe="NotFound",KW="NextKeyMarker",qDe="NextMarker",QW="NewerNoncurrentVersions",JW="NextPartNumberMarker",jDe="NoSuchAnnotation",HDe="NoSuchBucket",zDe="NoSuchKey",VDe="NoSuchUpload",WDe="NextUploadIdMarker",XW="NoncurrentVersionExpiration",KDe="NextVersionIdMarker",QDe="NoncurrentVersionTransitions",JDe="NoncurrentVersionTransitionList",YW="NoncurrentVersionTransition",vo="Owner",XDe="ObjectAttributes",YDe="ObjectAlreadyInActiveTierError",xE="OwnershipControls",ZDe="OwnershipControlsRule",eOe="OwnershipControlsRules",ZW="ObjectEncryption",tOe="OptionalFields",rOe="ObjectIdentifier",nOe="ObjectIdentifierList",e9="ObjectIfMatch",t9="OutputLocation",AE="ObjectLockConfiguration",oOe="ObjectLockEnabled",sOe="ObjectLockEnabledForBucket",Yf="ObjectLockEventHold",Zf="ObjectLockEventHoldDurationDays",em="ObjectLockEventHoldDurationYears",iOe="ObjectLockLegalHold",zl="ObjectLockLegalHoldStatus",Vl="ObjectLockMode",aOe="ObjectLockRetention",Wl="ObjectLockRetainUntilDate",cOe="ObjectLockRule",uOe="ObjectList",lOe="ObjectNotInActiveTierError",r9="ObjectOwnership",Jk="OptionalObjectAttributes",dOe="ObjectParts",pOe="ObjectPart",fOe="ObjectSize",n9="ObjectSizeGreaterThan",o9="ObjectSizeLessThan",mOe="OutputSchemaVersion",Xk="OutputSerialization",hOe="ObjectVersion",qR="ObjectVersionId",gOe="ObjectVersionList",SOe="Objects",s9="Object",Ve="Prefix",TE="PublicAccessBlockConfiguration",yOe="PutBucketAbac",EOe="PutBucketAccelerateConfiguration",_Oe="PutBucketAccelerateConfigurationRequest",ROe="PutBucketAnalyticsConfigurationRequest",bOe="PutBucketAnalyticsConfiguration",COe="PutBucketAbacRequest",xOe="PutBucketAclRequest",AOe="PutBucketAcl",TOe="PutBucketCors",wOe="PutBucketCorsRequest",vOe="PutBucketEncryption",POe="PutBucketEncryptionRequest",IOe="PutBucketInventoryConfiguration",DOe="PutBucketInventoryConfigurationRequest",OOe="PutBucketIntelligentTieringConfiguration",kOe="PutBucketIntelligentTieringConfigurationRequest",$Oe="PutBucketLogging",LOe="PutBucketLifecycleConfiguration",NOe="PutBucketLifecycleConfigurationOutput",MOe="PutBucketLifecycleConfigurationRequest",BOe="PutBucketLoggingRequest",FOe="PutBucketMetricsConfiguration",UOe="PutBucketMetricsConfigurationRequest",GOe="PutBucketNotificationConfiguration",qOe="PutBucketNotificationConfigurationRequest",jOe="PutBucketOwnershipControls",HOe="PutBucketOwnershipControlsRequest",zOe="PutBucketPolicy",VOe="PutBucketPolicyRequest",WOe="PutBucketReplication",KOe="PutBucketRequestPayment",QOe="PutBucketRequestPaymentRequest",JOe="PutBucketReplicationRequest",XOe="PutBucketTagging",YOe="PutBucketTaggingRequest",ZOe="PutBucketVersioning",eke="PutBucketVersioningRequest",tke="PutBucketWebsite",rke="PutBucketWebsiteRequest",jR="PartsCount",nke="PartitionDateSource",oke="ProgressEvent",ske="ParquetInput",ike="PartsList",Cc="PartNumber",HR="PartNumberMarker",ake="PutObject",cke="PutObjectAcl",uke="PutObjectAclOutput",lke="PutObjectAnnotationOutput",dke="PutObjectAclRequest",pke="PutObjectAnnotationRequest",fke="PutObjectAnnotation",mke="PutObjectLockConfiguration",hke="PutObjectLockConfigurationOutput",gke="PutObjectLockConfigurationRequest",Ske="PutObjectLegalHold",yke="PutObjectLegalHoldOutput",Eke="PutObjectLegalHoldRequest",_ke="PutObjectOutput",Rke="PutObjectRequest",bke="PutObjectRetentionOutput",Cke="PutObjectRetentionRequest",xke="PutObjectRetention",Ake="PutObjectTagging",Tke="PutObjectTaggingOutput",wke="PutObjectTaggingRequest",wE="PartitionedPrefix",vke="PutPublicAccessBlock",Pke="PutPublicAccessBlockRequest",i9="PolicyStatus",zR="Parts",VR="Part",Ike="Parquet",a9="Payer",c9="Payload",u9="Permission",l9="Policy",d9="Progress",Dke="Priority",p9="Protocol",Oke="Quiet",kke="QueueArn",f9="QuoteCharacter",$ke="QueueConfigurationList",Lke="QueueConfigurations",m9="QueueConfiguration",h9="QuoteEscapeCharacter",Nke="QuoteFields",Mke="Queue",WR="Role",Yk="RedirectAllRequestsTo",we="RequestCharged",g9="ResponseCacheControl",S9="ResponseContentDisposition",y9="ResponseContentEncoding",E9="ResponseContentLanguage",_9="ResponseContentType",vE="ReplicationConfiguration",Zk="RecordDelimiter",R9="ResponseExpires",Bke="RestoreExpiryDate",KR="RecordExpiration",Fke="RecordsEvent",Uke="ReplicaKmsKeyID",Gke="ReplaceKeyPrefixWith",qke="ReplaceKeyWith",b9="ReplicaModifications",jke="RenameObject",Hke="RenameObjectOutput",zke="RestoreObjectOutput",Vke="RestoreOutputPath",Wke="RenameObjectRequest",Kke="RestoreObjectRequest",Qke="RestoreObject",Ee="RequestPayer",n8="RestrictPublicBuckets",PE="RequestPaymentConfiguration",C9="RequestProgress",e$="RoutingRules",Jke="ReplicationRuleAndOperator",Xke="ReplicationRuleFilter",Yke="ReplicationRule",Zke="ReplicationRules",e$e="RequestRoute",Ek="RestoreRequest",x9="RoutingRule",tm="ReplicationStatus",t$="RestoreStatus",t$e="RenameSource",A9="ReplicationTime",r$e="ReplicationTimeValue",n$e="RequestToken",o$e="RetainUntilDate",IE="Range",r$="Restore",s$e="Records",T9="Redirect",DE="Retention",rm="Rules",Kl="Rule",Lr="Status",w9="StartAfter",o8="SecretAccessKey",i$e="SseAlgorithm",a$e="StreamingBlob",v9="S3BucketDestination",Nr="StorageClass",P9="StorageClassAnalysis",c$e="StorageClassAnalysisDataExport",u$e="SessionCredentialValue",l$e="SessionCredentials",d$e="StatusCode",p$e="SkipDestinationValidation",f$e="StatsEvent",m$e="SourceIfMatch",h$e="SourceIfModifiedSince",g$e="SourceIfNoneMatch",S$e="SourceIfUnmodifiedSince",QR="SSE-KMS",I9="SseKmsEncryptedObjects",y$e="S3KeyFilter",E$e="S3Key",_$e="S3Location",R$e="SessionMode",b$e="SelectObjectContent",C$e="SelectObjectContentEventStream",x$e="SelectObjectContentOutput",A$e="SelectObjectContentRequest",D9="SelectParameters",OE="SimplePrefix",O9="ScanRange",k9="SSE-S3",$9="SourceSelectionCriteria",Mr="ServerSideEncryption",T$e="SSEAlgorithm",w$e="ServerSideEncryptionByDefault",kE="ServerSideEncryptionConfiguration",Bt="SSECustomerAlgorithm",zn="SSECustomerKey",Ft="SSECustomerKeyMD5",n$="SSEKMS",v$e="SSEKMSEncryption",li="SSEKMSEncryptionContext",Vr="SSEKMSKeyId",P$e="ServerSideEncryptionRule",I$e="ServerSideEncryptionRules",L9="SSES3",s8="SessionToken",N9="S3TablesDestination",M9="S3TablesDestinationResult",D$e="S3",O$e="Schedule",xc="Size",k$e="Start",B9="Stats",$$e="Suffix",Ql="Tags",JR="TableArn",L$e="TopicArn",N$e="TargetBucket",o$="TableBucketArn",M$e="TableBucketType",s$="TagCount",B$e="TopicConfigurationList",F$e="TopicConfigurations",F9="TopicConfiguration",U$e="TaggingDirective",i$="TransitionDefaultMinimumObjectSize",U9="TargetGrants",G$e="TargetGrant",q$e="TieringList",j$e="TransitionList",H$e="TooManyParts",nm="TableName",G9="TableNamespace",q9="TargetObjectKeyFormat",z$e="TargetPrefix",V$e="TotalPartsCount",a$="TableStatus",XR="TagSet",Vn="Tag",wo="Tagging",j9="Tier",W$e="Tierings",H9="Tiering",K$e="Time",z9="Token",Q$e="Topic",J$e="Transitions",V9="Transition",om="Type",X$e="Uploads",Y$e="UpdateBucketMetadataAnnotationTableConfiguration",Z$e="UpdateBucketMetadataAnnotationTableConfigurationRequest",e1e="UpdateBucketMetadataInventoryTableConfiguration",t1e="UpdateBucketMetadataInventoryTableConfigurationRequest",r1e="UpdateBucketMetadataJournalTableConfiguration",n1e="UpdateBucketMetadataJournalTableConfigurationRequest",ga="UploadId",W9="UploadIdMarker",K9="UserMetadata",o1e="UnsupportedMediaType",s1e="UpdateObjectEncryption",i1e="UpdateObjectEncryptionRequest",a1e="UpdateObjectEncryptionResponse",c1e="UploadPart",u1e="UploadPartCopy",l1e="UploadPartCopyOutput",d1e="UploadPartCopyRequest",p1e="UploadPartOutput",f1e="UploadPartRequest",m1e="URI",h1e="Upload",c$="Value",$E="VersioningConfiguration",me="VersionId",Q9="VersionIdMarker",g1e="Versions",S1e="Version",LE="WebsiteConfiguration",y1e="WriteGetObjectResponse",E1e="WriteGetObjectResponseRequest",_1e="WriteOffsetBytes",sm="WebsiteRedirectLocation",J9="Years",u$="annotationName",R1e="annotation-prefix",X9="accept-ranges",b1e="bucket-region",_t="client",Sa="continuation-token",YR="delimiter",Rt="error",l$="eventPayload",C1e="endpoint",ZR="encoding-type",x1e="fetch-owner",k="http",be="httpChecksum",Tt="httpError",l="httpHeader",A1e="hostLabel",he="httpPayload",Jl="httpPrefixHeaders",M="httpQuery",Y9="http://www.w3.org/2001/XMLSchema-instance",Wn="id",T1e="idempotencyToken",Z9="key-marker",w1e="marker",v1e="max-annotation-results",P1e="max-buckets",I1e="max-directory-buckets",d$="max-keys",D1e="max-parts",O1e="max-uploads",im="prefix",eb="partNumber",k1e="part-number-marker",eK="response-cache-control",tK="response-content-disposition",rK="response-content-encoding",nK="response-content-language",oK="response-content-type",sK="response-expires",iK="smithy.ts.sdk.synthetic.com.amazonaws.s3",$1e="start-after",aK="streaming",am="uploadId",L1e="upload-id-marker",Ut="versionId",N1e="version-id-marker",cK="xsi",M1e="xmlAttribute",Y="xmlFlattened",A="xmlName",uK="xmlNamespace",Xl="x-amz-acl",lK="x-amz-abort-date",B1e="x-amz-access-point-alias",dK="x-amz-abort-rule-id",F1e="x-amz-archive-status",pK="x-amz-bucket-arn",p$="x-amz-bypass-governance-retention",U1e="x-amz-bucket-location-name",G1e="x-amz-bucket-location-type",q1e="x-amz-bucket-namespace",j1e="x-amz-bucket-object-lock-enabled",fK="x-amz-bucket-object-lock-token",H1e="x-amz-bucket-region",f$="x-amz-checksum-algorithm",ws="x-amz-checksum-crc32",vs="x-amz-checksum-crc32c",Ps="x-amz-checksum-crc64nvme",Is="x-amz-checksum-md5",m$="x-amz-checksum-mode",z1e="x-amz-confirm-remove-self-bucket-access",Ds="x-amz-checksum-sha1",Os="x-amz-checksum-sha256",ks="x-amz-checksum-sha512",mK="x-amz-copy-source",hK="x-amz-copy-source-if-match",gK="x-amz-copy-source-if-modified-since",SK="x-amz-copy-source-if-none-match",yK="x-amz-copy-source-if-unmodified-since",V1e="x-amz-create-session-mode",W1e="x-amz-copy-source-range",EK="x-amz-copy-source-server-side-encryption-customer-algorithm",_K="x-amz-copy-source-server-side-encryption-customer-key",RK="x-amz-copy-source-server-side-encryption-customer-key-MD5",bK="x-amz-copy-source-version-id",ya="x-amz-checksum-type",K1e="x-amz-client-token",$s="x-amz-checksum-xxhash64",Ls="x-amz-checksum-xxhash3",Ns="x-amz-checksum-xxhash128",tb="x-amz-delete-marker",cm="x-amz-expiration",L="x-amz-expected-bucket-owner",Q1e="x-amz-fwd-error-code",J1e="x-amz-fwd-error-message",X1e="x-amz-fwd-header-Cache-Control",Y1e="x-amz-fwd-header-Content-Disposition",Z1e="x-amz-fwd-header-Content-Encoding",eLe="x-amz-fwd-header-Content-Language",tLe="x-amz-fwd-header-Content-Range",rLe="x-amz-fwd-header-Content-Type",nLe="x-amz-fwd-header-ETag",oLe="x-amz-fwd-header-Expires",sLe="x-amz-fwd-header-Last-Modified",iLe="x-amz-fwd-header-accept-ranges",aLe="x-amz-fwd-header-x-amz-checksum-crc32",cLe="x-amz-fwd-header-x-amz-checksum-crc32c",uLe="x-amz-fwd-header-x-amz-checksum-crc64nvme",lLe="x-amz-fwd-header-x-amz-checksum-md5",dLe="x-amz-fwd-header-x-amz-checksum-sha1",pLe="x-amz-fwd-header-x-amz-checksum-sha256",fLe="x-amz-fwd-header-x-amz-checksum-sha512",mLe="x-amz-fwd-header-x-amz-checksum-xxhash64",hLe="x-amz-fwd-header-x-amz-checksum-xxhash3",gLe="x-amz-fwd-header-x-amz-checksum-xxhash128",SLe="x-amz-fwd-header-x-amz-delete-marker",yLe="x-amz-fwd-header-x-amz-expiration",ELe="x-amz-fwd-header-x-amz-missing-meta",_Le="x-amz-fwd-header-x-amz-mp-parts-count",RLe="x-amz-fwd-header-x-amz-object-lock-legal-hold",bLe="x-amz-fwd-header-x-amz-object-lock-mode",CLe="x-amz-fwd-header-x-amz-object-lock-retain-until-date",xLe="x-amz-fwd-header-x-amz-restore",ALe="x-amz-fwd-header-x-amz-request-charged",TLe="x-amz-fwd-header-x-amz-replication-status",wLe="x-amz-fwd-header-x-amz-storage-class",vLe="x-amz-fwd-header-x-amz-server-side-encryption",PLe="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",ILe="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",DLe="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",OLe="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",kLe="x-amz-fwd-header-x-amz-tagging-count",$Le="x-amz-fwd-header-x-amz-version-id",LLe="x-amz-fwd-status",Yl="x-amz-grant-full-control",Zl="x-amz-grant-read",ed="x-amz-grant-read-acp",h$="x-amz-grant-write",td="x-amz-grant-write-acp",NLe="x-amz-if-match-initiated-time",MLe="x-amz-if-match-last-modified-time",BLe="x-amz-if-match-size",rd="x-amz-meta-",g$="x-amz-mfa",FLe="x-amz-metadata-directive",CK="x-amz-missing-meta",ULe="x-amz-mp-object-size",GLe="x-amz-max-parts",xK="x-amz-mp-parts-count",qLe="x-amz-object-attributes",jLe="x-amz-object-annotation-directive",AK="x-amz-object-if-match",um="x-amz-object-lock-event-hold",lm="x-amz-object-lock-event-hold-duration-days",dm="x-amz-object-lock-event-hold-duration-years",pm="x-amz-object-lock-legal-hold",fm="x-amz-object-lock-mode",mm="x-amz-object-lock-retain-until-date",HLe="x-amz-object-ownership",S$="x-amz-optional-object-attributes",zLe="x-amz-object-size",rb="x-amz-object-version-id",VLe="x-amz-part-number-marker",TK="x-amz-restore",De="x-amz-request-charged",WLe="x-amz-restore-output-path",_e="x-amz-request-payer",KLe="x-amz-request-route",y$="x-amz-replication-status",QLe="x-amz-rename-source",JLe="x-amz-rename-source-if-match",XLe="x-amz-rename-source-if-modified-since",YLe="x-amz-rename-source-if-none-match",ZLe="x-amz-rename-source-if-unmodified-since",eNe="x-amz-request-token",hm="x-amz-storage-class",ve="x-amz-sdk-checksum-algorithm",tNe="x-amz-skip-destination-validation",wK="x-amz-source-expected-bucket-owner",Wr="x-amz-server-side-encryption",_n="x-amz-server-side-encryption-aws-kms-key-id",Rn="x-amz-server-side-encryption-bucket-key-enabled",Ea="x-amz-server-side-encryption-context",ar="x-amz-server-side-encryption-customer-algorithm",Po="x-amz-server-side-encryption-customer-key",cr="x-amz-server-side-encryption-customer-key-MD5",E$="x-amz-tagging",vK="x-amz-tagging-count",rNe="x-amz-tagging-directive",_$="x-amz-transition-default-minimum-object-size",Ms="x-amz-version-id",nNe="x-amz-write-offset-bytes",gm="x-amz-website-redirect-location",oNe="xsi:type",g="com.amazonaws.s3",PK=new d8(iK),IK=[-3,iK,"S3ServiceException",0,[],[]];PK.registerError(IK,Xe);var dt=new d8(g),DK=[-3,g,aAe,{[Rt]:_t,[Tt]:403},[],[]];dt.registerError(DK,K0);var OK=[-3,g,hAe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(OK,cE);var kK=[-3,g,RAe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(kK,uE);var $K=[-3,g,DAe,{[Rt]:_t,[Tt]:409},[],[]];dt.registerError($K,J0);var LK=[-3,g,kAe,{[Rt]:_t,[Tt]:409},[],[]];dt.registerError(LK,X0);var NK=[-3,g,Bwe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(NK,oE);var MK=[-3,g,iIe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(MK,pE);var BK=[-3,g,WPe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(BK,lE);var FK=[-3,g,nIe,{[Rt]:_t,[Tt]:403},[Nr,L8],[0,0]];dt.registerError(FK,eE);var UK=[-3,g,sIe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(UK,nE);var GK=[-3,g,aIe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(GK,sE);var qK=[-3,g,mIe,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(qK,iE);var jK=[-3,g,jDe,{[Rt]:_t,[Tt]:404},[],[]];dt.registerError(jK,tE);var HK=[-3,g,HDe,{[Rt]:_t,[Tt]:404},[],[]];dt.registerError(HK,Y0);var zK=[-3,g,zDe,{[Rt]:_t,[Tt]:404},[],[]];dt.registerError(zK,Z0);var VK=[-3,g,VDe,{[Rt]:_t,[Tt]:404},[],[]];dt.registerError(VK,W0);var WK=[-3,g,GDe,{[Rt]:_t},[],[]];dt.registerError(WK,rE);var KK=[-3,g,YDe,{[Rt]:_t,[Tt]:403},[],[]];dt.registerError(KK,fE);var QK=[-3,g,lOe,{[Rt]:_t,[Tt]:403},[],[]];dt.registerError(QK,Q0);var JK=[-3,g,H$e,{[Rt]:_t,[Tt]:400},[],[]];dt.registerError(JK,aE);var XK=[-3,g,o1e,{[Rt]:_t,[Tt]:415},[],[]];dt.registerError(XK,dE);var YK=[PK,dt],ZK=[0,g,Ok,8,0],sNe=[0,g,UDe,8,0],i8=[0,g,u$e,8,0],Io=[0,g,zn,8,0],_a=[0,g,li,8,0],br=[0,g,Vr,8,0],Ac=[0,g,a$e,{[aK]:1},42],R$=[3,g,hE,0,[Lr],[0]],e7=[3,g,I8,0,[ATe],[1]],t7=[3,g,yAe,0,[we],[[0,{[l]:De}]]],r7=[3,g,EAe,0,[v,se,ga,Ee,$,YPe],[[0,1],[0,1],[0,{[M]:am}],[0,{[l]:_e}],[0,{[l]:L}],[6,{[l]:NLe}]],3],n7=[3,g,mE,0,[Lr],[0]],b$=[3,g,Sc,0,[BR,vo],[[()=>db,{[A]:LR}],()=>Bs]],o7=[3,g,w8,0,[vo],[0],1],s7=[3,g,sAe,0,[Ve,Ql],[0,[()=>di,{[Y]:1,[A]:Vn}]]],nb=[3,g,Of,0,[Mt,P9,ui],[0,()=>bZ,[()=>VZ,0]],2],i7=[3,g,uAe,0,[v9],[()=>a7],1],a7=[3,g,TAe,0,[RW,v,OAe,Ve],[0,0,0,0],2],c7=[3,g,P8,0,[jf,Hn,xc,nt,le,tm],[0,4,1,0,[64,{[Y]:1}],0],3],u7=[3,g,gE,0,[Ol,_c,WR],[0,()=>nd,0],1],l7=[3,g,N8,0,[Ol,a$,$l,nm,JR,WR],[0,0,()=>Sm,0,0,0],1],d7=[3,g,PAe,0,[Ol,_c,WR],[0,()=>nd,0],1],p7=[3,g,M8,0,[Lk],[[()=>dNe,{[Y]:1}]]],f7=[3,g,v,0,[bc,KAe,Tk,xk],[0,4,0,0]],m7=[3,g,$Ae,0,[Twe,om],[0,0]],h7=[3,g,LAe,0,[rm],[[()=>jZ,{[Y]:1,[A]:Kl}]],1],g7=[3,g,SE,0,[Wk],[[()=>P$,0]]],S7=[3,g,G8,0,[Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr],[0,0,0,0,0,0,0,0,0,0,0]],y7=[3,g,cTe,0,[Ve],[0]],E7=[3,g,YAe,0,[zR],[[()=>cNe,{[Y]:1,[A]:VR}]]],_7=[3,g,dTe,0,[nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,Cc],[0,0,0,0,0,0,0,0,0,0,0,1]],R7=[3,g,ZAe,{[A]:tTe},[bE,v,se,xs,nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,Mr,me,Vr,kr,we],[0,0,0,[0,{[l]:cm}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[l]:Wr}],[0,{[l]:Ms}],[()=>br,{[l]:_n}],[2,{[l]:Rn}],[0,{[l]:De}]]],b7=[3,g,rTe,0,[v,se,ga,qW,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,$De,Ee,$,Ul,Xf,Bt,zn,Ft],[[0,1],[0,1],[0,{[M]:am}],[()=>E7,{[he]:1,[A]:q8}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ya}],[1,{[l]:ULe}],[0,{[l]:_e}],[0,{[l]:L}],[0,{[l]:Rc}],[0,{[l]:Gl}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}]],3],C7=[3,g,tW,0,[qPe,TIe],[0,0]],x7=[3,g,QAe,0,[],[]],A7=[3,g,iTe,0,[j8,xs,Z8,me,Mr,Bt,Ft,Vr,li,kr,we],[[()=>w7,16],[0,{[l]:cm}],[0,{[l]:bK}],[0,{[l]:Ms}],[0,{[l]:Wr}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}],[0,{[l]:De}]]],T7=[3,g,aTe,0,[v,eW,se,Al,Tl,le,wl,vl,Pl,kl,V8,W8,K8,Q8,To,Ll,Nl,Ml,Bl,Ul,Xf,ql,DDe,U$e,cAe,Mr,Nr,sm,Bt,zn,Ft,Vr,li,kr,J8,Ok,X8,Ee,wo,Vl,Wl,zl,Yf,Zf,em,$,mW],[[0,1],[0,{[l]:mK}],[0,1],[0,{[l]:Xl}],[0,{[l]:Vf}],[0,{[l]:f$}],[0,{[l]:Wf}],[0,{[l]:Kf}],[0,{[l]:Qf}],[0,{[l]:Jf}],[0,{[l]:hK}],[4,{[l]:gK}],[0,{[l]:SK}],[4,{[l]:yK}],[4,{[l]:To}],[0,{[l]:Yl}],[0,{[l]:Zl}],[0,{[l]:ed}],[0,{[l]:td}],[0,{[l]:Rc}],[0,{[l]:Gl}],[128,{[Jl]:rd}],[0,{[l]:FLe}],[0,{[l]:rNe}],[0,{[l]:jLe}],[0,{[l]:Wr}],[0,{[l]:hm}],[0,{[l]:gm}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}],[0,{[l]:EK}],[()=>ZK,{[l]:_K}],[0,{[l]:RK}],[0,{[l]:_e}],[0,{[l]:E$}],[0,{[l]:fm}],[5,{[l]:mm}],[0,{[l]:pm}],[0,{[l]:um}],[1,{[l]:lm}],[1,{[l]:dm}],[0,{[l]:L}],[0,{[l]:wK}]],3],w7=[3,g,j8,0,[nt,Hn,zr,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir],[0,4,0,0,0,0,0,0,0,0,0,0,0]],v7=[3,g,H8,0,[nt,Hn,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir],[0,4,0,0,0,0,0,0,0,0,0,0]],P7=[3,g,yE,0,[Pk],[[()=>qZ,{[Y]:1,[A]:Ik}]],1],I7=[3,g,Ik,0,[gAe,bAe,Fl,dAe,kwe,PDe],[[64,{[Y]:1,[A]:_Ae}],[64,{[Y]:1,[A]:CAe}],0,[64,{[Y]:1,[A]:pAe}],[64,{[Y]:1,[A]:Lwe}],1],2],D7=[3,g,pk,0,[mk,bE,v,Ql],[0,()=>NX,()=>m7,[()=>di,0]]],O7=[3,g,jAe,0,[v,gk,ze,le,$],[[0,1],[()=>MX,{[he]:1,[A]:gk}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],k7=[3,g,zAe,0,[v,Sk,ze,le,$],[[0,1],[()=>UX,{[he]:1,[A]:Sk}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],$7=[3,g,VAe,0,[bE,xk],[[0,{[l]:bE}],[0,{[l]:pK}]]],L7=[3,g,WAe,0,[v,Al,pk,Ll,Nl,Ml,Fk,Bl,sOe,r9,BAe],[[0,1],[0,{[l]:Xl}],[()=>D7,{[he]:1,[A]:pk}],[0,{[l]:Yl}],[0,{[l]:Zl}],[0,{[l]:ed}],[0,{[l]:h$}],[0,{[l]:td}],[2,{[l]:j1e}],[0,{[l]:HLe}],[0,{[l]:q1e}]],1],N7=[3,g,eTe,{[A]:tIe},[v8,$8,v,se,ga,Mr,Bt,Ft,Vr,li,kr,we,le,zr],[[4,{[l]:lK}],[0,{[l]:dK}],[0,{[A]:v}],0,0,[0,{[l]:Wr}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}],[0,{[l]:De}],[0,{[l]:f$}],[0,{[l]:ya}]]],M7=[3,g,nTe,0,[v,se,Al,Tl,wl,vl,Pl,kl,To,Ll,Nl,Ml,Bl,ql,Mr,Nr,sm,Bt,zn,Ft,Vr,li,kr,Ee,wo,Vl,Wl,zl,Yf,Zf,em,$,le,zr],[[0,1],[0,1],[0,{[l]:Xl}],[0,{[l]:Vf}],[0,{[l]:Wf}],[0,{[l]:Kf}],[0,{[l]:Qf}],[0,{[l]:Jf}],[4,{[l]:To}],[0,{[l]:Yl}],[0,{[l]:Zl}],[0,{[l]:ed}],[0,{[l]:td}],[128,{[Jl]:rd}],[0,{[l]:Wr}],[0,{[l]:hm}],[0,{[l]:gm}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}],[0,{[l]:_e}],[0,{[l]:E$}],[0,{[l]:fm}],[5,{[l]:mm}],[0,{[l]:pm}],[0,{[l]:um}],[1,{[l]:lm}],[1,{[l]:dm}],[0,{[l]:L}],[0,{[l]:f$}],[0,{[l]:ya}]],2],B7=[3,g,fTe,{[A]:mTe},[e8,Mr,Vr,li,kr],[[()=>fZ,{[A]:e8}],[0,{[l]:Wr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}]],1],F7=[3,g,gTe,0,[v,R$e,Mr,Vr,li,kr],[[0,1],[0,{[l]:V1e}],[0,{[l]:Wr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}]],1],U7=[3,g,STe,0,[Gwe,CTe,h9,Zk,EW,f9,AAe],[0,0,0,0,0,0,2]],G7=[3,g,yTe,0,[Nke,h9,Zk,EW,f9],[0,0,0,0,0]],q7=[3,g,sW,0,[VW,yc,J9,nwe],[0,1,1,()=>x$]],j7=[3,g,fk,0,[SOe,Oke],[[()=>RNe,{[Y]:1,[A]:s9}],2],1],H7=[3,g,vTe,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],z7=[3,g,ITe,0,[v,$],[[0,1],[0,{[l]:L}]],1],V7=[3,g,OTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],W7=[3,g,NTe,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],K7=[3,g,$Te,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],Q7=[3,g,BTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],J7=[3,g,UTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],X7=[3,g,HTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],Y7=[3,g,GTe,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],Z7=[3,g,VTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],eQ=[3,g,KTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],tQ=[3,g,JTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],rQ=[3,g,QTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],nQ=[3,g,ZTe,0,[v,$],[[0,1],[0,{[l]:L}]],1],oQ=[3,g,twe,0,[v,$],[[0,1],[0,{[l]:L}]],1],sQ=[3,g,lwe,0,[se,me,Ec,uwe],[0,0,2,0]],iQ=[3,g,cwe,0,[vo,se,me,wW,Hn],[()=>Bs,0,0,2,4]],aQ=[3,g,nW,0,[Lr],[0]],cQ=[3,g,pwe,0,[qR,we],[[0,{[l]:rb}],[0,{[l]:De}]]],uQ=[3,g,fwe,0,[v,se,jf,me,Ee,$,e9],[[0,1],[0,1],[0,{[M]:u$}],[0,{[M]:Ut}],[0,{[l]:_e}],[0,{[l]:L}],[0,{[l]:AK}]],3],lQ=[3,g,mwe,0,[Ec,me,we],[[2,{[l]:tb}],[0,{[l]:Ms}],[0,{[l]:De}]]],dQ=[3,g,gwe,0,[v,se,Kk,me,Ee,Ak,$,Ul,ZPe,eIe],[[0,1],[0,1],[0,{[l]:g$}],[0,{[M]:Ut}],[0,{[l]:_e}],[2,{[l]:p$}],[0,{[l]:L}],[0,{[l]:Rc}],[6,{[l]:MLe}],[1,{[l]:BLe}]],2],pQ=[3,g,hwe,{[A]:wwe},[vwe,we,SW],[[()=>uNe,{[Y]:1}],[0,{[l]:De}],[()=>pNe,{[Y]:1,[A]:$l}]]],fQ=[3,g,Swe,0,[v,fk,Kk,Ee,Ak,$,le],[[0,1],[()=>j7,{[he]:1,[A]:fk}],[0,{[l]:g$}],[0,{[l]:_e}],[2,{[l]:p$}],[0,{[l]:L}],[0,{[l]:ve}]],2],mQ=[3,g,Ewe,0,[me],[[0,{[l]:Ms}]]],hQ=[3,g,_we,0,[v,se,me,$],[[0,1],[0,1],[0,{[M]:Ut}],[0,{[l]:L}]],2],gQ=[3,g,Awe,0,[v,$],[[0,1],[0,{[l]:L}]],1],SQ=[3,g,MR,0,[v,oAe,Nr,w8,_c,A9,zW],[0,0,0,()=>o7,()=>_Q,()=>JY,()=>qX],1],yQ=[3,g,iW,0,[M$e,o$,G9],[0,0,0]],EQ=[3,g,Nk,0,[Lk,xIe,bIe],[0,[()=>br,0],0],1],_Q=[3,g,_c,0,[Uke],[0]],RQ=[3,g,Owe,0,[],[]],bQ=[3,g,$l,0,[se,me,bTe,MDe],[0,0,0,0]],Sm=[3,g,Dwe,0,[lW,pW],[0,0]],C$=[3,g,$k,0,[se],[0],1],CQ=[3,g,uW,0,[],[]],x$=[3,g,dW,0,[yc,J9],[1,1]],xQ=[3,g,fW,0,[Lr],[0],1],AQ=[3,g,_W,0,[bc,c$],[0,0]],TQ=[3,g,eve,0,[hE],[[()=>R$,16]]],wQ=[3,g,rve,0,[v,$],[[0,1],[0,{[l]:L}]],1],vQ=[3,g,Qwe,{[A]:mE},[Lr,we],[0,[0,{[l]:De}]]],PQ=[3,g,Xwe,0,[v,$,Ee],[[0,1],[0,{[l]:L}],[0,{[l]:_e}]],1],IQ=[3,g,tve,{[A]:Sc},[vo,BR],[()=>Bs,[()=>db,{[A]:LR}]]],DQ=[3,g,nve,0,[v,$],[[0,1],[0,{[l]:L}]],1],OQ=[3,g,Jwe,0,[Of],[[()=>nb,16]]],kQ=[3,g,Ywe,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],$Q=[3,g,ive,{[A]:yE},[Pk],[[()=>qZ,{[Y]:1,[A]:Ik}]]],LQ=[3,g,ave,0,[v,$],[[0,1],[0,{[l]:L}]],1],NQ=[3,g,uve,0,[kE],[[()=>G$,16]]],MQ=[3,g,lve,0,[v,$],[[0,1],[0,{[l]:L}]],1],BQ=[3,g,hve,0,[$f],[[()=>ob,16]]],FQ=[3,g,gve,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],UQ=[3,g,pve,0,[kf],[[()=>sb,16]]],GQ=[3,g,fve,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],qQ=[3,g,Eve,{[A]:hk},[rm,i$],[[()=>jZ,{[Y]:1,[A]:Kl}],[0,{[l]:_$}]]],jQ=[3,g,_ve,0,[v,$],[[0,1],[0,{[l]:L}]],1],HQ=[3,g,Rve,{[A]:mk},[mk],[0]],zQ=[3,g,Cve,0,[v,$],[[0,1],[0,{[l]:L}]],1],VQ=[3,g,bve,{[A]:SE},[Wk],[[()=>P$,0]]],WQ=[3,g,xve,0,[v,$],[[0,1],[0,{[l]:L}]],1],KQ=[3,g,wve,0,[bW],[[()=>JQ,16]]],QQ=[3,g,Pve,0,[v,$],[[0,1],[0,{[l]:L}]],1],JQ=[3,g,bW,0,[MW],[()=>BX],1],XQ=[3,g,kve,0,[CW],[[()=>ZQ,16]]],YQ=[3,g,$ve,0,[v,$],[[0,1],[0,{[l]:L}]],1],ZQ=[3,g,CW,0,[GW,Lr,$l],[()=>GX,0,()=>Sm],2],eJ=[3,g,vve,0,[Lf],[[()=>ib,16]]],tJ=[3,g,Ive,0,[v,Mt,$],[[0,1],[0,{[M]:Wn}],[0,{[l]:L}]],2],rJ=[3,g,Nve,0,[v,$],[[0,1],[0,{[l]:L}]],1],nJ=[3,g,Bve,0,[xE],[[()=>L$,16]]],oJ=[3,g,Fve,0,[v,$],[[0,1],[0,{[l]:L}]],1],sJ=[3,g,Gve,0,[l9],[[0,16]]],iJ=[3,g,qve,0,[v,$],[[0,1],[0,{[l]:L}]],1],aJ=[3,g,Hve,0,[i9],[[()=>nY,16]]],cJ=[3,g,zve,0,[v,$],[[0,1],[0,{[l]:L}]],1],uJ=[3,g,Wve,0,[vE],[[()=>B$,16]]],lJ=[3,g,Xve,0,[v,$],[[0,1],[0,{[l]:L}]],1],dJ=[3,g,Qve,{[A]:PE},[a9],[0]],pJ=[3,g,Jve,0,[v,$],[[0,1],[0,{[l]:L}]],1],fJ=[3,g,Zve,{[A]:wo},[XR],[[()=>di,0]],1],mJ=[3,g,ePe,0,[v,$],[[0,1],[0,{[l]:L}]],1],hJ=[3,g,rPe,{[A]:$E},[Lr,UW],[0,[0,{[A]:BW}]]],gJ=[3,g,nPe,0,[v,$],[[0,1],[0,{[l]:L}]],1],SJ=[3,g,sPe,{[A]:LE},[Yk,qk,$k,e$],[()=>M$,()=>T$,()=>C$,[()=>zZ,0]]],yJ=[3,g,iPe,0,[v,$],[[0,1],[0,{[l]:L}]],1],EJ=[3,g,uPe,{[A]:Sc},[vo,BR,we],[()=>Bs,[()=>db,{[A]:LR}],[0,{[l]:De}]]],_J=[3,g,fPe,0,[v,se,me,Ee,$],[[0,1],[0,1],[0,{[M]:Ut}],[0,{[l]:_e}],[0,{[l]:L}]],2],RJ=[3,g,lPe,0,[D8,qR,Hn,Dl,nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,Mr,we,tm],[[()=>Ac,16],[0,{[l]:rb}],[4,{[l]:UR}],[1,{[l]:Il}],[0,{[l]:nt}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ya}],[0,{[l]:Wr}],[0,{[l]:De}],[0,{[l]:y$}]]],bJ=[3,g,mPe,0,[v,se,jf,me,Ee,$,vk],[[0,1],[0,1],[0,{[M]:u$}],[0,{[M]:Ut}],[0,{[l]:_e}],[0,{[l]:L}],[0,{[l]:m$}]],3],CJ=[3,g,dPe,{[A]:hPe},[Ec,Hn,me,we,nt,G8,dOe,Nr,fOe],[[2,{[l]:tb}],[4,{[l]:UR}],[0,{[l]:Ms}],[0,{[l]:De}],0,()=>S7,[()=>xJ,0],0,1]],xJ=[3,g,pPe,0,[V$e,HR,JW,GR,Ts,zR],[[1,{[A]:jR}],0,0,1,2,[()=>ANe,{[Y]:1,[A]:VR}]]],AJ=[3,g,gPe,0,[v,se,XDe,me,GR,HR,Bt,zn,Ft,Ee,$],[[0,1],[0,1],[64,{[l]:qLe}],[0,{[M]:Ut}],[1,{[l]:GLe}],[0,{[l]:VLe}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[0,{[l]:_e}],[0,{[l]:L}]],3],TJ=[3,g,CPe,0,[CE],[[()=>O$,{[he]:1,[A]:CE}]]],wJ=[3,g,xPe,0,[v,se,me,Ee,$],[[0,1],[0,1],[0,{[M]:Ut}],[0,{[l]:_e}],[0,{[l]:L}]],2],vJ=[3,g,_Pe,0,[AE],[[()=>D$,16]]],PJ=[3,g,RPe,0,[v,$],[[0,1],[0,{[l]:L}]],1],IJ=[3,g,APe,0,[zf,Ec,Ck,xs,r$,Hn,Dl,nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,Qk,me,Tl,wl,vl,Pl,Dk,kl,To,EE,sm,Mr,ql,Bt,Ft,Vr,kr,Nr,we,tm,jR,s$,Vl,Wl,zl,Yf,Zf,em],[[()=>Ac,16],[2,{[l]:tb}],[0,{[l]:X9}],[0,{[l]:cm}],[0,{[l]:TK}],[4,{[l]:UR}],[1,{[l]:Il}],[0,{[l]:nt}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ya}],[1,{[l]:CK}],[0,{[l]:Ms}],[0,{[l]:Vf}],[0,{[l]:Wf}],[0,{[l]:Kf}],[0,{[l]:Qf}],[0,{[l]:z8}],[0,{[l]:Jf}],[4,{[l]:To}],[0,{[l]:EE}],[0,{[l]:gm}],[0,{[l]:Wr}],[128,{[Jl]:rd}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[2,{[l]:Rn}],[0,{[l]:hm}],[0,{[l]:De}],[0,{[l]:y$}],[1,{[l]:xK}],[1,{[l]:vK}],[0,{[l]:fm}],[5,{[l]:mm}],[0,{[l]:pm}],[0,{[l]:um}],[1,{[l]:lm}],[1,{[l]:dm}]]],DJ=[3,g,TPe,0,[v,se,Ul,vW,Xf,DW,IE,g9,S9,y9,E9,_9,R9,me,Bt,zn,Ft,Ee,Cc,$,vk],[[0,1],[0,1],[0,{[l]:Rc}],[4,{[l]:jk}],[0,{[l]:Gl}],[4,{[l]:zk}],[0,{[l]:IE}],[0,{[M]:eK}],[0,{[M]:tK}],[0,{[M]:rK}],[0,{[M]:nK}],[0,{[M]:oK}],[6,{[M]:sK}],[0,{[M]:Ut}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[0,{[l]:_e}],[1,{[M]:eb}],[0,{[l]:L}],[0,{[l]:m$}]],2],OJ=[3,g,wPe,0,[DE],[[()=>k$,{[he]:1,[A]:DE}]]],kJ=[3,g,vPe,0,[v,se,me,Ee,$],[[0,1],[0,1],[0,{[M]:Ut}],[0,{[l]:_e}],[0,{[l]:L}]],2],$J=[3,g,DPe,{[A]:wo},[XR,me],[[()=>di,0],[0,{[l]:Ms}]],1],LJ=[3,g,kPe,0,[v,se,me,$,Ee],[[0,1],[0,1],[0,{[M]:Ut}],[0,{[l]:L}],[0,{[l]:_e}]],2],NJ=[3,g,OPe,0,[zf,we],[[()=>Ac,16],[0,{[l]:De}]]],MJ=[3,g,$Pe,0,[v,se,Ee,$],[[0,1],[0,1],[0,{[l]:_e}],[0,{[l]:L}]],2],BJ=[3,g,MPe,0,[TE],[[()=>N$,16]]],FJ=[3,g,BPe,0,[v,$],[[0,1],[0,{[l]:L}]],1],UJ=[3,g,xW,0,[j9],[0],1],GJ=[3,g,Uk,0,[Gk,u9],[[()=>A$,{[uK]:[cK,Y9]}],0]],A$=[3,g,Gk,0,[om,kk,Iwe,Fl,m1e],[[0,{[M1e]:1,[A]:oNe}],0,0,0,0],1],qJ=[3,g,UPe,0,[xk,MAe,NAe,Tk,xAe],[[0,{[l]:pK}],[0,{[l]:G1e}],[0,{[l]:U1e}],[0,{[l]:H1e}],[2,{[l]:B1e}]]],jJ=[3,g,GPe,0,[v,$],[[0,1],[0,{[l]:L}]],1],HJ=[3,g,HPe,0,[Ec,Ck,xs,r$,vAe,Hn,Dl,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,nt,Qk,me,Tl,wl,vl,Pl,kl,Dk,To,EE,sm,Mr,ql,Bt,Ft,Vr,kr,Nr,we,tm,jR,s$,Vl,Wl,zl,Yf,Zf,em],[[2,{[l]:tb}],[0,{[l]:X9}],[0,{[l]:cm}],[0,{[l]:TK}],[0,{[l]:F1e}],[4,{[l]:UR}],[1,{[l]:Il}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ya}],[0,{[l]:nt}],[1,{[l]:CK}],[0,{[l]:Ms}],[0,{[l]:Vf}],[0,{[l]:Wf}],[0,{[l]:Kf}],[0,{[l]:Qf}],[0,{[l]:Jf}],[0,{[l]:z8}],[4,{[l]:To}],[0,{[l]:EE}],[0,{[l]:gm}],[0,{[l]:Wr}],[128,{[Jl]:rd}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[2,{[l]:Rn}],[0,{[l]:hm}],[0,{[l]:De}],[0,{[l]:y$}],[1,{[l]:xK}],[1,{[l]:vK}],[0,{[l]:fm}],[5,{[l]:mm}],[0,{[l]:pm}],[0,{[l]:um}],[1,{[l]:lm}],[1,{[l]:dm}]]],zJ=[3,g,zPe,0,[v,se,Ul,vW,Xf,DW,IE,g9,S9,y9,E9,_9,R9,me,Bt,zn,Ft,Ee,Cc,$,vk],[[0,1],[0,1],[0,{[l]:Rc}],[4,{[l]:jk}],[0,{[l]:Gl}],[4,{[l]:zk}],[0,{[l]:IE}],[0,{[M]:eK}],[0,{[M]:tK}],[0,{[M]:rK}],[0,{[M]:nK}],[0,{[M]:oK}],[6,{[M]:sK}],[0,{[M]:Ut}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[0,{[l]:_e}],[1,{[M]:eb}],[0,{[l]:L}],[0,{[l]:m$}]],2],T$=[3,g,qk,0,[$$e],[0],1],w$=[3,g,Vk,0,[Fl,kk],[0,0]],v$=[3,g,Hk,0,[Y8,RTe,OW,Ike],[()=>U7,0,()=>sX,()=>eY]],VJ=[3,g,dIe,0,[Ve,Ql],[0,[()=>di,{[Y]:1,[A]:Vn}]]],ob=[3,g,$f,0,[Mt,Lr,W$e,ui],[0,0,[()=>INe,{[Y]:1,[A]:H9}],[()=>WJ,0]],3],WJ=[3,g,fIe,0,[Ve,Vn,Hf],[0,()=>Tc,[()=>VJ,0]]],sb=[3,g,kf,0,[MR,QPe,Mt,oIe,O$e,ui,tOe],[[()=>KJ,0],2,0,0,()=>YJ,()=>JJ,[()=>gNe,0]],5],KJ=[3,g,KPe,0,[v9],[[()=>XJ,0]],1],QJ=[3,g,JPe,0,[L9,n$],[[()=>EZ,{[A]:k9}],[()=>gZ,{[A]:QR}]]],JJ=[3,g,XPe,0,[Ve],[0],1],XJ=[3,g,uIe,0,[v,RW,fAe,Ve,Nk],[0,0,0,0,[()=>QJ,0]],2],YJ=[3,g,lIe,0,[Vwe],[0],1],ZJ=[3,g,_E,0,[Ol,_c],[0,()=>nd],1],eX=[3,g,IW,0,[Ol,a$,$l,nm,JR],[0,0,()=>Sm,0,0],1],tX=[3,g,pIe,0,[Ol,_c],[0,()=>nd],1],rX=[3,g,RE,0,[KR,_c],[()=>cb,()=>nd],1],nX=[3,g,kW,0,[a$,nm,KR,$l,JR],[0,0,()=>cb,()=>Sm,0],3],oX=[3,g,yIe,0,[KR],[()=>cb],1],sX=[3,g,gIe,0,[om],[0]],iX=[3,g,SIe,0,[Zk],[0]],aX=[3,g,JIe,0,[QIe,Mk,Mt,ui],[[0,{[A]:JAe}],[64,{[Y]:1,[A]:Bk}],0,[()=>ab,0]],2],cX=[3,g,KIe,0,[aW,yc,Nwe],[5,1,2]],uX=[3,g,CDe,0,[Lr,xs,Fl,Ve,ui,J$e,QDe,XW,I8],[0,()=>cX,0,0,[()=>dX,0],[()=>ONe,{[Y]:1,[A]:V9}],[()=>_Ne,{[Y]:1,[A]:YW}],()=>zX,()=>e7],1],lX=[3,g,xDe,0,[Ve,Ql,n9,o9],[0,[()=>di,{[Y]:1,[A]:Vn}],1,1]],dX=[3,g,ADe,0,[Ve,Vn,n9,o9,Hf],[0,()=>Tc,1,1,[()=>lX,0]]],pX=[3,g,DIe,{[A]:OIe},[Ts,$r,Hl,T8],[2,0,0,[()=>iNe,{[Y]:1,[A]:Of}]]],fX=[3,g,kIe,0,[v,$r,$],[[0,1],[0,{[M]:Sa}],[0,{[l]:L}]],1],mX=[3,g,BIe,0,[Ts,$r,Hl,PW],[2,0,0,[()=>mNe,{[Y]:1,[A]:$f}]]],hX=[3,g,FIe,0,[v,$r,$],[[0,1],[0,{[M]:Sa}],[0,{[l]:L}]],1],gX=[3,g,LIe,{[A]:eDe},[$r,TW,Ts,Hl],[0,[()=>hNe,{[Y]:1,[A]:kf}],2,0]],SX=[3,g,NIe,0,[v,$r,$],[[0,1],[0,{[M]:Sa}],[0,{[l]:L}]],1],yX=[3,g,GIe,{[A]:tDe},[Ts,$r,Hl,NW],[2,0,0,[()=>yNe,{[Y]:1,[A]:Lf}]]],EX=[3,g,qIe,0,[v,$r,$],[[0,1],[0,{[M]:Sa}],[0,{[l]:L}]],1],_X=[3,g,jIe,{[A]:wIe},[wk,vo,$r,Ve],[[()=>GZ,0],()=>Bs,0,0]],RX=[3,g,HIe,0,[IDe,$r,Ve,Tk],[[1,{[M]:P1e}],[0,{[M]:Sa}],[0,{[M]:im}],[0,{[M]:b1e}]]],bX=[3,g,VIe,{[A]:vIe},[wk,$r],[[()=>GZ,0],0]],CX=[3,g,WIe,0,[$r,ODe],[[0,{[M]:Sa}],[1,{[M]:I1e}]]],xX=[3,g,oDe,{[A]:sDe},[v,FR,W9,KW,Ve,ma,WDe,jW,Ts,X$e,NR,ha,we],[0,0,0,0,0,0,0,1,2,[()=>ENe,{[Y]:1,[A]:h1e}],[()=>lb,{[Y]:1}],0,[0,{[l]:De}]]],AX=[3,g,iDe,0,[v,ma,ha,FR,jW,Ve,W9,$,Ee],[[0,1],[0,{[M]:YR}],[0,{[M]:ZR}],[0,{[M]:Z9}],[1,{[M]:O1e}],[0,{[M]:im}],[0,{[M]:L1e}],[0,{[l]:L}],[0,{[l]:_e}]],1],TX=[3,g,uDe,0,[IAe,v,se,qR,k8,LW,iAe,$r,Hl,we],[[()=>aNe,0],0,0,[0,{[l]:rb}],0,1,1,0,0,[0,{[l]:De}]]],wX=[3,g,lDe,0,[v,se,me,LW,k8,$r,Ee,$],[[0,1],[0,1],[0,{[M]:Ut}],[1,{[M]:v1e}],[0,{[M]:R1e}],[0,{[M]:Sa}],[0,{[l]:_e}],[0,{[l]:L}]],2],vX=[3,g,dDe,{[A]:$W},[Ts,HW,qDe,rW,bc,Ve,ma,jl,NR,ha,we],[2,0,0,[()=>HZ,{[Y]:1}],0,0,0,1,[()=>lb,{[Y]:1}],0,[0,{[l]:De}]]],PX=[3,g,pDe,0,[v,ma,ha,HW,jl,Ve,Ee,$,Jk],[[0,1],[0,{[M]:YR}],[0,{[M]:ZR}],[0,{[M]:w1e}],[1,{[M]:d$}],[0,{[M]:im}],[0,{[l]:_e}],[0,{[l]:L}],[64,{[l]:S$}]],1],IX=[3,g,mDe,{[A]:$W},[Ts,rW,bc,Ve,ma,jl,NR,ha,EIe,$r,Hl,w9,we],[2,[()=>HZ,{[Y]:1}],0,0,0,1,[()=>lb,{[Y]:1}],0,1,0,0,0,[0,{[l]:De}]]],DX=[3,g,gDe,0,[v,ma,ha,jl,Ve,$r,qwe,w9,Ee,$,Jk],[[0,1],[0,{[M]:YR}],[0,{[M]:ZR}],[1,{[M]:d$}],[0,{[M]:im}],[0,{[M]:Sa}],[2,{[M]:x1e}],[0,{[M]:$1e}],[0,{[l]:_e}],[0,{[l]:L}],[64,{[l]:S$}]],1],OX=[3,g,hDe,{[A]:wDe},[Ts,FR,Q9,KW,KDe,g1e,oW,bc,Ve,ma,jl,NR,ha,we],[2,0,0,0,0,[()=>bNe,{[Y]:1,[A]:S1e}],[()=>lNe,{[Y]:1,[A]:Ec}],0,0,0,1,[()=>lb,{[Y]:1}],0,[0,{[l]:De}]]],kX=[3,g,SDe,0,[v,ma,ha,FR,jl,Ve,Q9,$,Ee,Jk],[[0,1],[0,{[M]:YR}],[0,{[M]:ZR}],[0,{[M]:Z9}],[1,{[M]:d$}],[0,{[M]:im}],[0,{[M]:N1e}],[0,{[l]:L}],[0,{[l]:_e}],[64,{[l]:S$}]],1],$X=[3,g,_De,{[A]:RDe},[v8,$8,v,se,ga,HR,JW,GR,Ts,zR,Vk,vo,Nr,we,le,zr],[[4,{[l]:lK}],[0,{[l]:dK}],0,0,0,0,0,1,2,[()=>xNe,{[Y]:1,[A]:VR}],()=>w$,()=>Bs,0,[0,{[l]:De}],0,0]],LX=[3,g,bDe,0,[v,se,ga,GR,HR,Ee,$,Bt,zn,Ft],[[0,1],[0,1],[0,{[M]:am}],[1,{[M]:D1e}],[0,{[M]:k1e}],[0,{[l]:_e}],[0,{[l]:L}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}]],3],NX=[3,g,ZIe,0,[om,bc],[0,0]],P$=[3,g,Wk,0,[N$e,z$e,U9,q9],[0,0,[()=>PNe,0],[()=>AZ,0]],2],MX=[3,g,gk,0,[RE,_E,gE],[()=>rX,()=>ZJ,()=>u7],1],BX=[3,g,MW,0,[iW,kW,IW,N8],[()=>yQ,()=>nX,()=>eX,()=>l7],1],FX=[3,g,FW,0,[bc,c$],[0,0]],UX=[3,g,Sk,0,[N9],[()=>sZ],1],GX=[3,g,GW,0,[M9],[()=>iZ],1],nd=[3,g,LDe,0,[i$e,RIe],[0,0],1],qX=[3,g,zW,0,[Lr,Fwe],[0,()=>F$],1],jX=[3,g,vDe,0,[Ve,Ql,O8],[0,[()=>di,{[Y]:1,[A]:Vn}],0]],ib=[3,g,Lf,0,[Mt,ui],[0,[()=>WZ,0]],1],HX=[3,g,qW,0,[ga,se,hIe,Nr,vo,Vk,le,zr],[0,0,4,0,()=>Bs,()=>w$,0,0]],zX=[3,g,XW,0,[WW,QW],[1,1]],VX=[3,g,YW,0,[WW,Nr,QW],[1,0,1]],I$=[3,g,yk,0,[F$e,Lke,YIe,uW],[[()=>DNe,{[Y]:1,[A]:F9}],[()=>TNe,{[Y]:1,[A]:m9}],[()=>SNe,{[Y]:1,[A]:XAe}],()=>CQ]],ab=[3,g,FDe,0,[se],[[()=>nZ,{[A]:E$e}]]],WX=[3,g,s9,0,[se,Hn,nt,le,zr,xc,Nr,vo,t$],[0,4,0,[64,{[Y]:1}],0,1,0,()=>Bs,()=>U$]],KX=[3,g,rOe,0,[se,me,nt,rDe,xc],[0,0,0,6,1],1],D$=[3,g,AE,0,[oOe,Kl],[0,()=>QX]],O$=[3,g,iOe,0,[Lr],[0]],k$=[3,g,aOe,0,[VW,o$e,$we,dW],[0,5,0,()=>x$]],QX=[3,g,cOe,0,[sW],[()=>q7]],JX=[3,g,pOe,0,[Cc,xc,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir],[1,1,0,0,0,0,0,0,0,0,0,0]],XX=[3,g,hOe,0,[nt,le,zr,xc,Nr,se,me,wW,Hn,vo,t$],[0,[64,{[Y]:1}],0,1,0,0,0,2,4,()=>Bs,()=>U$]],YX=[3,g,t9,0,[D$e],[[()=>oZ,0]]],$$=[3,g,Xk,0,[Y8,OW],[()=>G7,()=>iX]],Bs=[3,g,vo,0,[kk,Fl],[0,0]],L$=[3,g,xE,0,[rm],[[()=>CNe,{[Y]:1,[A]:Kl}]],1],ZX=[3,g,ZDe,0,[r9],[0],1],eY=[3,g,ske,0,[],[]],tY=[3,g,VR,0,[Cc,Hn,nt,xc,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],rY=[3,g,wE,{[A]:wE},[nke],[0]],nY=[3,g,i9,0,[r8],[[2,{[A]:r8}]]],oY=[3,g,d9,0,[U8,B8,F8],[1,1,1]],sY=[3,g,oke,0,[cW],[[()=>oY,{[l$]:1}]]],N$=[3,g,TE,0,[YV,t8,ZV,n8],[[2,{[A]:YV}],[2,{[A]:t8}],[2,{[A]:ZV}],[2,{[A]:n8}]]],iY=[3,g,COe,0,[v,hE,ze,le,$],[[0,1],[()=>R$,{[he]:1,[A]:hE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],aY=[3,g,_Oe,0,[v,mE,$,le],[[0,1],[()=>n7,{[he]:1,[A]:mE}],[0,{[l]:L}],[0,{[l]:ve}]],2],cY=[3,g,xOe,0,[v,Al,Sc,ze,le,Ll,Nl,Ml,Fk,Bl,$],[[0,1],[0,{[l]:Xl}],[()=>b$,{[he]:1,[A]:Sc}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:Yl}],[0,{[l]:Zl}],[0,{[l]:ed}],[0,{[l]:h$}],[0,{[l]:td}],[0,{[l]:L}]],1],uY=[3,g,ROe,0,[v,Mt,Of,$],[[0,1],[0,{[M]:Wn}],[()=>nb,{[he]:1,[A]:Of}],[0,{[l]:L}]],3],lY=[3,g,wOe,0,[v,yE,ze,le,$],[[0,1],[()=>P7,{[he]:1,[A]:yE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],dY=[3,g,POe,0,[v,kE,ze,le,$],[[0,1],[()=>G$,{[he]:1,[A]:kE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],pY=[3,g,kOe,0,[v,Mt,$f,$],[[0,1],[0,{[M]:Wn}],[()=>ob,{[he]:1,[A]:$f}],[0,{[l]:L}]],3],fY=[3,g,DOe,0,[v,Mt,kf,$],[[0,1],[0,{[M]:Wn}],[()=>sb,{[he]:1,[A]:kf}],[0,{[l]:L}]],3],mY=[3,g,NOe,0,[i$],[[0,{[l]:_$}]]],hY=[3,g,MOe,0,[v,le,hk,$,i$],[[0,1],[0,{[l]:ve}],[()=>h7,{[he]:1,[A]:hk}],[0,{[l]:L}],[0,{[l]:_$}]],1],gY=[3,g,BOe,0,[v,SE,ze,le,$],[[0,1],[()=>g7,{[he]:1,[A]:SE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],SY=[3,g,UOe,0,[v,Mt,Lf,$],[[0,1],[0,{[M]:Wn}],[()=>ib,{[he]:1,[A]:Lf}],[0,{[l]:L}]],3],yY=[3,g,qOe,0,[v,yk,$,p$e],[[0,1],[()=>I$,{[he]:1,[A]:yk}],[0,{[l]:L}],[2,{[l]:tNe}]],2],EY=[3,g,HOe,0,[v,xE,ze,$,le],[[0,1],[()=>L$,{[he]:1,[A]:xE}],[0,{[l]:He}],[0,{[l]:L}],[0,{[l]:ve}]],2],_Y=[3,g,VOe,0,[v,l9,ze,le,pTe,$],[[0,1],[0,16],[0,{[l]:He}],[0,{[l]:ve}],[2,{[l]:z1e}],[0,{[l]:L}]],2],RY=[3,g,JOe,0,[v,vE,ze,le,z9,$],[[0,1],[()=>B$,{[he]:1,[A]:vE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:fK}],[0,{[l]:L}]],2],bY=[3,g,QOe,0,[v,PE,ze,le,$],[[0,1],[()=>XY,{[he]:1,[A]:PE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],CY=[3,g,YOe,0,[v,wo,ze,le,$],[[0,1],[()=>ub,{[he]:1,[A]:wo}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],xY=[3,g,eke,0,[v,$E,ze,le,Kk,$],[[0,1],[()=>BZ,{[he]:1,[A]:$E}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:g$}],[0,{[l]:L}]],2],AY=[3,g,rke,0,[v,LE,ze,le,$],[[0,1],[()=>FZ,{[he]:1,[A]:LE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],TY=[3,g,uke,0,[we],[[0,{[l]:De}]]],wY=[3,g,dke,0,[v,se,Al,Sc,ze,le,Ll,Nl,Ml,Fk,Bl,Ee,me,$],[[0,1],[0,1],[0,{[l]:Xl}],[()=>b$,{[he]:1,[A]:Sc}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:Yl}],[0,{[l]:Zl}],[0,{[l]:ed}],[0,{[l]:h$}],[0,{[l]:td}],[0,{[l]:_e}],[0,{[M]:Ut}],[0,{[l]:L}]],2],vY=[3,g,lke,0,[se,jf,qR,nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,Mr,we],[0,0,[0,{[l]:rb}],[0,{[l]:nt}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ya}],[0,{[l]:Wr}],[0,{[l]:De}]]],PY=[3,g,pke,0,[v,se,jf,D8,me,e9,le,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,ze,Ee,$],[[0,1],[0,1],[0,{[M]:u$}],[()=>Ac,16],[0,{[M]:Ut}],[0,{[l]:AK}],[0,{[l]:ve}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:He}],[0,{[l]:_e}],[0,{[l]:L}]],4],IY=[3,g,yke,0,[we],[[0,{[l]:De}]]],DY=[3,g,Eke,0,[v,se,CE,Ee,me,ze,le,$],[[0,1],[0,1],[()=>O$,{[he]:1,[A]:CE}],[0,{[l]:_e}],[0,{[M]:Ut}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],OY=[3,g,hke,0,[we],[[0,{[l]:De}]]],kY=[3,g,gke,0,[v,AE,Ee,z9,ze,le,$],[[0,1],[()=>D$,{[he]:1,[A]:AE}],[0,{[l]:_e}],[0,{[l]:fK}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],1],$Y=[3,g,_ke,0,[xs,nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,zr,Mr,me,Bt,Ft,Vr,li,kr,xc,we],[[0,{[l]:cm}],[0,{[l]:nt}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ya}],[0,{[l]:Wr}],[0,{[l]:Ms}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}],[1,{[l]:zLe}],[0,{[l]:De}]]],LY=[3,g,Rke,0,[v,se,Al,zf,Tl,wl,vl,Pl,Dl,ze,kl,le,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,To,Ul,Xf,Ll,Nl,Ml,Bl,_1e,ql,Mr,Nr,sm,Bt,zn,Ft,Vr,li,kr,Ee,wo,Vl,Wl,zl,Yf,Zf,em,$],[[0,1],[0,1],[0,{[l]:Xl}],[()=>Ac,16],[0,{[l]:Vf}],[0,{[l]:Wf}],[0,{[l]:Kf}],[0,{[l]:Qf}],[1,{[l]:Il}],[0,{[l]:He}],[0,{[l]:Jf}],[0,{[l]:ve}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[4,{[l]:To}],[0,{[l]:Rc}],[0,{[l]:Gl}],[0,{[l]:Yl}],[0,{[l]:Zl}],[0,{[l]:ed}],[0,{[l]:td}],[1,{[l]:nNe}],[128,{[Jl]:rd}],[0,{[l]:Wr}],[0,{[l]:hm}],[0,{[l]:gm}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[()=>_a,{[l]:Ea}],[2,{[l]:Rn}],[0,{[l]:_e}],[0,{[l]:E$}],[0,{[l]:fm}],[5,{[l]:mm}],[0,{[l]:pm}],[0,{[l]:um}],[1,{[l]:lm}],[1,{[l]:dm}],[0,{[l]:L}]],2],NY=[3,g,bke,0,[we],[[0,{[l]:De}]]],MY=[3,g,Cke,0,[v,se,DE,Ee,me,Ak,ze,le,$],[[0,1],[0,1],[()=>k$,{[he]:1,[A]:DE}],[0,{[l]:_e}],[0,{[M]:Ut}],[2,{[l]:p$}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],BY=[3,g,Tke,0,[me],[[0,{[l]:Ms}]]],FY=[3,g,wke,0,[v,se,wo,me,ze,le,$,Ee],[[0,1],[0,1],[()=>ub,{[he]:1,[A]:wo}],[0,{[M]:Ut}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}],[0,{[l]:_e}]],3],UY=[3,g,Pke,0,[v,TE,ze,le,$],[[0,1],[()=>N$,{[he]:1,[A]:TE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],GY=[3,g,m9,0,[kke,Mk,Mt,ui],[[0,{[A]:Mke}],[64,{[Y]:1,[A]:Bk}],0,[()=>ab,0]],2],cb=[3,g,KR,0,[xs,yc],[0,1],1],qY=[3,g,Fke,0,[c9],[[21,{[l$]:1}]]],jY=[3,g,T9,0,[AW,VPe,p9,Gke,qke],[0,0,0,0,0]],M$=[3,g,Yk,0,[AW,p9],[0,0],1],HY=[3,g,Hke,0,[],[]],zY=[3,g,Wke,0,[v,se,t$e,owe,iwe,swe,awe,m$e,g$e,h$e,S$e,_Te],[[0,1],[0,1],[0,{[l]:QLe}],[0,{[l]:Rc}],[0,{[l]:Gl}],[4,{[l]:jk}],[4,{[l]:zk}],[0,{[l]:JLe}],[0,{[l]:YLe}],[6,{[l]:XLe}],[6,{[l]:ZLe}],[0,{[l]:K1e,[T1e]:1}]],3],VY=[3,g,b9,0,[Lr],[0],1],B$=[3,g,vE,0,[WR,rm],[0,[()=>wNe,{[Y]:1,[A]:Kl}]],2],WY=[3,g,Yke,0,[Lr,MR,Fl,Dke,Ve,ui,$9,fW,nW],[0,()=>SQ,0,1,0,[()=>QY,0],()=>hZ,()=>xQ,()=>aQ],2],KY=[3,g,Jke,0,[Ve,Ql],[0,[()=>di,{[Y]:1,[A]:Vn}]]],QY=[3,g,Xke,0,[Ve,Vn,Hf],[0,()=>Tc,[()=>KY,0]]],JY=[3,g,A9,0,[Lr,K$e],[0,()=>F$],2],F$=[3,g,r$e,0,[BDe],[1]],XY=[3,g,PE,0,[a9],[0],1],YY=[3,g,C9,0,[Uwe],[2]],ZY=[3,g,zke,0,[we,Vke],[[0,{[l]:De}],[0,{[l]:WLe}]]],eZ=[3,g,Kke,0,[v,se,me,Ek,Ee,le,$],[[0,1],[0,1],[0,{[M]:Ut}],[()=>tZ,{[he]:1,[A]:Ek}],[0,{[l]:_e}],[0,{[l]:ve}],[0,{[l]:L}]],2],tZ=[3,g,Ek,0,[yc,xW,om,j9,Pwe,D9,t9],[1,()=>UJ,0,0,0,()=>lZ,[()=>YX,0]]],U$=[3,g,t$,0,[cIe,Bke],[2,4]],rZ=[3,g,x9,0,[T9,tW],[()=>jY,()=>C7],1],nZ=[3,g,y$e,0,[Hwe],[[()=>fNe,{[Y]:1,[A]:_W}]]],oZ=[3,g,_$e,0,[FAe,Ve,Nk,UAe,LR,wo,K9,Nr],[0,0,[()=>EQ,0],0,[()=>db,0],[()=>ub,0],[()=>kNe,0],0],2],sZ=[3,g,N9,0,[o$,nm],[0,0],2],iZ=[3,g,M9,0,[o$,nm,JR,G9],[0,0,0,0],4],aZ=[3,g,O9,0,[k$e,gW],[1,1]],cZ=[3,g,x$e,0,[c9],[[()=>QZ,16]]],uZ=[3,g,A$e,0,[v,se,yW,hW,Hk,Xk,Bt,zn,Ft,C9,O9,$],[[0,1],[0,1],0,0,()=>v$,()=>$$,[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],()=>YY,()=>aZ,[0,{[l]:L}]],6],lZ=[3,g,D9,0,[Hk,hW,yW,Xk],[()=>v$,0,0,()=>$$],4],dZ=[3,g,w$e,0,[T$e,AIe],[0,[()=>br,0]],1],G$=[3,g,kE,0,[rm],[[()=>vNe,{[Y]:1,[A]:Kl}]],1],pZ=[3,g,P$e,0,[wAe,kr,M8],[[()=>dZ,0],2,[()=>p7,0]]],fZ=[3,g,l$e,0,[XV,o8,s8,xs],[[0,{[A]:XV}],[()=>i8,{[A]:o8}],[()=>i8,{[A]:s8}],[4,{[A]:xs}]],4],mZ=[3,g,OE,{[A]:OE},[],[]],hZ=[3,g,$9,0,[I9,b9],[()=>SZ,()=>VY]],gZ=[3,g,n$,{[A]:QR},[_Ie],[[()=>br,0]],1],SZ=[3,g,I9,0,[Lr],[0],1],yZ=[3,g,v$e,{[A]:QR},[CIe,kr],[[()=>sNe,0],2],1],EZ=[3,g,L9,{[A]:k9},[],[]],_Z=[3,g,B9,0,[U8,B8,F8],[1,1,1]],RZ=[3,g,f$e,0,[cW],[[()=>_Z,{[l$]:1}]]],bZ=[3,g,P9,0,[rwe],[()=>CZ]],CZ=[3,g,c$e,0,[mOe,MR],[0,()=>i7],2],Tc=[3,g,Vn,0,[se,c$],[0,0],2],ub=[3,g,wo,0,[XR],[[()=>di,0]],1],xZ=[3,g,G$e,0,[Gk,u9],[[()=>A$,{[uK]:[cK,Y9]}],0]],AZ=[3,g,q9,0,[OE,wE],[[()=>mZ,{[A]:OE}],[()=>rY,{[A]:wE}]]],TZ=[3,g,H9,0,[yc,L8],[1,0],2],wZ=[3,g,F9,0,[L$e,Mk,Mt,ui],[[0,{[A]:Q$e}],[64,{[Y]:1,[A]:Bk}],0,[()=>ab,0]],2],vZ=[3,g,V9,0,[aW,yc,Nr],[5,1,0]],PZ=[3,g,Z$e,0,[v,gE,ze,le,$],[[0,1],[()=>d7,{[he]:1,[A]:gE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],IZ=[3,g,t1e,0,[v,_E,ze,le,$],[[0,1],[()=>tX,{[he]:1,[A]:_E}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],DZ=[3,g,n1e,0,[v,RE,ze,le,$],[[0,1],[()=>oX,{[he]:1,[A]:RE}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:L}]],2],OZ=[3,g,i1e,0,[v,se,ZW,me,Ee,$,ze,le],[[0,1],[0,1],[()=>KZ,16],[0,{[M]:Ut}],[0,{[l]:_e}],[0,{[l]:L}],[0,{[l]:He}],[0,{[l]:ve}]],3],kZ=[3,g,a1e,0,[we],[[0,{[l]:De}]]],$Z=[3,g,l1e,0,[Z8,H8,Mr,Bt,Ft,Vr,kr,we],[[0,{[l]:bK}],[()=>v7,16],[0,{[l]:Wr}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[2,{[l]:Rn}],[0,{[l]:De}]]],LZ=[3,g,d1e,0,[v,eW,se,Cc,ga,V8,W8,K8,Q8,hTe,Bt,zn,Ft,J8,Ok,X8,Ee,$,mW],[[0,1],[0,{[l]:mK}],[0,1],[1,{[M]:eb}],[0,{[M]:am}],[0,{[l]:hK}],[4,{[l]:gK}],[0,{[l]:SK}],[4,{[l]:yK}],[0,{[l]:W1e}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[0,{[l]:EK}],[()=>ZK,{[l]:_K}],[0,{[l]:RK}],[0,{[l]:_e}],[0,{[l]:L}],[0,{[l]:wK}]],5],NZ=[3,g,p1e,0,[Mr,nt,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,Bt,Ft,Vr,kr,we],[[0,{[l]:Wr}],[0,{[l]:nt}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ar}],[0,{[l]:cr}],[()=>br,{[l]:_n}],[2,{[l]:Rn}],[0,{[l]:De}]]],MZ=[3,g,f1e,0,[v,se,Cc,ga,zf,Dl,ze,le,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,Bt,zn,Ft,Ee,$],[[0,1],[0,1],[1,{[M]:eb}],[0,{[M]:am}],[()=>Ac,16],[1,{[l]:Il}],[0,{[l]:He}],[0,{[l]:ve}],[0,{[l]:ws}],[0,{[l]:vs}],[0,{[l]:Ps}],[0,{[l]:Ds}],[0,{[l]:Os}],[0,{[l]:ks}],[0,{[l]:Is}],[0,{[l]:$s}],[0,{[l]:Ls}],[0,{[l]:Ns}],[0,{[l]:ar}],[()=>Io,{[l]:Po}],[0,{[l]:cr}],[0,{[l]:_e}],[0,{[l]:L}]],4],BZ=[3,g,$E,0,[UW,Lr],[[0,{[A]:BW}],0]],FZ=[3,g,LE,0,[$k,qk,Yk,e$],[()=>C$,()=>T$,()=>M$,[()=>zZ,0]]],UZ=[3,g,E1e,0,[e$e,n$e,zf,d$e,lW,pW,Ck,Tl,wl,vl,Pl,Dl,Dk,kl,Xt,Yt,Zt,tr,rr,nr,er,or,sr,ir,Ec,nt,To,xs,Hn,Qk,ql,Vl,zl,Wl,jR,tm,we,r$,Mr,Bt,Vr,Ft,Nr,s$,me,kr],[[0,{[A1e]:1,[l]:KLe}],[0,{[l]:eNe}],[()=>Ac,16],[1,{[l]:LLe}],[0,{[l]:Q1e}],[0,{[l]:J1e}],[0,{[l]:iLe}],[0,{[l]:X1e}],[0,{[l]:Y1e}],[0,{[l]:Z1e}],[0,{[l]:eLe}],[1,{[l]:Il}],[0,{[l]:tLe}],[0,{[l]:rLe}],[0,{[l]:aLe}],[0,{[l]:cLe}],[0,{[l]:uLe}],[0,{[l]:dLe}],[0,{[l]:pLe}],[0,{[l]:fLe}],[0,{[l]:lLe}],[0,{[l]:mLe}],[0,{[l]:hLe}],[0,{[l]:gLe}],[2,{[l]:SLe}],[0,{[l]:nLe}],[4,{[l]:oLe}],[0,{[l]:yLe}],[4,{[l]:sLe}],[1,{[l]:ELe}],[128,{[Jl]:rd}],[0,{[l]:bLe}],[0,{[l]:RLe}],[5,{[l]:CLe}],[1,{[l]:_Le}],[0,{[l]:TLe}],[0,{[l]:ALe}],[0,{[l]:xLe}],[0,{[l]:vLe}],[0,{[l]:DLe}],[()=>br,{[l]:PLe}],[0,{[l]:OLe}],[0,{[l]:wLe}],[1,{[l]:kLe}],[0,{[l]:$Le}],[2,{[l]:ILe}]],2],ae="unit",iNe=[1,g,T8,0,[()=>nb,0]],aNe=[1,g,mAe,0,[()=>c7,{[A]:P8}]],GZ=[1,g,wk,0,[()=>f7,{[A]:v}]],lb=[1,g,uTe,0,()=>y7],cNe=[1,g,lTe,0,()=>_7],qZ=[1,g,Pk,0,[()=>I7,0]],uNe=[1,g,Rwe,0,()=>sQ],lNe=[1,g,oW,0,()=>iQ],dNe=[1,g,Mwe,0,[0,{[A]:Lk}]],pNe=[1,g,SW,0,()=>bQ],fNe=[1,g,jwe,0,()=>AQ],db=[1,g,BR,0,[()=>GJ,{[A]:Uk}]],mNe=[1,g,PW,0,[()=>ob,0]],hNe=[1,g,TW,0,[()=>sb,0]],gNe=[1,g,rIe,0,[0,{[A]:zwe}]],SNe=[1,g,XIe,0,[()=>aX,0]],jZ=[1,g,TDe,0,[()=>uX,0]],yNe=[1,g,NW,0,[()=>ib,0]],ENe=[1,g,NDe,0,()=>HX],_Ne=[1,g,JDe,0,()=>VX],RNe=[1,g,nOe,0,()=>KX],HZ=[1,g,uOe,0,[()=>WX,0]],bNe=[1,g,gOe,0,[()=>XX,0]],CNe=[1,g,eOe,0,()=>ZX],xNe=[1,g,zR,0,()=>tY],ANe=[1,g,ike,0,()=>JX],TNe=[1,g,$ke,0,[()=>GY,0]],wNe=[1,g,Zke,0,[()=>WY,0]],zZ=[1,g,e$,0,[()=>rZ,{[A]:x9}]],vNe=[1,g,I$e,0,[()=>pZ,0]],di=[1,g,XR,0,[()=>Tc,{[A]:Vn}]],PNe=[1,g,U9,0,[()=>xZ,{[A]:Uk}]],INe=[1,g,q$e,0,()=>TZ],DNe=[1,g,B$e,0,[()=>wZ,0]],ONe=[1,g,j$e,0,()=>vZ],kNe=[1,g,K9,0,[()=>FX,{[A]:FW}]],VZ=[4,g,lAe,0,[Ve,Vn,Hf],[0,()=>Tc,[()=>s7,0]]],WZ=[4,g,kDe,0,[Ve,Vn,O8,Hf],[0,()=>Tc,0,[()=>jX,0]]],KZ=[4,g,ZW,0,[n$],[[()=>yZ,{[A]:QR}]]],QZ=[4,g,C$e,{[aK]:1},[s$e,B9,d9,xTe,gW],[[()=>qY,0],[()=>RZ,0],[()=>sY,0],()=>x7,()=>RQ]],JZ=[9,g,SAe,{[k]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>r7,()=>t7],XZ=[9,g,q8,{[k]:["POST","/{Key+}",200]},()=>b7,()=>R7],YZ=[9,g,sTe,{[k]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>T7,()=>A7],ZZ=[9,g,GAe,{[k]:["PUT","/",200]},()=>L7,()=>$7],eee=[9,g,qAe,{[be]:"-",[k]:["POST","/?metadataConfiguration",200]},()=>O7,()=>ae],tee=[9,g,HAe,{[be]:"-",[k]:["POST","/?metadataTable",200]},()=>k7,()=>ae],ree=[9,g,oTe,{[k]:["POST","/{Key+}?uploads",200]},()=>M7,()=>N7],nee=[9,g,ETe,{[k]:["GET","/?session",200]},()=>F7,()=>B7],oee=[9,g,TTe,{[k]:["DELETE","/",204]},()=>rQ,()=>ae],see=[9,g,wTe,{[k]:["DELETE","/?analytics",204]},()=>H7,()=>ae],iee=[9,g,PTe,{[k]:["DELETE","/?cors",204]},()=>z7,()=>ae],aee=[9,g,DTe,{[k]:["DELETE","/?encryption",204]},()=>V7,()=>ae],cee=[9,g,LTe,{[k]:["DELETE","/?intelligent-tiering",204]},()=>W7,()=>ae],uee=[9,g,kTe,{[k]:["DELETE","/?inventory",204]},()=>K7,()=>ae],lee=[9,g,MTe,{[k]:["DELETE","/?lifecycle",204]},()=>Q7,()=>ae],dee=[9,g,FTe,{[k]:["DELETE","/?metadataConfiguration",204]},()=>J7,()=>ae],pee=[9,g,jTe,{[k]:["DELETE","/?metadataTable",204]},()=>X7,()=>ae],fee=[9,g,qTe,{[k]:["DELETE","/?metrics",204]},()=>Y7,()=>ae],mee=[9,g,zTe,{[k]:["DELETE","/?ownershipControls",204]},()=>Z7,()=>ae],hee=[9,g,WTe,{[k]:["DELETE","/?policy",204]},()=>eQ,()=>ae],gee=[9,g,XTe,{[k]:["DELETE","/?replication",204]},()=>tQ,()=>ae],See=[9,g,YTe,{[k]:["DELETE","/?tagging",204]},()=>nQ,()=>ae],yee=[9,g,ewe,{[k]:["DELETE","/?website",204]},()=>oQ,()=>ae],Eee=[9,g,bwe,{[k]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>dQ,()=>lQ],_ee=[9,g,dwe,{[k]:["DELETE","/{Key+}?annotation",204]},()=>uQ,()=>cQ],Ree=[9,g,Cwe,{[be]:"-",[k]:["POST","/?delete",200]},()=>fQ,()=>pQ],bee=[9,g,ywe,{[k]:["DELETE","/{Key+}?tagging",204]},()=>hQ,()=>mQ],Cee=[9,g,xwe,{[k]:["DELETE","/?publicAccessBlock",204]},()=>gQ,()=>ae],xee=[9,g,Wwe,{[k]:["GET","/?abac",200]},()=>wQ,()=>TQ],Aee=[9,g,Kwe,{[k]:["GET","/?accelerate",200]},()=>PQ,()=>vQ],Tee=[9,g,ove,{[k]:["GET","/?acl",200]},()=>DQ,()=>IQ],wee=[9,g,Zwe,{[k]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>kQ,()=>OQ],vee=[9,g,sve,{[k]:["GET","/?cors",200]},()=>LQ,()=>$Q],Pee=[9,g,cve,{[k]:["GET","/?encryption",200]},()=>MQ,()=>NQ],Iee=[9,g,mve,{[k]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>FQ,()=>BQ],Dee=[9,g,dve,{[k]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>GQ,()=>UQ],Oee=[9,g,yve,{[k]:["GET","/?lifecycle",200]},()=>jQ,()=>qQ],kee=[9,g,Sve,{[k]:["GET","/?location",200]},()=>zQ,()=>HQ],$ee=[9,g,Ave,{[k]:["GET","/?logging",200]},()=>WQ,()=>VQ],Lee=[9,g,Tve,{[k]:["GET","/?metadataConfiguration",200]},()=>QQ,()=>KQ],Nee=[9,g,Ove,{[k]:["GET","/?metadataTable",200]},()=>YQ,()=>XQ],Mee=[9,g,Dve,{[k]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>tJ,()=>eJ],Bee=[9,g,Lve,{[k]:["GET","/?notification",200]},()=>rJ,()=>I$],Fee=[9,g,Mve,{[k]:["GET","/?ownershipControls",200]},()=>oJ,()=>nJ],Uee=[9,g,Uve,{[k]:["GET","/?policy",200]},()=>iJ,()=>sJ],Gee=[9,g,jve,{[k]:["GET","/?policyStatus",200]},()=>cJ,()=>aJ],qee=[9,g,Vve,{[k]:["GET","/?replication",200]},()=>lJ,()=>uJ],jee=[9,g,Kve,{[k]:["GET","/?requestPayment",200]},()=>pJ,()=>dJ],Hee=[9,g,Yve,{[k]:["GET","/?tagging",200]},()=>mJ,()=>fJ],zee=[9,g,tPe,{[k]:["GET","/?versioning",200]},()=>gJ,()=>hJ],Vee=[9,g,oPe,{[k]:["GET","/?website",200]},()=>yJ,()=>SJ],Wee=[9,g,aPe,{[be]:"-",[k]:["GET","/{Key+}?x-id=GetObject",200]},()=>DJ,()=>IJ],Kee=[9,g,cPe,{[k]:["GET","/{Key+}?acl",200]},()=>_J,()=>EJ],Qee=[9,g,SPe,{[be]:"-",[k]:["GET","/{Key+}?annotation&x-id=GetObjectAnnotation",200]},()=>bJ,()=>RJ],Jee=[9,g,yPe,{[k]:["GET","/{Key+}?attributes",200]},()=>AJ,()=>CJ],Xee=[9,g,bPe,{[k]:["GET","/{Key+}?legal-hold",200]},()=>wJ,()=>TJ],Yee=[9,g,EPe,{[k]:["GET","/?object-lock",200]},()=>PJ,()=>vJ],Zee=[9,g,PPe,{[k]:["GET","/{Key+}?retention",200]},()=>kJ,()=>OJ],ete=[9,g,IPe,{[k]:["GET","/{Key+}?tagging",200]},()=>LJ,()=>$J],tte=[9,g,LPe,{[k]:["GET","/{Key+}?torrent",200]},()=>MJ,()=>NJ],rte=[9,g,NPe,{[k]:["GET","/?publicAccessBlock",200]},()=>FJ,()=>BJ],nte=[9,g,FPe,{[k]:["HEAD","/",200]},()=>jJ,()=>qJ],ote=[9,g,jPe,{[k]:["HEAD","/{Key+}",200]},()=>zJ,()=>HJ],ste=[9,g,IIe,{[k]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>fX,()=>pX],ite=[9,g,MIe,{[k]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>hX,()=>mX],ate=[9,g,$Ie,{[k]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>SX,()=>gX],cte=[9,g,UIe,{[k]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>EX,()=>yX],ute=[9,g,PIe,{[k]:["GET","/?x-id=ListBuckets",200]},()=>RX,()=>_X],lte=[9,g,zIe,{[k]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>CX,()=>bX],dte=[9,g,nDe,{[k]:["GET","/?uploads",200]},()=>AX,()=>xX],pte=[9,g,cDe,{[k]:["GET","/{Key+}?annotation&x-id=ListObjectAnnotations",200]},()=>wX,()=>TX],fte=[9,g,aDe,{[k]:["GET","/",200]},()=>PX,()=>vX],mte=[9,g,fDe,{[k]:["GET","/?list-type=2",200]},()=>DX,()=>IX],hte=[9,g,yDe,{[k]:["GET","/?versions",200]},()=>kX,()=>OX],gte=[9,g,EDe,{[k]:["GET","/{Key+}?x-id=ListParts",200]},()=>LX,()=>$X],Ste=[9,g,yOe,{[be]:"-",[k]:["PUT","/?abac",200]},()=>iY,()=>ae],yte=[9,g,EOe,{[be]:"-",[k]:["PUT","/?accelerate",200]},()=>aY,()=>ae],Ete=[9,g,AOe,{[be]:"-",[k]:["PUT","/?acl",200]},()=>cY,()=>ae],_te=[9,g,bOe,{[k]:["PUT","/?analytics",200]},()=>uY,()=>ae],Rte=[9,g,TOe,{[be]:"-",[k]:["PUT","/?cors",200]},()=>lY,()=>ae],bte=[9,g,vOe,{[be]:"-",[k]:["PUT","/?encryption",200]},()=>dY,()=>ae],Cte=[9,g,OOe,{[k]:["PUT","/?intelligent-tiering",200]},()=>pY,()=>ae],xte=[9,g,IOe,{[k]:["PUT","/?inventory",200]},()=>fY,()=>ae],Ate=[9,g,LOe,{[be]:"-",[k]:["PUT","/?lifecycle",200]},()=>hY,()=>mY],Tte=[9,g,$Oe,{[be]:"-",[k]:["PUT","/?logging",200]},()=>gY,()=>ae],wte=[9,g,FOe,{[k]:["PUT","/?metrics",200]},()=>SY,()=>ae],vte=[9,g,GOe,{[k]:["PUT","/?notification",200]},()=>yY,()=>ae],Pte=[9,g,jOe,{[be]:"-",[k]:["PUT","/?ownershipControls",200]},()=>EY,()=>ae],Ite=[9,g,zOe,{[be]:"-",[k]:["PUT","/?policy",200]},()=>_Y,()=>ae],Dte=[9,g,WOe,{[be]:"-",[k]:["PUT","/?replication",200]},()=>RY,()=>ae],Ote=[9,g,KOe,{[be]:"-",[k]:["PUT","/?requestPayment",200]},()=>bY,()=>ae],kte=[9,g,XOe,{[be]:"-",[k]:["PUT","/?tagging",200]},()=>CY,()=>ae],$te=[9,g,ZOe,{[be]:"-",[k]:["PUT","/?versioning",200]},()=>xY,()=>ae],Lte=[9,g,tke,{[be]:"-",[k]:["PUT","/?website",200]},()=>AY,()=>ae],Nte=[9,g,ake,{[be]:"-",[k]:["PUT","/{Key+}?x-id=PutObject",200]},()=>LY,()=>$Y],Mte=[9,g,cke,{[be]:"-",[k]:["PUT","/{Key+}?acl",200]},()=>wY,()=>TY],Bte=[9,g,fke,{[be]:"-",[k]:["PUT","/{Key+}?annotation",200]},()=>PY,()=>vY],Fte=[9,g,Ske,{[be]:"-",[k]:["PUT","/{Key+}?legal-hold",200]},()=>DY,()=>IY],Ute=[9,g,mke,{[be]:"-",[k]:["PUT","/?object-lock",200]},()=>kY,()=>OY],Gte=[9,g,xke,{[be]:"-",[k]:["PUT","/{Key+}?retention",200]},()=>MY,()=>NY],qte=[9,g,Ake,{[be]:"-",[k]:["PUT","/{Key+}?tagging",200]},()=>FY,()=>BY],jte=[9,g,vke,{[be]:"-",[k]:["PUT","/?publicAccessBlock",200]},()=>UY,()=>ae],Hte=[9,g,jke,{[k]:["PUT","/{Key+}?renameObject",200]},()=>zY,()=>HY],zte=[9,g,Qke,{[be]:"-",[k]:["POST","/{Key+}?restore",200]},()=>eZ,()=>ZY],Vte=[9,g,b$e,{[k]:["POST","/{Key+}?select&select-type=2",200]},()=>uZ,()=>cZ],Wte=[9,g,Y$e,{[be]:"-",[k]:["PUT","/?metadataAnnotationTable",200]},()=>PZ,()=>ae],Kte=[9,g,e1e,{[be]:"-",[k]:["PUT","/?metadataInventoryTable",200]},()=>IZ,()=>ae],Qte=[9,g,r1e,{[be]:"-",[k]:["PUT","/?metadataJournalTable",200]},()=>DZ,()=>ae],Jte=[9,g,s1e,{[be]:"-",[k]:["PUT","/{Key+}?encryption",200]},()=>OZ,()=>kZ],Xte=[9,g,c1e,{[be]:"-",[k]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>MZ,()=>NZ],Yte=[9,g,u1e,{[k]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>LZ,()=>$Z],Zte=[9,g,y1e,{[C1e]:["{RequestRoute}."],[k]:["POST","/WriteGetObjectResponse",200]},()=>UZ,()=>ae],Nf=class extends O(C8,re,"CreateSession",nee){},$Ne="3.1151.0",LNe={version:$Ne},NNe=t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??wxe,base64Encoder:t?.base64Encoder??Txe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??_8,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??Axe,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??qxe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new mxe},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new hxe}],logger:t?.logger??new $Ce,md5:t?.md5??_xe,protocol:t?.protocol??_Ce,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:YK,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??xxe,serviceId:t?.serviceId??"S3",sha1:t?.sha1??Dxe,sha256:t?.sha256??Exe,signerConstructor:t?.signerConstructor??p8,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??rxe,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??Cxe,utf8Encoder:t?.utf8Encoder??bxe}),MNe=t=>{LCe(process.version);let e=GCe(t),r=()=>e().then(NCe),n=NNe(t);aCe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Un(Sxe,o),bodyLengthChecker:t?.bodyLengthChecker??vxe,credentialDefaultProvider:t?.credentialDefaultProvider??yxe,defaultUserAgentProvider:t?.defaultUserAgentProvider??cCe({serviceId:n.serviceId,clientVersion:LNe.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??Un(bCe,o),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??exe,maxAttempts:t?.maxAttempts??Un(cxe,t),region:t?.region??Un(HCe,{...zCe,...o}),requestChecksumCalculation:t?.requestChecksumCalculation??Un(oCe,o),requestHandler:Ixe.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??Un(nCe,o),retryMode:t?.retryMode??Un({...axe,default:async()=>(await r()).retryMode||ixe},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??Un(gxe,o),streamCollector:t?.streamCollector??Pxe,streamHasher:t?.streamHasher??Rxe,useArnRegion:t?.useArnRegion??Un(RCe,o),useDualstackEndpoint:t?.useDualstackEndpoint??Un(jCe,o),useFipsEndpoint:t?.useFipsEndpoint??Un(qCe,o),userAgentAppId:t?.userAgentAppId??Un(uCe,o)}},BNe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},FNe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),UNe=(t,e)=>{let r=Object.assign(lCe(t),MCe(t),nxe(t),BNe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,dCe(r),BCe(r),oxe(r),FNe(r))},ii=class extends l8{config;constructor(...[e]){let r=MNe(e||{});super(r),this.initConfig=r;let n=Hxe(r),o=pCe(n),s=sCe(o),i=uxe(s),a=VCe(i),c=fCe(a),u=ZCe(c),f=txe(u),m=jxe(f),y=CCe(m,{session:[()=>this,Nf]}),_=UNe(y,e?.extensions||[]);this.config=_,this.middlewareStack.use(dxe(this.config)),this.middlewareStack.use(mCe(this.config)),this.middlewareStack.use(lxe(this.config)),this.middlewareStack.use(sxe(this.config)),this.middlewareStack.use(hCe(this.config)),this.middlewareStack.use(gCe(this.config)),this.middlewareStack.use(SCe(this.config)),this.middlewareStack.use(PCe(this.config,{httpAuthSchemeParametersProvider:Fxe,identityProviderConfigProvider:async R=>new ICe({"aws.auth#sigv4":R.credentials,"aws.auth#sigv4a":R.credentials})})),this.middlewareStack.use(DCe(this.config)),this.middlewareStack.use(xCe(this.config)),this.middlewareStack.use(ACe(this.config)),this.middlewareStack.use(TCe(this.config)),this.middlewareStack.use(wCe(this.config)),this.middlewareStack.use(vCe(this.config))}destroy(){super.destroy()}},NE=class extends O(un,re,"AbortMultipartUpload",JZ){},ME=class extends O(un,xl,"CompleteMultipartUpload",XZ){},BE=class extends O(Vxe,xl,"CopyObject",YZ){},FE=class extends O(Wxe,Xxe,"CreateBucket",ZZ){},UE=class extends O(q,Rr,"CreateBucketMetadataConfiguration",eee){},GE=class extends O(q,Rr,"CreateBucketMetadataTableConfiguration",tee){},qE=class extends O(un,xl,"CreateMultipartUpload",ree){},jE=class extends O(q,tt,"DeleteBucketAnalyticsConfiguration",see){},HE=class extends O(q,tt,"DeleteBucket",oee){},zE=class extends O(q,tt,"DeleteBucketCors",iee){},VE=class extends O(q,tt,"DeleteBucketEncryption",aee){},WE=class extends O(q,tt,"DeleteBucketIntelligentTieringConfiguration",cee){},KE=class extends O(q,tt,"DeleteBucketInventoryConfiguration",uee){},QE=class extends O(q,tt,"DeleteBucketLifecycle",lee){},JE=class extends O(q,tt,"DeleteBucketMetadataConfiguration",dee){},XE=class extends O(q,tt,"DeleteBucketMetadataTableConfiguration",pee){},YE=class extends O(q,tt,"DeleteBucketMetricsConfiguration",fee){},ZE=class extends O(q,tt,"DeleteBucketOwnershipControls",mee){},e_=class extends O(q,tt,"DeleteBucketPolicy",hee){},t_=class extends O(q,tt,"DeleteBucketReplication",gee){},r_=class extends O(q,tt,"DeleteBucketTagging",See){},n_=class extends O(q,tt,"DeleteBucketWebsite",yee){},o_=class extends O(At,re,"DeleteObjectAnnotation",_ee){},s_=class extends O(un,re,"DeleteObject",Eee){},i_=class extends O(At,fa,"DeleteObjects",Ree){},a_=class extends O(At,re,"DeleteObjectTagging",bee){},c_=class extends O(q,tt,"DeletePublicAccessBlock",Cee){},u_=class extends O(At,re,"GetBucketAbac",xee){},l_=class extends O(q,re,"GetBucketAccelerateConfiguration",Aee){},d_=class extends O(q,re,"GetBucketAcl",Tee){},p_=class extends O(q,re,"GetBucketAnalyticsConfiguration",wee){},f_=class extends O(q,re,"GetBucketCors",vee){},m_=class extends O(q,re,"GetBucketEncryption",Pee){},h_=class extends O(q,re,"GetBucketIntelligentTieringConfiguration",Iee){},g_=class extends O(q,re,"GetBucketInventoryConfiguration",Dee){},S_=class extends O(q,re,"GetBucketLifecycleConfiguration",Oee){},y_=class extends O(q,re,"GetBucketLocation",kee){},E_=class extends O(q,re,"GetBucketLogging",$ee){},__=class extends O(q,re,"GetBucketMetadataConfiguration",Lee){},R_=class extends O(q,re,"GetBucketMetadataTableConfiguration",Nee){},b_=class extends O(q,re,"GetBucketMetricsConfiguration",Mee){},C_=class extends O(q,re,"GetBucketNotificationConfiguration",Bee){},x_=class extends O(q,re,"GetBucketOwnershipControls",Fee){},A_=class extends O(q,tt,"GetBucketPolicy",Uee){},T_=class extends O(q,re,"GetBucketPolicyStatus",Gee){},w_=class extends O(q,re,"GetBucketReplication",qee){},v_=class extends O(q,re,"GetBucketRequestPayment",jee){},P_=class extends O(q,re,"GetBucketTagging",Hee){},I_=class extends O(q,re,"GetBucketVersioning",zee){},D_=class extends O(q,re,"GetBucketWebsite",Vee){},O_=class extends O(un,re,"GetObjectAcl",Kee){},k_=class extends O(un,Yxe,"GetObjectAnnotation",Qee){},$_=class extends O(At,xl,"GetObjectAttributes",Jee){},L_=class extends O(un,Zxe,"GetObject",Wee){},N_=class extends O(At,re,"GetObjectLegalHold",Xee){},M_=class extends O(At,re,"GetObjectLockConfiguration",Yee){},B_=class extends O(At,re,"GetObjectRetention",Zee){},F_=class extends O(At,re,"GetObjectTagging",ete){},U_=class extends O(At,tt,"GetObjectTorrent",tte){},G_=class extends O(q,re,"GetPublicAccessBlock",rte){},Rl=class extends O(At,re,"HeadBucket",nte){},bl=class extends O(un,eAe,"HeadObject",ote){},q_=class extends O(q,re,"ListBucketAnalyticsConfigurations",ste){},j_=class extends O(q,re,"ListBucketIntelligentTieringConfigurations",ite){},H_=class extends O(q,re,"ListBucketInventoryConfigurations",ate){},z_=class extends O(q,re,"ListBucketMetricsConfigurations",cte){},Mf=class extends O(Kxe,re,"ListBuckets",ute){},Bf=class extends O(Qxe,re,"ListDirectoryBuckets",lte){},V_=class extends O($R,re,"ListMultipartUploads",dte){},Ff=class extends O(At,re,"ListObjectAnnotations",pte){},W_=class extends O($R,re,"ListObjects",fte){},Uf=class extends O($R,re,"ListObjectsV2",mte){},K_=class extends O($R,re,"ListObjectVersions",hte){},Gf=class extends O(un,xl,"ListParts",gte){},Q_=class extends O(At,x8,"PutBucketAbac",Ste){},J_=class extends O(q,x8,"PutBucketAccelerateConfiguration",yte){},X_=class extends O(q,Rr,"PutBucketAcl",Ete){},Y_=class extends O(q,tt,"PutBucketAnalyticsConfiguration",_te){},Z_=class extends O(q,Rr,"PutBucketCors",Rte){},eR=class extends O(q,Rr,"PutBucketEncryption",bte){},tR=class extends O(q,tt,"PutBucketIntelligentTieringConfiguration",Cte){},rR=class extends O(q,tt,"PutBucketInventoryConfiguration",xte){},nR=class extends O(q,fa,"PutBucketLifecycleConfiguration",Ate){},oR=class extends O(q,Rr,"PutBucketLogging",Tte){},sR=class extends O(q,tt,"PutBucketMetricsConfiguration",wte){},iR=class extends O(q,tt,"PutBucketNotificationConfiguration",vte){},aR=class extends O(q,Rr,"PutBucketOwnershipControls",Pte){},cR=class extends O(q,Rr,"PutBucketPolicy",Ite){},uR=class extends O(q,Rr,"PutBucketReplication",Dte){},lR=class extends O(q,Rr,"PutBucketRequestPayment",Ote){},dR=class extends O(q,Rr,"PutBucketTagging",kte){},pR=class extends O(q,Rr,"PutBucketVersioning",$te){},fR=class extends O(q,Rr,"PutBucketWebsite",Lte){},mR=class extends O(un,fa,"PutObjectAcl",Mte){},hR=class extends O(un,A8,"PutObjectAnnotation",Bte){},gR=class extends O(un,tAe,"PutObject",Nte){},SR=class extends O(At,fa,"PutObjectLegalHold",Fte){},yR=class extends O(At,fa,"PutObjectLockConfiguration",Ute){},ER=class extends O(At,fa,"PutObjectRetention",Gte){},_R=class extends O(At,fa,"PutObjectTagging",qte){},RR=class extends O(q,Rr,"PutPublicAccessBlock",jte){},bR=class extends O(un,re,"RenameObject",Hte){},CR=class extends O(At,A8,"RestoreObject",zte){},xR=class extends O(At,rAe,"SelectObjectContent",Vte){},AR=class extends O(q,Rr,"UpdateBucketMetadataAnnotationTableConfiguration",Wte){},TR=class extends O(q,Rr,"UpdateBucketMetadataInventoryTableConfiguration",Kte){},wR=class extends O(q,Rr,"UpdateBucketMetadataJournalTableConfiguration",Qte){},vR=class extends O(At,fa,"UpdateObjectEncryption",Jte){},PR=class extends O(un,nAe,"UploadPart",Xte){},IR=class extends O(C8,xl,"UploadPartCopy",Yte){},DR=class extends O(Jxe,tt,"WriteGetObjectResponse",Zte){},ere=qf(ii,Mf,"ContinuationToken","ContinuationToken","MaxBuckets"),tre=qf(ii,Bf,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets"),rre=qf(ii,Ff,"ContinuationToken","NextContinuationToken","MaxAnnotationResults"),nre=qf(ii,Uf,"ContinuationToken","NextContinuationToken","MaxKeys"),ore=qf(ii,Gf,"PartNumberMarker","NextPartNumberMarker","MaxParts"),sre=async(t,e)=>{let r;try{return r=await t.send(new Rl(e)),{state:Cs.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:Cs.RETRY,reason:r}}return{state:Cs.RETRY,reason:r}},GNe=async(t,e)=>pa({...{minDelay:5,maxDelay:120},...t},e,sre),ire=async(t,e)=>{let n=await pa({...{minDelay:5,maxDelay:120},...t},e,sre);return kR(n)},are=async(t,e)=>{let r;try{r=await t.send(new Rl(e))}catch(n){if(r=n,n.name==="NotFound")return{state:Cs.SUCCESS,reason:r}}return{state:Cs.RETRY,reason:r}},qNe=async(t,e)=>pa({...{minDelay:5,maxDelay:120},...t},e,are),cre=async(t,e)=>{let n=await pa({...{minDelay:5,maxDelay:120},...t},e,are);return kR(n)},ure=async(t,e)=>{let r;try{return r=await t.send(new bl(e)),{state:Cs.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:Cs.RETRY,reason:r}}return{state:Cs.RETRY,reason:r}},jNe=async(t,e)=>pa({...{minDelay:5,maxDelay:120},...t},e,ure),lre=async(t,e)=>{let n=await pa({...{minDelay:5,maxDelay:120},...t},e,ure);return kR(n)},dre=async(t,e)=>{let r;try{r=await t.send(new bl(e))}catch(n){if(r=n,n.name==="NotFound")return{state:Cs.SUCCESS,reason:r}}return{state:Cs.RETRY,reason:r}},HNe=async(t,e)=>pa({...{minDelay:5,maxDelay:120},...t},e,dre),pre=async(t,e)=>{let n=await pa({...{minDelay:5,maxDelay:120},...t},e,dre);return kR(n)},zNe={AbortMultipartUploadCommand:NE,CompleteMultipartUploadCommand:ME,CopyObjectCommand:BE,CreateBucketCommand:FE,CreateBucketMetadataConfigurationCommand:UE,CreateBucketMetadataTableConfigurationCommand:GE,CreateMultipartUploadCommand:qE,CreateSessionCommand:Nf,DeleteBucketCommand:HE,DeleteBucketAnalyticsConfigurationCommand:jE,DeleteBucketCorsCommand:zE,DeleteBucketEncryptionCommand:VE,DeleteBucketIntelligentTieringConfigurationCommand:WE,DeleteBucketInventoryConfigurationCommand:KE,DeleteBucketLifecycleCommand:QE,DeleteBucketMetadataConfigurationCommand:JE,DeleteBucketMetadataTableConfigurationCommand:XE,DeleteBucketMetricsConfigurationCommand:YE,DeleteBucketOwnershipControlsCommand:ZE,DeleteBucketPolicyCommand:e_,DeleteBucketReplicationCommand:t_,DeleteBucketTaggingCommand:r_,DeleteBucketWebsiteCommand:n_,DeleteObjectCommand:s_,DeleteObjectAnnotationCommand:o_,DeleteObjectsCommand:i_,DeleteObjectTaggingCommand:a_,DeletePublicAccessBlockCommand:c_,GetBucketAbacCommand:u_,GetBucketAccelerateConfigurationCommand:l_,GetBucketAclCommand:d_,GetBucketAnalyticsConfigurationCommand:p_,GetBucketCorsCommand:f_,GetBucketEncryptionCommand:m_,GetBucketIntelligentTieringConfigurationCommand:h_,GetBucketInventoryConfigurationCommand:g_,GetBucketLifecycleConfigurationCommand:S_,GetBucketLocationCommand:y_,GetBucketLoggingCommand:E_,GetBucketMetadataConfigurationCommand:__,GetBucketMetadataTableConfigurationCommand:R_,GetBucketMetricsConfigurationCommand:b_,GetBucketNotificationConfigurationCommand:C_,GetBucketOwnershipControlsCommand:x_,GetBucketPolicyCommand:A_,GetBucketPolicyStatusCommand:T_,GetBucketReplicationCommand:w_,GetBucketRequestPaymentCommand:v_,GetBucketTaggingCommand:P_,GetBucketVersioningCommand:I_,GetBucketWebsiteCommand:D_,GetObjectCommand:L_,GetObjectAclCommand:O_,GetObjectAnnotationCommand:k_,GetObjectAttributesCommand:$_,GetObjectLegalHoldCommand:N_,GetObjectLockConfigurationCommand:M_,GetObjectRetentionCommand:B_,GetObjectTaggingCommand:F_,GetObjectTorrentCommand:U_,GetPublicAccessBlockCommand:G_,HeadBucketCommand:Rl,HeadObjectCommand:bl,ListBucketAnalyticsConfigurationsCommand:q_,ListBucketIntelligentTieringConfigurationsCommand:j_,ListBucketInventoryConfigurationsCommand:H_,ListBucketMetricsConfigurationsCommand:z_,ListBucketsCommand:Mf,ListDirectoryBucketsCommand:Bf,ListMultipartUploadsCommand:V_,ListObjectAnnotationsCommand:Ff,ListObjectsCommand:W_,ListObjectsV2Command:Uf,ListObjectVersionsCommand:K_,ListPartsCommand:Gf,PutBucketAbacCommand:Q_,PutBucketAccelerateConfigurationCommand:J_,PutBucketAclCommand:X_,PutBucketAnalyticsConfigurationCommand:Y_,PutBucketCorsCommand:Z_,PutBucketEncryptionCommand:eR,PutBucketIntelligentTieringConfigurationCommand:tR,PutBucketInventoryConfigurationCommand:rR,PutBucketLifecycleConfigurationCommand:nR,PutBucketLoggingCommand:oR,PutBucketMetricsConfigurationCommand:sR,PutBucketNotificationConfigurationCommand:iR,PutBucketOwnershipControlsCommand:aR,PutBucketPolicyCommand:cR,PutBucketReplicationCommand:uR,PutBucketRequestPaymentCommand:lR,PutBucketTaggingCommand:dR,PutBucketVersioningCommand:pR,PutBucketWebsiteCommand:fR,PutObjectCommand:gR,PutObjectAclCommand:mR,PutObjectAnnotationCommand:hR,PutObjectLegalHoldCommand:SR,PutObjectLockConfigurationCommand:yR,PutObjectRetentionCommand:ER,PutObjectTaggingCommand:_R,PutPublicAccessBlockCommand:RR,RenameObjectCommand:bR,RestoreObjectCommand:CR,SelectObjectContentCommand:xR,UpdateBucketMetadataAnnotationTableConfigurationCommand:AR,UpdateBucketMetadataInventoryTableConfigurationCommand:TR,UpdateBucketMetadataJournalTableConfigurationCommand:wR,UpdateObjectEncryptionCommand:vR,UploadPartCommand:PR,UploadPartCopyCommand:IR,WriteGetObjectResponseCommand:DR},VNe={paginateListBuckets:ere,paginateListDirectoryBuckets:tre,paginateListObjectAnnotations:rre,paginateListObjectsV2:nre,paginateListParts:ore},WNe={waitUntilBucketExists:ire,waitUntilBucketNotExists:cre,waitUntilObjectExists:lre,waitUntilObjectNotExists:pre},OR=class extends ii{};FCe(zNe,OR,{paginators:VNe,waiters:WNe});var KNe={Disabled:"Disabled",Enabled:"Enabled"},QNe={requester:"requester"},JNe={requester:"requester"},XNe={Enabled:"Enabled",Suspended:"Suspended"},YNe={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"},ZNe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"},eMe={Destination:"Destination"},tMe={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"},rMe={AES256:"AES256",aws_backup:"aws:backup",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"},nMe={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},oMe={COPY:"COPY",EXCLUDE:"EXCLUDE"},sMe={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"},iMe={COPY:"COPY",REPLACE:"REPLACE"},aMe={OFF:"OFF",ON:"ON"},cMe={OFF:"OFF",ON:"ON"},uMe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},lMe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},dMe={COPY:"COPY",REPLACE:"REPLACE"},pMe={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},fMe={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"},mMe={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"},hMe={Directory:"Directory"},gMe={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"},SMe={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"},yMe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"},EMe={DISABLED:"DISABLED",ENABLED:"ENABLED"},_Me={AES256:"AES256",aws_kms:"aws:kms"},RMe={DISABLED:"DISABLED",ENABLED:"ENABLED"},bMe={DISABLED:"DISABLED",ENABLED:"ENABLED"},CMe={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"},xMe={CSV:"CSV"},AMe={V_1:"V_1"},TMe={NONE:"NONE",SSE_C:"SSE-C"},wMe={Disabled:"Disabled",Enabled:"Enabled"},vMe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},PMe={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"},IMe={All:"All",Current:"Current"},DMe={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IntelligentTieringReferenceDate:"IntelligentTieringReferenceDate",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockEventHoldDuration:"ObjectLockEventHoldDuration",ObjectLockEventHoldStatus:"ObjectLockEventHoldStatus",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"},OMe={Daily:"Daily",Weekly:"Weekly"},kMe={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"},$Me={Disabled:"Disabled",Enabled:"Enabled"},LMe={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"},NMe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"},MMe={DeliveryTime:"DeliveryTime",EventTime:"EventTime"},BMe={aws:"aws",customer:"customer"},FMe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectAnnotation_:"s3:ObjectAnnotation:*",s3_ObjectAnnotation_Delete:"s3:ObjectAnnotation:Delete",s3_ObjectAnnotation_Put:"s3:ObjectAnnotation:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectRetention_Put:"s3:ObjectRetention:Put",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"},UMe={prefix:"prefix",suffix:"suffix"},GMe={Disabled:"Disabled",Enabled:"Enabled"},qMe={Disabled:"Disabled",Enabled:"Enabled"},jMe={Disabled:"Disabled",Enabled:"Enabled"},HMe={Disabled:"Disabled",Enabled:"Enabled"},zMe={Disabled:"Disabled",Enabled:"Enabled"},VMe={Disabled:"Disabled",Enabled:"Enabled"},WMe={Disabled:"Disabled",Enabled:"Enabled"},KMe={BucketOwner:"BucketOwner",Requester:"Requester"},QMe={Disabled:"Disabled",Enabled:"Enabled"},JMe={Enabled:"Enabled",Suspended:"Suspended"},XMe={http:"http",https:"https"},YMe={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"},ZMe={ENABLED:"ENABLED"},e3e={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"},t3e={Enabled:"Enabled"},r3e={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},n3e={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},o3e={url:"url"},s3e={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},i3e={RESTORE_STATUS:"RestoreStatus"},a3e={STANDARD:"STANDARD"},c3e={Disabled:"Disabled",Enabled:"Enabled"},u3e={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"},l3e={SQL:"SQL"},d3e={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"},p3e={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"},f3e={DOCUMENT:"DOCUMENT",LINES:"LINES"},m3e={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"},h3e={SELECT:"SELECT"};d.AbacStatus$=R$;d.AbortIncompleteMultipartUpload$=e7;d.AbortMultipartUpload$=JZ;d.AbortMultipartUploadCommand=NE;d.AbortMultipartUploadOutput$=t7;d.AbortMultipartUploadRequest$=r7;d.AccelerateConfiguration$=n7;d.AccessControlPolicy$=b$;d.AccessControlTranslation$=o7;d.AccessDenied=K0;d.AccessDenied$=DK;d.AnalyticsAndOperator$=s7;d.AnalyticsConfiguration$=nb;d.AnalyticsExportDestination$=i7;d.AnalyticsFilter$=VZ;d.AnalyticsS3BucketDestination$=a7;d.AnalyticsS3ExportFileFormat=xMe;d.AnnotationConfigurationState=EMe;d.AnnotationDirective=oMe;d.AnnotationEntry$=c7;d.AnnotationLimitExceeded=cE;d.AnnotationLimitExceeded$=OK;d.AnnotationNameTooLong=uE;d.AnnotationNameTooLong$=kK;d.AnnotationTableConfiguration$=u7;d.AnnotationTableConfigurationResult$=l7;d.AnnotationTableConfigurationUpdates$=d7;d.ArchiveStatus=n3e;d.BlockedEncryptionTypes$=p7;d.Bucket$=f7;d.BucketAbacStatus=KNe;d.BucketAccelerateStatus=XNe;d.BucketAlreadyExists=J0;d.BucketAlreadyExists$=$K;d.BucketAlreadyOwnedByYou=X0;d.BucketAlreadyOwnedByYou$=LK;d.BucketCannedACL=pMe;d.BucketInfo$=m7;d.BucketLifecycleConfiguration$=h7;d.BucketLocationConstraint=SMe;d.BucketLoggingStatus$=g7;d.BucketLogsPermission=NMe;d.BucketNamespace=fMe;d.BucketType=hMe;d.BucketVersioningStatus=JMe;d.CORSConfiguration$=P7;d.CORSRule$=I7;d.CSVInput$=U7;d.CSVOutput$=G7;d.Checksum$=S7;d.ChecksumAlgorithm=sMe;d.ChecksumMode=ZMe;d.ChecksumType=tMe;d.CommonPrefix$=y7;d.CompleteMultipartUpload$=XZ;d.CompleteMultipartUploadCommand=ME;d.CompleteMultipartUploadOutput$=R7;d.CompleteMultipartUploadRequest$=b7;d.CompletedMultipartUpload$=E7;d.CompletedPart$=_7;d.CompressionType=d3e;d.Condition$=C7;d.ContinuationEvent$=x7;d.CopyObject$=YZ;d.CopyObjectCommand=BE;d.CopyObjectOutput$=A7;d.CopyObjectRequest$=T7;d.CopyObjectResult$=w7;d.CopyPartResult$=v7;d.CreateBucket$=ZZ;d.CreateBucketCommand=FE;d.CreateBucketConfiguration$=D7;d.CreateBucketMetadataConfiguration$=eee;d.CreateBucketMetadataConfigurationCommand=UE;d.CreateBucketMetadataConfigurationRequest$=O7;d.CreateBucketMetadataTableConfiguration$=tee;d.CreateBucketMetadataTableConfigurationCommand=GE;d.CreateBucketMetadataTableConfigurationRequest$=k7;d.CreateBucketOutput$=$7;d.CreateBucketRequest$=L7;d.CreateMultipartUpload$=ree;d.CreateMultipartUploadCommand=qE;d.CreateMultipartUploadOutput$=N7;d.CreateMultipartUploadRequest$=M7;d.CreateSession$=nee;d.CreateSessionCommand=Nf;d.CreateSessionOutput$=B7;d.CreateSessionRequest$=F7;d.DataRedundancy=mMe;d.DefaultRetention$=q7;d.Delete$=j7;d.DeleteBucket$=oee;d.DeleteBucketAnalyticsConfiguration$=see;d.DeleteBucketAnalyticsConfigurationCommand=jE;d.DeleteBucketAnalyticsConfigurationRequest$=H7;d.DeleteBucketCommand=HE;d.DeleteBucketCors$=iee;d.DeleteBucketCorsCommand=zE;d.DeleteBucketCorsRequest$=z7;d.DeleteBucketEncryption$=aee;d.DeleteBucketEncryptionCommand=VE;d.DeleteBucketEncryptionRequest$=V7;d.DeleteBucketIntelligentTieringConfiguration$=cee;d.DeleteBucketIntelligentTieringConfigurationCommand=WE;d.DeleteBucketIntelligentTieringConfigurationRequest$=W7;d.DeleteBucketInventoryConfiguration$=uee;d.DeleteBucketInventoryConfigurationCommand=KE;d.DeleteBucketInventoryConfigurationRequest$=K7;d.DeleteBucketLifecycle$=lee;d.DeleteBucketLifecycleCommand=QE;d.DeleteBucketLifecycleRequest$=Q7;d.DeleteBucketMetadataConfiguration$=dee;d.DeleteBucketMetadataConfigurationCommand=JE;d.DeleteBucketMetadataConfigurationRequest$=J7;d.DeleteBucketMetadataTableConfiguration$=pee;d.DeleteBucketMetadataTableConfigurationCommand=XE;d.DeleteBucketMetadataTableConfigurationRequest$=X7;d.DeleteBucketMetricsConfiguration$=fee;d.DeleteBucketMetricsConfigurationCommand=YE;d.DeleteBucketMetricsConfigurationRequest$=Y7;d.DeleteBucketOwnershipControls$=mee;d.DeleteBucketOwnershipControlsCommand=ZE;d.DeleteBucketOwnershipControlsRequest$=Z7;d.DeleteBucketPolicy$=hee;d.DeleteBucketPolicyCommand=e_;d.DeleteBucketPolicyRequest$=eQ;d.DeleteBucketReplication$=gee;d.DeleteBucketReplicationCommand=t_;d.DeleteBucketReplicationRequest$=tQ;d.DeleteBucketRequest$=rQ;d.DeleteBucketTagging$=See;d.DeleteBucketTaggingCommand=r_;d.DeleteBucketTaggingRequest$=nQ;d.DeleteBucketWebsite$=yee;d.DeleteBucketWebsiteCommand=n_;d.DeleteBucketWebsiteRequest$=oQ;d.DeleteMarkerEntry$=iQ;d.DeleteMarkerReplication$=aQ;d.DeleteMarkerReplicationStatus=GMe;d.DeleteObject$=Eee;d.DeleteObjectAnnotation$=_ee;d.DeleteObjectAnnotationCommand=o_;d.DeleteObjectAnnotationOutput$=cQ;d.DeleteObjectAnnotationRequest$=uQ;d.DeleteObjectCommand=s_;d.DeleteObjectOutput$=lQ;d.DeleteObjectRequest$=dQ;d.DeleteObjectTagging$=bee;d.DeleteObjectTaggingCommand=a_;d.DeleteObjectTaggingOutput$=mQ;d.DeleteObjectTaggingRequest$=hQ;d.DeleteObjects$=Ree;d.DeleteObjectsCommand=i_;d.DeleteObjectsOutput$=pQ;d.DeleteObjectsRequest$=fQ;d.DeletePublicAccessBlock$=Cee;d.DeletePublicAccessBlockCommand=c_;d.DeletePublicAccessBlockRequest$=gQ;d.DeletedObject$=sQ;d.Destination$=SQ;d.DestinationResult$=yQ;d.EncodingType=o3e;d.Encryption$=EQ;d.EncryptionConfiguration$=_Q;d.EncryptionType=TMe;d.EncryptionTypeMismatch=oE;d.EncryptionTypeMismatch$=NK;d.EndEvent$=RQ;d.ErrorDetails$=Sm;d.ErrorDocument$=C$;d.Event=FMe;d.EventBridgeConfiguration$=CQ;d.EventHoldDuration$=x$;d.ExistingObjectReplication$=xQ;d.ExistingObjectReplicationStatus=HMe;d.ExpirationState=bMe;d.ExpirationStatus=$Me;d.ExpressionType=l3e;d.FileHeaderInfo=p3e;d.FilterRule$=AQ;d.FilterRuleName=UMe;d.GetBucketAbac$=xee;d.GetBucketAbacCommand=u_;d.GetBucketAbacOutput$=TQ;d.GetBucketAbacRequest$=wQ;d.GetBucketAccelerateConfiguration$=Aee;d.GetBucketAccelerateConfigurationCommand=l_;d.GetBucketAccelerateConfigurationOutput$=vQ;d.GetBucketAccelerateConfigurationRequest$=PQ;d.GetBucketAcl$=Tee;d.GetBucketAclCommand=d_;d.GetBucketAclOutput$=IQ;d.GetBucketAclRequest$=DQ;d.GetBucketAnalyticsConfiguration$=wee;d.GetBucketAnalyticsConfigurationCommand=p_;d.GetBucketAnalyticsConfigurationOutput$=OQ;d.GetBucketAnalyticsConfigurationRequest$=kQ;d.GetBucketCors$=vee;d.GetBucketCorsCommand=f_;d.GetBucketCorsOutput$=$Q;d.GetBucketCorsRequest$=LQ;d.GetBucketEncryption$=Pee;d.GetBucketEncryptionCommand=m_;d.GetBucketEncryptionOutput$=NQ;d.GetBucketEncryptionRequest$=MQ;d.GetBucketIntelligentTieringConfiguration$=Iee;d.GetBucketIntelligentTieringConfigurationCommand=h_;d.GetBucketIntelligentTieringConfigurationOutput$=BQ;d.GetBucketIntelligentTieringConfigurationRequest$=FQ;d.GetBucketInventoryConfiguration$=Dee;d.GetBucketInventoryConfigurationCommand=g_;d.GetBucketInventoryConfigurationOutput$=UQ;d.GetBucketInventoryConfigurationRequest$=GQ;d.GetBucketLifecycleConfiguration$=Oee;d.GetBucketLifecycleConfigurationCommand=S_;d.GetBucketLifecycleConfigurationOutput$=qQ;d.GetBucketLifecycleConfigurationRequest$=jQ;d.GetBucketLocation$=kee;d.GetBucketLocationCommand=y_;d.GetBucketLocationOutput$=HQ;d.GetBucketLocationRequest$=zQ;d.GetBucketLogging$=$ee;d.GetBucketLoggingCommand=E_;d.GetBucketLoggingOutput$=VQ;d.GetBucketLoggingRequest$=WQ;d.GetBucketMetadataConfiguration$=Lee;d.GetBucketMetadataConfigurationCommand=__;d.GetBucketMetadataConfigurationOutput$=KQ;d.GetBucketMetadataConfigurationRequest$=QQ;d.GetBucketMetadataConfigurationResult$=JQ;d.GetBucketMetadataTableConfiguration$=Nee;d.GetBucketMetadataTableConfigurationCommand=R_;d.GetBucketMetadataTableConfigurationOutput$=XQ;d.GetBucketMetadataTableConfigurationRequest$=YQ;d.GetBucketMetadataTableConfigurationResult$=ZQ;d.GetBucketMetricsConfiguration$=Mee;d.GetBucketMetricsConfigurationCommand=b_;d.GetBucketMetricsConfigurationOutput$=eJ;d.GetBucketMetricsConfigurationRequest$=tJ;d.GetBucketNotificationConfiguration$=Bee;d.GetBucketNotificationConfigurationCommand=C_;d.GetBucketNotificationConfigurationRequest$=rJ;d.GetBucketOwnershipControls$=Fee;d.GetBucketOwnershipControlsCommand=x_;d.GetBucketOwnershipControlsOutput$=nJ;d.GetBucketOwnershipControlsRequest$=oJ;d.GetBucketPolicy$=Uee;d.GetBucketPolicyCommand=A_;d.GetBucketPolicyOutput$=sJ;d.GetBucketPolicyRequest$=iJ;d.GetBucketPolicyStatus$=Gee;d.GetBucketPolicyStatusCommand=T_;d.GetBucketPolicyStatusOutput$=aJ;d.GetBucketPolicyStatusRequest$=cJ;d.GetBucketReplication$=qee;d.GetBucketReplicationCommand=w_;d.GetBucketReplicationOutput$=uJ;d.GetBucketReplicationRequest$=lJ;d.GetBucketRequestPayment$=jee;d.GetBucketRequestPaymentCommand=v_;d.GetBucketRequestPaymentOutput$=dJ;d.GetBucketRequestPaymentRequest$=pJ;d.GetBucketTagging$=Hee;d.GetBucketTaggingCommand=P_;d.GetBucketTaggingOutput$=fJ;d.GetBucketTaggingRequest$=mJ;d.GetBucketVersioning$=zee;d.GetBucketVersioningCommand=I_;d.GetBucketVersioningOutput$=hJ;d.GetBucketVersioningRequest$=gJ;d.GetBucketWebsite$=Vee;d.GetBucketWebsiteCommand=D_;d.GetBucketWebsiteOutput$=SJ;d.GetBucketWebsiteRequest$=yJ;d.GetObject$=Wee;d.GetObjectAcl$=Kee;d.GetObjectAclCommand=O_;d.GetObjectAclOutput$=EJ;d.GetObjectAclRequest$=_J;d.GetObjectAnnotation$=Qee;d.GetObjectAnnotationCommand=k_;d.GetObjectAnnotationOutput$=RJ;d.GetObjectAnnotationRequest$=bJ;d.GetObjectAttributes$=Jee;d.GetObjectAttributesCommand=$_;d.GetObjectAttributesOutput$=CJ;d.GetObjectAttributesParts$=xJ;d.GetObjectAttributesRequest$=AJ;d.GetObjectCommand=L_;d.GetObjectLegalHold$=Xee;d.GetObjectLegalHoldCommand=N_;d.GetObjectLegalHoldOutput$=TJ;d.GetObjectLegalHoldRequest$=wJ;d.GetObjectLockConfiguration$=Yee;d.GetObjectLockConfigurationCommand=M_;d.GetObjectLockConfigurationOutput$=vJ;d.GetObjectLockConfigurationRequest$=PJ;d.GetObjectOutput$=IJ;d.GetObjectRequest$=DJ;d.GetObjectRetention$=Zee;d.GetObjectRetentionCommand=B_;d.GetObjectRetentionOutput$=OJ;d.GetObjectRetentionRequest$=kJ;d.GetObjectTagging$=ete;d.GetObjectTaggingCommand=F_;d.GetObjectTaggingOutput$=$J;d.GetObjectTaggingRequest$=LJ;d.GetObjectTorrent$=tte;d.GetObjectTorrentCommand=U_;d.GetObjectTorrentOutput$=NJ;d.GetObjectTorrentRequest$=MJ;d.GetPublicAccessBlock$=rte;d.GetPublicAccessBlockCommand=G_;d.GetPublicAccessBlockOutput$=BJ;d.GetPublicAccessBlockRequest$=FJ;d.GlacierJobParameters$=UJ;d.Grant$=GJ;d.Grantee$=A$;d.HeadBucket$=nte;d.HeadBucketCommand=Rl;d.HeadBucketOutput$=qJ;d.HeadBucketRequest$=jJ;d.HeadObject$=ote;d.HeadObjectCommand=bl;d.HeadObjectOutput$=HJ;d.HeadObjectRequest$=zJ;d.IdempotencyParameterMismatch=pE;d.IdempotencyParameterMismatch$=MK;d.IndexDocument$=T$;d.Initiator$=w$;d.InputSerialization$=v$;d.IntelligentTieringAccessTier=vMe;d.IntelligentTieringAndOperator$=VJ;d.IntelligentTieringConfiguration$=ob;d.IntelligentTieringFilter$=WJ;d.IntelligentTieringStatus=wMe;d.InvalidAnnotationName=lE;d.InvalidAnnotationName$=BK;d.InvalidObjectState=eE;d.InvalidObjectState$=FK;d.InvalidPrefix=nE;d.InvalidPrefix$=UK;d.InvalidRequest=sE;d.InvalidRequest$=GK;d.InvalidWriteOffset=iE;d.InvalidWriteOffset$=qK;d.InventoryConfiguration$=sb;d.InventoryConfigurationState=RMe;d.InventoryDestination$=KJ;d.InventoryEncryption$=QJ;d.InventoryFilter$=JJ;d.InventoryFormat=PMe;d.InventoryFrequency=OMe;d.InventoryIncludedObjectVersions=IMe;d.InventoryOptionalField=DMe;d.InventoryS3BucketDestination$=XJ;d.InventorySchedule$=YJ;d.InventoryTableConfiguration$=ZJ;d.InventoryTableConfigurationResult$=eX;d.InventoryTableConfigurationUpdates$=tX;d.JSONInput$=sX;d.JSONOutput$=iX;d.JSONType=f3e;d.JournalTableConfiguration$=rX;d.JournalTableConfigurationResult$=nX;d.JournalTableConfigurationUpdates$=oX;d.LambdaFunctionConfiguration$=aX;d.LifecycleExpiration$=cX;d.LifecycleRule$=uX;d.LifecycleRuleAndOperator$=lX;d.LifecycleRuleFilter$=dX;d.ListBucketAnalyticsConfigurations$=ste;d.ListBucketAnalyticsConfigurationsCommand=q_;d.ListBucketAnalyticsConfigurationsOutput$=pX;d.ListBucketAnalyticsConfigurationsRequest$=fX;d.ListBucketIntelligentTieringConfigurations$=ite;d.ListBucketIntelligentTieringConfigurationsCommand=j_;d.ListBucketIntelligentTieringConfigurationsOutput$=mX;d.ListBucketIntelligentTieringConfigurationsRequest$=hX;d.ListBucketInventoryConfigurations$=ate;d.ListBucketInventoryConfigurationsCommand=H_;d.ListBucketInventoryConfigurationsOutput$=gX;d.ListBucketInventoryConfigurationsRequest$=SX;d.ListBucketMetricsConfigurations$=cte;d.ListBucketMetricsConfigurationsCommand=z_;d.ListBucketMetricsConfigurationsOutput$=yX;d.ListBucketMetricsConfigurationsRequest$=EX;d.ListBuckets$=ute;d.ListBucketsCommand=Mf;d.ListBucketsOutput$=_X;d.ListBucketsRequest$=RX;d.ListDirectoryBuckets$=lte;d.ListDirectoryBucketsCommand=Bf;d.ListDirectoryBucketsOutput$=bX;d.ListDirectoryBucketsRequest$=CX;d.ListMultipartUploads$=dte;d.ListMultipartUploadsCommand=V_;d.ListMultipartUploadsOutput$=xX;d.ListMultipartUploadsRequest$=AX;d.ListObjectAnnotations$=pte;d.ListObjectAnnotationsCommand=Ff;d.ListObjectAnnotationsOutput$=TX;d.ListObjectAnnotationsRequest$=wX;d.ListObjectVersions$=hte;d.ListObjectVersionsCommand=K_;d.ListObjectVersionsOutput$=OX;d.ListObjectVersionsRequest$=kX;d.ListObjects$=fte;d.ListObjectsCommand=W_;d.ListObjectsOutput$=vX;d.ListObjectsRequest$=PX;d.ListObjectsV2$=mte;d.ListObjectsV2Command=Uf;d.ListObjectsV2Output$=IX;d.ListObjectsV2Request$=DX;d.ListParts$=gte;d.ListPartsCommand=Gf;d.ListPartsOutput$=$X;d.ListPartsRequest$=LX;d.LocationInfo$=NX;d.LocationType=gMe;d.LoggingEnabled$=P$;d.MFADelete=c3e;d.MFADeleteStatus=QMe;d.MetadataConfiguration$=MX;d.MetadataConfigurationResult$=BX;d.MetadataDirective=iMe;d.MetadataEntry$=FX;d.MetadataTableConfiguration$=UX;d.MetadataTableConfigurationResult$=GX;d.MetadataTableEncryptionConfiguration$=nd;d.Metrics$=qX;d.MetricsAndOperator$=jX;d.MetricsConfiguration$=ib;d.MetricsFilter$=WZ;d.MetricsStatus=qMe;d.MultipartUpload$=HX;d.NoSuchAnnotation=tE;d.NoSuchAnnotation$=jK;d.NoSuchBucket=Y0;d.NoSuchBucket$=HK;d.NoSuchKey=Z0;d.NoSuchKey$=zK;d.NoSuchUpload=W0;d.NoSuchUpload$=VK;d.NoncurrentVersionExpiration$=zX;d.NoncurrentVersionTransition$=VX;d.NotFound=rE;d.NotFound$=WK;d.NotificationConfiguration$=I$;d.NotificationConfigurationFilter$=ab;d.ObjectAlreadyInActiveTierError=fE;d.ObjectAlreadyInActiveTierError$=KK;d.ObjectAttributes=e3e;d.ObjectCannedACL=nMe;d.ObjectEncryption$=KZ;d.ObjectIdentifier$=KX;d.ObjectLockConfiguration$=D$;d.ObjectLockEnabled=t3e;d.ObjectLockEventHold=aMe;d.ObjectLockLegalHold$=O$;d.ObjectLockLegalHoldStatus=cMe;d.ObjectLockMode=uMe;d.ObjectLockRetention$=k$;d.ObjectLockRetentionMode=r3e;d.ObjectLockRule$=QX;d.ObjectNotInActiveTierError=Q0;d.ObjectNotInActiveTierError$=QK;d.ObjectOwnership=yMe;d.ObjectPart$=JX;d.ObjectStorageClass=s3e;d.ObjectVersion$=XX;d.ObjectVersionStorageClass=a3e;d.OptionalObjectAttributes=i3e;d.OutputLocation$=YX;d.OutputSerialization$=$$;d.Owner$=Bs;d.OwnerOverride=eMe;d.OwnershipControls$=L$;d.OwnershipControlsRule$=ZX;d.ParquetInput$=eY;d.Part$=tY;d.PartitionDateSource=MMe;d.PartitionedPrefix$=rY;d.Payer=KMe;d.Permission=ZNe;d.PolicyStatus$=nY;d.Progress$=oY;d.ProgressEvent$=sY;d.Protocol=XMe;d.PublicAccessBlockConfiguration$=N$;d.PutBucketAbac$=Ste;d.PutBucketAbacCommand=Q_;d.PutBucketAbacRequest$=iY;d.PutBucketAccelerateConfiguration$=yte;d.PutBucketAccelerateConfigurationCommand=J_;d.PutBucketAccelerateConfigurationRequest$=aY;d.PutBucketAcl$=Ete;d.PutBucketAclCommand=X_;d.PutBucketAclRequest$=cY;d.PutBucketAnalyticsConfiguration$=_te;d.PutBucketAnalyticsConfigurationCommand=Y_;d.PutBucketAnalyticsConfigurationRequest$=uY;d.PutBucketCors$=Rte;d.PutBucketCorsCommand=Z_;d.PutBucketCorsRequest$=lY;d.PutBucketEncryption$=bte;d.PutBucketEncryptionCommand=eR;d.PutBucketEncryptionRequest$=dY;d.PutBucketIntelligentTieringConfiguration$=Cte;d.PutBucketIntelligentTieringConfigurationCommand=tR;d.PutBucketIntelligentTieringConfigurationRequest$=pY;d.PutBucketInventoryConfiguration$=xte;d.PutBucketInventoryConfigurationCommand=rR;d.PutBucketInventoryConfigurationRequest$=fY;d.PutBucketLifecycleConfiguration$=Ate;d.PutBucketLifecycleConfigurationCommand=nR;d.PutBucketLifecycleConfigurationOutput$=mY;d.PutBucketLifecycleConfigurationRequest$=hY;d.PutBucketLogging$=Tte;d.PutBucketLoggingCommand=oR;d.PutBucketLoggingRequest$=gY;d.PutBucketMetricsConfiguration$=wte;d.PutBucketMetricsConfigurationCommand=sR;d.PutBucketMetricsConfigurationRequest$=SY;d.PutBucketNotificationConfiguration$=vte;d.PutBucketNotificationConfigurationCommand=iR;d.PutBucketNotificationConfigurationRequest$=yY;d.PutBucketOwnershipControls$=Pte;d.PutBucketOwnershipControlsCommand=aR;d.PutBucketOwnershipControlsRequest$=EY;d.PutBucketPolicy$=Ite;d.PutBucketPolicyCommand=cR;d.PutBucketPolicyRequest$=_Y;d.PutBucketReplication$=Dte;d.PutBucketReplicationCommand=uR;d.PutBucketReplicationRequest$=RY;d.PutBucketRequestPayment$=Ote;d.PutBucketRequestPaymentCommand=lR;d.PutBucketRequestPaymentRequest$=bY;d.PutBucketTagging$=kte;d.PutBucketTaggingCommand=dR;d.PutBucketTaggingRequest$=CY;d.PutBucketVersioning$=$te;d.PutBucketVersioningCommand=pR;d.PutBucketVersioningRequest$=xY;d.PutBucketWebsite$=Lte;d.PutBucketWebsiteCommand=fR;d.PutBucketWebsiteRequest$=AY;d.PutObject$=Nte;d.PutObjectAcl$=Mte;d.PutObjectAclCommand=mR;d.PutObjectAclOutput$=TY;d.PutObjectAclRequest$=wY;d.PutObjectAnnotation$=Bte;d.PutObjectAnnotationCommand=hR;d.PutObjectAnnotationOutput$=vY;d.PutObjectAnnotationRequest$=PY;d.PutObjectCommand=gR;d.PutObjectLegalHold$=Fte;d.PutObjectLegalHoldCommand=SR;d.PutObjectLegalHoldOutput$=IY;d.PutObjectLegalHoldRequest$=DY;d.PutObjectLockConfiguration$=Ute;d.PutObjectLockConfigurationCommand=yR;d.PutObjectLockConfigurationOutput$=OY;d.PutObjectLockConfigurationRequest$=kY;d.PutObjectOutput$=$Y;d.PutObjectRequest$=LY;d.PutObjectRetention$=Gte;d.PutObjectRetentionCommand=ER;d.PutObjectRetentionOutput$=NY;d.PutObjectRetentionRequest$=MY;d.PutObjectTagging$=qte;d.PutObjectTaggingCommand=_R;d.PutObjectTaggingOutput$=BY;d.PutObjectTaggingRequest$=FY;d.PutPublicAccessBlock$=jte;d.PutPublicAccessBlockCommand=RR;d.PutPublicAccessBlockRequest$=UY;d.QueueConfiguration$=GY;d.QuoteFields=m3e;d.RecordExpiration$=cb;d.RecordsEvent$=qY;d.Redirect$=jY;d.RedirectAllRequestsTo$=M$;d.RenameObject$=Hte;d.RenameObjectCommand=bR;d.RenameObjectOutput$=HY;d.RenameObjectRequest$=zY;d.ReplicaModifications$=VY;d.ReplicaModificationsStatus=zMe;d.ReplicationConfiguration$=B$;d.ReplicationRule$=WY;d.ReplicationRuleAndOperator$=KY;d.ReplicationRuleFilter$=QY;d.ReplicationRuleStatus=WMe;d.ReplicationStatus=YMe;d.ReplicationTime$=JY;d.ReplicationTimeStatus=jMe;d.ReplicationTimeValue$=F$;d.RequestCharged=QNe;d.RequestPayer=JNe;d.RequestPaymentConfiguration$=XY;d.RequestProgress$=YY;d.RestoreObject$=zte;d.RestoreObjectCommand=CR;d.RestoreObjectOutput$=ZY;d.RestoreObjectRequest$=eZ;d.RestoreRequest$=tZ;d.RestoreRequestType=h3e;d.RestoreStatus$=U$;d.RoutingRule$=rZ;d.S3=OR;d.S3Client=ii;d.S3KeyFilter$=nZ;d.S3Location$=oZ;d.S3ServiceException=Xe;d.S3ServiceException$=IK;d.S3TablesBucketType=BMe;d.S3TablesDestination$=sZ;d.S3TablesDestinationResult$=iZ;d.SSEKMS$=gZ;d.SSEKMSEncryption$=yZ;d.SSES3$=EZ;d.ScanRange$=aZ;d.SelectObjectContent$=Vte;d.SelectObjectContentCommand=xR;d.SelectObjectContentEventStream$=QZ;d.SelectObjectContentOutput$=cZ;d.SelectObjectContentRequest$=uZ;d.SelectParameters$=lZ;d.ServerSideEncryption=rMe;d.ServerSideEncryptionByDefault$=dZ;d.ServerSideEncryptionConfiguration$=G$;d.ServerSideEncryptionRule$=pZ;d.SessionCredentials$=fZ;d.SessionMode=CMe;d.SimplePrefix$=mZ;d.SourceSelectionCriteria$=hZ;d.SseKmsEncryptedObjects$=SZ;d.SseKmsEncryptedObjectsStatus=VMe;d.Stats$=_Z;d.StatsEvent$=RZ;d.StorageClass=lMe;d.StorageClassAnalysis$=bZ;d.StorageClassAnalysisDataExport$=CZ;d.StorageClassAnalysisSchemaVersion=AMe;d.TableSseAlgorithm=_Me;d.Tag$=Tc;d.Tagging$=ub;d.TaggingDirective=dMe;d.TargetGrant$=xZ;d.TargetObjectKeyFormat$=AZ;d.Tier=u3e;d.Tiering$=TZ;d.TooManyParts=aE;d.TooManyParts$=JK;d.TopicConfiguration$=wZ;d.Transition$=vZ;d.TransitionDefaultMinimumObjectSize=LMe;d.TransitionStorageClass=kMe;d.Type=YNe;d.UnsupportedMediaType=dE;d.UnsupportedMediaType$=XK;d.UpdateBucketMetadataAnnotationTableConfiguration$=Wte;d.UpdateBucketMetadataAnnotationTableConfigurationCommand=AR;d.UpdateBucketMetadataAnnotationTableConfigurationRequest$=PZ;d.UpdateBucketMetadataInventoryTableConfiguration$=Kte;d.UpdateBucketMetadataInventoryTableConfigurationCommand=TR;d.UpdateBucketMetadataInventoryTableConfigurationRequest$=IZ;d.UpdateBucketMetadataJournalTableConfiguration$=Qte;d.UpdateBucketMetadataJournalTableConfigurationCommand=wR;d.UpdateBucketMetadataJournalTableConfigurationRequest$=DZ;d.UpdateObjectEncryption$=Jte;d.UpdateObjectEncryptionCommand=vR;d.UpdateObjectEncryptionRequest$=OZ;d.UpdateObjectEncryptionResponse$=kZ;d.UploadPart$=Xte;d.UploadPartCommand=PR;d.UploadPartCopy$=Yte;d.UploadPartCopyCommand=IR;d.UploadPartCopyOutput$=$Z;d.UploadPartCopyRequest$=LZ;d.UploadPartOutput$=NZ;d.UploadPartRequest$=MZ;d.VersioningConfiguration$=BZ;d.WebsiteConfiguration$=FZ;d.WriteGetObjectResponse$=Zte;d.WriteGetObjectResponseCommand=DR;d.WriteGetObjectResponseRequest$=UZ;d._Error$=bQ;d._Object$=WX;d.errorTypeRegistries=YK;d.paginateListBuckets=ere;d.paginateListDirectoryBuckets=tre;d.paginateListObjectAnnotations=rre;d.paginateListObjectsV2=nre;d.paginateListParts=ore;d.waitForBucketExists=GNe;d.waitForBucketNotExists=qNe;d.waitForObjectExists=jNe;d.waitForObjectNotExists=HNe;d.waitUntilBucketExists=ire;d.waitUntilBucketNotExists=cre;d.waitUntilObjectExists=lre;d.waitUntilObjectNotExists=pre});var n1=Ct(T=>{var{awsEndpointFunctions:y3e,emitWarningIfUnsupportedVersion:E3e,createDefaultUserAgentProvider:_3e,NODE_APP_ID_CONFIG_OPTIONS:R3e,getAwsRegionExtensionConfiguration:b3e,resolveAwsRegionExtensionConfiguration:C3e,resolveUserAgentConfig:x3e,resolveHostHeaderConfig:A3e,getUserAgentPlugin:T3e,getHostHeaderPlugin:w3e,getLoggerPlugin:v3e,getRecursionDetectionPlugin:P3e}=(ye(),F($n)),{getHttpAuthSchemeEndpointRuleSetPlugin:I3e,DefaultIdentityProviderConfig:D3e,getHttpSigningPlugin:O3e,createPaginator:q$}=(hr(),F(_S)),{normalizeProvider:Are,getSmithyContext:k3e,ServiceException:$3e,NoOpLogger:L3e,emitWarningIfUnsupportedVersion:N3e,loadConfigsForDefaultMode:M3e,getDefaultExtensionConfiguration:B3e,resolveDefaultRuntimeConfig:F3e,Client:Tre,makeBuilder:U3e,createWaiter:Kn,checkExceptions:id,WaiterState:rt,createAggregatedClient:G3e}=(Q(),F(bi)),{Command:q3e}=(Q(),F(bi));T.$Command=q3e;T.__Client=Tre;var{resolveDefaultsModeConfig:j3e,loadConfig:wc,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:H3e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:z3e,NODE_REGION_CONFIG_OPTIONS:V3e,NODE_REGION_CONFIG_FILE_OPTIONS:W3e,resolveRegionConfig:K3e}=(Re(),F(en)),{BinaryDecisionDiagram:Q3e,EndpointCache:J3e,decideEndpoint:X3e,customEndpointFunctions:Y3e,resolveEndpointConfig:Z3e,getEndpointPlugin:eBe}=(Ge(),F(ug)),{parseUrl:tBe,getHttpHandlerExtensionConfiguration:rBe,resolveHttpHandlerRuntimeConfig:nBe,getContentLengthPlugin:oBe}=(z(),F(Qs)),{DEFAULT_RETRY_MODE:sBe,NODE_RETRY_MODE_CONFIG_OPTIONS:iBe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:aBe,resolveRetryConfig:cBe,getRetryPlugin:uBe}=(on(),F(pS)),{TypeRegistry:wre,getSchemaSerdePlugin:lBe}=(ne(),F(uh)),{resolveAwsSdkSigV4Config:dBe,AwsSdkSigV4Signer:pBe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:fBe}=(gr(),F(Dp)),{defaultProvider:mBe}=B0(),{toUtf8:hBe,fromUtf8:gBe,toBase64:SBe,fromBase64:yBe,calculateBodyLength:EBe}=(j(),F(Pi)),{streamCollector:_Be,NodeHttpHandler:RBe}=Zs(),{AwsRestJsonProtocol:bBe}=(Yi(),F(nD)),{Sha256:CBe}=(In(),F(wg)),xBe=async(t,e,r)=>({operation:k3e(e).operation,region:await Are(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ABe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var TBe=t=>{let e=[];switch(t.operation){default:e.push(ABe(t))}return e},wBe=t=>{let e=dBe(t);return Object.assign(e,{authSchemePreference:Are(t.authSchemePreference??[])})},vBe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),PBe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},IBe="3.1151.0",DBe={version:IBe},Em="ref",vc=-1,pb=!0,yre="isSet",vre="PartitionResult",fb="booleanEquals",Ere="getAttr",_re={[Em]:"Endpoint"},Rre={[Em]:vre},ym={},bre=[{[Em]:"Region"}],Cre={conditions:[[yre,[_re]],[yre,bre],["aws.partition",bre,vre],[fb,[{[Em]:"UseFIPS"},pb]],[fb,[{[Em]:"UseDualStack"},pb]],[fb,[{fn:Ere,argv:[Rre,"supportsDualStack"]},pb]],[fb,[{fn:Ere,argv:[Rre,"supportsFIPS"]},pb]]],results:[[vc],[vc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[vc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[_re,ym],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ym],[vc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",ym],[vc,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",ym],[vc,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",ym],[vc,"Invalid Configuration: Missing Region"]]},OBe=2,bn=1e8,kBe=new Int32Array([-1,1,-1,0,12,3,1,4,bn+11,2,5,bn+11,3,8,6,4,7,bn+10,5,bn+8,bn+9,4,10,9,6,bn+6,bn+7,5,11,bn+5,6,bn+4,bn+5,3,bn+1,13,4,bn+2,bn+3]),$Be=Q3e.from(kBe,OBe,Cre.conditions,Cre.results),LBe=new J3e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),NBe=(t,e={})=>LBe.get(t,()=>X3e($Be,{endpointParams:t,logger:e.logger}));Y3e.aws=y3e;var Do=class t extends $3e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb#LambdaWebServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},mb=class t extends Do{static shapeId="com.amazonaws.lambdaweb#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hb=class t extends Do{static shapeId="com.amazonaws.lambdaweb#ConflictException";name="ConflictException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},gb=class t extends Do{static shapeId="com.amazonaws.lambdaweb#InternalServerException";name="InternalServerException";$fault="server";$retryable={};constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Sb=class t extends Do{static shapeId="com.amazonaws.lambdaweb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},yb=class t extends Do{static shapeId="com.amazonaws.lambdaweb#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";resourceId;resourceType;serviceCode;quotaCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},Eb=class t extends Do{static shapeId="com.amazonaws.lambdaweb#ThrottlingException";name="ThrottlingException";$fault="client";$retryable={throttling:!0};retryAfterSeconds;serviceCode;quotaCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},_b=class t extends Do{static shapeId="com.amazonaws.lambdaweb#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},MBe="AccessDeniedException",BBe="AccountQuotas",FBe="AccountUsage",UBe="BuildConfig",GBe="CodeConfig",qBe="ConflictException",jBe="CreateWebFunction",HBe="CreateWebFunctionEndpoint",zBe="CreateWebFunctionEndpointRequest",VBe="CreateWebFunctionEndpointResponse",WBe="CreateWebFunctionRequest",KBe="CreateWebFunctionRevisionRequest",QBe="CreateWebFunctionRevisionResponse",JBe="CreateWebFunctionResponse",XBe="CreateWebFunctionRevision",YBe="DeleteResourcePolicy",ZBe="DeleteResourcePolicyRequest",e2e="DeleteWebFunction",t2e="DeleteWebFunctionEndpoint",r2e="DeleteWebFunctionEndpointRequest",n2e="DeleteWebFunctionRequest",o2e="DeleteWebFunctionRevisionRequest",s2e="DeleteWebFunctionRevision",i2e="EndpointConfig",a2e="EnvironmentVariables",c2e="Filter",u2e="FunctionEndpointSummary",l2e="FunctionEndpointSummaryList",d2e="FilterList",p2e="FunctionRevisionSummary",f2e="FunctionRevisionSummaryList",m2e="FunctionSummary",h2e="FunctionSummaryList",g2e="GetResourcePolicy",S2e="GetResourcePolicyRequest",y2e="GetResourcePolicyResponse",E2e="GetWebAccountSettings",_2e="GetWebAccountSettingsRequest",R2e="GetWebAccountSettingsResponse",b2e="GetWebFunction",C2e="GetWebFunctionEndpoint",x2e="GetWebFunctionEndpointRequest",A2e="GetWebFunctionEndpointResponse",T2e="GetWebFunctionRequest",w2e="GetWebFunctionRevisionRequest",v2e="GetWebFunctionRevisionResponse",P2e="GetWebFunctionResponse",I2e="GetWebFunctionRevision",D2e="InternalServerException",O2e="LoggingConfig",k2e="ListTags",$2e="ListTagsRequest",L2e="ListTagsResponse",N2e="ListWebFunctions",M2e="ListWebFunctionEndpoints",B2e="ListWebFunctionEndpointsRequest",F2e="ListWebFunctionEndpointsResponse",U2e="ListWebFunctionsRequest",G2e="ListWebFunctionRevisionsRequest",q2e="ListWebFunctionRevisionsResponse",j2e="ListWebFunctionsResponse",H2e="ListWebFunctionRevisions",j$="Policy",z2e="PutResourcePolicy",V2e="PutResourcePolicyRequest",W2e="PutResourcePolicyResponse",K2e="Retry-After",Q2e="RevisionConfig",J2e="RuntimeConfig",X2e="RegionalEndpoint",Y2e="RevisionError",Z2e="RegionalEndpoints",eFe="RevisionErrors",Nb="RevisionId",tFe="ResourceNotFoundException",rFe="RevisionWeight",nFe="RevisionWeightList",oFe="ScalingConfig",sFe="ServiceConfig",iFe="S3Object",aFe="ServiceQuotaExceededException",Pre="Tags",cFe="TelemetryConfig",uFe="ThrottleConfig",lFe="ThrottlingException",dFe="TagResource",pFe="TagResourceRequest",fFe="UntagResource",mFe="UntagResourceRequest",hFe="UpdateWebFunctionEndpoint",gFe="UpdateWebFunctionEndpointRequest",SFe="UpdateWebFunctionEndpointResponse",yFe="ValidationException",EFe="attribute",Dc="autoDeploymentMode",_Fe="applicationLogLevel",RFe="accountQuotas",ba="authType",bFe="accountUsage",CFe="bucket",Mb="buildConfig",ad="client",Fs="createdAt",xFe="codeConfig",Qn="description",xm="domainName",Oc="error",Bb="endpointArn",AFe="endpointConfig",TFe="errorCode",wFe="errorMessage",pi="endpointName",vFe="egressNetworkConnectorArn",PFe="executionRoleArn",cd="endpointType",IFe="environmentVariables",DFe="endpoint",OFe="endpoints",Ire="errors",H$="filters",Ca="functionArn",kFe="functionCount",Kr="functionName",$Fe="functions",wt="http",kc="httpError",LFe="httpHeader",Dre="httpQuery",Ra="jsonName",NFe="key",Fb="kmsKeyArn",MFe="loggingConfig",BFe="logGroup",$c="message",FFe="maxConcurrencyPerEnvironment",UFe="maxEnvironments",GFe="maxEndpointsPerFunction",z$="maxResults",qFe="maxRevisionsPerFunction",jFe="maxTotalArmVCpus",HFe="maxTotalRateLimit",zFe="name",ud="nextToken",V$="policy",Ore="quotaCode",ld="regions",W$="revisionArn",VFe="retryAfterSeconds",K$="resourceArn",WFe="runtimeConfig",KFe="revisionConfig",Q$="regionalEndpoints",J$="resourceId",Us="revisionId",QFe="rateLimit",X$="resourceType",Lc="revisionWeights",JFe="revision",Y$="resource",XFe="revisions",YFe="runtime",kre="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb",$re="serviceCode",xa="scalingConfig",Ub="serviceConfig",ZFe="systemLogLevel",eUe="s3Object",Oo="stateReason",tUe="server",ko="state",Gb="tags",Aa="throttleConfig",rUe="telemetryConfig",xre="tagKeys",nUe="timeoutSeconds",Nc="updatedAt",Am="updateStatus",Tm="updateStatusReason",oUe="values",sUe="versionId",iUe="weight",B="com.amazonaws.lambdaweb",Lre=new wre(kre),Nre=[-3,kre,"LambdaWebServiceException",0,[],[]];Lre.registerError(Nre,Do);var Ta=new wre(B),Mre=[-3,B,MBe,{[Oc]:ad,[kc]:403},[$c],[0],1];Ta.registerError(Mre,mb);var Bre=[-3,B,qBe,{[Oc]:ad,[kc]:409},[$c,J$,X$],[0,0,0],1];Ta.registerError(Bre,hb);var Fre=[-3,B,D2e,{[Oc]:tUe,[kc]:500},[$c],[0]];Ta.registerError(Fre,gb);var Ure=[-3,B,tFe,{[Oc]:ad,[kc]:404},[$c,J$,X$],[0,0,0],1];Ta.registerError(Ure,Sb);var Gre=[-3,B,aFe,{[Oc]:ad,[kc]:402},[$c,J$,X$,$re,Ore],[0,0,0,0,0],1];Ta.registerError(Gre,yb);var qre=[-3,B,lFe,{[Oc]:ad,[kc]:429},[$c,VFe,$re,Ore],[0,[1,{[LFe]:K2e}],0,0],1];Ta.registerError(qre,Eb);var jre=[-3,B,yFe,{[Oc]:ad,[kc]:400},[$c],[0],1];Ta.registerError(jre,_b);var Hre=[Lre,Ta],zre=[3,B,BBe,0,[jFe,HFe,qFe,GFe],[1,1,1,1],4],Vre=[3,B,FBe,0,[kFe],[1],1],wm=[3,B,UBe,0,[xFe,WFe],[()=>Wre,()=>One],2],Wre=[3,B,GBe,0,[eUe],[()=>kne],1],Kre=[3,B,zBe,0,[Kr,pi,cd,ba,Qn,Dc,Lc,ld,xa,Aa],[[0,1],0,0,0,0,0,()=>Mc,64,()=>fi,()=>mi],4],Qre=[3,B,VBe,0,[Ca,Bb,pi,cd,xm,ba,Dc,Lc,ld,ko,Oo,Q$,Fs,Nc,Qn,xa,Aa,Am,Tm],[0,0,0,0,0,0,0,()=>Mc,64,0,0,()=>r1,5,5,0,()=>fi,()=>mi,0,0],14],Jre=[3,B,WBe,0,[Kr,KFe,AFe,Gb],[0,[()=>Pne,0],()=>one,128],1],Xre=[3,B,JBe,0,[Kr,Ca,ko,Oo,Fs,Nc,JFe,DFe,Gb],[0,0,0,0,5,5,()=>e1,()=>Z$,128],6],Yre=[3,B,KBe,0,[Kr,Mb,Ub,Qn,Fb],[[0,1],()=>wm,[()=>vm,0],0,0],3],Zre=[3,B,QBe,0,[Ca,W$,Us,Mb,Ub,ko,Oo,Fs,Qn,Fb,Ire],[0,0,0,()=>wm,[()=>vm,0],0,0,5,0,0,()=>Fne],8],ene=[3,B,ZBe,0,[K$,Us],[[0,1],[0,{[Dre]:Nb}]],1],tne=[3,B,r2e,0,[Kr,pi],[[0,1],[0,1]],2],rne=[3,B,n2e,0,[Kr],[[0,1]],1],nne=[3,B,o2e,0,[Kr,Us],[[0,1],[0,1]],2],one=[3,B,i2e,0,[pi,cd,ba,Qn,Dc,ld,xa,Aa],[0,0,0,0,0,64,()=>fi,()=>mi],3],sne=[3,B,c2e,0,[zFe,oUe],[0,64],2],Z$=[3,B,u2e,0,[Bb,pi,cd,xm,ba,Dc,Lc,ld,ko,Oo,Fs,Nc,Qn,xa,Aa,Am,Tm],[0,0,0,0,0,0,()=>Mc,64,0,0,5,5,0,()=>fi,()=>mi,0,0],12],e1=[3,B,p2e,0,[W$,Us,ko,Oo,Fs,Qn],[0,0,0,0,5,0],5],ine=[3,B,m2e,0,[Kr,Ca,ko,Oo,Fs,Nc],[0,0,0,0,5,5],6],ane=[3,B,S2e,0,[K$],[[0,1]],1],cne=[3,B,y2e,0,[V$,Us],[[0,{[Ra]:j$}],[0,{[Ra]:Nb}]],2],une=[3,B,_2e,0,[],[]],lne=[3,B,R2e,0,[RFe,bFe],[()=>zre,()=>Vre],2],dne=[3,B,x2e,0,[Kr,pi],[[0,1],[0,1]],2],pne=[3,B,A2e,0,[Ca,Bb,pi,cd,xm,ba,Dc,Lc,ld,ko,Oo,Q$,Fs,Nc,Qn,xa,Aa,Am,Tm],[0,0,0,0,0,0,0,()=>Mc,64,0,0,()=>r1,5,5,0,()=>fi,()=>mi,0,0],14],fne=[3,B,T2e,0,[Kr],[[0,1]],1],mne=[3,B,P2e,0,[Kr,Ca,ko,Oo,Fs,Nc],[0,0,0,0,5,5],6],hne=[3,B,w2e,0,[Kr,Us],[[0,1],[0,1]],2],gne=[3,B,v2e,0,[Ca,W$,Us,Mb,Ub,ko,Oo,Fs,Qn,Fb,Ire],[0,0,0,()=>wm,[()=>vm,0],0,0,5,0,0,()=>Fne],8],Sne=[3,B,$2e,0,[Y$],[[0,1]],1],yne=[3,B,L2e,0,[Gb],[[128,{[Ra]:Pre}]]],Ene=[3,B,B2e,0,[Kr,H$,z$,ud],[[0,1],()=>t1,1,0],1],_ne=[3,B,F2e,0,[OFe,ud],[()=>aUe,0],1],Rne=[3,B,G2e,0,[Kr,H$,z$,ud],[[0,1],()=>t1,1,0],1],bne=[3,B,q2e,0,[XFe,ud],[()=>cUe,0],1],Cne=[3,B,U2e,0,[H$,z$,ud],[()=>t1,1,0]],xne=[3,B,j2e,0,[$Fe,ud],[()=>uUe,0],1],Ane=[3,B,O2e,0,[BFe,_Fe,ZFe],[0,0,0]],Tne=[3,B,V2e,0,[K$,V$,Us],[[0,1],[0,{[Ra]:j$}],[0,{[Ra]:Nb}]],2],wne=[3,B,W2e,0,[V$,Us],[[0,{[Ra]:j$}],[0,{[Ra]:Nb}]],2],vne=[3,B,X2e,0,[ba,Lc,ko,Oo,xm,xa,Aa,Am,Tm],[0,()=>Mc,0,0,0,()=>fi,()=>mi,0,0],4],Pne=[3,B,Q2e,0,[Mb,Ub,Qn,Fb],[()=>wm,[()=>vm,0],0,0],2],Ine=[3,B,Y2e,0,[EFe,TFe,wFe],[0,0,0],3],Dne=[3,B,rFe,0,[Us,iUe],[0,1],2],One=[3,B,J2e,0,[YFe],[0],1],kne=[3,B,iFe,0,[CFe,NFe,sUe],[0,0,0],2],fi=[3,B,oFe,0,[UFe],[1]],vm=[3,B,sFe,0,[PFe,nUe,vFe,FFe,IFe,rUe],[0,1,0,1,[()=>lUe,0],()=>Lne],1],$ne=[3,B,pFe,0,[Y$,Gb],[[0,1],[128,{[Ra]:Pre}]],2],Lne=[3,B,cFe,0,[MFe],[()=>Ane]],mi=[3,B,uFe,0,[QFe],[1]],Nne=[3,B,mFe,0,[Y$,xre],[[0,1],[64,{[Dre]:xre}]],2],Mne=[3,B,gFe,0,[Kr,pi,Qn,ba,Dc,Lc,xa,Aa],[[0,1],[0,1],0,0,0,()=>Mc,()=>fi,()=>mi],2],Bne=[3,B,SFe,0,[Ca,Bb,pi,cd,xm,ba,Dc,Lc,ld,ko,Oo,Q$,Fs,Nc,Qn,xa,Aa,Am,Tm],[0,0,0,0,0,0,0,()=>Mc,64,0,0,()=>r1,5,5,0,()=>fi,()=>mi,0,0],14],dd="unit",t1=[1,B,d2e,0,()=>sne],aUe=[1,B,l2e,0,()=>Z$],cUe=[1,B,f2e,0,()=>e1],uUe=[1,B,h2e,0,()=>ine],Fne=[1,B,eFe,0,()=>Ine],Mc=[1,B,nFe,0,()=>Dne],lUe=[2,B,a2e,8,0,0],r1=[2,B,Z2e,0,0,()=>vne],Une=[9,B,jBe,{[wt]:["PUT","/2025-03-07/web-functions",202]},()=>Jre,()=>Xre],Gne=[9,B,HBe,{[wt]:["PUT","/2025-03-07/web-functions/{functionName}/endpoints",202]},()=>Kre,()=>Qre],qne=[9,B,XBe,{[wt]:["POST","/2025-03-07/web-functions/{functionName}/revisions",202]},()=>Yre,()=>Zre],jne=[9,B,YBe,{[wt]:["DELETE","/2025-03-07/resource-policy/{resourceArn}",204]},()=>ene,()=>dd],Hne=[9,B,e2e,{[wt]:["DELETE","/2025-03-07/web-functions/{functionName}",204]},()=>rne,()=>dd],zne=[9,B,t2e,{[wt]:["DELETE","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",204]},()=>tne,()=>dd],Vne=[9,B,s2e,{[wt]:["DELETE","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",204]},()=>nne,()=>dd],Wne=[9,B,g2e,{[wt]:["GET","/2025-03-07/resource-policy/{resourceArn}",200]},()=>ane,()=>cne],Kne=[9,B,E2e,{[wt]:["GET","/2025-03-07/web-account-settings",200]},()=>une,()=>lne],Qne=[9,B,b2e,{[wt]:["GET","/2025-03-07/web-functions/{functionName}",200]},()=>fne,()=>mne],Jne=[9,B,C2e,{[wt]:["GET","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",200]},()=>dne,()=>pne],Xne=[9,B,I2e,{[wt]:["GET","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",200]},()=>hne,()=>gne],Yne=[9,B,k2e,{[wt]:["GET","/2025-03-07/tags/{resource}",200]},()=>Sne,()=>yne],Zne=[9,B,M2e,{[wt]:["POST","/2025-03-07/web-functions/{functionName}/list-endpoints",200]},()=>Ene,()=>_ne],eoe=[9,B,H2e,{[wt]:["POST","/2025-03-07/web-functions/{functionName}/list-revisions",200]},()=>Rne,()=>bne],toe=[9,B,N2e,{[wt]:["POST","/2025-03-07/web-functions",200]},()=>Cne,()=>xne],roe=[9,B,z2e,{[wt]:["PUT","/2025-03-07/resource-policy/{resourceArn}",200]},()=>Tne,()=>wne],noe=[9,B,dFe,{[wt]:["POST","/2025-03-07/tags/{resource}",204]},()=>$ne,()=>dd],ooe=[9,B,fFe,{[wt]:["DELETE","/2025-03-07/tags/{resource}",204]},()=>Nne,()=>dd],soe=[9,B,hFe,{[wt]:["PATCH","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",202]},()=>Mne,()=>Bne],dUe=t=>({apiVersion:"2025-03-07",base64Decoder:t?.base64Decoder??yBe,base64Encoder:t?.base64Encoder??SBe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??NBe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??TBe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new pBe}],logger:t?.logger??new L3e,protocol:t?.protocol??bBe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambdaweb",errorTypeRegistries:Hre,version:"2025-03-07",serviceTarget:"LambdaWeb"},serviceId:t?.serviceId??"Lambda Web",sha256:t?.sha256??CBe,urlParser:t?.urlParser??tBe,utf8Decoder:t?.utf8Decoder??gBe,utf8Encoder:t?.utf8Encoder??hBe}),pUe=t=>{N3e(process.version);let e=j3e(t),r=()=>e().then(M3e),n=dUe(t);E3e(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??wc(fBe,o),bodyLengthChecker:t?.bodyLengthChecker??EBe,credentialDefaultProvider:t?.credentialDefaultProvider??mBe,defaultUserAgentProvider:t?.defaultUserAgentProvider??_3e({serviceId:n.serviceId,clientVersion:DBe.version}),maxAttempts:t?.maxAttempts??wc(aBe,t),region:t?.region??wc(V3e,{...W3e,...o}),requestHandler:RBe.create(t?.requestHandler??r),retryMode:t?.retryMode??wc({...iBe,default:async()=>(await r()).retryMode||sBe},t),streamCollector:t?.streamCollector??_Be,useDualstackEndpoint:t?.useDualstackEndpoint??wc(z3e,o),useFipsEndpoint:t?.useFipsEndpoint??wc(H3e,o),userAgentAppId:t?.userAgentAppId??wc(R3e,o)}},fUe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},mUe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),hUe=(t,e)=>{let r=Object.assign(b3e(t),B3e(t),rBe(t),fUe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,C3e(r),F3e(r),nBe(r),mUe(r))},Pc=class extends Tre{config;constructor(...[e]){let r=pUe(e||{});super(r),this.initConfig=r;let n=vBe(r),o=x3e(n),s=cBe(o),i=K3e(s),a=A3e(i),c=Z3e(a),u=wBe(c),f=hUe(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(lBe(this.config)),this.middlewareStack.use(T3e(this.config)),this.middlewareStack.use(uBe(this.config)),this.middlewareStack.use(oBe(this.config)),this.middlewareStack.use(w3e(this.config)),this.middlewareStack.use(v3e(this.config)),this.middlewareStack.use(P3e(this.config)),this.middlewareStack.use(I3e(this.config,{httpAuthSchemeParametersProvider:xBe,identityProviderConfigProvider:async m=>new D3e({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(O3e(this.config))}destroy(){super.destroy()}},vt=U3e(PBe,"LambdaWeb","LambdaWebClient",eBe),Pt={},It=(t,e,r,n)=>[],Rb=class extends vt(Pt,It,"CreateWebFunction",Une){},bb=class extends vt(Pt,It,"CreateWebFunctionEndpoint",Gne){},Cb=class extends vt(Pt,It,"CreateWebFunctionRevision",qne){},xb=class extends vt(Pt,It,"DeleteResourcePolicy",jne){},Ab=class extends vt(Pt,It,"DeleteWebFunction",Hne){},Tb=class extends vt(Pt,It,"DeleteWebFunctionEndpoint",zne){},wb=class extends vt(Pt,It,"DeleteWebFunctionRevision",Vne){},vb=class extends vt(Pt,It,"GetResourcePolicy",Wne){},Pb=class extends vt(Pt,It,"GetWebAccountSettings",Kne){},sd=class extends vt(Pt,It,"GetWebFunction",Qne){},Ic=class extends vt(Pt,It,"GetWebFunctionEndpoint",Jne){},_m=class extends vt(Pt,It,"GetWebFunctionRevision",Xne){},Ib=class extends vt(Pt,It,"ListTags",Yne){},Rm=class extends vt(Pt,It,"ListWebFunctionEndpoints",Zne){},bm=class extends vt(Pt,It,"ListWebFunctionRevisions",eoe){},Cm=class extends vt(Pt,It,"ListWebFunctions",toe){},Db=class extends vt(Pt,It,"PutResourcePolicy",roe){},Ob=class extends vt(Pt,It,"TagResource",noe){},kb=class extends vt(Pt,It,"UntagResource",ooe){},$b=class extends vt(Pt,It,"UpdateWebFunctionEndpoint",soe){},ioe=q$(Pc,Rm,"nextToken","nextToken","maxResults"),aoe=q$(Pc,bm,"nextToken","nextToken","maxResults"),coe=q$(Pc,Cm,"nextToken","nextToken","maxResults"),uoe=async(t,e)=>{let r;try{let n=await t.send(new sd(e));r=n;try{if(n.state==="Active")return{state:rt.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:rt.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:rt.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:rt.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:rt.RETRY,reason:r}},gUe=async(t,e)=>Kn({...{minDelay:1,maxDelay:300},...t},e,uoe),loe=async(t,e)=>{let n=await Kn({...{minDelay:1,maxDelay:300},...t},e,uoe);return id(n)},doe=async(t,e)=>{let r;try{let n=await t.send(new sd(e));r=n;try{if(n.state==="Deleting")return{state:rt.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:rt.SUCCESS,reason:r}}return{state:rt.RETRY,reason:r}},SUe=async(t,e)=>Kn({...{minDelay:1,maxDelay:300},...t},e,doe),poe=async(t,e)=>{let n=await Kn({...{minDelay:1,maxDelay:300},...t},e,doe);return id(n)},foe=async(t,e)=>{let r;try{let n=await t.send(new Ic(e));r=n;try{if(n.state==="Active")return{state:rt.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:rt.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:rt.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:rt.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:rt.RETRY,reason:r}},yUe=async(t,e)=>Kn({...{minDelay:1,maxDelay:300},...t},e,foe),moe=async(t,e)=>{let n=await Kn({...{minDelay:1,maxDelay:300},...t},e,foe);return id(n)},hoe=async(t,e)=>{let r;try{let n=await t.send(new Ic(e));r=n;try{if(n.state==="Deleting")return{state:rt.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:rt.SUCCESS,reason:r}}return{state:rt.RETRY,reason:r}},EUe=async(t,e)=>Kn({...{minDelay:1,maxDelay:300},...t},e,hoe),goe=async(t,e)=>{let n=await Kn({...{minDelay:1,maxDelay:300},...t},e,hoe);return id(n)},Soe=async(t,e)=>{let r;try{let n=await t.send(new Ic(e));r=n;try{if(n.updateStatus==="Successful")return{state:rt.SUCCESS,reason:r}}catch{}try{if(n.updateStatus==="Failed")return{state:rt.FAILURE,reason:r}}catch{}try{if(n.updateStatus==="InProgress")return{state:rt.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:rt.RETRY,reason:r}},_Ue=async(t,e)=>Kn({...{minDelay:1,maxDelay:300},...t},e,Soe),yoe=async(t,e)=>{let n=await Kn({...{minDelay:1,maxDelay:300},...t},e,Soe);return id(n)},Eoe=async(t,e)=>{let r;try{let n=await t.send(new _m(e));r=n;try{if(n.state==="Active")return{state:rt.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:rt.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:rt.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:rt.RETRY,reason:r}},RUe=async(t,e)=>Kn({...{minDelay:1,maxDelay:300},...t},e,Eoe),_oe=async(t,e)=>{let n=await Kn({...{minDelay:1,maxDelay:300},...t},e,Eoe);return id(n)},bUe={CreateWebFunctionCommand:Rb,CreateWebFunctionEndpointCommand:bb,CreateWebFunctionRevisionCommand:Cb,DeleteResourcePolicyCommand:xb,DeleteWebFunctionCommand:Ab,DeleteWebFunctionEndpointCommand:Tb,DeleteWebFunctionRevisionCommand:wb,GetResourcePolicyCommand:vb,GetWebAccountSettingsCommand:Pb,GetWebFunctionCommand:sd,GetWebFunctionEndpointCommand:Ic,GetWebFunctionRevisionCommand:_m,ListTagsCommand:Ib,ListWebFunctionEndpointsCommand:Rm,ListWebFunctionRevisionsCommand:bm,ListWebFunctionsCommand:Cm,PutResourcePolicyCommand:Db,TagResourceCommand:Ob,UntagResourceCommand:kb,UpdateWebFunctionEndpointCommand:$b},CUe={paginateListWebFunctionEndpoints:ioe,paginateListWebFunctionRevisions:aoe,paginateListWebFunctions:coe},xUe={waitUntilWebFunctionActive:loe,waitUntilWebFunctionDeleted:poe,waitUntilWebFunctionEndpointActive:moe,waitUntilWebFunctionEndpointDeleted:goe,waitUntilWebFunctionEndpointUpdated:yoe,waitUntilWebFunctionRevisionActive:_oe},Lb=class extends Pc{};G3e(bUe,Lb,{paginators:CUe,waiters:xUe});var AUe={DEBUG:"DEBUG",ERROR:"ERROR",FATAL:"FATAL",INFO:"INFO",TRACE:"TRACE",WARN:"WARN"},TUe={APPLICATION_MANAGED:"ApplicationManaged",IAM_AUTH:"IamAuth"},wUe={DISABLED:"Disabled",LATEST_REVISION:"LatestRevision"},vUe={HOME_REGION:"HomeRegion",MULTI_REGION:"MultiRegion",PER_REGION:"PerRegion"},PUe={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN"},IUe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"},DUe={FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESSFUL:"Successful"},OUe={ACTIVE:"Active",FAILED:"Failed",PENDING:"Pending"},kUe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"};T.AccessDeniedException=mb;T.AccessDeniedException$=Mre;T.AccountQuotas$=zre;T.AccountUsage$=Vre;T.ApplicationLogLevel=AUe;T.AuthType=TUe;T.AutoDeploymentMode=wUe;T.BuildConfig$=wm;T.CodeConfig$=Wre;T.ConflictException=hb;T.ConflictException$=Bre;T.CreateWebFunction$=Une;T.CreateWebFunctionCommand=Rb;T.CreateWebFunctionEndpoint$=Gne;T.CreateWebFunctionEndpointCommand=bb;T.CreateWebFunctionEndpointRequest$=Kre;T.CreateWebFunctionEndpointResponse$=Qre;T.CreateWebFunctionRequest$=Jre;T.CreateWebFunctionResponse$=Xre;T.CreateWebFunctionRevision$=qne;T.CreateWebFunctionRevisionCommand=Cb;T.CreateWebFunctionRevisionRequest$=Yre;T.CreateWebFunctionRevisionResponse$=Zre;T.DeleteResourcePolicy$=jne;T.DeleteResourcePolicyCommand=xb;T.DeleteResourcePolicyRequest$=ene;T.DeleteWebFunction$=Hne;T.DeleteWebFunctionCommand=Ab;T.DeleteWebFunctionEndpoint$=zne;T.DeleteWebFunctionEndpointCommand=Tb;T.DeleteWebFunctionEndpointRequest$=tne;T.DeleteWebFunctionRequest$=rne;T.DeleteWebFunctionRevision$=Vne;T.DeleteWebFunctionRevisionCommand=wb;T.DeleteWebFunctionRevisionRequest$=nne;T.EndpointConfig$=one;T.EndpointState=IUe;T.EndpointType=vUe;T.EndpointUpdateStatus=DUe;T.Filter$=sne;T.FunctionEndpointSummary$=Z$;T.FunctionRevisionSummary$=e1;T.FunctionState=kUe;T.FunctionSummary$=ine;T.GetResourcePolicy$=Wne;T.GetResourcePolicyCommand=vb;T.GetResourcePolicyRequest$=ane;T.GetResourcePolicyResponse$=cne;T.GetWebAccountSettings$=Kne;T.GetWebAccountSettingsCommand=Pb;T.GetWebAccountSettingsRequest$=une;T.GetWebAccountSettingsResponse$=lne;T.GetWebFunction$=Qne;T.GetWebFunctionCommand=sd;T.GetWebFunctionEndpoint$=Jne;T.GetWebFunctionEndpointCommand=Ic;T.GetWebFunctionEndpointRequest$=dne;T.GetWebFunctionEndpointResponse$=pne;T.GetWebFunctionRequest$=fne;T.GetWebFunctionResponse$=mne;T.GetWebFunctionRevision$=Xne;T.GetWebFunctionRevisionCommand=_m;T.GetWebFunctionRevisionRequest$=hne;T.GetWebFunctionRevisionResponse$=gne;T.InternalServerException=gb;T.InternalServerException$=Fre;T.LambdaWeb=Lb;T.LambdaWebClient=Pc;T.LambdaWebServiceException=Do;T.LambdaWebServiceException$=Nre;T.ListTags$=Yne;T.ListTagsCommand=Ib;T.ListTagsRequest$=Sne;T.ListTagsResponse$=yne;T.ListWebFunctionEndpoints$=Zne;T.ListWebFunctionEndpointsCommand=Rm;T.ListWebFunctionEndpointsRequest$=Ene;T.ListWebFunctionEndpointsResponse$=_ne;T.ListWebFunctionRevisions$=eoe;T.ListWebFunctionRevisionsCommand=bm;T.ListWebFunctionRevisionsRequest$=Rne;T.ListWebFunctionRevisionsResponse$=bne;T.ListWebFunctions$=toe;T.ListWebFunctionsCommand=Cm;T.ListWebFunctionsRequest$=Cne;T.ListWebFunctionsResponse$=xne;T.LoggingConfig$=Ane;T.PutResourcePolicy$=roe;T.PutResourcePolicyCommand=Db;T.PutResourcePolicyRequest$=Tne;T.PutResourcePolicyResponse$=wne;T.RegionalEndpoint$=vne;T.ResourceNotFoundException=Sb;T.ResourceNotFoundException$=Ure;T.RevisionConfig$=Pne;T.RevisionError$=Ine;T.RevisionState=OUe;T.RevisionWeight$=Dne;T.RuntimeConfig$=One;T.S3Object$=kne;T.ScalingConfig$=fi;T.ServiceConfig$=vm;T.ServiceQuotaExceededException=yb;T.ServiceQuotaExceededException$=Gre;T.SystemLogLevel=PUe;T.TagResource$=noe;T.TagResourceCommand=Ob;T.TagResourceRequest$=$ne;T.TelemetryConfig$=Lne;T.ThrottleConfig$=mi;T.ThrottlingException=Eb;T.ThrottlingException$=qre;T.UntagResource$=ooe;T.UntagResourceCommand=kb;T.UntagResourceRequest$=Nne;T.UpdateWebFunctionEndpoint$=soe;T.UpdateWebFunctionEndpointCommand=$b;T.UpdateWebFunctionEndpointRequest$=Mne;T.UpdateWebFunctionEndpointResponse$=Bne;T.ValidationException=_b;T.ValidationException$=jre;T.errorTypeRegistries=Hre;T.paginateListWebFunctionEndpoints=ioe;T.paginateListWebFunctionRevisions=aoe;T.paginateListWebFunctions=coe;T.waitForWebFunctionActive=gUe;T.waitForWebFunctionDeleted=SUe;T.waitForWebFunctionEndpointActive=yUe;T.waitForWebFunctionEndpointDeleted=EUe;T.waitForWebFunctionEndpointUpdated=_Ue;T.waitForWebFunctionRevisionActive=RUe;T.waitUntilWebFunctionActive=loe;T.waitUntilWebFunctionDeleted=poe;T.waitUntilWebFunctionEndpointActive=moe;T.waitUntilWebFunctionEndpointDeleted=goe;T.waitUntilWebFunctionEndpointUpdated=yoe;T.waitUntilWebFunctionRevisionActive=_oe});var Ime=Ct(p=>{var{awsEndpointFunctions:$Ue,emitWarningIfUnsupportedVersion:LUe,createDefaultUserAgentProvider:NUe,NODE_APP_ID_CONFIG_OPTIONS:MUe,getAwsRegionExtensionConfiguration:BUe,resolveAwsRegionExtensionConfiguration:FUe,resolveUserAgentConfig:UUe,resolveHostHeaderConfig:GUe,getUserAgentPlugin:qUe,getHostHeaderPlugin:jUe,getLoggerPlugin:HUe,getRecursionDetectionPlugin:zUe}=(ye(),F($n)),{getHttpAuthSchemeEndpointRuleSetPlugin:VUe,DefaultIdentityProviderConfig:WUe,getHttpSigningPlugin:KUe,createPaginator:ur}=(hr(),F(_S)),{normalizeProvider:$oe,getSmithyContext:QUe,ServiceException:JUe,NoOpLogger:XUe,emitWarningIfUnsupportedVersion:YUe,loadConfigsForDefaultMode:ZUe,getDefaultExtensionConfiguration:eGe,resolveDefaultRuntimeConfig:tGe,Client:Loe,makeBuilder:rGe,createAggregatedClient:nGe}=(Q(),F(bi)),{Command:oGe}=(Q(),F(bi));p.$Command=oGe;p.__Client=Loe;var{resolveDefaultsModeConfig:sGe,loadConfig:Bc,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:iGe,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:aGe,NODE_REGION_CONFIG_OPTIONS:cGe,NODE_REGION_CONFIG_FILE_OPTIONS:uGe,resolveRegionConfig:lGe}=(Re(),F(en)),{BinaryDecisionDiagram:dGe,EndpointCache:pGe,decideEndpoint:fGe,customEndpointFunctions:mGe,resolveEndpointConfig:hGe,getEndpointPlugin:gGe}=(Ge(),F(ug)),{eventStreamSerdeProvider:SGe,resolveEventStreamSerdeConfig:yGe}=(Dg(),F(Ig)),{parseUrl:EGe,getHttpHandlerExtensionConfiguration:_Ge,resolveHttpHandlerRuntimeConfig:RGe,getContentLengthPlugin:bGe}=(z(),F(Qs)),{DEFAULT_RETRY_MODE:CGe,NODE_RETRY_MODE_CONFIG_OPTIONS:xGe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:AGe,resolveRetryConfig:TGe,getRetryPlugin:wGe}=(on(),F(pS)),{TypeRegistry:Noe,getSchemaSerdePlugin:vGe}=(ne(),F(uh)),{resolveAwsSdkSigV4Config:PGe,AwsSdkSigV4Signer:IGe,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:DGe}=(gr(),F(Dp)),{defaultProvider:OGe}=B0(),{toUtf8:kGe,fromUtf8:$Ge,toBase64:LGe,fromBase64:NGe,calculateBodyLength:MGe}=(j(),F(Pi)),{streamCollector:BGe,NodeHttpHandler:FGe}=Zs(),{AwsJson1_1Protocol:UGe}=(Yi(),F(nD)),{Sha256:GGe}=(In(),F(wg)),qGe=async(t,e,r)=>({operation:QUe(e).operation,region:await $oe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function jGe(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"logs",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var HGe=t=>{let e=[];switch(t.operation){default:e.push(jGe(t))}return e},zGe=t=>{let e=PGe(t);return Object.assign(e,{authSchemePreference:$oe(t.authSchemePreference??[])})},VGe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"logs"}),WGe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},KGe="3.1151.0",QGe={version:KGe},Pm="ref",Fc=-1,jb=!0,woe="isSet",Moe="PartitionResult",Hb="booleanEquals",voe="getAttr",Poe="stringEquals",Ioe={[Pm]:"Endpoint"},Doe={[Pm]:Moe},o1={[Pm]:"Region"},Uc={},Ooe=[o1],koe={conditions:[[woe,[Ioe]],[woe,Ooe],["aws.partition",Ooe,Moe],[Hb,[{[Pm]:"UseFIPS"},jb]],[Hb,[{[Pm]:"UseDualStack"},jb]],[Hb,[{fn:voe,argv:[Doe,"supportsDualStack"]},jb]],[Hb,[{fn:voe,argv:[Doe,"supportsFIPS"]},jb]],[Poe,[o1,"us-gov-east-1"]],[Poe,[o1,"us-gov-west-1"]]],results:[[Fc],[Fc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Fc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ioe,Uc],["https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Uc],[Fc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://logs.us-gov-east-1.amazonaws.com",Uc],["https://logs.us-gov-west-1.amazonaws.com",Uc],["https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",Uc],[Fc,"FIPS is enabled but this partition does not support FIPS"],["https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",Uc],[Fc,"DualStack is enabled but this partition does not support DualStack"],["https://logs.{Region}.{PartitionResult#dnsSuffix}",Uc],[Fc,"Invalid Configuration: Missing Region"]]},JGe=2,Qr=1e8,XGe=new Int32Array([-1,1,-1,0,14,3,1,4,Qr+13,2,5,Qr+13,3,8,6,4,7,Qr+12,5,Qr+10,Qr+11,4,12,9,6,10,Qr+9,7,Qr+6,11,8,Qr+7,Qr+8,5,13,Qr+5,6,Qr+4,Qr+5,3,Qr+1,15,4,Qr+2,Qr+3]),YGe=dGe.from(XGe,JGe,koe.conditions,koe.results),ZGe=new pGe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),e4e=(t,e={})=>ZGe.get(t,()=>fGe(YGe,{endpointParams:t,logger:e.logger}));mGe.aws=$Ue;var Ye=class t extends JUe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs#CloudWatchLogsServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#OperationAbortedException";name="OperationAbortedException";$fault="client";constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Kb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Qb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Jb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#InternalServerException";name="InternalServerException";$fault="server";constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Xb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ThrottlingException";name="ThrottlingException";$fault="client";constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zb=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#InvalidOperationException";name="InvalidOperationException";$fault="client";constructor(e){super({name:"InvalidOperationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ConflictException";name="ConflictException";$fault="client";constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException";name="ResourceAlreadyExistsException";$fault="client";constructor(e){super({name:"ResourceAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException";name="DataAlreadyAcceptedException";$fault="client";expectedSequenceToken;constructor(e){super({name:"DataAlreadyAcceptedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},sC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#InternalStreamingException";name="InternalStreamingException";$fault="client";constructor(e){super({name:"InternalStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException";name="InvalidSequenceTokenException";$fault="client";expectedSequenceToken;constructor(e){super({name:"InvalidSequenceTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},aC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#UnrecognizedClientException";name="UnrecognizedClientException";$fault="client";constructor(e){super({name:"UnrecognizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#SessionStreamingException";name="SessionStreamingException";$fault="client";constructor(e){super({name:"SessionStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#SessionTimeoutException";name="SessionTimeoutException";$fault="client";constructor(e){super({name:"SessionTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#MalformedQueryException";name="MalformedQueryException";$fault="client";queryCompileError;constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.queryCompileError=e.queryCompileError}},dC=class t extends Ye{static shapeId="com.amazonaws.cloudwatchlogs#TooManyTagsException";name="TooManyTagsException";$fault="client";resourceName;constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceName=e.resourceName}},t4e="Anomaly",r4e="AnomalyDetector",n4e="AccessDeniedException",o4e="AnomalyDetectors",s4e="AllowedFields",i4e="AddKeys",a4e="AddKeyEntry",c4e="AddKeyEntries",u4e="AssociateKmsKey",l4e="AssociateKmsKeyRequest",d4e="AggregateLogGroupSummary",p4e="AggregateLogGroupSummaries",f4e="AccountPolicy",m4e="AccountPolicies",h4e="AssociateSourceToS3TableIntegration",g4e="AssociateSourceToS3TableIntegrationRequest",S4e="AssociateSourceToS3TableIntegrationResponse",y4e="Anomalies",E4e="CreateDelivery",_4e="CreateDeliveryRequest",R4e="CreateDeliveryResponse",b4e="ConflictException",C4e="CancelExportTask",x4e="CancelExportTaskRequest",A4e="CreateExportTaskRequest",T4e="CreateExportTaskResponse",w4e="CreateExportTask",v4e="CancelImportTask",P4e="CancelImportTaskRequest",I4e="CancelImportTaskResponse",D4e="CreateImportTaskRequest",O4e="CreateImportTaskResponse",k4e="CreateImportTask",$4e="CreateLogAnomalyDetector",L4e="CreateLogAnomalyDetectorRequest",N4e="CreateLogAnomalyDetectorResponse",M4e="CreateLogGroup",B4e="CreateLogGroupRequest",F4e="CreateLogStream",U4e="CreateLogStreamRequest",G4e="CreateLookupTable",q4e="CreateLookupTableRequest",j4e="CreateLookupTableResponse",H4e="CreateScheduledQuery",z4e="CreateScheduledQueryRequest",V4e="CreateScheduledQueryResponse",W4e="CSV",K4e="ConfigurationTemplate",Q4e="ConfigurationTemplateDeliveryConfigValues",J4e="ConfigurationTemplates",X4e="CopyValue",Y4e="CopyValueEntry",Z4e="CopyValueEntries",eqe="Delivery",tqe="DataAlreadyAcceptedException",rqe="DeleteAccountPolicy",nqe="DeleteAccountPolicyRequest",oqe="DescribeAccountPoliciesRequest",sqe="DescribeAccountPoliciesResponse",iqe="DescribeAccountPolicies",aqe="DestinationConfiguration",cqe="DescribeConfigurationTemplates",uqe="DescribeConfigurationTemplatesRequest",lqe="DescribeConfigurationTemplatesResponse",dqe="DeliveryDestination",pqe="DeliveryDestinationConfiguration",fqe="DeleteDeliveryDestination",mqe="DeleteDeliveryDestinationPolicy",hqe="DeleteDeliveryDestinationPolicyRequest",gqe="DeleteDeliveryDestinationRequest",Sqe="DescribeDeliveryDestinationsRequest",yqe="DescribeDeliveryDestinationsResponse",Eqe="DescribeDeliveryDestinations",_qe="DeleteDataProtectionPolicy",Rqe="DeleteDataProtectionPolicyRequest",bqe="DeleteDeliveryRequest",Cqe="DeleteDestinationRequest",xqe="DescribeDeliveriesRequest",Aqe="DescribeDeliveriesResponse",Tqe="DescribeDestinationsRequest",wqe="DescribeDestinationsResponse",vqe="DeleteDeliverySource",Pqe="DeleteDeliverySourceRequest",Iqe="DescribeDeliverySourcesRequest",Dqe="DescribeDeliverySourcesResponse",Oqe="DescribeDeliverySources",kqe="DeliveryDestinations",$qe="DeleteDelivery",Lqe="DeleteDestination",Nqe="DescribeDeliveries",Mqe="DescribeDestinations",Bqe="DescribeExportTasks",Fqe="DescribeExportTasksRequest",Uqe="DescribeExportTasksResponse",Gqe="DescribeFieldIndexes",qqe="DescribeFieldIndexesRequest",jqe="DescribeFieldIndexesResponse",Hqe="DeleteIntegration",zqe="DeleteIndexPolicy",Vqe="DeleteIndexPolicyRequest",Wqe="DeleteIndexPolicyResponse",Kqe="DescribeIndexPoliciesRequest",Qqe="DescribeIndexPoliciesResponse",Jqe="DescribeIndexPolicies",Xqe="DeleteIntegrationRequest",Yqe="DeleteIntegrationResponse",Zqe="DescribeImportTasks",eje="DescribeImportTaskBatches",tje="DescribeImportTaskBatchesRequest",rje="DescribeImportTaskBatchesResponse",nje="DescribeImportTasksRequest",oje="DescribeImportTasksResponse",sje="DeleteKeys",ije="DisassociateKmsKey",aje="DisassociateKmsKeyRequest",cje="DeleteLogAnomalyDetector",uje="DeleteLogAnomalyDetectorRequest",lje="DeleteLogGroup",dje="DeleteLogGroupRequest",pje="DescribeLogGroupsRequest",fje="DescribeLogGroupsResponse",mje="DescribeLogGroups",hje="DeleteLogStream",gje="DeleteLogStreamRequest",Sje="DescribeLogStreamsRequest",yje="DescribeLogStreamsResponse",Eje="DescribeLogStreams",_je="DeleteLookupTable",Rje="DeleteLookupTableRequest",bje="DescribeLookupTablesRequest",Cje="DescribeLookupTablesResponse",xje="DescribeLookupTables",Aje="DeleteMetricFilter",Tje="DeleteMetricFilterRequest",wje="DescribeMetricFiltersRequest",vje="DescribeMetricFiltersResponse",Pje="DescribeMetricFilters",Ije="DestinationNamePrefix",Dje="DescribeQueries",Oje="DeleteQueryDefinition",kje="DeleteQueryDefinitionRequest",$je="DeleteQueryDefinitionResponse",Lje="DescribeQueryDefinitionsRequest",Nje="DescribeQueryDefinitionsResponse",Mje="DescribeQueryDefinitions",Bje="DescribeQueriesRequest",Fje="DescribeQueriesResponse",Uje="DeleteResourcePolicy",Gje="DeleteResourcePolicyRequest",qje="DeleteRetentionPolicyRequest",jje="DescribeResourcePoliciesRequest",Hje="DescribeResourcePoliciesResponse",zje="DeleteRetentionPolicy",Vje="DescribeResourcePolicies",Wje="DataSource",Kje="DeleteSyslogConfiguration",Qje="DeleteSyslogConfigurationRequest",Jje="DeliverySourceConfigurationSchema",Xje="DeliverySourceConfigurationSchemas",Yje="DataSourceFilter",Zje="DeleteSubscriptionFilterRequest",eHe="DescribeSubscriptionFiltersRequest",tHe="DescribeSubscriptionFiltersResponse",rHe="DisassociateSourceFromS3TableIntegration",nHe="DisassociateSourceFromS3TableIntegrationRequest",oHe="DisassociateSourceFromS3TableIntegrationResponse",sHe="DataSourceFilters",iHe="DeleteSubscriptionFilter",aHe="DescribeSubscriptionFilters",cHe="DeleteScheduledQuery",uHe="DeleteScheduledQueryRequest",lHe="DeleteScheduledQueryResponse",dHe="DeliverySource",pHe="DeliverySources",fHe="DeleteTransformer",mHe="DateTimeConverter",hHe="DeleteTransformerRequest",gHe="Destination",SHe="Deliveries",yHe="Destinations",EHe="Entity",_He="ExportTask",RHe="ExportTaskExecutionInfo",bHe="ExportTaskStatus",CHe="ExportTasks",xHe="FieldsData",AHe="FieldIndex",THe="FieldIndexes",wHe="FilteredLogEvent",vHe="FilterLogEventsRequest",PHe="FilterLogEventsResponse",IHe="FilteredLogEvents",DHe="FilterLogEvents",OHe="Grok",kHe="GetDelivery",$He="GetDeliveryDestination",LHe="GetDeliveryDestinationPolicy",NHe="GetDeliveryDestinationPolicyRequest",MHe="GetDeliveryDestinationPolicyResponse",BHe="GetDeliveryDestinationRequest",FHe="GetDeliveryDestinationResponse",UHe="GetDataProtectionPolicy",GHe="GetDataProtectionPolicyRequest",qHe="GetDataProtectionPolicyResponse",jHe="GetDeliveryRequest",HHe="GetDeliveryResponse",zHe="GetDeliverySource",VHe="GetDeliverySourceRequest",WHe="GetDeliverySourceResponse",KHe="GroupingIdentifier",QHe="GetIntegrationRequest",JHe="GetIntegrationResponse",XHe="GetIntegration",YHe="GroupingIdentifiers",ZHe="GetLogAnomalyDetector",e6e="GetLogAnomalyDetectorRequest",t6e="GetLogAnomalyDetectorResponse",r6e="GetLogEvents",n6e="GetLogEventsRequest",o6e="GetLogEventsResponse",s6e="GetLogFields",i6e="GetLogFieldsRequest",a6e="GetLogFieldsResponse",c6e="GetLogGroupFields",u6e="GetLogGroupFieldsRequest",l6e="GetLogGroupFieldsResponse",d6e="GetLogObject",p6e="GetLogObjectRequest",f6e="GetLogObjectResponseStream",m6e="GetLogObjectResponse",h6e="GetLogRecord",g6e="GetLogRecordRequest",S6e="GetLogRecordResponse",y6e="GetLookupTable",E6e="GetLookupTableRequest",_6e="GetLookupTableResponse",R6e="GetQueryResults",b6e="GetQueryResultsRequest",C6e="GetQueryResultsResponse",x6e="GetScheduledQuery",A6e="GetScheduledQueryHistory",T6e="GetScheduledQueryHistoryRequest",w6e="GetScheduledQueryHistoryResponse",v6e="GetScheduledQueryRequest",P6e="GetScheduledQueryResponse",I6e="GetStorageTierPolicy",D6e="GetStorageTierPolicyRequest",O6e="GetStorageTierPolicyResponse",k6e="GetTransformer",$6e="GetTransformerRequest",L6e="GetTransformerResponse",N6e="Import",M6e="ImportBatch",B6e="ImportBatchList",F6e="IntegrationDetails",U6e="ImportFilter",G6e="ImportList",q6e="InputLogEvent",j6e="InputLogEvents",H6e="InvalidOperationException",z6e="IndexPolicy",V6e="InvalidParameterException",W6e="IndexPolicies",K6e="ImportStatistics",Q6e="InternalServerException",Boe="InternalStreamingException",J6e="InvalidSequenceTokenException",X6e="IntegrationSummary",Y6e="IntegrationSummaries",Z6e="ListAnomalies",e5e="ListAggregateLogGroupSummaries",t5e="ListAggregateLogGroupSummariesRequest",r5e="ListAggregateLogGroupSummariesResponse",n5e="ListAnomaliesRequest",o5e="ListAnomaliesResponse",s5e="LowerCaseString",i5e="LogEvent",a5e="LimitExceededException",c5e="LogFieldsList",u5e="LogFieldsListItem",l5e="LogFieldType",d5e="LogGroup",p5e="LogGroupField",f5e="LogGroupFieldList",m5e="LogGroupSummary",h5e="LogGroupSummaries",g5e="LogGroups",S5e="ListIntegrations",y5e="ListIntegrationsRequest",E5e="ListIntegrationsResponse",_5e="ListLogAnomalyDetectors",R5e="ListLogAnomalyDetectorsRequest",b5e="ListLogAnomalyDetectorsResponse",C5e="ListLogGroups",x5e="ListLogGroupsForQuery",A5e="ListLogGroupsForQueryRequest",T5e="ListLogGroupsForQueryResponse",w5e="ListLogGroupsRequest",v5e="ListLogGroupsResponse",P5e="LogStream",I5e="ListSyslogConfigurations",D5e="ListSyslogConfigurationsRequest",O5e="ListSyslogConfigurationsResponse",k5e="ListSourcesForS3TableIntegration",$5e="ListSourcesForS3TableIntegrationRequest",L5e="ListSourcesForS3TableIntegrationResponse",N5e="ListScheduledQueries",M5e="ListScheduledQueriesRequest",B5e="ListScheduledQueriesResponse",F5e="LogSamples",U5e="LogStreams",G5e="LookupTable",q5e="LookupTableConfiguration",j5e="ListTagsForResource",H5e="ListTagsForResourceRequest",z5e="ListTagsForResourceResponse",V5e="ListTagsLogGroup",W5e="ListTagsLogGroupRequest",K5e="ListTagsLogGroupResponse",Q5e="ListToMap",J5e="LiveTailSessionLogEvent",X5e="LiveTailSessionMetadata",Y5e="LiveTailSessionResults",Z5e="LiveTailSessionStart",eze="LiveTailSessionUpdate",tze="LookupTables",rze="MetricFilter",nze="MetricFilterMatches",oze="MetricFilterMatchRecord",sze="MetricFilters",ize="MoveKeys",aze="MoveKeyEntry",cze="MoveKeyEntries",uze="MalformedQueryException",lze="MetricTransformation",dze="MetricTransformations",pze="OperationAbortedException",fze="OutputLogEvent",mze="OutputLogEvents",hze="OpenSearchApplication",gze="OpenSearchCollection",Sze="OpenSearchDataAccessPolicy",yze="OpenSearchDataSource",Eze="OpenSearchEncryptionPolicy",_ze="OpenSearchIntegrationDetails",Rze="OpenSearchLifecyclePolicy",bze="OpenSearchNetworkPolicy",Cze="OpenSearchResourceConfig",xze="OpenSearchResourceStatus",Aze="OpenSearchWorkspace",Tze="Policy",wze="PutAccountPolicy",vze="PutAccountPolicyRequest",Pze="PutAccountPolicyResponse",Ize="PutBearerTokenAuthentication",Dze="PutBearerTokenAuthenticationRequest",Oze="ParseCloudfront",kze="PutDestination",$ze="PutDeliveryDestination",Lze="PutDeliveryDestinationPolicy",Nze="PutDeliveryDestinationPolicyRequest",Mze="PutDeliveryDestinationPolicyResponse",Bze="PutDeliveryDestinationRequest",Fze="PutDeliveryDestinationResponse",Uze="PutDestinationPolicy",Gze="PutDataProtectionPolicy",qze="PutDataProtectionPolicyRequest",jze="PutDataProtectionPolicyResponse",Hze="PutDestinationPolicyRequest",zze="PutDestinationRequest",Vze="PutDestinationResponse",Wze="PutDeliverySource",Kze="PutDeliverySourceRequest",Qze="PutDeliverySourceResponse",Jze="PutIntegration",Xze="PutIndexPolicy",Yze="PutIndexPolicyRequest",Zze="PutIndexPolicyResponse",eVe="PutIntegrationRequest",tVe="PutIntegrationResponse",rVe="ParseJSON",nVe="ParseKeyValue",oVe="PutLogEvents",sVe="PutLogEventsRequest",iVe="PutLogEventsResponse",aVe="PutLogGroupDeletionProtection",cVe="PutLogGroupDeletionProtectionRequest",uVe="PutMetricFilter",lVe="PutMetricFilterRequest",dVe="ParsePostgres",pVe="PutQueryDefinition",fVe="PutQueryDefinitionRequest",mVe="PutQueryDefinitionResponse",hVe="ParseRoute53",gVe="PutResourcePolicy",SVe="PutResourcePolicyRequest",yVe="PutResourcePolicyResponse",EVe="PutRetentionPolicyRequest",_Ve="PutRetentionPolicy",RVe="PutSyslogConfiguration",bVe="PutSyslogConfigurationRequest",CVe="PutSubscriptionFilter",xVe="PutSubscriptionFilterRequest",AVe="PutStorageTierPolicy",TVe="PutStorageTierPolicyRequest",wVe="PutStorageTierPolicyResponse",vVe="PatternToken",PVe="ParseToOCSF",IVe="PutTransformerRequest",DVe="PatternTokens",OVe="PutTransformer",kVe="ParseVPC",$Ve="ParseWAF",LVe="Processor",NVe="Processors",MVe="QueryCompileError",BVe="QueryCompileErrorLocation",FVe="QueryDefinition",UVe="QueryDefinitionList",GVe="QueryInfo",qVe="QueryInfoList",jVe="QueryParameter",HVe="QueryParameterList",zVe="QueryResults",VVe="QueryStatistics",WVe="ResourceAlreadyExistsException",KVe="ResourceConfig",QVe="RejectedEntityInfo",JVe="RecordField",XVe="ResultField",YVe="RenameKeys",ZVe="RenameKeyEntry",e8e="RenameKeyEntries",t8e="RejectedLogEventsInfo",r8e="ResourceNotFoundException",n8e="ResourcePolicy",o8e="ResourcePolicies",s8e="ResultRows",i8e="S3Configuration",a8e="SyslogConfiguration",c8e="SyslogConfigurations",u8e="S3DeliveryConfiguration",l8e="SubscriptionFilter",d8e="SubscriptionFilters",p8e="SearchedLogStream",f8e="SearchedLogStreams",m8e="StartLiveTail",h8e="StartLiveTailRequest",g8e="StartLiveTailResponseStream",S8e="StartLiveTailResponse",y8e="SuppressionPeriod",E8e="StartQuery",_8e="ScheduledQueryDestination",R8e="ScheduledQueryDestinationList",b8e="ServiceQuotaExceededException",C8e="StartQueryRequest",x8e="StartQueryResponse",A8e="StopQueryRequest",T8e="StopQueryResponse",w8e="ScheduledQuerySummary",v8e="ScheduledQuerySummaryList",P8e="StopQuery",I8e="SplitString",Foe="SessionStreamingException",D8e="SplitStringEntry",O8e="SplitStringEntries",k8e="SubstituteStringEntry",$8e="SubstituteStringEntries",L8e="SubstituteString",Uoe="SessionTimeoutException",N8e="S3TablesIntegration",M8e="S3TableIntegrationSource",B8e="S3TableIntegrationSources",F8e="ServiceUnavailableException",U8e="TypeConverter",G8e="TypeConverterEntry",q8e="TypeConverterEntries",j8e="ThrottlingException",H8e="TagFilter",z8e="TagFilters",V8e="TriggerHistoryRecord",W8e="TriggerHistoryRecordList",K8e="TransformedLogs",Q8e="TagLogGroup",J8e="TagLogGroupRequest",X8e="TransformedLogRecord",Y8e="TestMetricFilter",Z8e="TestMetricFilterRequest",eWe="TestMetricFilterResponse",tWe="TooManyTagsException",rWe="TagResource",nWe="TagResourceRequest",oWe="TrimString",sWe="TestTransformer",iWe="TestTransformerRequest",aWe="TestTransformerResponse",cWe="UpdateAnomaly",uWe="UpdateAnomalyRequest",lWe="UnrecognizedClientException",dWe="UpperCaseString",pWe="UpdateDeliveryConfiguration",fWe="UpdateDeliveryConfigurationRequest",mWe="UpdateDeliveryConfigurationResponse",hWe="UpdateLogAnomalyDetector",gWe="UpdateLogAnomalyDetectorRequest",SWe="UntagLogGroup",yWe="UntagLogGroupRequest",EWe="UpdateLookupTable",_We="UpdateLookupTableRequest",RWe="UpdateLookupTableResponse",bWe="UntagResource",CWe="UntagResourceRequest",xWe="UpdateScheduledQuery",AWe="UpdateScheduledQueryRequest",TWe="UpdateScheduledQueryResponse",wWe="ValidationException",vWe="active",Goe="applicationArn",PWe="allowedActionForAllowVendedLogsDeliveryForResource",IWe="anomalyDetectors",wa="anomalyDetectorArn",qoe="anomalyDetectorStatus",DWe="applicationEndpoint",OWe="allowedFields",kWe="allowedFieldDelimiters",$We="accountId",sA="accountIdentifiers",joe="anomalyId",LWe="applicationId",NWe="addKeys",MWe="aggregateLogGroupSummaries",BWe="allowedOutputFormats",iA="applyOnTransformedLogs",FWe="accountPolicies",s1="accessPolicy",UWe="accountPolicy",GWe="allowedSuffixPathFields",aA="anomalyVisibilityTime",qWe="anomalies",jWe="application",pd="arn",HWe="attributes",zWe="baseline",VWe="batchId",WWe="batchImportStatus",KWe="bytesImported",Hoe="bytesScanned",zoe="bearerTokenAuthenticationEnabled",Gt="client",Voe="createdAt",QWe="collectionArn",JWe="collectionEndpoint",Cn="creationTime",Woe="creationTimeStamp",XWe="createdTimeStamp",YWe="clientToken",ZWe="configurationTemplates",e9e="completionTime",t9e="createTime",r9e="copyValue",n9e="columns",o9e="code",s9e="collection",i9e="csv",$o="description",Koe="destinationArn",Km="destinationConfiguration",a9e="deliveryDestinations",Qoe="deliveryDestinationArn",Joe="deliveryDestinationConfiguration",c9e="defaultDeliveryConfigValues",i1="deliveryDestinationName",Xoe="deliveryDestinationPolicy",cA="deliveryDestinationType",u9e="deliveryDestinationTypes",Yoe="deliveryDestination",Zoe="destinationIdentifier",l9e="deleteKeys",a1="detectorName",d9e="datasourceName",uA="destinationName",ese="destinationPrefix",c1="deletionProtectionEnabled",p9e="dataProtectionStatus",f9e="destinationResourceArn",u1="dataSource",l1="deliverySourceConfiguration",tse="deliverySourceName",rse="dataSourceName",m9e="dataSourceRoleArn",h9e="dataSourceType",nse="dataSources",g9e="deliverySources",ose="deliverySource",S9e="datasourceType",y9e="dateTimeConverter",E9e="dynamicTokenPosition",_9e="destinationType",d1="defaultValue",R9e="dashboardViewerPrincipals",b9e="data",sse="delivery",ise="delimiter",C9e="deliveries",fd="destination",x9e="descending",ase="destinations",A9e="dimensions",cse="distribution",bt="error",T9e="estimatedBytesSkipped",w9e="endCharOffset",v9e="endEventTime",lA="evaluationFrequency",P9e="enableHiveCompatiblePath",I9e="executionInfo",D9e="eventId",O9e="encryptionKey",k9e="expiredLogEventEndIndex",dA="errorMessage",use="eventMessage",lse="eventNumber",$9e="encryptionPolicy",pA="executionRoleArn",dse="expectedRevisionId",L9e="estimatedRecordsSkipped",N9e="executionStatuses",pse="emitSystemFields",fse="emitSystemFieldDimensions",mse="expectedSequenceToken",M9e="eventSource",B9e="executionStatus",F9e="exportTasks",fA="endTimeOffset",mA="endTime",U9e="errorType",G9e="extractedValues",q9e="element",Gc="entries",j9e="enabled",hse="endpoint",H9e="entity",z9e="enumerations",gse="events",p1="from",Qm="fieldDelimiter",V9e="flattenedElement",W9e="firstEventTime",K9e="firstEventTimestamp",Q9e="fieldIndexes",J9e="fieldIndexName",X9e="fieldIndexNames",Y9e="filterLogGroupArn",md="filterName",Sse="filterNamePrefix",Gs="filterPattern",Z9e="firstSeen",hA="fieldSelectionCriteria",eKe="fieldStream",tKe="forceUpdate",yse="fields",rKe="field",nKe="flatten",oKe="force",sKe="grok",iKe="groupBy",aKe="groupingIdentifiers",cKe="histogram",Ese="httpError",va="identifier",_se="integrationArn",uKe="importBatches",lKe="indexCategories",dKe="indexCategory",pKe="integrationDetails",Rse="importDestinationArn",fKe="isDynamic",bse="importFilter",qc="importId",f1="includeLinkedAccounts",hd="integrationName",mKe="integrationNamePrefix",hKe="indexPolicies",gKe="isPatternLevelSuppression",SKe="inheritedProperties",yKe="indexPolicy",EKe="importRoleArn",Cse="importStatistics",gA="importSourceArn",m1="importStatus",SA="integrationStatus",_Ke="integrationSummaries",h1="ingestionTime",RKe="inferredTokenName",yA="integrationType",EA="id",bKe="imports",CKe="interleaved",gd="key",xKe="keyAttributes",AKe="kmsKeyArn",Jn="kmsKeyId",TKe="keyName",wKe="keyPrefix",vKe="keyValueDelimiter",PKe="locale",IKe="lowerCaseString",DKe="logEvents",xse="logEventFilterPattern",Ase="logEventMessages",g1="lastExecutionStatus",OKe="lastEventTime",kKe="lastEventTimestamp",$Ke="logFields",LKe="logFieldName",NKe="logFieldType",Tse="logGroups",S1="logGroupArn",_A="logGroupArnList",MKe="logGroupCount",Sd="logGroupClass",BKe="logGroupFields",Lo="logGroupIdentifiers",ot="logGroupIdentifier",Pe="logGroupName",FKe="logGroupNamePrefix",y1="logGroupNamePattern",E1="logGroupNames",UKe="logGroupsScanned",GKe="logGroupTags",qKe="lastIngestionTime",jKe="lastModified",HKe="lastModifiedTime",wse="lastModifiedTimeStamp",zKe="logObjectPointer",VKe="lifecyclePolicy",WKe="logRecord",KKe="logRecordPointer",QKe="lastSeen",Pa="logStreamName",_1="logStreamNamePrefix",vse="logStreamNamePrefixes",R1="logStreamNames",JKe="lastScanTime",XKe="logSamples",YKe="logStreams",b1="logType",jc="lookupTableArn",ZKe="lookupTableConfiguration",e7e="listToMap",C1="lookupTableName",t7e="lookupTableNamePrefix",x1="lastTriggeredTime",r7e="logTypes",n7e="lookupTables",ln="lastUpdatedTime",o7e="lastUpdateTime",Dt="limit",s7e="location",Be="message",i7e="metricFilters",a7e="metricFilterCount",c7e="maxItems",u7e="moveKeys",Pse="metricName",Ise="metricNamespace",l7e="matchPatterns",Ia="maxResults",Dse="metricTransformations",d7e="minValue",p7e="maxValue",f7e="mappingVersion",m7e="metricValue",h7e="match",g7e="mandatory",S7e="matches",Ot="name",y7e="nextBackwardToken",E7e="nextForwardToken",_7e="nonMatchValue",R7e="networkPolicy",b7e="nextSequenceToken",W="nextToken",C7e="ownerAccountId",x7e="orderBy",Ose="outputFormat",Jm="overwriteIfExists",A7e="openSearchIntegrationDetails",T7e="openSearchResourceConfig",w7e="ocsfVersion",v7e="priority",P7e="parseCloudfront",hi="policyDocument",kse="patternId",I7e="processedIdentifier",D7e="parseJSON",O7e="parseKeyValue",Xn="policyName",k7e="parsePostgres",$7e="patternRegex",L7e="parseRoute53",N7e="patternString",M7e="parentSourceIdentifier",$se="policyScope",RA="policyType",B7e="parseToOCSF",F7e="patternTokens",U7e="parseVPC",G7e="parseWAF",Lse="parameters",q7e="percent",Nse="policy",j7e="queries",H7e="quoteCharacter",z7e="queryCompileError",V7e="queryDefinitions",bA="queryDefinitionId",W7e="queryDefinitionNamePrefix",K7e="queryDuration",Da="queryId",No="queryLanguage",Oa="queryString",Q7e="results",ka="resourceArn",J7e="resourceArns",$a="roleArn",X7e="recordsCount",Y7e="resourceConfig",Z7e="resultCount",eQe="retentionDays",tQe="rejectedEntityInfo",CA="recordFields",Mse="resourceIdentifier",Bse="retentionInDays",rQe="requestId",Fse="revisionId",nQe="renameKeys",oQe="rejectedLogEventsInfo",sQe="recordsMatched",iQe="resourceName",aQe="resourcePolicies",cQe="resourcePolicy",uQe="recordsScanned",lQe="responseStream",dQe="resourceType",pQe="resourceTypes",fQe="renameTo",Use="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs",Gse="sizeBytes",qse="storedBytes",jse="selectionCriteria",mQe="startCharOffset",hQe="searchedCompletely",gQe="s3Configuration",SQe="statusCode",yQe="syslogConfigurations",EQe="suppressedDate",xA="s3DeliveryConfiguration",Xm="scheduleExpression",AA="scheduleEndTime",_Qe="startEventTime",RQe="subscriptionFilters",Hse="startFromHead",bQe="sessionId",CQe="searchedLogStreams",xQe="sessionMetadata",AQe="statusMessage",TQe="suffixPath",wQe="suppressionPeriod",vQe="scheduledQueries",Ym="scheduledQueryArn",zse="statusReason",PQe="sessionResults",IQe="suppressionState",TA="scheduleStartTime",DQe="sessionStart",OQe="splitString",kQe="substituteString",$Qe="sourceTimezone",LQe="s3TablesIntegration",wA="startTimeOffset",vA="scheduleType",NQe="sequenceToken",MQe="sourceType",PA="startTime",A1="storageTier",BQe="suppressionType",FQe="suppressedUntil",UQe="sessionUpdate",GQe="suppressionUnit",qQe="supportedValues",jQe="sampled",Vse="scope",Wse="server",T1="service",Cr="source",HQe="sources",La="state",xr="status",zQe="statistics",Kse="streaming",VQe="suppressed",Qse="success",IA="target",Jse="targetArn",w1="tableBody",v1="transformerConfig",WQe="typeConverter",KQe="transformedEventMessage",QQe="targetFormat",JQe="tableFields",XQe="triggerHistory",DA="taskId",YQe="tagKeys",ZQe="transformedLogs",Xse="taskName",eJe="tooNewLogEventStartIndex",tJe="tableName",rJe="tooOldLogEventEndIndex",nJe="tokenString",oJe="trimString",sJe="targetTimezone",iJe="triggeredTimestamp",Ar="tags",Zm="timezone",eh="timestamp",aJe="time",P1="to",th="type",OA="unmask",cJe="upperCaseString",uJe="userIdentity",lJe="uploadSequenceToken",dJe="unit",kA="value",$A="vpcEndpointId",pJe="valueKey",fJe="valueType",mJe="values",hJe="workspace",gJe="workspaceId",LA="withKeys",S="com.amazonaws.cloudwatchlogs",Yse=new Noe(Use),Zse=[-3,Use,"CloudWatchLogsServiceException",0,[],[]];Yse.registerError(Zse,Ye);var ft=new Noe(S),eie=[-3,S,n4e,{[bt]:Gt},[Be],[0]];ft.registerError(eie,zb);var tie=[-3,S,b4e,{[bt]:Gt},[Be],[0]];ft.registerError(tie,eC);var rie=[-3,S,tqe,{[bt]:Gt},[mse,Be],[0,0]];ft.registerError(rie,oC);var nie=[-3,S,Q6e,{[bt]:Wse,[Ese]:500},[Be],[0]];ft.registerError(nie,Jb);var I1=[-3,S,Boe,{[bt]:Gt},[Be],[0]];ft.registerError(I1,sC);var oie=[-3,S,H6e,{[bt]:Gt},[Be],[0]];ft.registerError(oie,Zb);var sie=[-3,S,V6e,{[bt]:Gt},[Be],[0]];ft.registerError(sie,Vb);var iie=[-3,S,J6e,{[bt]:Gt},[mse,Be],[0,0]];ft.registerError(iie,iC);var aie=[-3,S,a5e,{[bt]:Gt},[Be],[0]];ft.registerError(aie,rC);var cie=[-3,S,uze,{[bt]:Gt},[z7e,Be],[()=>Kle,0]];ft.registerError(cie,lC);var uie=[-3,S,pze,{[bt]:Gt},[Be],[0]];ft.registerError(uie,Wb);var lie=[-3,S,WVe,{[bt]:Gt},[Be],[0]];ft.registerError(lie,nC);var die=[-3,S,r8e,{[bt]:Gt},[Be],[0]];ft.registerError(die,Kb);var pie=[-3,S,b8e,{[bt]:Gt},[Be],[0]];ft.registerError(pie,tC);var fie=[-3,S,F8e,{[bt]:Wse},[Be],[0]];ft.registerError(fie,Qb);var D1=[-3,S,Foe,{[bt]:Gt},[Be],[0]];ft.registerError(D1,cC);var O1=[-3,S,Uoe,{[bt]:Gt},[Be],[0]];ft.registerError(O1,uC);var mie=[-3,S,j8e,{[bt]:Gt},[Be],[0]];ft.registerError(mie,Xb);var hie=[-3,S,tWe,{[bt]:Gt,[Ese]:400},[Be,iQe],[0,0]];ft.registerError(hie,dC);var gie=[-3,S,lWe,{[bt]:Gt},[Be],[0]];ft.registerError(gie,aC);var Sie=[-3,S,wWe,{[bt]:Gt},[Be],[0]];ft.registerError(Sie,Yb);var yie=[Yse,ft],k1=[3,S,f4e,0,[Xn,hi,ln,RA,Vse,jse,$We],[0,0,1,0,0,0,0]],Eie=[3,S,a4e,0,[gd,kA,Jm],[0,0,2],2],_ie=[3,S,i4e,0,[Gc],[()=>yJe],1],Rie=[3,S,d4e,0,[MKe,aKe],[1,()=>kJe]],bie=[3,S,t4e,0,[joe,kse,wa,N7e,Z9e,QKe,$o,vWe,La,cKe,XKe,F7e,_A,$7e,v7e,VQe,EQe,FQe,gKe],[0,0,0,0,1,1,0,2,0,129,()=>jJe,()=>JJe,64,0,0,2,1,1,2],13],Cie=[3,S,r4e,0,[wa,a1,_A,lA,Gs,qoe,Jn,Woe,wse,aA],[0,0,64,0,0,0,0,1,1,1]],xie=[3,S,l4e,0,[Jn,Pe,Mse],[0,0,0],1],Aie=[3,S,g4e,0,[_se,u1],[0,()=>$1],2],Tie=[3,S,S4e,0,[va],[0]],wie=[3,S,x4e,0,[DA],[0],1],vie=[3,S,P4e,0,[qc],[0],1],Pie=[3,S,I4e,0,[qc,Cse,m1,Cn,ln],[0,()=>B1,0,1,1]],Iie=[3,S,K4e,0,[T1,b1,dQe,cA,c9e,OWe,BWe,PWe,kWe,GWe,l1,LQe],[0,0,0,0,()=>Die,()=>_Je,64,0,64,64,()=>wJe,()=>cde]],Die=[3,S,Q4e,0,[CA,Qm,xA],[64,0,()=>rh]],Oie=[3,S,X4e,0,[Gc],[()=>xJe],1],kie=[3,S,Y4e,0,[Cr,IA,Jm],[0,0,2],2],$ie=[3,S,_4e,0,[tse,Qoe,CA,Qm,xA,Ar],[0,0,64,0,()=>rh,128],2],Lie=[3,S,R4e,0,[sse],[()=>NA]],Nie=[3,S,A4e,0,[Pe,p1,P1,fd,Xse,_1,ese],[0,1,1,0,0,0,0],4],Mie=[3,S,T4e,0,[DA],[0]],Bie=[3,S,D4e,0,[gA,EKe,bse],[0,0,()=>M1],2],Fie=[3,S,O4e,0,[qc,Rse,Cn],[0,0,1]],Uie=[3,S,L4e,0,[_A,a1,lA,Gs,Jn,aA,Ar],[64,0,0,0,0,1,128],1],Gie=[3,S,N4e,0,[wa],[0]],qie=[3,S,B4e,0,[Pe,Jn,Ar,Sd,c1],[0,0,128,0,2],1],jie=[3,S,U4e,0,[Pe,Pa],[0,0],2],Hie=[3,S,q4e,0,[C1,$o,w1,Da,Jn,Ar],[0,0,0,0,0,128],1],zie=[3,S,j4e,0,[jc,Voe],[0,1]],Vie=[3,S,z4e,0,[Ot,No,Oa,Xm,pA,$o,Lo,Zm,wA,fA,Km,TA,AA,La,Ar],[0,0,0,0,0,0,64,0,1,1,()=>yd,1,1,0,128],5],Wie=[3,S,V4e,0,[Ym,La],[0,0]],Kie=[3,S,W4e,0,[H7e,ise,n9e,Cr,fd],[0,0,64,0,0]],$1=[3,S,Wje,0,[Ot,th],[0,0],1],Qie=[3,S,Yje,0,[Ot,th],[0,0],1],Jie=[3,S,mHe,0,[Cr,IA,l7e,QQe,$Qe,sJe,PKe],[0,0,64,0,0,0,0],3],Xie=[3,S,nqe,0,[Xn,RA],[0,0],2],Yie=[3,S,Rqe,0,[ot],[0],1],Zie=[3,S,hqe,0,[i1],[0],1],eae=[3,S,gqe,0,[Ot],[0],1],tae=[3,S,bqe,0,[EA],[0],1],rae=[3,S,Pqe,0,[Ot],[0],1],nae=[3,S,Cqe,0,[uA],[0],1],oae=[3,S,Vqe,0,[ot],[0],1],sae=[3,S,Wqe,0,[],[]],iae=[3,S,Xqe,0,[hd,oKe],[0,2],1],aae=[3,S,Yqe,0,[],[]],cae=[3,S,sje,0,[LA],[64],1],uae=[3,S,uje,0,[wa],[0],1],lae=[3,S,dje,0,[Pe],[0],1],dae=[3,S,gje,0,[Pe,Pa],[0,0],2],pae=[3,S,Rje,0,[jc],[0],1],fae=[3,S,Tje,0,[Pe,md],[0,0],2],mae=[3,S,kje,0,[bA],[0],1],hae=[3,S,$je,0,[Qse],[2]],gae=[3,S,Gje,0,[Xn,ka,dse],[0,0,0]],Sae=[3,S,qje,0,[Pe],[0],1],yae=[3,S,uHe,0,[va],[0],1],Eae=[3,S,lHe,0,[],[]],_ae=[3,S,Zje,0,[Pe,md],[0,0],2],Rae=[3,S,Qje,0,[ot,$A],[0,0],1],bae=[3,S,hHe,0,[ot],[0],1],NA=[3,S,eqe,0,[EA,pd,tse,Qoe,cA,CA,Qm,xA,Ar],[0,0,0,0,0,64,0,()=>rh,128]],MA=[3,S,dqe,0,[Ot,pd,cA,Ose,Joe,$a,Ar],[0,0,0,0,()=>L1,0,128]],L1=[3,S,pqe,0,[f9e],[0],1],BA=[3,S,dHe,0,[Ot,pd,J7e,T1,b1,Ar,l1,xr,zse],[0,0,64,0,0,128,128,0,0]],Cae=[3,S,Jje,0,[TKe,fJe,d1,qQe,d7e,p7e],[0,0,0,64,1,1],3],xae=[3,S,oqe,0,[RA,Xn,sA,W],[0,0,64,0],1],Aae=[3,S,sqe,0,[FWe,W],[()=>SJe,0]],Tae=[3,S,uqe,0,[T1,r7e,pQe,u9e,W,Dt],[0,64,64,64,0,1]],wae=[3,S,lqe,0,[ZWe,W],[()=>CJe,0]],vae=[3,S,xqe,0,[W,Dt],[0,1]],Pae=[3,S,Aqe,0,[C9e,W],[()=>AJe,0]],Iae=[3,S,Sqe,0,[W,Dt],[0,1]],Dae=[3,S,yqe,0,[a9e,W],[()=>TJe,0]],Oae=[3,S,Iqe,0,[W,Dt],[0,1]],kae=[3,S,Dqe,0,[g9e,W],[()=>vJe,0]],$ae=[3,S,Tqe,0,[Ije,W,Dt],[0,0,1]],Lae=[3,S,wqe,0,[ase,W],[()=>PJe,0]],Nae=[3,S,Fqe,0,[DA,SQe,W,Dt],[0,0,0,1]],Mae=[3,S,Uqe,0,[F9e,W],[()=>IJe,0]],Bae=[3,S,qqe,0,[Lo,lKe,W],[64,64,0],1],Fae=[3,S,jqe,0,[Q9e,W],[()=>DJe,0]],Uae=[3,S,tje,0,[qc,WWe,Dt,W],[0,64,1,0],1],Gae=[3,S,rje,0,[gA,qc,uKe,W],[0,0,()=>$Je,0]],qae=[3,S,nje,0,[qc,m1,gA,Dt,W],[0,0,0,1,0]],jae=[3,S,oje,0,[bKe,W],[()=>LJe,0]],Hae=[3,S,Kqe,0,[Lo,W],[64,0],1],zae=[3,S,Qqe,0,[hKe,W],[()=>NJe,0]],Vae=[3,S,pje,0,[sA,FKe,y1,W,Dt,f1,Sd,Lo],[64,0,0,0,1,2,0,64]],Wae=[3,S,fje,0,[Tse,W],[()=>GJe,0]],Kae=[3,S,Sje,0,[Pe,ot,_1,x7e,x9e,W,Dt],[0,0,0,0,2,0,1]],Qae=[3,S,yje,0,[YKe,W],[()=>HJe,0]],Jae=[3,S,bje,0,[t7e,Ia,W],[0,1,0]],Xae=[3,S,Cje,0,[n7e,W],[()=>zJe,0]],Yae=[3,S,wje,0,[Pe,Sse,W,Dt,Pse,Ise],[0,0,0,1,0,0]],Zae=[3,S,vje,0,[i7e,W],[()=>WJe,0]],ece=[3,S,Bje,0,[Pe,xr,Ia,W,No],[0,0,1,0,0]],tce=[3,S,Fje,0,[j7e,W],[()=>YJe,0]],rce=[3,S,Lje,0,[No,W7e,Ia,W],[0,0,1,0]],nce=[3,S,Nje,0,[V7e,W],[()=>XJe,0]],oce=[3,S,jje,0,[W,Dt,ka,$se],[0,1,0,0]],sce=[3,S,Hje,0,[aQe,W],[()=>tXe,0]],ice=[3,S,eHe,0,[Pe,Sse,W,Dt],[0,0,0,1],1],ace=[3,S,tHe,0,[RQe,W],[()=>cXe,0]],N1=[3,S,gHe,0,[uA,Jse,$a,s1,pd,Cn],[0,0,0,0,0,1]],yd=[3,S,aqe,0,[gQe,ZKe],[()=>ide,()=>que]],cce=[3,S,aje,0,[Pe,Mse],[0,0]],uce=[3,S,nHe,0,[va],[0],1],lce=[3,S,oHe,0,[va],[0]],dce=[3,S,EHe,0,[xKe,HWe],[128,128]],pce=[3,S,_He,0,[DA,Xse,Pe,p1,P1,fd,ese,xr,I9e],[0,0,0,1,1,0,0,()=>mce,()=>fce]],fce=[3,S,RHe,0,[Cn,e9e],[1,1]],mce=[3,S,bHe,0,[o9e,Be],[0,0]],hce=[3,S,AHe,0,[ot,J9e,JKe,W9e,OKe,th,dKe],[0,0,1,1,1,0,0]],gce=[3,S,xHe,0,[b9e],[21]],Sce=[3,S,wHe,0,[Pa,eh,Be,h1,D9e],[0,1,0,1,0]],yce=[3,S,vHe,0,[Pe,ot,R1,_1,PA,mA,Gs,W,Dt,Hse,CKe,OA],[0,0,64,0,1,1,0,0,1,2,2,2]],Ece=[3,S,PHe,0,[gse,CQe,W],[()=>OJe,()=>iXe,0]],_ce=[3,S,GHe,0,[ot],[0],1],Rce=[3,S,qHe,0,[ot,hi,ln],[0,0,1]],bce=[3,S,NHe,0,[i1],[0],1],Cce=[3,S,MHe,0,[Nse],[()=>G1]],xce=[3,S,BHe,0,[Ot],[0],1],Ace=[3,S,FHe,0,[Yoe],[()=>MA]],Tce=[3,S,jHe,0,[EA],[0],1],wce=[3,S,HHe,0,[sse],[()=>NA]],vce=[3,S,VHe,0,[Ot],[0],1],Pce=[3,S,WHe,0,[ose],[()=>BA]],Ice=[3,S,QHe,0,[hd],[0],1],Dce=[3,S,JHe,0,[hd,yA,SA,pKe],[0,0,0,()=>Zde]],Oce=[3,S,e6e,0,[wa],[0],1],kce=[3,S,t6e,0,[a1,_A,lA,Gs,qoe,Jn,Woe,wse,aA],[0,64,0,0,0,0,1,1,1]],$ce=[3,S,n6e,0,[Pa,Pe,ot,PA,mA,W,Dt,Hse,OA],[0,0,0,1,1,0,1,2,2],1],Lce=[3,S,o6e,0,[gse,E7e,y7e],[()=>QJe,0,0]],Nce=[3,S,i6e,0,[rse,h9e],[0,0],2],Mce=[3,S,a6e,0,[$Ke],[()=>Qde]],Bce=[3,S,u6e,0,[Pe,aJe,ot],[0,1,0]],Fce=[3,S,l6e,0,[BKe],[()=>UJe]],Uce=[3,S,p6e,0,[zKe,OA],[0,2],1],Gce=[3,S,m6e,0,[eKe],[[()=>Yde,0]]],qce=[3,S,g6e,0,[KKe,OA],[0,2],1],jce=[3,S,S6e,0,[WKe],[128]],Hce=[3,S,E6e,0,[jc],[0],1],zce=[3,S,_6e,0,[jc,C1,$o,w1,Gse,ln,Jn],[0,0,0,0,1,1,0]],Vce=[3,S,b6e,0,[Da,W,c7e],[0,0,1],1],Wce=[3,S,C6e,0,[No,Q7e,zQe,xr,O9e,W],[0,()=>ZJe,()=>Zle,0,0,0]],Kce=[3,S,T6e,0,[va,PA,mA,N9e,Ia,W],[0,1,1,64,1,0],3],Qce=[3,S,w6e,0,[Ot,Ym,XQe,W],[0,0,()=>fXe,0]],Jce=[3,S,v6e,0,[va],[0],1],Xce=[3,S,P6e,0,[Ym,Ot,$o,No,Oa,Lo,Xm,Zm,wA,fA,Km,La,vA,x1,g1,TA,AA,pA,Cn,ln],[0,0,0,0,0,64,0,0,1,1,()=>yd,0,0,1,0,1,1,0,1,1]],Yce=[3,S,D6e,0,[],[]],Zce=[3,S,O6e,0,[A1,ln],[0,1]],eue=[3,S,$6e,0,[ot],[0],1],tue=[3,S,L6e,0,[ot,Cn,HKe,v1],[0,1,1,()=>j1]],rue=[3,S,OHe,0,[h7e,Cr],[0,0],1],nue=[3,S,KHe,0,[gd,kA],[0,0]],oue=[3,S,N6e,0,[qc,gA,m1,Rse,Cse,bse,Cn,ln,dA],[0,0,0,0,()=>B1,()=>M1,1,1,0]],sue=[3,S,M6e,0,[VWe,xr,dA],[0,0,0],2],M1=[3,S,U6e,0,[_Qe,v9e],[1,1]],B1=[3,S,K6e,0,[KWe],[1]],F1=[3,S,z6e,0,[ot,o7e,hi,Xn,Cr],[0,1,0,0,0]],iue=[3,S,q6e,0,[eh,Be],[1,0],2],aue=[3,S,X6e,0,[hd,yA,SA],[0,0,0]],cue=[3,S,t5e,0,[iKe,sA,f1,Sd,y1,nse,W,Dt],[0,64,2,0,0,()=>Kde,0,1],1],uue=[3,S,r5e,0,[MWe,W],[()=>EJe,0]],lue=[3,S,n5e,0,[wa,IQe,Dt,W],[0,0,1,0]],due=[3,S,o5e,0,[qWe,W],[()=>RJe,0]],pue=[3,S,y5e,0,[mKe,yA,SA],[0,0,0]],fue=[3,S,E5e,0,[_Ke],[()=>BJe]],mue=[3,S,R5e,0,[Y9e,Dt,W],[0,1,0]],hue=[3,S,b5e,0,[IWe,W],[()=>bJe,0]],gue=[3,S,A5e,0,[Da,W,Ia],[0,0,1],1],Sue=[3,S,T5e,0,[Lo,W],[64,0]],yue=[3,S,w5e,0,[y1,Sd,f1,sA,W,Dt,nse,X9e,GKe],[0,0,2,64,0,1,()=>Kde,64,()=>dXe]],Eue=[3,S,v5e,0,[Tse,W],[()=>qJe,0]],_ue=[3,S,M5e,0,[Ia,W,La,vA],[1,0,0,0]],Rue=[3,S,B5e,0,[W,vQe],[0,()=>sXe]],bue=[3,S,$5e,0,[_se,Ia,W],[0,1,0],1],Cue=[3,S,L5e,0,[HQe,W],[()=>nXe,0]],xue=[3,S,D5e,0,[ot,$A,W,Ia],[0,0,0,1]],Aue=[3,S,O5e,0,[yQe,W],[()=>lXe,0]],Tue=[3,S,H5e,0,[ka],[0],1],wue=[3,S,z5e,0,[Ar],[128]],vue=[3,S,W5e,0,[Pe],[0],1],Pue=[3,S,K5e,0,[Ar],[128]],Iue=[3,S,Q5e,0,[Cr,gd,pJe,IA,nKe,V9e],[0,0,0,0,2,0],2],Due=[3,S,J5e,0,[Pa,ot,Be,eh,h1],[0,0,0,1,1]],Oue=[3,S,X5e,0,[jQe],[2]],kue=[3,S,Z5e,0,[rQe,bQe,Lo,R1,vse,xse],[0,0,64,64,64,0]],$ue=[3,S,eze,0,[xQe,PQe],[()=>Oue,()=>FJe]],Lue=[3,S,i5e,0,[eh,Be],[1,0]],Nue=[3,S,u5e,0,[LKe,NKe],[0,()=>U1]],U1=[3,S,l5e,0,[th,q9e,yse],[0,()=>U1,()=>Qde]],Mue=[3,S,d5e,0,[Pe,Cn,Bse,a7e,pd,qse,Jn,p9e,SKe,Sd,S1,c1,zoe],[0,1,1,1,0,1,0,0,64,0,0,2,2]],Bue=[3,S,p5e,0,[Ot,q7e],[0,1]],Fue=[3,S,m5e,0,[Pe,S1,Sd],[0,0,0]],Uue=[3,S,P5e,0,[Pa,Cn,K9e,kKe,qKe,lJe,pd,qse],[0,1,1,1,1,0,0,1]],Gue=[3,S,G5e,0,[jc,C1,$o,JQe,X7e,Gse,ln,Jn],[0,0,0,64,1,1,1,0]],que=[3,S,q5e,0,[tJe,$a,$o,Jn,Ar],[0,0,0,0,128],2],jue=[3,S,s5e,0,[LA],[64],1],Hue=[3,S,rze,0,[md,Gs,Dse,Cn,Pe,iA,hA,fse],[0,0,()=>Jde,1,0,2,0,64]],zue=[3,S,oze,0,[lse,use,G9e],[1,0,128]],Vue=[3,S,lze,0,[Pse,Ise,m7e,d1,A9e,dJe],[0,0,0,1,128,0],3],Wue=[3,S,aze,0,[Cr,IA,Jm],[0,0,2],2],Kue=[3,S,ize,0,[Gc],[()=>KJe],1],Que=[3,S,hze,0,[DWe,Goe,LWe,xr],[0,0,0,()=>gi]],Jue=[3,S,gze,0,[JWe,QWe,xr],[0,0,()=>gi]],Xue=[3,S,Sze,0,[Xn,xr],[0,()=>gi]],Yue=[3,S,yze,0,[rse,xr],[0,()=>gi]],Zue=[3,S,Eze,0,[Xn,xr],[0,()=>gi]],ele=[3,S,_ze,0,[u1,jWe,s9e,hJe,$9e,R7e,s1,VKe],[()=>Yue,()=>Que,()=>Jue,()=>ole,()=>Zue,()=>rle,()=>Xue,()=>tle]],tle=[3,S,Rze,0,[Xn,xr],[0,()=>gi]],rle=[3,S,bze,0,[Xn,xr],[0,()=>gi]],nle=[3,S,Cze,0,[m9e,R9e,eQe,AKe,Goe],[0,64,1,0,0],3],gi=[3,S,xze,0,[xr,AQe],[0,0]],ole=[3,S,Aze,0,[gJe,xr],[0,()=>gi]],sle=[3,S,fze,0,[eh,Be,h1],[1,0,1]],ile=[3,S,Oze,0,[Cr],[0]],ale=[3,S,rVe,0,[Cr,fd],[0,0]],cle=[3,S,nVe,0,[Cr,fd,Qm,vKe,wKe,_7e,Jm],[0,0,0,0,0,0,2]],ule=[3,S,dVe,0,[Cr],[0]],lle=[3,S,hVe,0,[Cr],[0]],dle=[3,S,PVe,0,[M9e,w7e,Cr,f7e],[0,0,0,0],2],ple=[3,S,kVe,0,[Cr],[0]],fle=[3,S,$Ve,0,[Cr],[0]],mle=[3,S,vVe,0,[E9e,fKe,nJe,z9e,RKe],[1,2,0,129,0]],G1=[3,S,Tze,0,[Xoe],[0]],hle=[3,S,LVe,0,[NWe,r9e,i9e,y9e,l9e,sKe,e7e,IKe,u7e,P7e,D7e,O7e,L7e,B7e,k7e,U7e,G7e,nQe,OQe,kQe,oJe,WQe,cJe],[()=>_ie,()=>Oie,()=>Kie,()=>Jie,()=>cae,()=>rue,()=>Iue,()=>jue,()=>Kue,()=>ile,()=>ale,()=>cle,()=>lle,()=>dle,()=>ule,()=>ple,()=>fle,()=>ode,()=>pde,()=>Rde,()=>$de,()=>Lde,()=>Wde]],gle=[3,S,vze,0,[Xn,hi,RA,Vse,jse],[0,0,0,0,0],3],Sle=[3,S,Pze,0,[UWe],[()=>k1]],yle=[3,S,Dze,0,[ot,zoe],[0,2],2],Ele=[3,S,qze,0,[ot,hi],[0,0],2],_le=[3,S,jze,0,[ot,hi,ln],[0,0,1]],Rle=[3,S,Nze,0,[i1,Xoe],[0,0],2],ble=[3,S,Mze,0,[Nse],[()=>G1]],Cle=[3,S,Bze,0,[Ot,Ose,Joe,cA,$a,Ar],[0,0,()=>L1,0,0,128],1],xle=[3,S,Fze,0,[Yoe],[()=>MA]],Ale=[3,S,Kze,0,[Ot,ka,b1,Ar,l1],[0,0,0,128,128],3],Tle=[3,S,Qze,0,[ose],[()=>BA]],wle=[3,S,Hze,0,[uA,s1,tKe],[0,0,2],2],vle=[3,S,zze,0,[uA,Jse,$a,Ar],[0,0,0,128],3],Ple=[3,S,Vze,0,[fd],[()=>N1]],Ile=[3,S,Yze,0,[ot,hi],[0,0],2],Dle=[3,S,Zze,0,[yKe],[()=>F1]],Ole=[3,S,eVe,0,[hd,Y7e,yA],[0,()=>epe,0],3],kle=[3,S,tVe,0,[hd,SA],[0,0]],$le=[3,S,sVe,0,[Pe,Pa,DKe,NQe,H9e],[0,0,()=>MJe,0,()=>dce],3],Lle=[3,S,iVe,0,[b7e,oQe,tQe],[0,()=>rde,()=>tde]],Nle=[3,S,cVe,0,[ot,c1],[0,2],2],Mle=[3,S,lVe,0,[Pe,md,Gs,Dse,iA,hA,fse],[0,0,0,()=>Jde,2,0,64],4],Ble=[3,S,fVe,0,[Ot,Oa,No,bA,E1,YWe,Lse],[0,0,0,0,64,[0,4],()=>Xde],2],Fle=[3,S,mVe,0,[bA],[0]],Ule=[3,S,SVe,0,[Xn,hi,ka,dse],[0,0,0,0]],Gle=[3,S,yVe,0,[cQe,Fse],[()=>q1,0]],qle=[3,S,EVe,0,[Pe,Bse],[0,1],2],jle=[3,S,TVe,0,[A1],[0],1],Hle=[3,S,wVe,0,[A1,ln],[0,1]],zle=[3,S,xVe,0,[Pe,md,Gs,Koe,$a,cse,iA,hA,pse],[0,0,0,0,0,0,2,0,64],4],Vle=[3,S,bVe,0,[ot,$A],[0,0],1],Wle=[3,S,IVe,0,[ot,v1],[0,()=>j1],2],Kle=[3,S,MVe,0,[s7e,Be],[()=>Qle,0]],Qle=[3,S,BVe,0,[mQe,w9e],[1,1]],Jle=[3,S,FVe,0,[No,bA,Ot,Oa,jKe,E1,Lse],[0,0,0,0,1,64,()=>Xde]],Xle=[3,S,GVe,0,[No,Da,Oa,xr,t9e,Pe,K7e,Hoe,uJe],[0,0,0,0,1,0,1,1,0]],Yle=[3,S,jVe,0,[Ot,d1,$o],[0,0,0],1],Zle=[3,S,VVe,0,[sQe,uQe,L9e,Hoe,T9e,UKe,Z7e],[1,1,1,1,1,1,1]],ede=[3,S,JVe,0,[Ot,g7e],[0,2]],tde=[3,S,QVe,0,[U9e],[0],1],rde=[3,S,t8e,0,[eJe,rJe,k9e],[1,1,1]],nde=[3,S,ZVe,0,[gd,fQe,Jm],[0,0,2],2],ode=[3,S,YVe,0,[Gc],[()=>eXe],1],q1=[3,S,n8e,0,[Xn,hi,ln,$se,ka,Fse],[0,0,1,0,0,0]],sde=[3,S,XVe,0,[rKe,kA],[0,0]],ide=[3,S,i8e,0,[Zoe,$a,C7e,Jn],[0,0,0,0],2],rh=[3,S,u8e,0,[TQe,P9e],[0,2]],ade=[3,S,M8e,0,[va,u1,xr,zse,XWe,M7e],[0,()=>$1,0,0,1,0]],cde=[3,S,N8e,0,[d9e,S9e],[0,0]],ude=[3,S,_8e,0,[_9e,Zoe,xr,I7e,dA],[0,0,0,0,0]],lde=[3,S,w8e,0,[Ym,Ot,La,vA,x1,g1,Xm,Zm,Km,Cn,ln],[0,0,0,0,1,0,0,0,()=>yd,1,1]],dde=[3,S,p8e,0,[Pa,hQe],[0,2]],pde=[3,S,I8e,0,[Gc],[()=>aXe],1],fde=[3,S,D8e,0,[Cr,ise],[0,0],2],mde=[3,S,h8e,0,[Lo,R1,vse,xse],[64,64,64,0],1],hde=[3,S,S8e,0,[lQe],[[()=>tpe,0]]],gde=[3,S,C8e,0,[PA,mA,Oa,No,Pe,E1,Lo,Dt],[1,1,0,0,0,64,64,1],3],Sde=[3,S,x8e,0,[Da],[0]],yde=[3,S,A8e,0,[Da],[0],1],Ede=[3,S,T8e,0,[Qse],[2]],_de=[3,S,l8e,0,[md,Pe,Gs,Koe,$a,cse,iA,Cn,hA,pse],[0,0,0,0,0,0,2,1,0,64]],Rde=[3,S,L8e,0,[Gc],[()=>uXe],1],bde=[3,S,k8e,0,[Cr,p1,P1],[0,0,0],3],Cde=[3,S,y8e,0,[kA,GQe],[1,0]],xde=[3,S,a8e,0,[S1,MQe,$A,Voe],[0,0,0,1]],Ade=[3,S,H8e,0,[gd,mJe],[0,64],1],Tde=[3,S,J8e,0,[Pe,Ar],[0,128],2],wde=[3,S,nWe,0,[ka,Ar],[0,128],2],vde=[3,S,Z8e,0,[Gs,Ase],[0,64],2],Pde=[3,S,eWe,0,[S7e],[()=>VJe]],Ide=[3,S,iWe,0,[v1,Ase],[()=>j1,64],2],Dde=[3,S,aWe,0,[ZQe],[()=>pXe]],Ode=[3,S,X8e,0,[lse,use,KQe],[1,0,0]],kde=[3,S,V8e,0,[Da,B9e,iJe,dA,ase],[0,0,1,0,()=>oXe]],$de=[3,S,oWe,0,[LA],[64],1],Lde=[3,S,U8e,0,[Gc],[()=>mXe],1],Nde=[3,S,G8e,0,[gd,th],[0,0],2],Mde=[3,S,yWe,0,[Pe,Ar],[0,64],2],Bde=[3,S,CWe,0,[ka,YQe],[0,64],2],Fde=[3,S,uWe,0,[wa,joe,kse,BQe,wQe,zWe],[0,0,0,0,()=>Cde,2],1],Ude=[3,S,fWe,0,[EA,CA,Qm,xA],[0,64,0,()=>rh],1],Gde=[3,S,mWe,0,[],[]],qde=[3,S,gWe,0,[wa,j9e,lA,Gs,aA],[0,2,0,0,1],2],jde=[3,S,_We,0,[jc,$o,w1,Da,Jn],[0,0,0,0,0],1],Hde=[3,S,RWe,0,[jc,ln],[0,1]],zde=[3,S,AWe,0,[va,No,Oa,Xm,pA,$o,Lo,Zm,wA,fA,Km,TA,AA,La],[0,0,0,0,0,0,64,0,1,1,()=>yd,1,1,0],5],Vde=[3,S,TWe,0,[Ym,Ot,$o,No,Oa,Lo,Xm,Zm,wA,fA,Km,La,vA,x1,g1,TA,AA,pA,Cn,ln],[0,0,0,0,0,64,0,0,1,1,()=>yd,0,0,1,0,1,1,0,1,1]],Wde=[3,S,dWe,0,[LA],[64],1],pe="unit",SJe=[1,S,m4e,0,()=>k1],yJe=[1,S,c4e,0,()=>Eie],EJe=[1,S,p4e,0,()=>Rie],_Je=[1,S,s4e,0,()=>ede],RJe=[1,S,y4e,0,()=>bie],bJe=[1,S,o4e,0,()=>Cie],CJe=[1,S,J4e,0,()=>Iie],xJe=[1,S,Z4e,0,()=>kie],Kde=[1,S,sHe,0,()=>Qie],AJe=[1,S,SHe,0,()=>NA],TJe=[1,S,kqe,0,()=>MA],wJe=[1,S,Xje,0,()=>Cae],vJe=[1,S,pHe,0,()=>BA],PJe=[1,S,yHe,0,()=>N1],IJe=[1,S,CHe,0,()=>pce],DJe=[1,S,THe,0,()=>hce],OJe=[1,S,IHe,0,()=>Sce],kJe=[1,S,YHe,0,()=>nue],$Je=[1,S,B6e,0,()=>sue],LJe=[1,S,G6e,0,()=>oue],NJe=[1,S,W6e,0,()=>F1],MJe=[1,S,j6e,0,()=>iue],BJe=[1,S,Y6e,0,()=>aue],FJe=[1,S,Y5e,0,()=>Due],Qde=[1,S,c5e,0,()=>Nue],UJe=[1,S,f5e,0,()=>Bue],GJe=[1,S,g5e,0,()=>Mue],qJe=[1,S,h5e,0,()=>Fue],jJe=[1,S,F5e,0,()=>Lue],HJe=[1,S,U5e,0,()=>Uue],zJe=[1,S,tze,0,()=>Gue],VJe=[1,S,nze,0,()=>zue],WJe=[1,S,sze,0,()=>Hue],Jde=[1,S,dze,0,()=>Vue],KJe=[1,S,cze,0,()=>Wue],QJe=[1,S,mze,0,()=>sle],JJe=[1,S,DVe,0,()=>mle],j1=[1,S,NVe,0,()=>hle],XJe=[1,S,UVe,0,()=>Jle],YJe=[1,S,qVe,0,()=>Xle],Xde=[1,S,HVe,0,()=>Yle],ZJe=[1,S,zVe,0,()=>rXe],eXe=[1,S,e8e,0,()=>nde],tXe=[1,S,o8e,0,()=>q1],rXe=[1,S,s8e,0,()=>sde],nXe=[1,S,B8e,0,()=>ade],oXe=[1,S,R8e,0,()=>ude],sXe=[1,S,v8e,0,()=>lde],iXe=[1,S,f8e,0,()=>dde],aXe=[1,S,O8e,0,()=>fde],cXe=[1,S,d8e,0,()=>_de],uXe=[1,S,$8e,0,()=>bde],lXe=[1,S,c8e,0,()=>xde],dXe=[1,S,z8e,0,()=>Ade],pXe=[1,S,K8e,0,()=>Ode],fXe=[1,S,W8e,0,()=>kde],mXe=[1,S,q8e,0,()=>Nde],Yde=[4,S,f6e,{[Kse]:1},[yse,Boe],[()=>gce,[()=>I1,0]]],Zde=[4,S,F6e,0,[A7e],[()=>ele]],epe=[4,S,KVe,0,[T7e],[()=>nle]],tpe=[4,S,g8e,{[Kse]:1},[DQe,UQe,Uoe,Foe],[()=>kue,()=>$ue,[()=>O1,0],[()=>D1,0]]],rpe=[9,S,u4e,0,()=>xie,()=>pe],npe=[9,S,h4e,0,()=>Aie,()=>Tie],ope=[9,S,C4e,0,()=>wie,()=>pe],spe=[9,S,v4e,0,()=>vie,()=>Pie],ipe=[9,S,E4e,0,()=>$ie,()=>Lie],ape=[9,S,w4e,0,()=>Nie,()=>Mie],cpe=[9,S,k4e,0,()=>Bie,()=>Fie],upe=[9,S,$4e,0,()=>Uie,()=>Gie],lpe=[9,S,M4e,0,()=>qie,()=>pe],dpe=[9,S,F4e,0,()=>jie,()=>pe],ppe=[9,S,G4e,0,()=>Hie,()=>zie],fpe=[9,S,H4e,0,()=>Vie,()=>Wie],mpe=[9,S,rqe,0,()=>Xie,()=>pe],hpe=[9,S,_qe,0,()=>Yie,()=>pe],gpe=[9,S,$qe,0,()=>tae,()=>pe],Spe=[9,S,fqe,0,()=>eae,()=>pe],ype=[9,S,mqe,0,()=>Zie,()=>pe],Epe=[9,S,vqe,0,()=>rae,()=>pe],_pe=[9,S,Lqe,0,()=>nae,()=>pe],Rpe=[9,S,zqe,0,()=>oae,()=>sae],bpe=[9,S,Hqe,0,()=>iae,()=>aae],Cpe=[9,S,cje,0,()=>uae,()=>pe],xpe=[9,S,lje,0,()=>lae,()=>pe],Ape=[9,S,hje,0,()=>dae,()=>pe],Tpe=[9,S,_je,0,()=>pae,()=>pe],wpe=[9,S,Aje,0,()=>fae,()=>pe],vpe=[9,S,Oje,0,()=>mae,()=>hae],Ppe=[9,S,Uje,0,()=>gae,()=>pe],Ipe=[9,S,zje,0,()=>Sae,()=>pe],Dpe=[9,S,cHe,0,()=>yae,()=>Eae],Ope=[9,S,iHe,0,()=>_ae,()=>pe],kpe=[9,S,Kje,0,()=>Rae,()=>pe],$pe=[9,S,fHe,0,()=>bae,()=>pe],Lpe=[9,S,iqe,0,()=>xae,()=>Aae],Npe=[9,S,cqe,0,()=>Tae,()=>wae],Mpe=[9,S,Nqe,0,()=>vae,()=>Pae],Bpe=[9,S,Eqe,0,()=>Iae,()=>Dae],Fpe=[9,S,Oqe,0,()=>Oae,()=>kae],Upe=[9,S,Mqe,0,()=>$ae,()=>Lae],Gpe=[9,S,Bqe,0,()=>Nae,()=>Mae],qpe=[9,S,Gqe,0,()=>Bae,()=>Fae],jpe=[9,S,eje,0,()=>Uae,()=>Gae],Hpe=[9,S,Zqe,0,()=>qae,()=>jae],zpe=[9,S,Jqe,0,()=>Hae,()=>zae],Vpe=[9,S,mje,0,()=>Vae,()=>Wae],Wpe=[9,S,Eje,0,()=>Kae,()=>Qae],Kpe=[9,S,xje,0,()=>Jae,()=>Xae],Qpe=[9,S,Pje,0,()=>Yae,()=>Zae],Jpe=[9,S,Dje,0,()=>ece,()=>tce],Xpe=[9,S,Mje,0,()=>rce,()=>nce],Ype=[9,S,Vje,0,()=>oce,()=>sce],Zpe=[9,S,aHe,0,()=>ice,()=>ace],efe=[9,S,ije,0,()=>cce,()=>pe],tfe=[9,S,rHe,0,()=>uce,()=>lce],rfe=[9,S,DHe,0,()=>yce,()=>Ece],nfe=[9,S,UHe,0,()=>_ce,()=>Rce],ofe=[9,S,kHe,0,()=>Tce,()=>wce],sfe=[9,S,$He,0,()=>xce,()=>Ace],ife=[9,S,LHe,0,()=>bce,()=>Cce],afe=[9,S,zHe,0,()=>vce,()=>Pce],cfe=[9,S,XHe,0,()=>Ice,()=>Dce],ufe=[9,S,ZHe,0,()=>Oce,()=>kce],lfe=[9,S,r6e,0,()=>$ce,()=>Lce],dfe=[9,S,s6e,0,()=>Nce,()=>Mce],pfe=[9,S,c6e,0,()=>Bce,()=>Fce],ffe=[9,S,d6e,{[hse]:["stream-"]},()=>Uce,()=>Gce],mfe=[9,S,h6e,0,()=>qce,()=>jce],hfe=[9,S,y6e,0,()=>Hce,()=>zce],gfe=[9,S,R6e,0,()=>Vce,()=>Wce],Sfe=[9,S,x6e,0,()=>Jce,()=>Xce],yfe=[9,S,A6e,0,()=>Kce,()=>Qce],Efe=[9,S,I6e,0,()=>Yce,()=>Zce],_fe=[9,S,k6e,0,()=>eue,()=>tue],Rfe=[9,S,e5e,0,()=>cue,()=>uue],bfe=[9,S,Z6e,0,()=>lue,()=>due],Cfe=[9,S,S5e,0,()=>pue,()=>fue],xfe=[9,S,_5e,0,()=>mue,()=>hue],Afe=[9,S,C5e,0,()=>yue,()=>Eue],Tfe=[9,S,x5e,0,()=>gue,()=>Sue],wfe=[9,S,N5e,0,()=>_ue,()=>Rue],vfe=[9,S,k5e,0,()=>bue,()=>Cue],Pfe=[9,S,I5e,0,()=>xue,()=>Aue],Ife=[9,S,j5e,0,()=>Tue,()=>wue],Dfe=[9,S,V5e,0,()=>vue,()=>Pue],Ofe=[9,S,wze,0,()=>gle,()=>Sle],kfe=[9,S,Ize,0,()=>yle,()=>pe],$fe=[9,S,Gze,0,()=>Ele,()=>_le],Lfe=[9,S,$ze,0,()=>Cle,()=>xle],Nfe=[9,S,Lze,0,()=>Rle,()=>ble],Mfe=[9,S,Wze,0,()=>Ale,()=>Tle],Bfe=[9,S,kze,0,()=>vle,()=>Ple],Ffe=[9,S,Uze,0,()=>wle,()=>pe],Ufe=[9,S,Xze,0,()=>Ile,()=>Dle],Gfe=[9,S,Jze,0,()=>Ole,()=>kle],qfe=[9,S,oVe,0,()=>$le,()=>Lle],jfe=[9,S,aVe,0,()=>Nle,()=>pe],Hfe=[9,S,uVe,0,()=>Mle,()=>pe],zfe=[9,S,pVe,0,()=>Ble,()=>Fle],Vfe=[9,S,gVe,0,()=>Ule,()=>Gle],Wfe=[9,S,_Ve,0,()=>qle,()=>pe],Kfe=[9,S,AVe,0,()=>jle,()=>Hle],Qfe=[9,S,CVe,0,()=>zle,()=>pe],Jfe=[9,S,RVe,0,()=>Vle,()=>pe],Xfe=[9,S,OVe,0,()=>Wle,()=>pe],Yfe=[9,S,m8e,{[hse]:["stream-"]},()=>mde,()=>hde],Zfe=[9,S,E8e,0,()=>gde,()=>Sde],eme=[9,S,P8e,0,()=>yde,()=>Ede],tme=[9,S,Q8e,0,()=>Tde,()=>pe],rme=[9,S,rWe,0,()=>wde,()=>pe],nme=[9,S,Y8e,0,()=>vde,()=>Pde],ome=[9,S,sWe,0,()=>Ide,()=>Dde],sme=[9,S,SWe,0,()=>Mde,()=>pe],ime=[9,S,bWe,0,()=>Bde,()=>pe],ame=[9,S,cWe,0,()=>Fde,()=>pe],cme=[9,S,pWe,0,()=>Ude,()=>Gde],ume=[9,S,hWe,0,()=>qde,()=>pe],lme=[9,S,EWe,0,()=>jde,()=>Hde],dme=[9,S,xWe,0,()=>zde,()=>Vde],hXe=t=>({apiVersion:"2014-03-28",base64Decoder:t?.base64Decoder??NGe,base64Encoder:t?.base64Encoder??LGe,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??e4e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??HGe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new IGe}],logger:t?.logger??new XUe,protocol:t?.protocol??UGe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatchlogs",errorTypeRegistries:yie,xmlNamespace:"http://monitoring.amazonaws.com/doc/2014-03-28/",version:"2014-03-28",serviceTarget:"Logs_20140328"},serviceId:t?.serviceId??"CloudWatch Logs",sha256:t?.sha256??GGe,urlParser:t?.urlParser??EGe,utf8Decoder:t?.utf8Decoder??$Ge,utf8Encoder:t?.utf8Encoder??kGe}),gXe=t=>{YUe(process.version);let e=sGe(t),r=()=>e().then(ZUe),n=hXe(t);LUe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Bc(DGe,o),bodyLengthChecker:t?.bodyLengthChecker??MGe,credentialDefaultProvider:t?.credentialDefaultProvider??OGe,defaultUserAgentProvider:t?.defaultUserAgentProvider??NUe({serviceId:n.serviceId,clientVersion:QGe.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??SGe,maxAttempts:t?.maxAttempts??Bc(AGe,t),region:t?.region??Bc(cGe,{...uGe,...o}),requestHandler:FGe.create(t?.requestHandler??r),retryMode:t?.retryMode??Bc({...xGe,default:async()=>(await r()).retryMode||CGe},t),streamCollector:t?.streamCollector??BGe,useDualstackEndpoint:t?.useDualstackEndpoint??Bc(aGe,o),useFipsEndpoint:t?.useFipsEndpoint??Bc(iGe,o),userAgentAppId:t?.userAgentAppId??Bc(MUe,o)}},SXe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},yXe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),EXe=(t,e)=>{let r=Object.assign(BUe(t),eGe(t),_Ge(t),SXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,FUe(r),tGe(r),RGe(r),yXe(r))},pt=class extends Loe{config;constructor(...[e]){let r=gXe(e||{});super(r),this.initConfig=r;let n=VGe(r),o=UUe(n),s=TGe(o),i=lGe(s),a=GUe(i),c=hGe(a),u=yGe(c),f=zGe(u),m=EXe(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(vGe(this.config)),this.middlewareStack.use(qUe(this.config)),this.middlewareStack.use(wGe(this.config)),this.middlewareStack.use(bGe(this.config)),this.middlewareStack.use(jUe(this.config)),this.middlewareStack.use(HUe(this.config)),this.middlewareStack.use(zUe(this.config)),this.middlewareStack.use(VUe(this.config,{httpAuthSchemeParametersProvider:qGe,identityProviderConfigProvider:async y=>new WUe({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(KUe(this.config))}destroy(){super.destroy()}},P=rGe(WGe,"Logs_20140328","CloudWatchLogsClient",gGe),I={},D=(t,e,r,n)=>[],pC=class extends P(I,D,"AssociateKmsKey",rpe){},fC=class extends P(I,D,"AssociateSourceToS3TableIntegration",npe){},mC=class extends P(I,D,"CancelExportTask",ope){},hC=class extends P(I,D,"CancelImportTask",spe){},gC=class extends P(I,D,"CreateDelivery",ipe){},SC=class extends P(I,D,"CreateExportTask",ape){},yC=class extends P(I,D,"CreateImportTask",cpe){},EC=class extends P(I,D,"CreateLogAnomalyDetector",upe){},_C=class extends P(I,D,"CreateLogGroup",lpe){},RC=class extends P(I,D,"CreateLogStream",dpe){},bC=class extends P(I,D,"CreateLookupTable",ppe){},CC=class extends P(I,D,"CreateScheduledQuery",fpe){},xC=class extends P(I,D,"DeleteAccountPolicy",mpe){},AC=class extends P(I,D,"DeleteDataProtectionPolicy",hpe){},TC=class extends P(I,D,"DeleteDelivery",gpe){},wC=class extends P(I,D,"DeleteDeliveryDestination",Spe){},vC=class extends P(I,D,"DeleteDeliveryDestinationPolicy",ype){},PC=class extends P(I,D,"DeleteDeliverySource",Epe){},IC=class extends P(I,D,"DeleteDestination",_pe){},DC=class extends P(I,D,"DeleteIndexPolicy",Rpe){},OC=class extends P(I,D,"DeleteIntegration",bpe){},kC=class extends P(I,D,"DeleteLogAnomalyDetector",Cpe){},$C=class extends P(I,D,"DeleteLogGroup",xpe){},LC=class extends P(I,D,"DeleteLogStream",Ape){},NC=class extends P(I,D,"DeleteLookupTable",Tpe){},MC=class extends P(I,D,"DeleteMetricFilter",wpe){},BC=class extends P(I,D,"DeleteQueryDefinition",vpe){},FC=class extends P(I,D,"DeleteResourcePolicy",Ppe){},UC=class extends P(I,D,"DeleteRetentionPolicy",Ipe){},GC=class extends P(I,D,"DeleteScheduledQuery",Dpe){},qC=class extends P(I,D,"DeleteSubscriptionFilter",Ope){},jC=class extends P(I,D,"DeleteSyslogConfiguration",kpe){},HC=class extends P(I,D,"DeleteTransformer",$pe){},zC=class extends P(I,D,"DescribeAccountPolicies",Lpe){},Im=class extends P(I,D,"DescribeConfigurationTemplates",Npe){},Dm=class extends P(I,D,"DescribeDeliveries",Mpe){},Om=class extends P(I,D,"DescribeDeliveryDestinations",Bpe){},km=class extends P(I,D,"DescribeDeliverySources",Fpe){},$m=class extends P(I,D,"DescribeDestinations",Upe){},VC=class extends P(I,D,"DescribeExportTasks",Gpe){},WC=class extends P(I,D,"DescribeFieldIndexes",qpe){},KC=class extends P(I,D,"DescribeImportTaskBatches",jpe){},QC=class extends P(I,D,"DescribeImportTasks",Hpe){},JC=class extends P(I,D,"DescribeIndexPolicies",zpe){},Lm=class extends P(I,D,"DescribeLogGroups",Vpe){},Nm=class extends P(I,D,"DescribeLogStreams",Wpe){},XC=class extends P(I,D,"DescribeLookupTables",Kpe){},Mm=class extends P(I,D,"DescribeMetricFilters",Qpe){},YC=class extends P(I,D,"DescribeQueries",Jpe){},ZC=class extends P(I,D,"DescribeQueryDefinitions",Xpe){},ex=class extends P(I,D,"DescribeResourcePolicies",Ype){},Bm=class extends P(I,D,"DescribeSubscriptionFilters",Zpe){},tx=class extends P(I,D,"DisassociateKmsKey",efe){},rx=class extends P(I,D,"DisassociateSourceFromS3TableIntegration",tfe){},Fm=class extends P(I,D,"FilterLogEvents",rfe){},nx=class extends P(I,D,"GetDataProtectionPolicy",nfe){},ox=class extends P(I,D,"GetDelivery",ofe){},sx=class extends P(I,D,"GetDeliveryDestination",sfe){},ix=class extends P(I,D,"GetDeliveryDestinationPolicy",ife){},ax=class extends P(I,D,"GetDeliverySource",afe){},cx=class extends P(I,D,"GetIntegration",cfe){},ux=class extends P(I,D,"GetLogAnomalyDetector",ufe){},Um=class extends P(I,D,"GetLogEvents",lfe){},lx=class extends P(I,D,"GetLogFields",dfe){},dx=class extends P(I,D,"GetLogGroupFields",pfe){},px=class extends P(I,D,"GetLogObject",ffe){},fx=class extends P(I,D,"GetLogRecord",mfe){},mx=class extends P(I,D,"GetLookupTable",hfe){},hx=class extends P(I,D,"GetQueryResults",gfe){},gx=class extends P(I,D,"GetScheduledQuery",Sfe){},Gm=class extends P(I,D,"GetScheduledQueryHistory",yfe){},Sx=class extends P(I,D,"GetStorageTierPolicy",Efe){},yx=class extends P(I,D,"GetTransformer",_fe){},qm=class extends P(I,D,"ListAggregateLogGroupSummaries",Rfe){},jm=class extends P(I,D,"ListAnomalies",bfe){},Ex=class extends P(I,D,"ListIntegrations",Cfe){},Hm=class extends P(I,D,"ListLogAnomalyDetectors",xfe){},_x=class extends P(I,D,"ListLogGroups",Afe){},zm=class extends P(I,D,"ListLogGroupsForQuery",Tfe){},Vm=class extends P(I,D,"ListScheduledQueries",wfe){},Wm=class extends P(I,D,"ListSourcesForS3TableIntegration",vfe){},Rx=class extends P(I,D,"ListSyslogConfigurations",Pfe){},bx=class extends P(I,D,"ListTagsForResource",Ife){},Cx=class extends P(I,D,"ListTagsLogGroup",Dfe){},xx=class extends P(I,D,"PutAccountPolicy",Ofe){},Ax=class extends P(I,D,"PutBearerTokenAuthentication",kfe){},Tx=class extends P(I,D,"PutDataProtectionPolicy",$fe){},wx=class extends P(I,D,"PutDeliveryDestination",Lfe){},vx=class extends P(I,D,"PutDeliveryDestinationPolicy",Nfe){},Px=class extends P(I,D,"PutDeliverySource",Mfe){},Ix=class extends P(I,D,"PutDestination",Bfe){},Dx=class extends P(I,D,"PutDestinationPolicy",Ffe){},Ox=class extends P(I,D,"PutIndexPolicy",Ufe){},kx=class extends P(I,D,"PutIntegration",Gfe){},$x=class extends P(I,D,"PutLogEvents",qfe){},Lx=class extends P(I,D,"PutLogGroupDeletionProtection",jfe){},Nx=class extends P(I,D,"PutMetricFilter",Hfe){},Mx=class extends P(I,D,"PutQueryDefinition",zfe){},Bx=class extends P(I,D,"PutResourcePolicy",Vfe){},Fx=class extends P(I,D,"PutRetentionPolicy",Wfe){},Ux=class extends P(I,D,"PutStorageTierPolicy",Kfe){},Gx=class extends P(I,D,"PutSubscriptionFilter",Qfe){},qx=class extends P(I,D,"PutSyslogConfiguration",Jfe){},jx=class extends P(I,D,"PutTransformer",Xfe){},Hx=class extends P(I,D,"StartLiveTail",Yfe){},zx=class extends P(I,D,"StartQuery",Zfe){},Vx=class extends P(I,D,"StopQuery",eme){},Wx=class extends P(I,D,"TagLogGroup",tme){},Kx=class extends P(I,D,"TagResource",rme){},Qx=class extends P(I,D,"TestMetricFilter",nme){},Jx=class extends P(I,D,"TestTransformer",ome){},Xx=class extends P(I,D,"UntagLogGroup",sme){},Yx=class extends P(I,D,"UntagResource",ime){},Zx=class extends P(I,D,"UpdateAnomaly",ame){},eA=class extends P(I,D,"UpdateDeliveryConfiguration",cme){},tA=class extends P(I,D,"UpdateLogAnomalyDetector",ume){},rA=class extends P(I,D,"UpdateLookupTable",lme){},nA=class extends P(I,D,"UpdateScheduledQuery",dme){},pme=ur(pt,Im,"nextToken","nextToken","limit"),fme=ur(pt,Dm,"nextToken","nextToken","limit"),mme=ur(pt,Om,"nextToken","nextToken","limit"),hme=ur(pt,km,"nextToken","nextToken","limit"),gme=ur(pt,$m,"nextToken","nextToken","limit"),Sme=ur(pt,Lm,"nextToken","nextToken","limit"),yme=ur(pt,Nm,"nextToken","nextToken","limit"),Eme=ur(pt,Mm,"nextToken","nextToken","limit"),_me=ur(pt,Bm,"nextToken","nextToken","limit"),Rme=ur(pt,Fm,"nextToken","nextToken","limit"),bme=ur(pt,Um,"nextToken","nextForwardToken","limit"),Cme=ur(pt,Gm,"nextToken","nextToken","maxResults"),xme=ur(pt,qm,"nextToken","nextToken","limit"),Ame=ur(pt,jm,"nextToken","nextToken","limit"),Tme=ur(pt,Hm,"nextToken","nextToken","limit"),wme=ur(pt,zm,"nextToken","nextToken","maxResults"),vme=ur(pt,Vm,"nextToken","nextToken","maxResults"),Pme=ur(pt,Wm,"nextToken","nextToken","maxResults"),_Xe={AssociateKmsKeyCommand:pC,AssociateSourceToS3TableIntegrationCommand:fC,CancelExportTaskCommand:mC,CancelImportTaskCommand:hC,CreateDeliveryCommand:gC,CreateExportTaskCommand:SC,CreateImportTaskCommand:yC,CreateLogAnomalyDetectorCommand:EC,CreateLogGroupCommand:_C,CreateLogStreamCommand:RC,CreateLookupTableCommand:bC,CreateScheduledQueryCommand:CC,DeleteAccountPolicyCommand:xC,DeleteDataProtectionPolicyCommand:AC,DeleteDeliveryCommand:TC,DeleteDeliveryDestinationCommand:wC,DeleteDeliveryDestinationPolicyCommand:vC,DeleteDeliverySourceCommand:PC,DeleteDestinationCommand:IC,DeleteIndexPolicyCommand:DC,DeleteIntegrationCommand:OC,DeleteLogAnomalyDetectorCommand:kC,DeleteLogGroupCommand:$C,DeleteLogStreamCommand:LC,DeleteLookupTableCommand:NC,DeleteMetricFilterCommand:MC,DeleteQueryDefinitionCommand:BC,DeleteResourcePolicyCommand:FC,DeleteRetentionPolicyCommand:UC,DeleteScheduledQueryCommand:GC,DeleteSubscriptionFilterCommand:qC,DeleteSyslogConfigurationCommand:jC,DeleteTransformerCommand:HC,DescribeAccountPoliciesCommand:zC,DescribeConfigurationTemplatesCommand:Im,DescribeDeliveriesCommand:Dm,DescribeDeliveryDestinationsCommand:Om,DescribeDeliverySourcesCommand:km,DescribeDestinationsCommand:$m,DescribeExportTasksCommand:VC,DescribeFieldIndexesCommand:WC,DescribeImportTaskBatchesCommand:KC,DescribeImportTasksCommand:QC,DescribeIndexPoliciesCommand:JC,DescribeLogGroupsCommand:Lm,DescribeLogStreamsCommand:Nm,DescribeLookupTablesCommand:XC,DescribeMetricFiltersCommand:Mm,DescribeQueriesCommand:YC,DescribeQueryDefinitionsCommand:ZC,DescribeResourcePoliciesCommand:ex,DescribeSubscriptionFiltersCommand:Bm,DisassociateKmsKeyCommand:tx,DisassociateSourceFromS3TableIntegrationCommand:rx,FilterLogEventsCommand:Fm,GetDataProtectionPolicyCommand:nx,GetDeliveryCommand:ox,GetDeliveryDestinationCommand:sx,GetDeliveryDestinationPolicyCommand:ix,GetDeliverySourceCommand:ax,GetIntegrationCommand:cx,GetLogAnomalyDetectorCommand:ux,GetLogEventsCommand:Um,GetLogFieldsCommand:lx,GetLogGroupFieldsCommand:dx,GetLogObjectCommand:px,GetLogRecordCommand:fx,GetLookupTableCommand:mx,GetQueryResultsCommand:hx,GetScheduledQueryCommand:gx,GetScheduledQueryHistoryCommand:Gm,GetStorageTierPolicyCommand:Sx,GetTransformerCommand:yx,ListAggregateLogGroupSummariesCommand:qm,ListAnomaliesCommand:jm,ListIntegrationsCommand:Ex,ListLogAnomalyDetectorsCommand:Hm,ListLogGroupsCommand:_x,ListLogGroupsForQueryCommand:zm,ListScheduledQueriesCommand:Vm,ListSourcesForS3TableIntegrationCommand:Wm,ListSyslogConfigurationsCommand:Rx,ListTagsForResourceCommand:bx,ListTagsLogGroupCommand:Cx,PutAccountPolicyCommand:xx,PutBearerTokenAuthenticationCommand:Ax,PutDataProtectionPolicyCommand:Tx,PutDeliveryDestinationCommand:wx,PutDeliveryDestinationPolicyCommand:vx,PutDeliverySourceCommand:Px,PutDestinationCommand:Ix,PutDestinationPolicyCommand:Dx,PutIndexPolicyCommand:Ox,PutIntegrationCommand:kx,PutLogEventsCommand:$x,PutLogGroupDeletionProtectionCommand:Lx,PutMetricFilterCommand:Nx,PutQueryDefinitionCommand:Mx,PutResourcePolicyCommand:Bx,PutRetentionPolicyCommand:Fx,PutStorageTierPolicyCommand:Ux,PutSubscriptionFilterCommand:Gx,PutSyslogConfigurationCommand:qx,PutTransformerCommand:jx,StartLiveTailCommand:Hx,StartQueryCommand:zx,StopQueryCommand:Vx,TagLogGroupCommand:Wx,TagResourceCommand:Kx,TestMetricFilterCommand:Qx,TestTransformerCommand:Jx,UntagLogGroupCommand:Xx,UntagResourceCommand:Yx,UpdateAnomalyCommand:Zx,UpdateDeliveryConfigurationCommand:eA,UpdateLogAnomalyDetectorCommand:tA,UpdateLookupTableCommand:rA,UpdateScheduledQueryCommand:nA},RXe={paginateDescribeConfigurationTemplates:pme,paginateDescribeDeliveries:fme,paginateDescribeDeliveryDestinations:mme,paginateDescribeDeliverySources:hme,paginateDescribeDestinations:gme,paginateDescribeLogGroups:Sme,paginateDescribeLogStreams:yme,paginateDescribeMetricFilters:Eme,paginateDescribeSubscriptionFilters:_me,paginateFilterLogEvents:Rme,paginateGetLogEvents:bme,paginateGetScheduledQueryHistory:Cme,paginateListAggregateLogGroupSummaries:xme,paginateListAnomalies:Ame,paginateListLogAnomalyDetectors:Tme,paginateListLogGroupsForQuery:wme,paginateListScheduledQueries:vme,paginateListSourcesForS3TableIntegration:Pme},oA=class extends pt{};nGe(_Xe,oA,{paginators:RXe});var bXe={DATA_PROTECTION_POLICY:"DATA_PROTECTION_POLICY",FIELD_INDEX_POLICY:"FIELD_INDEX_POLICY",METRIC_EXTRACTION_POLICY:"METRIC_EXTRACTION_POLICY",SUBSCRIPTION_FILTER_POLICY:"SUBSCRIPTION_FILTER_POLICY",TRANSFORMER_POLICY:"TRANSFORMER_POLICY"},CXe={ALL:"ALL"},xXe={CLIENT_ERROR:"CLIENT_ERROR",COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},AXe={Active:"Active",Baseline:"Baseline",Suppressed:"Suppressed"},TXe={ANALYZING:"ANALYZING",DELETED:"DELETED",FAILED:"FAILED",INITIALIZING:"INITIALIZING",PAUSED:"PAUSED",TRAINING:"TRAINING"},wXe={FIFTEEN_MIN:"FIFTEEN_MIN",FIVE_MIN:"FIVE_MIN",ONE_HOUR:"ONE_HOUR",ONE_MIN:"ONE_MIN",TEN_MIN:"TEN_MIN",THIRTY_MIN:"THIRTY_MIN"},vXe={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},PXe={JSON:"json",PARQUET:"parquet",PLAIN:"plain",RAW:"raw",W3C:"w3c"},IXe={CWL:"CWL",FH:"FH",S3:"S3",XRAY:"XRAY"},DXe={BOOLEAN:"boolean",DOUBLE:"double",INT:"int",LONG:"long",STRING:"string"},OXe={DELIVERY:"DELIVERY",INFREQUENT_ACCESS:"INFREQUENT_ACCESS",STANDARD:"STANDARD"},kXe={CWLI:"CWLI",PPL:"PPL",SQL:"SQL"},$Xe={DISABLED:"DISABLED",ENABLED:"ENABLED"},LXe={ACTIVATED:"ACTIVATED",ARCHIVED:"ARCHIVED",DELETED:"DELETED",DISABLED:"DISABLED"},NXe={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},MXe={RESOURCE_DELETED:"RESOURCE_DELETED"},BXe={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",PENDING_CANCEL:"PENDING_CANCEL",RUNNING:"RUNNING"},FXe={AUTO:"AUTO",CUSTOM:"CUSTOM",DEFAULT:"DEFAULT",INACTIVE:"INACTIVE"},UXe={FACET:"FACET",FIELD_INDEX:"FIELD_INDEX"},GXe={ACCOUNT:"ACCOUNT",LOG_GROUP:"LOG_GROUP"},qXe={ACCOUNT_DATA_PROTECTION:"ACCOUNT_DATA_PROTECTION"},jXe={LastEventTime:"LastEventTime",LogStreamName:"LogStreamName"},HXe={Bits:"Bits",BitsSecond:"Bits/Second",Bytes:"Bytes",BytesSecond:"Bytes/Second",Count:"Count",CountSecond:"Count/Second",Gigabits:"Gigabits",GigabitsSecond:"Gigabits/Second",Gigabytes:"Gigabytes",GigabytesSecond:"Gigabytes/Second",Kilobits:"Kilobits",KilobitsSecond:"Kilobits/Second",Kilobytes:"Kilobytes",KilobytesSecond:"Kilobytes/Second",Megabits:"Megabits",MegabitsSecond:"Megabits/Second",Megabytes:"Megabytes",MegabytesSecond:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",TerabitsSecond:"Terabits/Second",Terabytes:"Terabytes",TerabytesSecond:"Terabytes/Second"},zXe={Cancelled:"Cancelled",Complete:"Complete",Failed:"Failed",Running:"Running",Scheduled:"Scheduled",Timeout:"Timeout",Unknown:"Unknown"},VXe={ACCOUNT:"ACCOUNT",RESOURCE:"RESOURCE"},WXe={ByLogStream:"ByLogStream",Random:"Random"},KXe={ENTITY_SIZE_TOO_LARGE:"EntitySizeTooLarge",INVALID_ATTRIBUTES:"InvalidAttributes",INVALID_ENTITY:"InvalidEntity",INVALID_KEY_ATTRIBUTE:"InvalidKeyAttributes",INVALID_TYPE_VALUE:"InvalidTypeValue",MISSING_REQUIRED_FIELDS:"MissingRequiredFields",UNSUPPORTED_LOG_GROUP_TYPE:"UnsupportedLogGroupType"},QXe={AWSWAF:"AWSWAF",CLOUD_TRAIL:"CloudTrail",EKS_AUDIT:"EKSAudit",ROUTE53_RESOLVER:"Route53Resolver",VPC_FLOW:"VPCFlow"},JXe={Complete:"Complete",Failed:"Failed",InvalidQuery:"InvalidQuery",Running:"Running",Timeout:"Timeout"},XXe={FIRST:"first",LAST:"last"},YXe={ACTIVE:"ACTIVE",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND"},ZXe={ACTIVE:"ACTIVE",FAILED:"FAILED",PROVISIONING:"PROVISIONING"},eYe={OPENSEARCH:"OPENSEARCH"},tYe={AWS_MANAGED:"AWS_MANAGED",CUSTOMER_MANAGED:"CUSTOMER_MANAGED"},rYe={LOOKUP_TABLE:"LOOKUP_TABLE",S3:"S3"},nYe={INTELLIGENT_TIERING:"INTELLIGENT_TIERING",STANDARD:"STANDARD"},oYe={V1_1:"V1.1",V1_5:"V1.5"},sYe={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string"},iYe={DATA_SOURCE_NAME_AND_TYPE:"DATA_SOURCE_NAME_AND_TYPE",DATA_SOURCE_NAME_TYPE_AND_FORMAT:"DATA_SOURCE_NAME_TYPE_AND_FORMAT"},aYe={SUPPRESSED:"SUPPRESSED",UNSUPPRESSED:"UNSUPPRESSED"},cYe={ACTIVE:"ACTIVE",DATA_SOURCE_DELETE_IN_PROGRESS:"DATA_SOURCE_DELETE_IN_PROGRESS",FAILED:"FAILED",UNHEALTHY:"UNHEALTHY"},uYe={VPCE:"VPCE"},lYe={HOURS:"HOURS",MINUTES:"MINUTES",SECONDS:"SECONDS"},dYe={INFINITE:"INFINITE",LIMITED:"LIMITED"};p.AccessDeniedException=zb;p.AccessDeniedException$=eie;p.AccountPolicy$=k1;p.ActionStatus=xXe;p.AddKeyEntry$=Eie;p.AddKeys$=_ie;p.AggregateLogGroupSummary$=Rie;p.Anomaly$=bie;p.AnomalyDetector$=Cie;p.AnomalyDetectorStatus=TXe;p.AssociateKmsKey$=rpe;p.AssociateKmsKeyCommand=pC;p.AssociateKmsKeyRequest$=xie;p.AssociateSourceToS3TableIntegration$=npe;p.AssociateSourceToS3TableIntegrationCommand=fC;p.AssociateSourceToS3TableIntegrationRequest$=Aie;p.AssociateSourceToS3TableIntegrationResponse$=Tie;p.CSV$=Kie;p.CancelExportTask$=ope;p.CancelExportTaskCommand=mC;p.CancelExportTaskRequest$=wie;p.CancelImportTask$=spe;p.CancelImportTaskCommand=hC;p.CancelImportTaskRequest$=vie;p.CancelImportTaskResponse$=Pie;p.CloudWatchLogs=oA;p.CloudWatchLogsClient=pt;p.CloudWatchLogsServiceException=Ye;p.CloudWatchLogsServiceException$=Zse;p.ConfigurationTemplate$=Iie;p.ConfigurationTemplateDeliveryConfigValues$=Die;p.ConflictException=eC;p.ConflictException$=tie;p.CopyValue$=Oie;p.CopyValueEntry$=kie;p.CreateDelivery$=ipe;p.CreateDeliveryCommand=gC;p.CreateDeliveryRequest$=$ie;p.CreateDeliveryResponse$=Lie;p.CreateExportTask$=ape;p.CreateExportTaskCommand=SC;p.CreateExportTaskRequest$=Nie;p.CreateExportTaskResponse$=Mie;p.CreateImportTask$=cpe;p.CreateImportTaskCommand=yC;p.CreateImportTaskRequest$=Bie;p.CreateImportTaskResponse$=Fie;p.CreateLogAnomalyDetector$=upe;p.CreateLogAnomalyDetectorCommand=EC;p.CreateLogAnomalyDetectorRequest$=Uie;p.CreateLogAnomalyDetectorResponse$=Gie;p.CreateLogGroup$=lpe;p.CreateLogGroupCommand=_C;p.CreateLogGroupRequest$=qie;p.CreateLogStream$=dpe;p.CreateLogStreamCommand=RC;p.CreateLogStreamRequest$=jie;p.CreateLookupTable$=ppe;p.CreateLookupTableCommand=bC;p.CreateLookupTableRequest$=Hie;p.CreateLookupTableResponse$=zie;p.CreateScheduledQuery$=fpe;p.CreateScheduledQueryCommand=CC;p.CreateScheduledQueryRequest$=Vie;p.CreateScheduledQueryResponse$=Wie;p.DataAlreadyAcceptedException=oC;p.DataAlreadyAcceptedException$=rie;p.DataProtectionStatus=LXe;p.DataSource$=$1;p.DataSourceFilter$=Qie;p.DateTimeConverter$=Jie;p.DeleteAccountPolicy$=mpe;p.DeleteAccountPolicyCommand=xC;p.DeleteAccountPolicyRequest$=Xie;p.DeleteDataProtectionPolicy$=hpe;p.DeleteDataProtectionPolicyCommand=AC;p.DeleteDataProtectionPolicyRequest$=Yie;p.DeleteDelivery$=gpe;p.DeleteDeliveryCommand=TC;p.DeleteDeliveryDestination$=Spe;p.DeleteDeliveryDestinationCommand=wC;p.DeleteDeliveryDestinationPolicy$=ype;p.DeleteDeliveryDestinationPolicyCommand=vC;p.DeleteDeliveryDestinationPolicyRequest$=Zie;p.DeleteDeliveryDestinationRequest$=eae;p.DeleteDeliveryRequest$=tae;p.DeleteDeliverySource$=Epe;p.DeleteDeliverySourceCommand=PC;p.DeleteDeliverySourceRequest$=rae;p.DeleteDestination$=_pe;p.DeleteDestinationCommand=IC;p.DeleteDestinationRequest$=nae;p.DeleteIndexPolicy$=Rpe;p.DeleteIndexPolicyCommand=DC;p.DeleteIndexPolicyRequest$=oae;p.DeleteIndexPolicyResponse$=sae;p.DeleteIntegration$=bpe;p.DeleteIntegrationCommand=OC;p.DeleteIntegrationRequest$=iae;p.DeleteIntegrationResponse$=aae;p.DeleteKeys$=cae;p.DeleteLogAnomalyDetector$=Cpe;p.DeleteLogAnomalyDetectorCommand=kC;p.DeleteLogAnomalyDetectorRequest$=uae;p.DeleteLogGroup$=xpe;p.DeleteLogGroupCommand=$C;p.DeleteLogGroupRequest$=lae;p.DeleteLogStream$=Ape;p.DeleteLogStreamCommand=LC;p.DeleteLogStreamRequest$=dae;p.DeleteLookupTable$=Tpe;p.DeleteLookupTableCommand=NC;p.DeleteLookupTableRequest$=pae;p.DeleteMetricFilter$=wpe;p.DeleteMetricFilterCommand=MC;p.DeleteMetricFilterRequest$=fae;p.DeleteQueryDefinition$=vpe;p.DeleteQueryDefinitionCommand=BC;p.DeleteQueryDefinitionRequest$=mae;p.DeleteQueryDefinitionResponse$=hae;p.DeleteResourcePolicy$=Ppe;p.DeleteResourcePolicyCommand=FC;p.DeleteResourcePolicyRequest$=gae;p.DeleteRetentionPolicy$=Ipe;p.DeleteRetentionPolicyCommand=UC;p.DeleteRetentionPolicyRequest$=Sae;p.DeleteScheduledQuery$=Dpe;p.DeleteScheduledQueryCommand=GC;p.DeleteScheduledQueryRequest$=yae;p.DeleteScheduledQueryResponse$=Eae;p.DeleteSubscriptionFilter$=Ope;p.DeleteSubscriptionFilterCommand=qC;p.DeleteSubscriptionFilterRequest$=_ae;p.DeleteSyslogConfiguration$=kpe;p.DeleteSyslogConfigurationCommand=jC;p.DeleteSyslogConfigurationRequest$=Rae;p.DeleteTransformer$=$pe;p.DeleteTransformerCommand=HC;p.DeleteTransformerRequest$=bae;p.Delivery$=NA;p.DeliveryDestination$=MA;p.DeliveryDestinationConfiguration$=L1;p.DeliveryDestinationType=IXe;p.DeliverySource$=BA;p.DeliverySourceConfigurationSchema$=Cae;p.DeliverySourceConfigurationSchemaValueType=DXe;p.DeliverySourceStatus=NXe;p.DeliverySourceStatusReason=MXe;p.DescribeAccountPolicies$=Lpe;p.DescribeAccountPoliciesCommand=zC;p.DescribeAccountPoliciesRequest$=xae;p.DescribeAccountPoliciesResponse$=Aae;p.DescribeConfigurationTemplates$=Npe;p.DescribeConfigurationTemplatesCommand=Im;p.DescribeConfigurationTemplatesRequest$=Tae;p.DescribeConfigurationTemplatesResponse$=wae;p.DescribeDeliveries$=Mpe;p.DescribeDeliveriesCommand=Dm;p.DescribeDeliveriesRequest$=vae;p.DescribeDeliveriesResponse$=Pae;p.DescribeDeliveryDestinations$=Bpe;p.DescribeDeliveryDestinationsCommand=Om;p.DescribeDeliveryDestinationsRequest$=Iae;p.DescribeDeliveryDestinationsResponse$=Dae;p.DescribeDeliverySources$=Fpe;p.DescribeDeliverySourcesCommand=km;p.DescribeDeliverySourcesRequest$=Oae;p.DescribeDeliverySourcesResponse$=kae;p.DescribeDestinations$=Upe;p.DescribeDestinationsCommand=$m;p.DescribeDestinationsRequest$=$ae;p.DescribeDestinationsResponse$=Lae;p.DescribeExportTasks$=Gpe;p.DescribeExportTasksCommand=VC;p.DescribeExportTasksRequest$=Nae;p.DescribeExportTasksResponse$=Mae;p.DescribeFieldIndexes$=qpe;p.DescribeFieldIndexesCommand=WC;p.DescribeFieldIndexesRequest$=Bae;p.DescribeFieldIndexesResponse$=Fae;p.DescribeImportTaskBatches$=jpe;p.DescribeImportTaskBatchesCommand=KC;p.DescribeImportTaskBatchesRequest$=Uae;p.DescribeImportTaskBatchesResponse$=Gae;p.DescribeImportTasks$=Hpe;p.DescribeImportTasksCommand=QC;p.DescribeImportTasksRequest$=qae;p.DescribeImportTasksResponse$=jae;p.DescribeIndexPolicies$=zpe;p.DescribeIndexPoliciesCommand=JC;p.DescribeIndexPoliciesRequest$=Hae;p.DescribeIndexPoliciesResponse$=zae;p.DescribeLogGroups$=Vpe;p.DescribeLogGroupsCommand=Lm;p.DescribeLogGroupsRequest$=Vae;p.DescribeLogGroupsResponse$=Wae;p.DescribeLogStreams$=Wpe;p.DescribeLogStreamsCommand=Nm;p.DescribeLogStreamsRequest$=Kae;p.DescribeLogStreamsResponse$=Qae;p.DescribeLookupTables$=Kpe;p.DescribeLookupTablesCommand=XC;p.DescribeLookupTablesRequest$=Jae;p.DescribeLookupTablesResponse$=Xae;p.DescribeMetricFilters$=Qpe;p.DescribeMetricFiltersCommand=Mm;p.DescribeMetricFiltersRequest$=Yae;p.DescribeMetricFiltersResponse$=Zae;p.DescribeQueries$=Jpe;p.DescribeQueriesCommand=YC;p.DescribeQueriesRequest$=ece;p.DescribeQueriesResponse$=tce;p.DescribeQueryDefinitions$=Xpe;p.DescribeQueryDefinitionsCommand=ZC;p.DescribeQueryDefinitionsRequest$=rce;p.DescribeQueryDefinitionsResponse$=nce;p.DescribeResourcePolicies$=Ype;p.DescribeResourcePoliciesCommand=ex;p.DescribeResourcePoliciesRequest$=oce;p.DescribeResourcePoliciesResponse$=sce;p.DescribeSubscriptionFilters$=Zpe;p.DescribeSubscriptionFiltersCommand=Bm;p.DescribeSubscriptionFiltersRequest$=ice;p.DescribeSubscriptionFiltersResponse$=ace;p.Destination$=N1;p.DestinationConfiguration$=yd;p.DisassociateKmsKey$=efe;p.DisassociateKmsKeyCommand=tx;p.DisassociateKmsKeyRequest$=cce;p.DisassociateSourceFromS3TableIntegration$=tfe;p.DisassociateSourceFromS3TableIntegrationCommand=rx;p.DisassociateSourceFromS3TableIntegrationRequest$=uce;p.DisassociateSourceFromS3TableIntegrationResponse$=lce;p.Distribution=WXe;p.Entity$=dce;p.EntityRejectionErrorType=KXe;p.EvaluationFrequency=wXe;p.EventSource=QXe;p.ExecutionStatus=JXe;p.ExportTask$=pce;p.ExportTaskExecutionInfo$=fce;p.ExportTaskStatus$=mce;p.ExportTaskStatusCode=BXe;p.FieldIndex$=hce;p.FieldsData$=gce;p.FilterLogEvents$=rfe;p.FilterLogEventsCommand=Fm;p.FilterLogEventsRequest$=yce;p.FilterLogEventsResponse$=Ece;p.FilteredLogEvent$=Sce;p.FlattenedElement=XXe;p.GetDataProtectionPolicy$=nfe;p.GetDataProtectionPolicyCommand=nx;p.GetDataProtectionPolicyRequest$=_ce;p.GetDataProtectionPolicyResponse$=Rce;p.GetDelivery$=ofe;p.GetDeliveryCommand=ox;p.GetDeliveryDestination$=sfe;p.GetDeliveryDestinationCommand=sx;p.GetDeliveryDestinationPolicy$=ife;p.GetDeliveryDestinationPolicyCommand=ix;p.GetDeliveryDestinationPolicyRequest$=bce;p.GetDeliveryDestinationPolicyResponse$=Cce;p.GetDeliveryDestinationRequest$=xce;p.GetDeliveryDestinationResponse$=Ace;p.GetDeliveryRequest$=Tce;p.GetDeliveryResponse$=wce;p.GetDeliverySource$=afe;p.GetDeliverySourceCommand=ax;p.GetDeliverySourceRequest$=vce;p.GetDeliverySourceResponse$=Pce;p.GetIntegration$=cfe;p.GetIntegrationCommand=cx;p.GetIntegrationRequest$=Ice;p.GetIntegrationResponse$=Dce;p.GetLogAnomalyDetector$=ufe;p.GetLogAnomalyDetectorCommand=ux;p.GetLogAnomalyDetectorRequest$=Oce;p.GetLogAnomalyDetectorResponse$=kce;p.GetLogEvents$=lfe;p.GetLogEventsCommand=Um;p.GetLogEventsRequest$=$ce;p.GetLogEventsResponse$=Lce;p.GetLogFields$=dfe;p.GetLogFieldsCommand=lx;p.GetLogFieldsRequest$=Nce;p.GetLogFieldsResponse$=Mce;p.GetLogGroupFields$=pfe;p.GetLogGroupFieldsCommand=dx;p.GetLogGroupFieldsRequest$=Bce;p.GetLogGroupFieldsResponse$=Fce;p.GetLogObject$=ffe;p.GetLogObjectCommand=px;p.GetLogObjectRequest$=Uce;p.GetLogObjectResponse$=Gce;p.GetLogObjectResponseStream$=Yde;p.GetLogRecord$=mfe;p.GetLogRecordCommand=fx;p.GetLogRecordRequest$=qce;p.GetLogRecordResponse$=jce;p.GetLookupTable$=hfe;p.GetLookupTableCommand=mx;p.GetLookupTableRequest$=Hce;p.GetLookupTableResponse$=zce;p.GetQueryResults$=gfe;p.GetQueryResultsCommand=hx;p.GetQueryResultsRequest$=Vce;p.GetQueryResultsResponse$=Wce;p.GetScheduledQuery$=Sfe;p.GetScheduledQueryCommand=gx;p.GetScheduledQueryHistory$=yfe;p.GetScheduledQueryHistoryCommand=Gm;p.GetScheduledQueryHistoryRequest$=Kce;p.GetScheduledQueryHistoryResponse$=Qce;p.GetScheduledQueryRequest$=Jce;p.GetScheduledQueryResponse$=Xce;p.GetStorageTierPolicy$=Efe;p.GetStorageTierPolicyCommand=Sx;p.GetStorageTierPolicyRequest$=Yce;p.GetStorageTierPolicyResponse$=Zce;p.GetTransformer$=_fe;p.GetTransformerCommand=yx;p.GetTransformerRequest$=eue;p.GetTransformerResponse$=tue;p.Grok$=rue;p.GroupingIdentifier$=nue;p.Import$=oue;p.ImportBatch$=sue;p.ImportFilter$=M1;p.ImportStatistics$=B1;p.ImportStatus=vXe;p.IndexCategory=FXe;p.IndexPolicy$=F1;p.IndexSource=GXe;p.IndexType=UXe;p.InheritedProperty=qXe;p.InputLogEvent$=iue;p.IntegrationDetails$=Zde;p.IntegrationStatus=ZXe;p.IntegrationSummary$=aue;p.IntegrationType=eYe;p.InternalServerException=Jb;p.InternalServerException$=nie;p.InternalStreamingException=sC;p.InternalStreamingException$=I1;p.InvalidOperationException=Zb;p.InvalidOperationException$=oie;p.InvalidParameterException=Vb;p.InvalidParameterException$=sie;p.InvalidSequenceTokenException=iC;p.InvalidSequenceTokenException$=iie;p.LimitExceededException=rC;p.LimitExceededException$=aie;p.ListAggregateLogGroupSummaries$=Rfe;p.ListAggregateLogGroupSummariesCommand=qm;p.ListAggregateLogGroupSummariesGroupBy=iYe;p.ListAggregateLogGroupSummariesRequest$=cue;p.ListAggregateLogGroupSummariesResponse$=uue;p.ListAnomalies$=bfe;p.ListAnomaliesCommand=jm;p.ListAnomaliesRequest$=lue;p.ListAnomaliesResponse$=due;p.ListIntegrations$=Cfe;p.ListIntegrationsCommand=Ex;p.ListIntegrationsRequest$=pue;p.ListIntegrationsResponse$=fue;p.ListLogAnomalyDetectors$=xfe;p.ListLogAnomalyDetectorsCommand=Hm;p.ListLogAnomalyDetectorsRequest$=mue;p.ListLogAnomalyDetectorsResponse$=hue;p.ListLogGroups$=Afe;p.ListLogGroupsCommand=_x;p.ListLogGroupsForQuery$=Tfe;p.ListLogGroupsForQueryCommand=zm;p.ListLogGroupsForQueryRequest$=gue;p.ListLogGroupsForQueryResponse$=Sue;p.ListLogGroupsRequest$=yue;p.ListLogGroupsResponse$=Eue;p.ListScheduledQueries$=wfe;p.ListScheduledQueriesCommand=Vm;p.ListScheduledQueriesRequest$=_ue;p.ListScheduledQueriesResponse$=Rue;p.ListSourcesForS3TableIntegration$=vfe;p.ListSourcesForS3TableIntegrationCommand=Wm;p.ListSourcesForS3TableIntegrationRequest$=bue;p.ListSourcesForS3TableIntegrationResponse$=Cue;p.ListSyslogConfigurations$=Pfe;p.ListSyslogConfigurationsCommand=Rx;p.ListSyslogConfigurationsRequest$=xue;p.ListSyslogConfigurationsResponse$=Aue;p.ListTagsForResource$=Ife;p.ListTagsForResourceCommand=bx;p.ListTagsForResourceRequest$=Tue;p.ListTagsForResourceResponse$=wue;p.ListTagsLogGroup$=Dfe;p.ListTagsLogGroupCommand=Cx;p.ListTagsLogGroupRequest$=vue;p.ListTagsLogGroupResponse$=Pue;p.ListToMap$=Iue;p.LiveTailSessionLogEvent$=Due;p.LiveTailSessionMetadata$=Oue;p.LiveTailSessionStart$=kue;p.LiveTailSessionUpdate$=$ue;p.LogEvent$=Lue;p.LogFieldType$=U1;p.LogFieldsListItem$=Nue;p.LogGroup$=Mue;p.LogGroupClass=OXe;p.LogGroupField$=Bue;p.LogGroupSummary$=Fue;p.LogStream$=Uue;p.LookupTable$=Gue;p.LookupTableConfiguration$=que;p.LowerCaseString$=jue;p.MalformedQueryException=lC;p.MalformedQueryException$=cie;p.MetricFilter$=Hue;p.MetricFilterMatchRecord$=zue;p.MetricTransformation$=Vue;p.MoveKeyEntry$=Wue;p.MoveKeys$=Kue;p.OCSFVersion=oYe;p.OpenSearchApplication$=Que;p.OpenSearchCollection$=Jue;p.OpenSearchDataAccessPolicy$=Xue;p.OpenSearchDataSource$=Yue;p.OpenSearchEncryptionPolicy$=Zue;p.OpenSearchIntegrationDetails$=ele;p.OpenSearchLifecyclePolicy$=tle;p.OpenSearchNetworkPolicy$=rle;p.OpenSearchResourceConfig$=nle;p.OpenSearchResourceStatus$=gi;p.OpenSearchResourceStatusType=YXe;p.OpenSearchWorkspace$=ole;p.OperationAbortedException=Wb;p.OperationAbortedException$=uie;p.OrderBy=jXe;p.OutputFormat=PXe;p.OutputLogEvent$=sle;p.ParseCloudfront$=ile;p.ParseJSON$=ale;p.ParseKeyValue$=cle;p.ParsePostgres$=ule;p.ParseRoute53$=lle;p.ParseToOCSF$=dle;p.ParseVPC$=ple;p.ParseWAF$=fle;p.PatternToken$=mle;p.Policy$=G1;p.PolicyScope=VXe;p.PolicyType=bXe;p.Processor$=hle;p.PutAccountPolicy$=Ofe;p.PutAccountPolicyCommand=xx;p.PutAccountPolicyRequest$=gle;p.PutAccountPolicyResponse$=Sle;p.PutBearerTokenAuthentication$=kfe;p.PutBearerTokenAuthenticationCommand=Ax;p.PutBearerTokenAuthenticationRequest$=yle;p.PutDataProtectionPolicy$=$fe;p.PutDataProtectionPolicyCommand=Tx;p.PutDataProtectionPolicyRequest$=Ele;p.PutDataProtectionPolicyResponse$=_le;p.PutDeliveryDestination$=Lfe;p.PutDeliveryDestinationCommand=wx;p.PutDeliveryDestinationPolicy$=Nfe;p.PutDeliveryDestinationPolicyCommand=vx;p.PutDeliveryDestinationPolicyRequest$=Rle;p.PutDeliveryDestinationPolicyResponse$=ble;p.PutDeliveryDestinationRequest$=Cle;p.PutDeliveryDestinationResponse$=xle;p.PutDeliverySource$=Mfe;p.PutDeliverySourceCommand=Px;p.PutDeliverySourceRequest$=Ale;p.PutDeliverySourceResponse$=Tle;p.PutDestination$=Bfe;p.PutDestinationCommand=Ix;p.PutDestinationPolicy$=Ffe;p.PutDestinationPolicyCommand=Dx;p.PutDestinationPolicyRequest$=wle;p.PutDestinationRequest$=vle;p.PutDestinationResponse$=Ple;p.PutIndexPolicy$=Ufe;p.PutIndexPolicyCommand=Ox;p.PutIndexPolicyRequest$=Ile;p.PutIndexPolicyResponse$=Dle;p.PutIntegration$=Gfe;p.PutIntegrationCommand=kx;p.PutIntegrationRequest$=Ole;p.PutIntegrationResponse$=kle;p.PutLogEvents$=qfe;p.PutLogEventsCommand=$x;p.PutLogEventsRequest$=$le;p.PutLogEventsResponse$=Lle;p.PutLogGroupDeletionProtection$=jfe;p.PutLogGroupDeletionProtectionCommand=Lx;p.PutLogGroupDeletionProtectionRequest$=Nle;p.PutMetricFilter$=Hfe;p.PutMetricFilterCommand=Nx;p.PutMetricFilterRequest$=Mle;p.PutQueryDefinition$=zfe;p.PutQueryDefinitionCommand=Mx;p.PutQueryDefinitionRequest$=Ble;p.PutQueryDefinitionResponse$=Fle;p.PutResourcePolicy$=Vfe;p.PutResourcePolicyCommand=Bx;p.PutResourcePolicyRequest$=Ule;p.PutResourcePolicyResponse$=Gle;p.PutRetentionPolicy$=Wfe;p.PutRetentionPolicyCommand=Fx;p.PutRetentionPolicyRequest$=qle;p.PutStorageTierPolicy$=Kfe;p.PutStorageTierPolicyCommand=Ux;p.PutStorageTierPolicyRequest$=jle;p.PutStorageTierPolicyResponse$=Hle;p.PutSubscriptionFilter$=Qfe;p.PutSubscriptionFilterCommand=Gx;p.PutSubscriptionFilterRequest$=zle;p.PutSyslogConfiguration$=Jfe;p.PutSyslogConfigurationCommand=qx;p.PutSyslogConfigurationRequest$=Vle;p.PutTransformer$=Xfe;p.PutTransformerCommand=jx;p.PutTransformerRequest$=Wle;p.QueryCompileError$=Kle;p.QueryCompileErrorLocation$=Qle;p.QueryDefinition$=Jle;p.QueryInfo$=Xle;p.QueryLanguage=kXe;p.QueryParameter$=Yle;p.QueryStatistics$=Zle;p.QueryStatus=zXe;p.RecordField$=ede;p.RejectedEntityInfo$=tde;p.RejectedLogEventsInfo$=rde;p.RenameKeyEntry$=nde;p.RenameKeys$=ode;p.ResourceAlreadyExistsException=nC;p.ResourceAlreadyExistsException$=lie;p.ResourceConfig$=epe;p.ResourceNotFoundException=Kb;p.ResourceNotFoundException$=die;p.ResourcePolicy$=q1;p.ResultField$=sde;p.S3Configuration$=ide;p.S3DeliveryConfiguration$=rh;p.S3TableIntegrationSource$=ade;p.S3TableIntegrationSourceStatus=cYe;p.S3TablesIntegration$=cde;p.ScheduleType=tYe;p.ScheduledQueryDestination$=ude;p.ScheduledQueryDestinationType=rYe;p.ScheduledQueryState=$Xe;p.ScheduledQuerySummary$=lde;p.Scope=CXe;p.SearchedLogStream$=dde;p.ServiceQuotaExceededException=tC;p.ServiceQuotaExceededException$=pie;p.ServiceUnavailableException=Qb;p.ServiceUnavailableException$=fie;p.SessionStreamingException=cC;p.SessionStreamingException$=D1;p.SessionTimeoutException=uC;p.SessionTimeoutException$=O1;p.SplitString$=pde;p.SplitStringEntry$=fde;p.StandardUnit=HXe;p.StartLiveTail$=Yfe;p.StartLiveTailCommand=Hx;p.StartLiveTailRequest$=mde;p.StartLiveTailResponse$=hde;p.StartLiveTailResponseStream$=tpe;p.StartQuery$=Zfe;p.StartQueryCommand=zx;p.StartQueryRequest$=gde;p.StartQueryResponse$=Sde;p.State=AXe;p.StopQuery$=eme;p.StopQueryCommand=Vx;p.StopQueryRequest$=yde;p.StopQueryResponse$=Ede;p.StorageTier=nYe;p.SubscriptionFilter$=_de;p.SubstituteString$=Rde;p.SubstituteStringEntry$=bde;p.SuppressionPeriod$=Cde;p.SuppressionState=aYe;p.SuppressionType=dYe;p.SuppressionUnit=lYe;p.SyslogConfiguration$=xde;p.SyslogSourceType=uYe;p.TagFilter$=Ade;p.TagLogGroup$=tme;p.TagLogGroupCommand=Wx;p.TagLogGroupRequest$=Tde;p.TagResource$=rme;p.TagResourceCommand=Kx;p.TagResourceRequest$=wde;p.TestMetricFilter$=nme;p.TestMetricFilterCommand=Qx;p.TestMetricFilterRequest$=vde;p.TestMetricFilterResponse$=Pde;p.TestTransformer$=ome;p.TestTransformerCommand=Jx;p.TestTransformerRequest$=Ide;p.TestTransformerResponse$=Dde;p.ThrottlingException=Xb;p.ThrottlingException$=mie;p.TooManyTagsException=dC;p.TooManyTagsException$=hie;p.TransformedLogRecord$=Ode;p.TriggerHistoryRecord$=kde;p.TrimString$=$de;p.Type=sYe;p.TypeConverter$=Lde;p.TypeConverterEntry$=Nde;p.UnrecognizedClientException=aC;p.UnrecognizedClientException$=gie;p.UntagLogGroup$=sme;p.UntagLogGroupCommand=Xx;p.UntagLogGroupRequest$=Mde;p.UntagResource$=ime;p.UntagResourceCommand=Yx;p.UntagResourceRequest$=Bde;p.UpdateAnomaly$=ame;p.UpdateAnomalyCommand=Zx;p.UpdateAnomalyRequest$=Fde;p.UpdateDeliveryConfiguration$=cme;p.UpdateDeliveryConfigurationCommand=eA;p.UpdateDeliveryConfigurationRequest$=Ude;p.UpdateDeliveryConfigurationResponse$=Gde;p.UpdateLogAnomalyDetector$=ume;p.UpdateLogAnomalyDetectorCommand=tA;p.UpdateLogAnomalyDetectorRequest$=qde;p.UpdateLookupTable$=lme;p.UpdateLookupTableCommand=rA;p.UpdateLookupTableRequest$=jde;p.UpdateLookupTableResponse$=Hde;p.UpdateScheduledQuery$=dme;p.UpdateScheduledQueryCommand=nA;p.UpdateScheduledQueryRequest$=zde;p.UpdateScheduledQueryResponse$=Vde;p.UpperCaseString$=Wde;p.ValidationException=Yb;p.ValidationException$=Sie;p.errorTypeRegistries=yie;p.paginateDescribeConfigurationTemplates=pme;p.paginateDescribeDeliveries=fme;p.paginateDescribeDeliveryDestinations=mme;p.paginateDescribeDeliverySources=hme;p.paginateDescribeDestinations=gme;p.paginateDescribeLogGroups=Sme;p.paginateDescribeLogStreams=yme;p.paginateDescribeMetricFilters=Eme;p.paginateDescribeSubscriptionFilters=_me;p.paginateFilterLogEvents=Rme;p.paginateGetLogEvents=bme;p.paginateGetScheduledQueryHistory=Cme;p.paginateListAggregateLogGroupSummaries=xme;p.paginateListAnomalies=Ame;p.paginateListLogAnomalyDetectors=Tme;p.paginateListLogGroupsForQuery=wme;p.paginateListScheduledQueries=vme;p.paginateListSourcesForS3TableIntegration=Pme});var gYe={};mt(gYe,{handler:()=>hYe});module.exports=F(gYe);var od=Oe(fre()),hre=new od.S3Client({}),gre="lambda-web-source";async function Sre(t){let e=t.ResourceProperties,r=`s3://${e.DestinationBucket}/${e.DestinationKey}`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=`${e.SourceBucket}/${e.SourceKey}${e.SourceVersion?`?versionId=${e.SourceVersion}`:""}`,o=await mre("HeadObject on the code bucket",()=>g3e(e.DestinationBucket,e.DestinationKey));if(o?.source===n&&o.versionId)return{PhysicalResourceId:r,Data:{VersionId:o.versionId}};let s=await mre(`CopyObject from ${n}`,()=>hre.send(new od.CopyObjectCommand({Bucket:e.DestinationBucket,Key:e.DestinationKey,CopySource:encodeURI(n),MetadataDirective:"REPLACE",Metadata:{[gre]:n}})));if(!s.VersionId)throw new Error(`Code bucket ${e.DestinationBucket} must have versioning enabled: Lambda Web Functions reject unversioned code objects`);return{PhysicalResourceId:r,Data:{VersionId:s.VersionId}}}async function g3e(t,e){try{let r=await hre.send(new od.HeadObjectCommand({Bucket:t,Key:e}));return{versionId:r.VersionId,source:r.Metadata?.[gre]}}catch(r){if(S3e(r))return;throw r}}async function mre(t,e){try{return await e()}catch(r){let n=r;throw n.message=`${t} failed: ${n.name} (HTTP ${n.$metadata?.httpStatusCode??"?"}): ${n.message}`,n}}function S3e(t){let e=t;return e.name==="NotFound"||e.name==="NoSuchKey"||e.$metadata?.httpStatusCode===404}var qb=Oe(n1());var Roe="Custom::LambdaWebCode",boe="Custom::LambdaWebLogGroup",Coe="Custom::LambdaWebEndpointLookup";function xoe(t){return`Domain.${t}`}var Aoe="Custom::LambdaWebRevisionCleanup";async function Toe(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let r=e.FunctionArn.split(":")[3],o=await new qb.LambdaWebClient({region:r}).send(new qb.GetWebFunctionEndpointCommand({functionName:e.FunctionArn,endpointName:e.EndpointName})),s={};for(let[i,a]of Object.entries(o.regionalEndpoints??{}))a.domainName&&(s[xoe(i)]=a.domainName);return{PhysicalResourceId:e.EndpointArn,Data:s}}var Yn=Oe(Ime()),Dme=new Map;function H1(t){let e=Dme.get(t);return e||(e=new Yn.CloudWatchLogsClient({region:t}),Dme.set(t,e)),e}var Ome={seconds:t=>new Promise(e=>setTimeout(e,t*1e3))};async function $me(t){let e=t.ResourceProperties,r=`${e.Region}:${e.LogGroupName}`;return t.RequestType==="Delete"?(e.RemovalPolicy==="destroy"&&await fYe(e),{PhysicalResourceId:t.PhysicalResourceId}):(await pYe(e),{PhysicalResourceId:r})}async function pYe(t){let e=H1(t.Region);try{await e.send(new Yn.CreateLogGroupCommand({logGroupName:t.LogGroupName}))}catch(r){if(r.name!=="ResourceAlreadyExistsException")throw r}t.RetentionInDays==="Infinite"?await e.send(new Yn.DeleteRetentionPolicyCommand({logGroupName:t.LogGroupName})):await e.send(new Yn.PutRetentionPolicyCommand({logGroupName:t.LogGroupName,retentionInDays:Number(t.RetentionInDays)}))}async function fYe(t){await Ome.seconds(Number(t.FlushWaitSeconds)),await kme(t),await Ome.seconds(Number(t.RecheckWaitSeconds)),await mYe(t)&&await kme(t)}async function kme(t){try{await H1(t.Region).send(new Yn.DeleteLogGroupCommand({logGroupName:t.LogGroupName}))}catch(e){if(e.name!=="ResourceNotFoundException")throw e}}async function mYe(t){return((await H1(t.Region).send(new Yn.DescribeLogGroupsCommand({logGroupNamePrefix:t.LogGroupName}))).logGroups??[]).some(r=>r.logGroupName===t.LogGroupName)}var Ed=Oe(n1());async function Lme(t){let e=t.ResourceProperties,r=`${e.FunctionArn}/revision-cleanup`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=t.RequestType==="Update"?t.OldResourceProperties.RevisionIds??[]:[],o=new Set([...e.RevisionIds??[],...n]),s=[],i=[];try{let a=new Ed.LambdaWebClient({region:e.FunctionArn.split(":")[3]}),c=[];for await(let u of(0,Ed.paginateListWebFunctionRevisions)({client:a},{functionName:e.FunctionArn}))c.push(...u.revisions??[]);c.sort((u,f)=>(f.createdAt?.getTime()??0)-(u.createdAt?.getTime()??0));for(let u of c.slice(Number(e.Keep))){let f=u.revisionId;if(!o.has(f))try{await a.send(new Ed.DeleteWebFunctionRevisionCommand({functionName:e.FunctionArn,revisionId:f})),s.push(f)}catch(m){let y=m.name;if(y==="ConflictException")i.push(f);else if(y!=="ResourceNotFoundException")throw m}}console.log(JSON.stringify({msg:"revision cleanup",total:c.length,keep:Number(e.Keep),deleted:s,inUse:i}))}catch(a){console.warn(JSON.stringify({msg:"revision cleanup failed; old revisions are left in place",error:`${a.name}: ${a.message}`,deleted:s}))}return{PhysicalResourceId:r,Data:{Deleted:String(s.length)}}}async function hYe(t){switch(t.ResourceType){case Roe:return Sre(t);case boe:return $me(t);case Coe:return Toe(t);case Aoe:return Lme(t);default:throw new Error(`Unsupported resource type: ${t.ResourceType}`)}}0&&(module.exports={handler});
58
+ `),I8=!0)),new wE("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),GOe(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:o,ssoRoleName:s,ssoSession:i}=t;if(!r&&!n&&!o&&!s&&!i)throw new wE("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=ok();return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=v8();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=Vk();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=Kk();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await jOe(t))()),async()=>{throw new wE("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],w8),KOe=t=>t?.expiration!==void 0,w8=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;PE.credentialsTreatedAsExpired=w8;PE.credentialsWillNeedRefresh=KOe;PE.defaultProvider=WOe});var bJ=st(R=>{var{awsEndpointFunctions:QOe,emitWarningIfUnsupportedVersion:YOe,createDefaultUserAgentProvider:JOe,NODE_APP_ID_CONFIG_OPTIONS:XOe,getAwsRegionExtensionConfiguration:ZOe,resolveAwsRegionExtensionConfiguration:e$e,resolveUserAgentConfig:t$e,resolveHostHeaderConfig:r$e,getUserAgentPlugin:n$e,getHostHeaderPlugin:o$e,getLoggerPlugin:s$e,getRecursionDetectionPlugin:i$e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:a$e,DefaultIdentityProviderConfig:c$e,getHttpSigningPlugin:u$e,createPaginator:Js}=(jt(),F(Al)),{normalizeProvider:M8,getSmithyContext:l$e,ServiceException:d$e,NoOpLogger:p$e,emitWarningIfUnsupportedVersion:f$e,loadConfigsForDefaultMode:m$e,getDefaultExtensionConfiguration:g$e,resolveDefaultRuntimeConfig:h$e,Client:L8,makeBuilder:S$e,createWaiter:Fa,checkExceptions:z_,WaiterState:Oi,createAggregatedClient:y$e}=(J(),F(bo)),{Command:E$e}=(J(),F(bo));R.$Command=E$e;R.__Client=L8;var{resolveDefaultsModeConfig:_$e,loadConfig:Pi,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:R$e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:C$e,NODE_REGION_CONFIG_OPTIONS:b$e,NODE_REGION_CONFIG_FILE_OPTIONS:A$e,resolveRegionConfig:x$e}=(ye(),F(Br)),{BinaryDecisionDiagram:T$e,EndpointCache:v$e,decideEndpoint:D$e,customEndpointFunctions:I$e,resolveEndpointConfig:w$e,getEndpointPlugin:P$e}=(He(),F(Hp)),{parseUrl:O$e,getHttpHandlerExtensionConfiguration:$$e,resolveHttpHandlerRuntimeConfig:k$e,getContentLengthPlugin:M$e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:L$e,NODE_RETRY_MODE_CONFIG_OPTIONS:N$e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:F$e,resolveRetryConfig:B$e,getRetryPlugin:U$e}=(en(),F(rf)),{TypeRegistry:N8,getSchemaSerdePlugin:G$e}=(ae(),F(vp)),{NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS:q$e,NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS:H$e,resolveCompressionConfig:j$e,getCompressionPlugin:z$e}=VH(),{resolveAwsSdkSigV4Config:V$e,AwsSdkSigV4Signer:W$e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:K$e}=(rr(),F(Dl)),{defaultProvider:Q$e}=Rm(),{toUtf8:Y$e,fromUtf8:J$e,toBase64:X$e,fromBase64:Z$e,calculateBodyLength:eke}=(j(),F(To)),{streamCollector:tke,NodeHttpHandler:rke}=zs(),{AwsJson1_0Protocol:nke}=(Di(),F(zy)),{Sha256:oke}=(On(),F(zp)),ske=async(t,e,r)=>({operation:l$e(e).operation,region:await M8(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ike(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"monitoring",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var ake=t=>{let e=[];switch(t.operation){default:e.push(ike(t))}return e},cke=t=>{let e=V$e(t);return Object.assign(e,{authSchemePreference:M8(t.authSchemePreference??[])})},uke=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"monitoring"}),lke={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},dke="3.1151.0",pke={version:dke},bm="ref",Kc=-1,OE=!0,P8="isSet",F8="PartitionResult",$E="booleanEquals",Yk="getAttr",O8={[bm]:"Endpoint"},Jk={[bm]:F8},Cm={},$8=[{[bm]:"Region"}],k8={conditions:[[P8,[O8]],[P8,$8],["aws.partition",$8,F8],[$E,[{[bm]:"UseFIPS"},OE]],[$E,[{[bm]:"UseDualStack"},OE]],["stringEquals",[{fn:Yk,argv:[Jk,"name"]},"aws-us-gov"]],[$E,[{fn:Yk,argv:[Jk,"supportsFIPS"]},OE]],[$E,[{fn:Yk,argv:[Jk,"supportsDualStack"]},OE]]],results:[[Kc],[Kc,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Kc,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[O8,Cm],["https://monitoring.{Region}.{PartitionResult#dnsSuffix}",Cm],["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",Cm],["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Cm],[Kc,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",Cm],[Kc,"FIPS is enabled but this partition does not support FIPS"],[Kc,"DualStack is enabled but this partition does not support DualStack"],[Kc,"Invalid Configuration: Missing Region"]]},fke=2,rn=1e8,mke=new Int32Array([-1,1,-1,0,14,3,1,4,rn+11,2,5,rn+11,3,8,6,4,7,rn+4,7,rn+5,rn+10,4,11,9,5,rn+4,10,6,rn+8,rn+9,5,rn+5,12,6,13,rn+7,7,rn+6,rn+7,3,rn+1,15,4,rn+2,rn+3]),gke=T$e.from(mke,fke,k8.conditions,k8.results),hke=new v$e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ske=(t,e={})=>hke.get(t,()=>D$e(gke,{endpointParams:t,logger:e.logger}));I$e.aws=QOe;var ut=class t extends d$e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch#CloudWatchServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},kE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConflictException";name="ConflictException";$fault="client";Message;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},ME=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsAccessDeniedException";name="KmsAccessDeniedException";$fault="client";Message;constructor(e){super({name:"KmsAccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},LE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyDisabledException";name="KmsKeyDisabledException";$fault="client";Message;constructor(e){super({name:"KmsKeyDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},NE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#KmsKeyNotFoundException";name="KmsKeyNotFoundException";$fault="client";Message;constructor(e){super({name:"KmsKeyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},FE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";ResourceType;ResourceId;Message;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.ResourceType=e.ResourceType,this.ResourceId=e.ResourceId,this.Message=e.Message}},BE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ConcurrentModificationException";name="ConcurrentModificationException";$fault="client";Message;constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},UE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardInvalidInputError";name="DashboardInvalidInputError";$fault="client";dashboardValidationMessages;constructor(e){super({name:"DashboardInvalidInputError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.dashboardValidationMessages=e.dashboardValidationMessages}},GE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#DashboardNotFoundError";name="DashboardNotFoundError";$fault="client";constructor(e){super({name:"DashboardNotFoundError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceConflict";name="ResourceConflict";$fault="client";constructor(e){super({name:"ResourceConflict",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ResourceNotFound";name="ResourceNotFound";$fault="client";constructor(e){super({name:"ResourceNotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InternalServiceFault";name="InternalServiceFault";$fault="server";Message;constructor(e){super({name:"InternalServiceFault",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},zE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterCombinationException";name="InvalidParameterCombinationException";$fault="client";constructor(e){super({name:"InvalidParameterCombinationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},VE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidParameterValueException";name="InvalidParameterValueException";$fault="client";constructor(e){super({name:"InvalidParameterValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#MissingRequiredParameterException";name="MissingRequiredParameterException";$fault="client";constructor(e){super({name:"MissingRequiredParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidNextToken";name="InvalidNextToken";$fault="client";constructor(e){super({name:"InvalidNextToken",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededException";name="LimitExceededException";$fault="client";Message;constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.Message=e.Message}},YE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#LimitExceededFault";name="LimitExceededFault";$fault="client";constructor(e){super({name:"LimitExceededFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#InvalidFormatFault";name="InvalidFormatFault";$fault="client";constructor(e){super({name:"InvalidFormatFault",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XE=class t extends ut{static shapeId="com.amazonaws.cloudwatch#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},B8="Average",td="AlarmActions",yke="ApproximateAggregateValue",Xk="AlarmArn",Eke="AlarmContributor",_ke="AlarmContributorAttributes",U8="AlarmContributorId",Zk="AlarmConfigurationUpdatedTimestamp",G8="AlarmContributors",Rke="AnomalyDetector",Cke="AnomalyDetectorConfiguration",bke="AnomalyDetectorExcludedTimeRanges",e1="AnomalyDetectorId",Ake="AnomalyDetectorIds",xke="AssociateDatasetKmsKey",Tke="AssociateDatasetKmsKeyInput",vke="AssociateDatasetKmsKeyOutput",Dke="AnomalyDetectorTypes",rd="AlarmDescription",q8="AnomalyDetectors",nd="ActionsEnabled",Ike="AggregationExpression",wke="AlarmHistoryItem",H8="AlarmHistoryItems",j8="AccountId",z8="ActionLogLineCount",V8="ActionLogLineRoleArn",W8="AlarmMuteRuleArn",K8="AlarmMuteRuleName",Pke="AlarmMuteRuleSummary",Q8="AlarmMuteRuleSummaries",Vo="AlarmName",Oke="AlarmNamePrefix",km="AlarmNames",Y8="ApplyOnTransformedLogs",$ke="ActionPrefix",kke="AlarmPromQLCriteria",J8="AlarmRule",X8="ActionsSuppressor",Mke="ActionsSuppressedBy",Z8="ActionsSuppressorExtensionPeriod",Lke="ActionsSuppressedReason",e9="ActionsSuppressorWaitPeriod",Nke="AdditionalStatistics",Fke="AggregationStatistic",Bke="AlarmType",t9="AlarmTypes",Uke="ApproximateUniqueCount",Gke="AggregateValue",qke="ApproximateValue",V_="Arn",Hke="Attributes",jke="BatchFailures",r9="Configuration",zke="ContributorAttributes",Vke="CompositeAlarm",n9="CompositeAlarms",W_="CreatedAt",o9="CreationDate",Wke="ConflictException",Kke="ContributorId",Qke="ConcurrentModificationException",K_="ComparisonOperator",Yke="ChildrenOfAlarmName",Jke="CreateResourceMetricsConfiguration",Xke="CreateResourceMetricsConfigurationInput",Zke="CreateResourceMetricsConfigurationOutput",e1e="Contributors",t1e="Code",r1e="Counts",Nn="Dimensions",s9="DashboardArn",n1e="DisableAlarmActions",o1e="DisableAlarmActionsInput",s1e="DescribeAlarmContributors",i1e="DescribeAlarmContributorsInput",a1e="DescribeAlarmContributorsOutput",c1e="DeleteAnomalyDetector",u1e="DeleteAnomalyDetectorInput",l1e="DescribeAnomalyDetectorsInput",d1e="DeleteAnomalyDetectorOutput",p1e="DescribeAnomalyDetectorsOutput",f1e="DescribeAnomalyDetectors",m1e="DescribeAlarmsForMetric",g1e="DescribeAlarmsForMetricInput",h1e="DescribeAlarmsForMetricOutput",S1e="DescribeAlarmHistory",y1e="DescribeAlarmHistoryInput",E1e="DescribeAlarmHistoryOutput",_1e="DeleteAlarmsInput",R1e="DescribeAlarmsInput",C1e="DeleteAlarmMuteRule",b1e="DeleteAlarmMuteRuleInput",A1e="DescribeAlarmsOutput",x1e="DeleteAlarms",T1e="DescribeAlarms",i9="DashboardBody",v1e="DeleteDashboards",D1e="DeleteDashboardsInput",I1e="DisassociateDatasetKmsKey",w1e="DisassociateDatasetKmsKeyInput",P1e="DisassociateDatasetKmsKeyOutput",O1e="DeleteDashboardsOutput",$1e="DashboardEntry",a9="DashboardEntries",k1e="DimensionFilter",M1e="DimensionFilters",t1="DatasetIdentifier",L1e="DashboardInvalidInputError",N1e="DeleteInsightRules",F1e="DeleteInsightRulesInput",B1e="DescribeInsightRulesInput",U1e="DisableInsightRulesInput",G1e="DeleteInsightRulesOutput",q1e="DescribeInsightRulesOutput",H1e="DisableInsightRulesOutput",j1e="DescribeInsightRules",z1e="DisableInsightRules",V1e="DatasetId",W1e="DeleteMetricStream",K1e="DeleteMetricStreamInput",Q1e="DeleteMetricStreamOutput",Q_="DashboardName",Y1e="DashboardNotFoundError",J1e="DashboardNamePrefix",X1e="DashboardNames",Z1e="DataPath",eMe="DeleteResourceMetricsConfiguration",tMe="DeleteResourceMetricsConfigurationInput",rMe="DeleteResourceMetricsConfigurationOutput",c9="DatapointsToAlarm",nMe="DashboardValidationMessage",u9="DashboardValidationMessages",oMe="Datapoint",r1="Datapoints",l9="Description",sMe="Definition",iMe="Dimension",aMe="Duration",d9="Entity",cMe="EnableAlarmActions",uMe="EnableAlarmActionsInput",n1="EvaluationCriteria",o1="ExpireDate",lMe="EndDate",Qc="ExcludeFilters",p9="EvaluationInterval",dMe="EnableInsightRules",pMe="EnableInsightRulesInput",fMe="EnableInsightRulesOutput",f9="EvaluateLowSampleCountPercentile",m9="EntityMetricData",mMe="EntityMetricDataList",g9="EvaluationPeriods",h9="ExtendedStatistics",S9="EvaluationState",s1="ExtendedStatistic",Y_="EndTime",gMe="EndTimeOffset",hMe="ExcludedTimeRanges",SMe="ExceptionType",i1="EvaluationWindow",yMe="Entries",y9="Expression",J_="Failures",a1="FirehoseArn",EMe="FailureCode",_Me="FailureDescription",RMe="FailureResource",CMe="GetAlarmMuteRule",bMe="GetAlarmMuteRuleInput",AMe="GetAlarmMuteRuleOutput",xMe="GetDashboard",TMe="GetDashboardInput",vMe="GetDatasetInput",DMe="GetDashboardOutput",IMe="GetDatasetOutput",wMe="GetDataset",PMe="GetInsightRuleReport",OMe="GetInsightRuleReportInput",$Me="GetInsightRuleReportOutput",kMe="GetMetricData",MMe="GetMetricDataInput",LMe="GetMetricDataOutput",NMe="GetMetricStatistics",FMe="GetMetricStatisticsInput",BMe="GetMetricStreamInput",UMe="GetMetricStatisticsOutput",GMe="GetMetricStreamOutput",qMe="GetMetricStream",HMe="GetMetricWidgetImage",jMe="GetMetricWidgetImageInput",zMe="GetMetricWidgetImageOutput",VMe="GetOTelEnrichment",WMe="GetOTelEnrichmentInput",KMe="GetOTelEnrichmentOutput",QMe="GetResourceMetricsConfiguration",YMe="GetResourceMetricsConfigurationInput",JMe="GetResourceMetricsConfigurationOutput",XMe="HistoryData",E9="HistoryItemType",ZMe="HistorySummary",_9="Id",od="InsufficientDataActions",Yc="IncludeFilters",eLe="InvalidFormatFault",tLe="IncludeLinkedAccounts",R9="IncludeLinkedAccountsMetrics",C9="IncludeMetrics",rLe="InvalidNextToken",nLe="InvalidParameterCombinationException",oLe="InvalidParameterValueException",b9="InsightRules",sLe="InsightRuleContributor",iLe="InsightRuleContributorDatapoint",aLe="InsightRuleContributorDatapoints",cLe="InsightRuleContributors",uLe="InsightRuleMetricDatapoint",lLe="InsightRuleMetricDatapoints",dLe="InsightRule",pLe="InternalServiceFault",fLe="Keys",mLe="KeyAttributes",gLe="KmsAccessDeniedException",A9="KmsKeyArn",hLe="KmsKeyDisabledException",SLe="KmsKeyNotFoundException",yLe="KeyLabels",ELe="Key",c1="Label",x9="LogAlarms",_Le="ListAlarmMuteRules",RLe="ListAlarmMuteRulesInput",CLe="ListAlarmMuteRulesOutput",bLe="LogAlarm",ALe="ListDashboards",xLe="ListDashboardsInput",TLe="ListDashboardsOutput",vLe="LimitExceededException",DLe="LimitExceededFault",ILe="LogGroupIdentifiers",wLe="LastModified",PLe="ListMetricsInput",OLe="ListManagedInsightRules",$Le="ListManagedInsightRulesInput",kLe="ListManagedInsightRulesOutput",MLe="ListMetricsOutput",LLe="ListMetricStreams",NLe="ListMetricStreamsInput",FLe="ListMetricStreamsOutput",BLe="ListMetrics",T9="LabelOptions",ULe="ListTagsForResource",GLe="ListTagsForResourceInput",qLe="ListTagsForResourceOutput",v9="LastUpdateDate",D9="LastUpdatedTimestamp",$i="Message",u1="MetricAlarms",HLe="MetricAlarm",l1="MetricCharacteristics",jLe="MaxContributorCount",zLe="MaxContributorValue",d1="MetricData",p1="MetricDataQueries",VLe="MetricDataQuery",I9="MetricDataResults",WLe="MetricDataResultMessages",KLe="MetricDataResult",QLe="MaxDatapoints",YLe="MetricDatapoints",JLe="MessageData",XLe="MetricDatum",X_="MetricMathAnomalyDetector",Fn="MetricName",w9="MetricNames",f1="MaxRecords",ZLe="ManagedRuleDescription",eNe="ManagedRuleDescriptions",tNe="MissingRequiredParameterException",rNe="ManagedRuleState",Z_="MaxResults",P9="ManagedRule",m1="ManagedRules",g1="MetricSelections",nNe="MetricStreamEntry",oNe="MetricStreamEntries",sNe="MetricStreamFilter",iNe="MetricStreamFilters",aNe="MetricStreamStatisticsConfiguration",cNe="MetricStreamStatisticsConfigurations",uNe="MetricStreamStatisticsIncludeMetrics",lNe="MetricStreamStatisticsMetric",O9="MetricStat",$9="MuteType",dNe="MetricTimezone",h1="MuteTargets",pNe="MetricWidget",fNe="MetricWidgetImage",S1="Maximum",Mm="Metrics",k9="Messages",M9="Metric",y1="Minimum",nn="Namespace",yt="NextToken",Xs="Name",L9="Names",mNe="OwningAccount",gNe="OwningAccounts",hNe="OrderBy",eR="OutputFormat",sd="OKActions",SNe="OnlyStartEvaluatingAfterWarmUpPeriodEnds",yNe="OTelEnrichmentMetricSelector",ENe="OTelEnrichmentMetricSelectorList",Jc="Period",_Ne="PutAnomalyDetector",RNe="PutAnomalyDetectorInput",CNe="PutAnomalyDetectorOutput",bNe="PutAlarmMuteRule",ANe="PutAlarmMuteRuleInput",xNe="PutCompositeAlarm",TNe="PutCompositeAlarmInput",vNe="PutDashboard",DNe="PutDashboardInput",INe="PutDashboardOutput",wNe="PartialFailure",PNe="PutInsightRule",ONe="PutInsightRuleInput",$Ne="PutInsightRuleOutput",kNe="PutLogAlarm",MNe="PutLogAlarmInput",LNe="PutMetricAlarm",NNe="PutMetricAlarmInput",FNe="PutMetricData",BNe="PutMetricDataInput",UNe="PutManagedInsightRules",GNe="PutManagedInsightRulesInput",qNe="PutManagedInsightRulesOutput",HNe="PutMetricStream",jNe="PutMetricStreamInput",zNe="PutMetricStreamOutput",VNe="ParentsOfAlarmName",WNe="PendingPeriod",KNe="PromQLCriteria",QNe="PeriodicSpikes",YNe="Query",JNe="QueryARN",N9="QueryResultsToAlarm",F9="QueryResultsToEvaluate",XNe="QueryString",E1="Rule",Lm="ResourceArn",id="ResourceARN",ZNe="RecentlyActive",B9="RoleArn",e3e="ResourceConflict",t3e="ReturnData",r3e="RuleDefinition",n3e="ResourceId",tR="ResourceMetricsConfiguration",o3e="ResourceMetricSelection",s3e="ResourceMetricSelectionList",_1="RuleNames",i3e="ResourceNotFound",a3e="ResourceNotFoundException",R1="RuleName",c3e="RecoveryPeriod",U9="RuleState",u3e="ResourceType",l3e="Range",C1="Status",d3e="SetAlarmState",p3e="SetAlarmStateInput",G9="ScanBy",b1="SampleCount",q9="ScheduleConfiguration",H9="StatisticsConfigurations",f3e="StatusCode",A1="StartDate",m3e="ScheduleExpression",g3e="StrictEntityValidation",rR="SingleMetricAnomalyDetector",h3e="StartMetricStreams",S3e="StartMetricStreamsInput",y3e="StopMetricStreamsInput",E3e="StartMetricStreamsOutput",_3e="StopMetricStreamsOutput",R3e="StopMetricStreams",C3e="StartOTelEnrichment",b3e="StartOTelEnrichmentInput",A3e="StopOTelEnrichmentInput",x3e="StartOTelEnrichmentOutput",T3e="StopOTelEnrichmentOutput",v3e="StopOTelEnrichment",x1="ScheduledQueryConfiguration",D3e="ScheduledQueryRoleARN",Nm="StateReason",nR="StateReasonData",I3e="StorageResolution",w3e="StatisticSet",oR="StartTime",P3e="StartTimeOffset",sR="StateTransitionedTimestamp",T1="StateUpdatedTimestamp",ad="StateValue",O3e="StatisticValues",j9="SlidingWindow",$3e="Schema",z9="Schedule",k3e="Size",Fm="Stat",v1="Statistic",M3e="Statistics",iR="State",L3e="Statuses",D1="Sum",Bm="Timestamp",N3e="TagKeys",F3e="TagList",aR="TreatMissingData",V9="ThresholdMetricId",W9="TemplateName",B3e="TagResource",U3e="TagResourceInput",G3e="TagResourceOutput",Wo="Tags",q3e="Tag",cR="Threshold",I1="Timezone",H3e="Timestamps",Xc="Unit",uR="UpdatedAt",j3e="UniqueContributors",z3e="UpdateOTelEnrichment",V3e="UpdateOTelEnrichmentInput",W3e="UpdateOTelEnrichmentOutput",K3e="UntagResource",Q3e="UntagResourceInput",Y3e="UpdateResourceMetricsConfiguration",J3e="UpdateResourceMetricsConfigurationInput",X3e="UpdateResourceMetricsConfigurationOutput",Z3e="UntagResourceOutput",Um="Value",eFe="ValidationException",K9="Values",Q9="WallClockWindow",Gm="WarmUpConfiguration",tFe="WarmUpPeriodDurationInMinutes",on="awsQueryError",ir="client",rFe="dashboardValidationMessages",zt="error",Hr="httpError",Ko="message",Y9="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatch",nFe="server",b="com.amazonaws.cloudwatch",J9=new N8(Y9),X9=[-3,Y9,"CloudWatchServiceException",0,[],[]];J9.registerError(X9,ut);var Ot=new N8(b),Z9=[-3,b,Qke,{[on]:["ConcurrentModificationException",429],[zt]:ir,[Hr]:429},[$i],[0]];Ot.registerError(Z9,BE);var eK=[-3,b,Wke,{[zt]:ir,[Hr]:409},[$i],[0]];Ot.registerError(eK,kE);var tK=[-3,b,L1e,{[on]:["InvalidParameterInput",400],[zt]:ir,[Hr]:400},[Ko,rFe],[0,()=>Z7]];Ot.registerError(tK,UE);var rK=[-3,b,Y1e,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(rK,GE);var nK=[-3,b,pLe,{[on]:["InternalServiceError",500],[zt]:nFe,[Hr]:500},[$i],[0]];Ot.registerError(nK,jE);var oK=[-3,b,eLe,{[on]:["InvalidFormat",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(oK,JE);var sK=[-3,b,rLe,{[on]:["InvalidNextToken",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(sK,KE);var iK=[-3,b,nLe,{[on]:["InvalidParameterCombination",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(iK,zE);var aK=[-3,b,oLe,{[on]:["InvalidParameterValue",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(aK,VE);var cK=[-3,b,gLe,{[zt]:ir},[$i],[0],1];Ot.registerError(cK,ME);var uK=[-3,b,hLe,{[zt]:ir},[$i],[0],1];Ot.registerError(uK,LE);var lK=[-3,b,SLe,{[zt]:ir},[$i],[0],1];Ot.registerError(lK,NE);var dK=[-3,b,vLe,{[on]:["LimitExceededException",400],[zt]:ir,[Hr]:400},[$i],[0]];Ot.registerError(dK,QE);var pK=[-3,b,DLe,{[on]:["LimitExceeded",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(pK,YE);var fK=[-3,b,tNe,{[on]:["MissingParameter",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(fK,WE);var mK=[-3,b,e3e,{[on]:["ResourceConflict",409],[zt]:ir,[Hr]:409},[Ko],[0]];Ot.registerError(mK,qE);var gK=[-3,b,i3e,{[on]:["ResourceNotFound",404],[zt]:ir,[Hr]:404},[Ko],[0]];Ot.registerError(gK,HE);var hK=[-3,b,a3e,{[on]:["ResourceNotFoundException",404],[zt]:ir,[Hr]:404},[u3e,n3e,$i],[0,0,0]];Ot.registerError(hK,FE);var SK=[-3,b,eFe,{[on]:["ValidationError",400],[zt]:ir,[Hr]:400},[Ko],[0]];Ot.registerError(SK,XE);var yK=[J9,Ot],EK=[3,b,Eke,0,[Kke,zke,Nm,sR],[0,128,0,4],3],_K=[3,b,wke,0,[Vo,U8,Bke,Bm,E9,ZMe,XMe,_ke],[0,0,0,4,0,0,0,128]],RK=[3,b,Pke,0,[W8,o1,C1,$9,D9],[0,4,0,0,4]],CK=[3,b,kke,0,[YNe,WNe,c3e],[0,1,1],1],bK=[3,b,Rke,0,[e1,nn,Fn,Nn,Fm,r9,ad,l1,rR,X_],[0,0,0,()=>Qo,0,()=>w1,0,()=>O1,()=>pR,()=>lR]],w1=[3,b,Cke,0,[hMe,dNe],[()=>aFe,0]],AK=[3,b,Tke,0,[t1,A9],[0,0],2],xK=[3,b,vke,0,[],[]],TK=[3,b,Vke,0,[nd,td,Xk,Zk,rd,Vo,J8,od,sd,Nm,nR,T1,ad,sR,Mke,Lke,X8,e9,Z8],[2,64,0,4,0,0,0,64,64,0,0,4,0,4,0,0,0,1,1]],vK=[3,b,Xke,0,[Lm,g1],[0,()=>L1],1],DK=[3,b,Zke,0,[tR],[()=>dR],1],IK=[3,b,$1e,0,[Q_,s9,wLe,k3e],[0,0,4,1]],wK=[3,b,nMe,0,[Z1e,$i],[0,0]],PK=[3,b,oMe,0,[Bm,b1,B8,D1,y1,S1,Xc,h9],[4,1,1,1,1,1,0,129]],OK=[3,b,b1e,0,[K8],[0],1],$K=[3,b,_1e,0,[km],[64],1],kK=[3,b,u1e,0,[e1,nn,Fn,Nn,Fm,rR,X_],[0,0,0,()=>Qo,0,()=>pR,()=>lR]],MK=[3,b,d1e,0,[],[]],LK=[3,b,D1e,0,[X1e],[64],1],NK=[3,b,O1e,0,[],[]],FK=[3,b,F1e,0,[_1],[64],1],BK=[3,b,G1e,0,[J_],[()=>fR]],UK=[3,b,K1e,0,[Xs],[0],1],GK=[3,b,Q1e,0,[],[]],qK=[3,b,tMe,0,[Lm],[0],1],HK=[3,b,rMe,0,[],[]],jK=[3,b,i1e,0,[Vo,yt],[0,0],1],zK=[3,b,a1e,0,[G8,yt],[()=>oFe,0],1],VK=[3,b,y1e,0,[Vo,U8,t9,E9,A1,lMe,f1,yt,G9],[0,0,64,0,4,4,1,0,0]],WK=[3,b,E1e,0,[H8,yt],[()=>sFe,0]],KK=[3,b,g1e,0,[Fn,nn,v1,s1,Nn,Jc,Xc],[0,0,0,0,()=>Qo,1,0],2],QK=[3,b,h1e,0,[u1],[()=>eY]],YK=[3,b,R1e,0,[km,Oke,t9,Yke,VNe,ad,$ke,f1,yt],[64,0,64,0,0,0,0,1,0]],JK=[3,b,A1e,0,[n9,u1,x9,yt],[()=>uFe,()=>eY,()=>yFe,0]],XK=[3,b,l1e,0,[Ake,yt,Z_,nn,Fn,Nn,Dke],[64,0,1,0,0,()=>Qo,64]],ZK=[3,b,p1e,0,[q8,yt],[()=>cFe,0]],eQ=[3,b,B1e,0,[yt,Z_],[0,1]],tQ=[3,b,q1e,0,[yt,b9],[0,()=>SFe]],rQ=[3,b,iMe,0,[Xs,Um],[0,0],2],nQ=[3,b,k1e,0,[Xs,Um],[0,0],1],oQ=[3,b,o1e,0,[km],[64],1],sQ=[3,b,U1e,0,[_1],[64],1],iQ=[3,b,H1e,0,[J_],[()=>fR]],aQ=[3,b,w1e,0,[t1],[0],1],cQ=[3,b,P1e,0,[],[]],uQ=[3,b,uMe,0,[km],[64],1],lQ=[3,b,pMe,0,[_1],[64],1],dQ=[3,b,fMe,0,[J_],[()=>fR]],pQ=[3,b,d9,0,[mLe,Hke],[128,128]],fQ=[3,b,m9,0,[d9,d1],[()=>pQ,()=>tY]],mQ=[3,b,bMe,0,[K8],[0],1],gQ=[3,b,AMe,0,[Xs,W8,l9,E1,h1,A1,o1,C1,D9,$9],[0,0,0,()=>k1,()=>$1,4,4,0,4,0]],hQ=[3,b,TMe,0,[Q_],[0],1],SQ=[3,b,DMe,0,[s9,i9,Q_],[0,0,0]],yQ=[3,b,vMe,0,[t1],[0],1],EQ=[3,b,IMe,0,[V1e,V_,A9],[0,0,0],2],_Q=[3,b,OMe,0,[R1,oR,Y_,Jc,jLe,Mm,hNe],[0,4,4,1,1,64,0],4],RQ=[3,b,$Me,0,[yLe,Fke,Gke,Uke,e1e,YLe],[64,0,1,1,()=>gFe,()=>hFe]],CQ=[3,b,MMe,0,[p1,oR,Y_,yt,G9,QLe,T9],[()=>mR,4,4,0,0,1,()=>FQ],3],bQ=[3,b,LMe,0,[I9,yt,k9],[()=>RFe,0,()=>rY]],AQ=[3,b,FMe,0,[nn,Fn,oR,Y_,Jc,Nn,M3e,h9,Xc],[0,0,4,4,1,()=>Qo,64,64,0],5],xQ=[3,b,UMe,0,[c1,r1],[0,()=>dFe]],TQ=[3,b,BMe,0,[Xs],[0],1],vQ=[3,b,GMe,0,[V_,Xs,Yc,Qc,a1,B9,iR,o9,v9,eR,H9,R9],[0,0,()=>ZE,()=>ZE,0,0,0,4,4,0,()=>nY,2]],DQ=[3,b,jMe,0,[pNe,eR],[0,0],1],IQ=[3,b,zMe,0,[fNe],[21]],wQ=[3,b,WMe,0,[],[]],PQ=[3,b,KMe,0,[C1,Yc,Qc,W_,uR],[0,()=>Ys,()=>Ys,4,4],1],OQ=[3,b,YMe,0,[Lm],[0],1],$Q=[3,b,JMe,0,[tR],[()=>dR],1],kQ=[3,b,dLe,0,[Xs,iR,$3e,sMe,P9,Y8],[0,0,0,0,2,2],4],MQ=[3,b,sLe,0,[fLe,yke,r1],[64,1,()=>mFe],3],LQ=[3,b,iLe,0,[Bm,qke],[4,1],2],NQ=[3,b,uLe,0,[Bm,j3e,zLe,b1,B8,D1,y1,S1],[4,1,1,1,1,1,1,1],1],FQ=[3,b,T9,0,[I1],[0]],BQ=[3,b,RLe,0,[Vo,L3e,f1,yt],[0,64,1,0]],UQ=[3,b,CLe,0,[Q8,yt],[()=>iFe,0]],GQ=[3,b,xLe,0,[J1e,yt],[0,0]],qQ=[3,b,TLe,0,[a9,yt],[()=>lFe,0]],HQ=[3,b,$Le,0,[id,yt,Z_],[0,0,1],1],jQ=[3,b,kLe,0,[m1,yt],[()=>EFe,0]],zQ=[3,b,PLe,0,[nn,Fn,Nn,yt,ZNe,tLe,mNe],[0,0,()=>pFe,0,0,2,0]],VQ=[3,b,MLe,0,[Mm,yt,gNe],[()=>CFe,0,64]],WQ=[3,b,NLe,0,[yt,Z_],[0,1]],KQ=[3,b,FLe,0,[yt,yMe],[0,()=>bFe]],QQ=[3,b,GLe,0,[id],[0],1],YQ=[3,b,qLe,0,[Wo],[()=>Yo]],JQ=[3,b,bLe,0,[Vo,Xk,rd,Zk,nd,sd,td,od,ad,Nm,nR,T1,x1,F9,N9,cR,K_,aR,sR,S9,z8,V8,Gm],[0,0,0,4,2,64,64,64,0,0,0,4,()=>M1,1,1,1,0,0,4,0,1,0,()=>qm]],XQ=[3,b,P9,0,[W9,id,Wo],[0,0,()=>Yo],2],ZQ=[3,b,ZLe,0,[W9,id,U9],[0,0,()=>e7]],e7=[3,b,rNe,0,[R1,iR],[0,0],2],t7=[3,b,JLe,0,[t1e,Um],[0,0]],P1=[3,b,M9,0,[nn,Fn,Nn],[0,0,()=>Qo]],r7=[3,b,HLe,0,[Vo,Xk,rd,Zk,nd,sd,td,od,ad,Nm,nR,T1,Fn,nn,v1,s1,Nn,Jc,Xc,g9,c9,cR,K_,aR,f9,Mm,V9,S9,sR,i1,Gm,n1,p9],[0,0,0,4,2,64,64,64,0,0,0,4,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>mR,0,0,4,()=>F1,()=>qm,()=>N1,1]],O1=[3,b,l1,0,[QNe],[2]],n7=[3,b,VLe,0,[_9,O9,y9,c1,t3e,Jc,j8],[0,()=>i7,0,0,2,1,0],1],o7=[3,b,KLe,0,[_9,c1,H3e,K9,f3e,k9],[0,0,68,65,0,()=>rY]],s7=[3,b,XLe,0,[Fn,Nn,Bm,Um,O3e,K9,r1e,Xc,I3e],[0,()=>Qo,4,1,()=>F7,65,65,0,1],1],lR=[3,b,X_,0,[p1],[()=>mR]],i7=[3,b,O9,0,[M9,Jc,Fm,Xc],[()=>P1,1,0,0],3],a7=[3,b,nNe,0,[V_,o9,v9,Xs,a1,iR,eR],[0,4,4,0,0,0,0]],c7=[3,b,sNe,0,[nn,w9],[0,64]],u7=[3,b,aNe,0,[C9,Nke],[()=>AFe,64],2],l7=[3,b,lNe,0,[nn,Fn],[0,0],2],$1=[3,b,h1,0,[km],[64],1],d7=[3,b,yNe,0,[nn,w9],[0,64],1],p7=[3,b,wNe,0,[RMe,SMe,EMe,_Me],[0,0,0,0]],f7=[3,b,ANe,0,[Xs,E1,l9,h1,Wo,A1,o1],[0,()=>k1,0,()=>$1,()=>Yo,4,4],2],m7=[3,b,RNe,0,[nn,Fn,Nn,Fm,r9,l1,rR,X_],[0,0,()=>Qo,0,()=>w1,()=>O1,()=>pR,()=>lR]],g7=[3,b,CNe,0,[e1],[0]],h7=[3,b,TNe,0,[Vo,J8,nd,td,rd,od,sd,Wo,X8,e9,Z8],[0,0,2,64,0,64,64,()=>Yo,0,1,1],2],S7=[3,b,DNe,0,[Q_,i9,Wo],[0,0,()=>Yo],2],y7=[3,b,INe,0,[u9],[()=>Z7]],E7=[3,b,ONe,0,[R1,r3e,U9,Wo,Y8],[0,0,0,()=>Yo,2],2],_7=[3,b,$Ne,0,[],[]],R7=[3,b,MNe,0,[Vo,x1,F9,N9,cR,K_,rd,z8,V8,nd,sd,td,od,aR,Wo,Gm],[0,()=>M1,1,1,1,0,0,1,0,2,64,64,64,0,()=>Yo,()=>qm],6],C7=[3,b,GNe,0,[m1],[()=>_Fe],1],b7=[3,b,qNe,0,[J_],[()=>fR]],A7=[3,b,NNe,0,[Vo,rd,nd,sd,td,od,Fn,nn,v1,s1,Nn,Jc,Xc,g9,c9,cR,K_,aR,f9,Mm,Wo,V9,i1,Gm,n1,p9],[0,0,2,64,64,64,0,0,0,0,()=>Qo,1,0,1,1,1,0,0,0,()=>mR,()=>Yo,0,()=>F1,()=>qm,()=>N1,1],1],x7=[3,b,BNe,0,[nn,d1,m9,g3e],[0,()=>tY,()=>fFe,2],1],T7=[3,b,jNe,0,[Xs,a1,B9,eR,Yc,Qc,Wo,H9,R9],[0,0,0,0,()=>ZE,()=>ZE,()=>Yo,()=>nY,2],4],v7=[3,b,zNe,0,[V_],[0]],D7=[3,b,l3e,0,[oR,Y_],[4,4],2],dR=[3,b,tR,0,[Lm,W_,uR,g1],[0,4,4,()=>L1],3],I7=[3,b,o3e,0,[C9],[64],1],k1=[3,b,E1,0,[z9],[()=>w7],1],w7=[3,b,z9,0,[y9,aMe,I1],[0,0,0],2],P7=[3,b,q9,0,[m3e,P3e,gMe],[0,1,1],2],M1=[3,b,x1,0,[XNe,D3e,q9,Ike,ILe,JNe,Wo],[0,0,()=>P7,0,64,0,()=>Yo],4],O7=[3,b,p3e,0,[Vo,ad,Nm,nR],[0,0,0,0],3],pR=[3,b,rR,0,[j8,nn,Fn,Nn,Fm],[0,0,0,()=>Qo,0]],$7=[3,b,j9,0,[],[]],k7=[3,b,S3e,0,[L9],[64],1],M7=[3,b,E3e,0,[],[]],L7=[3,b,b3e,0,[Yc,Qc],[()=>Ys,()=>Ys]],N7=[3,b,x3e,0,[Yc,Qc,W_,uR],[()=>Ys,()=>Ys,4,4]],F7=[3,b,w3e,0,[b1,D1,y1,S1],[1,1,1,1],4],B7=[3,b,y3e,0,[L9],[64],1],U7=[3,b,_3e,0,[],[]],G7=[3,b,A3e,0,[],[]],q7=[3,b,T3e,0,[],[]],H7=[3,b,q3e,0,[ELe,Um],[0,0],2],j7=[3,b,U3e,0,[id,Wo],[0,()=>Yo],2],z7=[3,b,G3e,0,[],[]],V7=[3,b,Q3e,0,[id,N3e],[0,64],2],W7=[3,b,Z3e,0,[],[]],K7=[3,b,V3e,0,[Yc,Qc],[()=>Ys,()=>Ys]],Q7=[3,b,W3e,0,[Yc,Qc,W_,uR],[()=>Ys,()=>Ys,4,4]],Y7=[3,b,J3e,0,[Lm,g1],[0,()=>L1],1],J7=[3,b,X3e,0,[tR],[()=>dR],1],X7=[3,b,Q9,0,[I1],[0]],qm=[3,b,Gm,0,[tFe,SNe],[1,2],1],Zs="unit",oFe=[1,b,G8,0,()=>EK],sFe=[1,b,H8,0,()=>_K],iFe=[1,b,Q8,0,()=>RK],aFe=[1,b,bke,0,()=>D7],cFe=[1,b,q8,0,()=>bK],fR=[1,b,jke,0,()=>p7],uFe=[1,b,n9,0,()=>TK],lFe=[1,b,a9,0,()=>IK],Z7=[1,b,u9,0,()=>wK],dFe=[1,b,r1,0,()=>PK],pFe=[1,b,M1e,0,()=>nQ],Qo=[1,b,Nn,0,()=>rQ],fFe=[1,b,mMe,0,()=>fQ],mFe=[1,b,aLe,0,()=>LQ],gFe=[1,b,cLe,0,()=>MQ],hFe=[1,b,lLe,0,()=>NQ],SFe=[1,b,b9,0,()=>kQ],yFe=[1,b,x9,0,()=>JQ],EFe=[1,b,eNe,0,()=>ZQ],_Fe=[1,b,m1,0,()=>XQ],eY=[1,b,u1,0,()=>r7],tY=[1,b,d1,0,()=>s7],mR=[1,b,p1,0,()=>n7],rY=[1,b,WLe,0,()=>t7],RFe=[1,b,I9,0,()=>o7],CFe=[1,b,Mm,0,()=>P1],bFe=[1,b,oNe,0,()=>a7],ZE=[1,b,iNe,0,()=>c7],nY=[1,b,cNe,0,()=>u7],AFe=[1,b,uNe,0,()=>l7],Ys=[1,b,ENe,0,()=>d7],L1=[1,b,s3e,0,()=>I7],Yo=[1,b,F3e,0,()=>H7],N1=[4,b,n1,0,[KNe],[()=>CK]],F1=[4,b,i1,0,[Q9,j9],[()=>X7,()=>$7]],oY=[9,b,xke,0,()=>AK,()=>xK],sY=[9,b,Jke,0,()=>vK,()=>DK],iY=[9,b,C1e,0,()=>OK,()=>Zs],aY=[9,b,x1e,0,()=>$K,()=>Zs],cY=[9,b,c1e,0,()=>kK,()=>MK],uY=[9,b,v1e,0,()=>LK,()=>NK],lY=[9,b,N1e,0,()=>FK,()=>BK],dY=[9,b,W1e,0,()=>UK,()=>GK],pY=[9,b,eMe,0,()=>qK,()=>HK],fY=[9,b,s1e,0,()=>jK,()=>zK],mY=[9,b,S1e,0,()=>VK,()=>WK],gY=[9,b,T1e,0,()=>YK,()=>JK],hY=[9,b,m1e,0,()=>KK,()=>QK],SY=[9,b,f1e,0,()=>XK,()=>ZK],yY=[9,b,j1e,0,()=>eQ,()=>tQ],EY=[9,b,n1e,0,()=>oQ,()=>Zs],_Y=[9,b,z1e,0,()=>sQ,()=>iQ],RY=[9,b,I1e,2,()=>aQ,()=>cQ],CY=[9,b,cMe,0,()=>uQ,()=>Zs],bY=[9,b,dMe,0,()=>lQ,()=>dQ],AY=[9,b,CMe,0,()=>mQ,()=>gQ],xY=[9,b,xMe,0,()=>hQ,()=>SQ],TY=[9,b,wMe,0,()=>yQ,()=>EQ],vY=[9,b,PMe,0,()=>_Q,()=>RQ],DY=[9,b,kMe,0,()=>CQ,()=>bQ],IY=[9,b,NMe,0,()=>AQ,()=>xQ],wY=[9,b,qMe,0,()=>TQ,()=>vQ],PY=[9,b,HMe,0,()=>DQ,()=>IQ],OY=[9,b,VMe,0,()=>wQ,()=>PQ],$Y=[9,b,QMe,0,()=>OQ,()=>$Q],kY=[9,b,_Le,0,()=>BQ,()=>UQ],MY=[9,b,ALe,0,()=>GQ,()=>qQ],LY=[9,b,OLe,0,()=>HQ,()=>jQ],NY=[9,b,BLe,0,()=>zQ,()=>VQ],FY=[9,b,LLe,0,()=>WQ,()=>KQ],BY=[9,b,ULe,0,()=>QQ,()=>YQ],UY=[9,b,bNe,0,()=>f7,()=>Zs],GY=[9,b,_Ne,0,()=>m7,()=>g7],qY=[9,b,xNe,0,()=>h7,()=>Zs],HY=[9,b,vNe,0,()=>S7,()=>y7],jY=[9,b,PNe,0,()=>E7,()=>_7],zY=[9,b,kNe,0,()=>R7,()=>Zs],VY=[9,b,UNe,0,()=>C7,()=>b7],WY=[9,b,LNe,0,()=>A7,()=>Zs],KY=[9,b,FNe,0,()=>x7,()=>Zs],QY=[9,b,HNe,0,()=>T7,()=>v7],YY=[9,b,d3e,0,()=>O7,()=>Zs],JY=[9,b,h3e,0,()=>k7,()=>M7],XY=[9,b,C3e,0,()=>L7,()=>N7],ZY=[9,b,R3e,0,()=>B7,()=>U7],eJ=[9,b,v3e,0,()=>G7,()=>q7],tJ=[9,b,B3e,0,()=>j7,()=>z7],rJ=[9,b,K3e,0,()=>V7,()=>W7],nJ=[9,b,z3e,0,()=>K7,()=>Q7],oJ=[9,b,Y3e,0,()=>Y7,()=>J7],xFe=t=>({apiVersion:"2010-08-01",base64Decoder:t?.base64Decoder??Z$e,base64Encoder:t?.base64Encoder??X$e,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Ske,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??ake,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new W$e}],logger:t?.logger??new p$e,protocol:t?.protocol??nke,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatch",errorTypeRegistries:yK,xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/",version:"2010-08-01",serviceTarget:"GraniteServiceVersion20100801",awsQueryCompatible:!0},serviceId:t?.serviceId??"CloudWatch",sha256:t?.sha256??oke,urlParser:t?.urlParser??O$e,utf8Decoder:t?.utf8Decoder??J$e,utf8Encoder:t?.utf8Encoder??Y$e}),TFe=t=>{f$e(process.version);let e=_$e(t),r=()=>e().then(m$e),n=xFe(t);YOe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Pi(K$e,o),bodyLengthChecker:t?.bodyLengthChecker??eke,credentialDefaultProvider:t?.credentialDefaultProvider??Q$e,defaultUserAgentProvider:t?.defaultUserAgentProvider??JOe({serviceId:n.serviceId,clientVersion:pke.version}),disableRequestCompression:t?.disableRequestCompression??Pi(H$e,t),maxAttempts:t?.maxAttempts??Pi(F$e,t),region:t?.region??Pi(b$e,{...A$e,...o}),requestHandler:rke.create(t?.requestHandler??r),requestMinCompressionSizeBytes:t?.requestMinCompressionSizeBytes??Pi(q$e,t),retryMode:t?.retryMode??Pi({...N$e,default:async()=>(await r()).retryMode||L$e},t),streamCollector:t?.streamCollector??tke,useDualstackEndpoint:t?.useDualstackEndpoint??Pi(C$e,o),useFipsEndpoint:t?.useFipsEndpoint??Pi(R$e,o),userAgentAppId:t?.userAgentAppId??Pi(XOe,o)}},vFe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},DFe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),IFe=(t,e)=>{let r=Object.assign(ZOe(t),g$e(t),$$e(t),vFe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,e$e(r),h$e(r),k$e(r),DFe(r))},Cn=class extends L8{config;constructor(...[e]){let r=TFe(e||{});super(r),this.initConfig=r;let n=uke(r),o=t$e(n),s=B$e(o),i=x$e(s),a=r$e(i),c=w$e(a),u=cke(c),f=j$e(u),m=IFe(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(G$e(this.config)),this.middlewareStack.use(n$e(this.config)),this.middlewareStack.use(U$e(this.config)),this.middlewareStack.use(M$e(this.config)),this.middlewareStack.use(o$e(this.config)),this.middlewareStack.use(s$e(this.config)),this.middlewareStack.use(i$e(this.config)),this.middlewareStack.use(a$e(this.config,{httpAuthSchemeParametersProvider:ske,identityProviderConfigProvider:async y=>new c$e({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(u$e(this.config))}destroy(){super.destroy()}},X=S$e(lke,"GraniteServiceVersion20100801","CloudWatchClient",P$e),Z={},ee=(t,e,r,n)=>[],wFe=(t,e,r,n)=>[z$e(r,{encodings:["gzip"]})],e_=class extends X(Z,ee,"AssociateDatasetKmsKey",oY){},t_=class extends X(Z,ee,"CreateResourceMetricsConfiguration",sY){},r_=class extends X(Z,ee,"DeleteAlarmMuteRule",iY){},n_=class extends X(Z,ee,"DeleteAlarms",aY){},o_=class extends X(Z,ee,"DeleteAnomalyDetector",cY){},s_=class extends X(Z,ee,"DeleteDashboards",uY){},i_=class extends X(Z,ee,"DeleteInsightRules",lY){},a_=class extends X(Z,ee,"DeleteMetricStream",dY){},c_=class extends X(Z,ee,"DeleteResourceMetricsConfiguration",pY){},u_=class extends X(Z,ee,"DescribeAlarmContributors",fY){},Am=class extends X(Z,ee,"DescribeAlarmHistory",mY){},Na=class extends X(Z,ee,"DescribeAlarms",gY){},l_=class extends X(Z,ee,"DescribeAlarmsForMetric",hY){},xm=class extends X(Z,ee,"DescribeAnomalyDetectors",SY){},Tm=class extends X(Z,ee,"DescribeInsightRules",yY){},d_=class extends X(Z,ee,"DisableAlarmActions",EY){},p_=class extends X(Z,ee,"DisableInsightRules",_Y){},f_=class extends X(Z,ee,"DisassociateDatasetKmsKey",RY){},m_=class extends X(Z,ee,"EnableAlarmActions",CY){},g_=class extends X(Z,ee,"EnableInsightRules",bY){},vm=class extends X(Z,ee,"GetAlarmMuteRule",AY){},h_=class extends X(Z,ee,"GetDashboard",xY){},S_=class extends X(Z,ee,"GetDataset",TY){},y_=class extends X(Z,ee,"GetInsightRuleReport",vY){},Dm=class extends X(Z,ee,"GetMetricData",DY){},E_=class extends X(Z,ee,"GetMetricStatistics",IY){},__=class extends X(Z,ee,"GetMetricStream",wY){},R_=class extends X(Z,ee,"GetMetricWidgetImage",PY){},C_=class extends X(Z,ee,"GetOTelEnrichment",OY){},b_=class extends X(Z,ee,"GetResourceMetricsConfiguration",$Y){},Im=class extends X(Z,ee,"ListAlarmMuteRules",kY){},wm=class extends X(Z,ee,"ListDashboards",MY){},Pm=class extends X(Z,ee,"ListManagedInsightRules",LY){},Om=class extends X(Z,ee,"ListMetrics",NY){},$m=class extends X(Z,ee,"ListMetricStreams",FY){},A_=class extends X(Z,ee,"ListTagsForResource",BY){},x_=class extends X(Z,ee,"PutAlarmMuteRule",UY){},T_=class extends X(Z,ee,"PutAnomalyDetector",GY){},v_=class extends X(Z,ee,"PutCompositeAlarm",qY){},D_=class extends X(Z,ee,"PutDashboard",HY){},I_=class extends X(Z,ee,"PutInsightRule",jY){},w_=class extends X(Z,ee,"PutLogAlarm",zY){},P_=class extends X(Z,ee,"PutManagedInsightRules",VY){},O_=class extends X(Z,ee,"PutMetricAlarm",WY){},$_=class extends X(Z,wFe,"PutMetricData",KY){},k_=class extends X(Z,ee,"PutMetricStream",QY){},M_=class extends X(Z,ee,"SetAlarmState",YY){},L_=class extends X(Z,ee,"StartMetricStreams",JY){},N_=class extends X(Z,ee,"StartOTelEnrichment",XY){},F_=class extends X(Z,ee,"StopMetricStreams",ZY){},B_=class extends X(Z,ee,"StopOTelEnrichment",eJ){},U_=class extends X(Z,ee,"TagResource",tJ){},G_=class extends X(Z,ee,"UntagResource",rJ){},q_=class extends X(Z,ee,"UpdateOTelEnrichment",nJ){},H_=class extends X(Z,ee,"UpdateResourceMetricsConfiguration",oJ){},sJ=Js(Cn,Am,"NextToken","NextToken","MaxRecords"),iJ=Js(Cn,Na,"NextToken","NextToken","MaxRecords"),aJ=Js(Cn,xm,"NextToken","NextToken","MaxResults"),cJ=Js(Cn,Tm,"NextToken","NextToken","MaxResults"),uJ=Js(Cn,Dm,"NextToken","NextToken","MaxDatapoints"),lJ=Js(Cn,Im,"NextToken","NextToken","MaxRecords"),dJ=Js(Cn,wm,"NextToken","NextToken",""),pJ=Js(Cn,Pm,"NextToken","NextToken","MaxResults"),fJ=Js(Cn,Om,"NextToken","NextToken",""),mJ=Js(Cn,$m,"NextToken","NextToken","MaxResults"),gJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.MetricAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},PFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,gJ),hJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,gJ);return z_(n)},SJ=async(t,e)=>{let r;try{return r=await t.send(new vm(e)),{state:Oi.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:Oi.RETRY,reason:r}}return{state:Oi.RETRY,reason:r}},OFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,SJ),yJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,SJ);return z_(n)},EJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.CompositeAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},$Fe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,EJ),_J=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,EJ);return z_(n)},RJ=async(t,e)=>{let r;try{let n=await t.send(new Na(e));r=n;try{if([].concat(...n.LogAlarms).length>0==!0)return{state:Oi.SUCCESS,reason:r}}catch{}}catch(n){r=n}return{state:Oi.RETRY,reason:r}},kFe=async(t,e)=>Fa({...{minDelay:5,maxDelay:120},...t},e,RJ),CJ=async(t,e)=>{let n=await Fa({...{minDelay:5,maxDelay:120},...t},e,RJ);return z_(n)},MFe={AssociateDatasetKmsKeyCommand:e_,CreateResourceMetricsConfigurationCommand:t_,DeleteAlarmMuteRuleCommand:r_,DeleteAlarmsCommand:n_,DeleteAnomalyDetectorCommand:o_,DeleteDashboardsCommand:s_,DeleteInsightRulesCommand:i_,DeleteMetricStreamCommand:a_,DeleteResourceMetricsConfigurationCommand:c_,DescribeAlarmContributorsCommand:u_,DescribeAlarmHistoryCommand:Am,DescribeAlarmsCommand:Na,DescribeAlarmsForMetricCommand:l_,DescribeAnomalyDetectorsCommand:xm,DescribeInsightRulesCommand:Tm,DisableAlarmActionsCommand:d_,DisableInsightRulesCommand:p_,DisassociateDatasetKmsKeyCommand:f_,EnableAlarmActionsCommand:m_,EnableInsightRulesCommand:g_,GetAlarmMuteRuleCommand:vm,GetDashboardCommand:h_,GetDatasetCommand:S_,GetInsightRuleReportCommand:y_,GetMetricDataCommand:Dm,GetMetricStatisticsCommand:E_,GetMetricStreamCommand:__,GetMetricWidgetImageCommand:R_,GetOTelEnrichmentCommand:C_,GetResourceMetricsConfigurationCommand:b_,ListAlarmMuteRulesCommand:Im,ListDashboardsCommand:wm,ListManagedInsightRulesCommand:Pm,ListMetricsCommand:Om,ListMetricStreamsCommand:$m,ListTagsForResourceCommand:A_,PutAlarmMuteRuleCommand:x_,PutAnomalyDetectorCommand:T_,PutCompositeAlarmCommand:v_,PutDashboardCommand:D_,PutInsightRuleCommand:I_,PutLogAlarmCommand:w_,PutManagedInsightRulesCommand:P_,PutMetricAlarmCommand:O_,PutMetricDataCommand:$_,PutMetricStreamCommand:k_,SetAlarmStateCommand:M_,StartMetricStreamsCommand:L_,StartOTelEnrichmentCommand:N_,StopMetricStreamsCommand:F_,StopOTelEnrichmentCommand:B_,TagResourceCommand:U_,UntagResourceCommand:G_,UpdateOTelEnrichmentCommand:q_,UpdateResourceMetricsConfigurationCommand:H_},LFe={paginateDescribeAlarmHistory:sJ,paginateDescribeAlarms:iJ,paginateDescribeAnomalyDetectors:aJ,paginateDescribeInsightRules:cJ,paginateGetMetricData:uJ,paginateListAlarmMuteRules:lJ,paginateListDashboards:dJ,paginateListManagedInsightRules:pJ,paginateListMetrics:fJ,paginateListMetricStreams:mJ},NFe={waitUntilAlarmExists:hJ,waitUntilCompositeAlarmExists:_J,waitUntilLogAlarmExists:CJ,waitUntilAlarmMuteRuleExists:yJ},j_=class extends Cn{};y$e(MFe,j_,{paginators:LFe,waiters:NFe});var FFe={Alarm:"Alarm",ExtensionPeriod:"ExtensionPeriod",WaitPeriod:"WaitPeriod"},BFe={CompositeAlarm:"CompositeAlarm",LogAlarm:"LogAlarm",MetricAlarm:"MetricAlarm"},UFe={Action:"Action",AlarmContributorAction:"AlarmContributorAction",AlarmContributorStateUpdate:"AlarmContributorStateUpdate",ConfigurationUpdate:"ConfigurationUpdate",StateUpdate:"StateUpdate"},GFe={ACTIVE:"ACTIVE",EXPIRED:"EXPIRED",SCHEDULED:"SCHEDULED"},qFe={Bits:"Bits",Bits_Second:"Bits/Second",Bytes:"Bytes",Bytes_Second:"Bytes/Second",Count:"Count",Count_Second:"Count/Second",Gigabits:"Gigabits",Gigabits_Second:"Gigabits/Second",Gigabytes:"Gigabytes",Gigabytes_Second:"Gigabytes/Second",Kilobits:"Kilobits",Kilobits_Second:"Kilobits/Second",Kilobytes:"Kilobytes",Kilobytes_Second:"Kilobytes/Second",Megabits:"Megabits",Megabits_Second:"Megabits/Second",Megabytes:"Megabytes",Megabytes_Second:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",Terabits_Second:"Terabits/Second",Terabytes:"Terabytes",Terabytes_Second:"Terabytes/Second"},HFe={PENDING_TRAINING:"PENDING_TRAINING",TRAINED:"TRAINED",TRAINED_INSUFFICIENT_DATA:"TRAINED_INSUFFICIENT_DATA"},jFe={METRIC_MATH:"METRIC_MATH",SINGLE_METRIC:"SINGLE_METRIC"},zFe={GreaterThanOrEqualToThreshold:"GreaterThanOrEqualToThreshold",GreaterThanThreshold:"GreaterThanThreshold",GreaterThanUpperThreshold:"GreaterThanUpperThreshold",LessThanLowerOrGreaterThanUpperThreshold:"LessThanLowerOrGreaterThanUpperThreshold",LessThanLowerThreshold:"LessThanLowerThreshold",LessThanOrEqualToThreshold:"LessThanOrEqualToThreshold",LessThanThreshold:"LessThanThreshold"},VFe={ALARM:"ALARM",INSUFFICIENT_DATA:"INSUFFICIENT_DATA",OK:"OK"},WFe={TIMESTAMP_ASCENDING:"TimestampAscending",TIMESTAMP_DESCENDING:"TimestampDescending"},KFe={EVALUATION_ERROR:"EVALUATION_ERROR",EVALUATION_FAILURE:"EVALUATION_FAILURE",PARTIAL_DATA:"PARTIAL_DATA"},QFe={Average:"Average",Maximum:"Maximum",Minimum:"Minimum",SampleCount:"SampleCount",Sum:"Sum"},YFe={COMPLETE:"Complete",FORBIDDEN:"Forbidden",INTERNAL_ERROR:"InternalError",PARTIAL_DATA:"PartialData"},JFe={JSON:"json",OPEN_TELEMETRY_0_7:"opentelemetry0.7",OPEN_TELEMETRY_1_0:"opentelemetry1.0"},XFe={RUNNING:"Running",STOPPED:"Stopped"},ZFe={PT3H:"PT3H"};R.ActionsSuppressedBy=FFe;R.AlarmContributor$=EK;R.AlarmHistoryItem$=_K;R.AlarmMuteRuleStatus=GFe;R.AlarmMuteRuleSummary$=RK;R.AlarmPromQLCriteria$=CK;R.AlarmType=BFe;R.AnomalyDetector$=bK;R.AnomalyDetectorConfiguration$=w1;R.AnomalyDetectorStateValue=HFe;R.AnomalyDetectorType=jFe;R.AssociateDatasetKmsKey$=oY;R.AssociateDatasetKmsKeyCommand=e_;R.AssociateDatasetKmsKeyInput$=AK;R.AssociateDatasetKmsKeyOutput$=xK;R.CloudWatch=j_;R.CloudWatchClient=Cn;R.CloudWatchServiceException=ut;R.CloudWatchServiceException$=X9;R.ComparisonOperator=zFe;R.CompositeAlarm$=TK;R.ConcurrentModificationException=BE;R.ConcurrentModificationException$=Z9;R.ConflictException=kE;R.ConflictException$=eK;R.CreateResourceMetricsConfiguration$=sY;R.CreateResourceMetricsConfigurationCommand=t_;R.CreateResourceMetricsConfigurationInput$=vK;R.CreateResourceMetricsConfigurationOutput$=DK;R.DashboardEntry$=IK;R.DashboardInvalidInputError=UE;R.DashboardInvalidInputError$=tK;R.DashboardNotFoundError=GE;R.DashboardNotFoundError$=rK;R.DashboardValidationMessage$=wK;R.Datapoint$=PK;R.DeleteAlarmMuteRule$=iY;R.DeleteAlarmMuteRuleCommand=r_;R.DeleteAlarmMuteRuleInput$=OK;R.DeleteAlarms$=aY;R.DeleteAlarmsCommand=n_;R.DeleteAlarmsInput$=$K;R.DeleteAnomalyDetector$=cY;R.DeleteAnomalyDetectorCommand=o_;R.DeleteAnomalyDetectorInput$=kK;R.DeleteAnomalyDetectorOutput$=MK;R.DeleteDashboards$=uY;R.DeleteDashboardsCommand=s_;R.DeleteDashboardsInput$=LK;R.DeleteDashboardsOutput$=NK;R.DeleteInsightRules$=lY;R.DeleteInsightRulesCommand=i_;R.DeleteInsightRulesInput$=FK;R.DeleteInsightRulesOutput$=BK;R.DeleteMetricStream$=dY;R.DeleteMetricStreamCommand=a_;R.DeleteMetricStreamInput$=UK;R.DeleteMetricStreamOutput$=GK;R.DeleteResourceMetricsConfiguration$=pY;R.DeleteResourceMetricsConfigurationCommand=c_;R.DeleteResourceMetricsConfigurationInput$=qK;R.DeleteResourceMetricsConfigurationOutput$=HK;R.DescribeAlarmContributors$=fY;R.DescribeAlarmContributorsCommand=u_;R.DescribeAlarmContributorsInput$=jK;R.DescribeAlarmContributorsOutput$=zK;R.DescribeAlarmHistory$=mY;R.DescribeAlarmHistoryCommand=Am;R.DescribeAlarmHistoryInput$=VK;R.DescribeAlarmHistoryOutput$=WK;R.DescribeAlarms$=gY;R.DescribeAlarmsCommand=Na;R.DescribeAlarmsForMetric$=hY;R.DescribeAlarmsForMetricCommand=l_;R.DescribeAlarmsForMetricInput$=KK;R.DescribeAlarmsForMetricOutput$=QK;R.DescribeAlarmsInput$=YK;R.DescribeAlarmsOutput$=JK;R.DescribeAnomalyDetectors$=SY;R.DescribeAnomalyDetectorsCommand=xm;R.DescribeAnomalyDetectorsInput$=XK;R.DescribeAnomalyDetectorsOutput$=ZK;R.DescribeInsightRules$=yY;R.DescribeInsightRulesCommand=Tm;R.DescribeInsightRulesInput$=eQ;R.DescribeInsightRulesOutput$=tQ;R.Dimension$=rQ;R.DimensionFilter$=nQ;R.DisableAlarmActions$=EY;R.DisableAlarmActionsCommand=d_;R.DisableAlarmActionsInput$=oQ;R.DisableInsightRules$=_Y;R.DisableInsightRulesCommand=p_;R.DisableInsightRulesInput$=sQ;R.DisableInsightRulesOutput$=iQ;R.DisassociateDatasetKmsKey$=RY;R.DisassociateDatasetKmsKeyCommand=f_;R.DisassociateDatasetKmsKeyInput$=aQ;R.DisassociateDatasetKmsKeyOutput$=cQ;R.EnableAlarmActions$=CY;R.EnableAlarmActionsCommand=m_;R.EnableAlarmActionsInput$=uQ;R.EnableInsightRules$=bY;R.EnableInsightRulesCommand=g_;R.EnableInsightRulesInput$=lQ;R.EnableInsightRulesOutput$=dQ;R.Entity$=pQ;R.EntityMetricData$=fQ;R.EvaluationCriteria$=N1;R.EvaluationState=KFe;R.EvaluationWindow$=F1;R.GetAlarmMuteRule$=AY;R.GetAlarmMuteRuleCommand=vm;R.GetAlarmMuteRuleInput$=mQ;R.GetAlarmMuteRuleOutput$=gQ;R.GetDashboard$=xY;R.GetDashboardCommand=h_;R.GetDashboardInput$=hQ;R.GetDashboardOutput$=SQ;R.GetDataset$=TY;R.GetDatasetCommand=S_;R.GetDatasetInput$=yQ;R.GetDatasetOutput$=EQ;R.GetInsightRuleReport$=vY;R.GetInsightRuleReportCommand=y_;R.GetInsightRuleReportInput$=_Q;R.GetInsightRuleReportOutput$=RQ;R.GetMetricData$=DY;R.GetMetricDataCommand=Dm;R.GetMetricDataInput$=CQ;R.GetMetricDataOutput$=bQ;R.GetMetricStatistics$=IY;R.GetMetricStatisticsCommand=E_;R.GetMetricStatisticsInput$=AQ;R.GetMetricStatisticsOutput$=xQ;R.GetMetricStream$=wY;R.GetMetricStreamCommand=__;R.GetMetricStreamInput$=TQ;R.GetMetricStreamOutput$=vQ;R.GetMetricWidgetImage$=PY;R.GetMetricWidgetImageCommand=R_;R.GetMetricWidgetImageInput$=DQ;R.GetMetricWidgetImageOutput$=IQ;R.GetOTelEnrichment$=OY;R.GetOTelEnrichmentCommand=C_;R.GetOTelEnrichmentInput$=wQ;R.GetOTelEnrichmentOutput$=PQ;R.GetResourceMetricsConfiguration$=$Y;R.GetResourceMetricsConfigurationCommand=b_;R.GetResourceMetricsConfigurationInput$=OQ;R.GetResourceMetricsConfigurationOutput$=$Q;R.HistoryItemType=UFe;R.InsightRule$=kQ;R.InsightRuleContributor$=MQ;R.InsightRuleContributorDatapoint$=LQ;R.InsightRuleMetricDatapoint$=NQ;R.InternalServiceFault=jE;R.InternalServiceFault$=nK;R.InvalidFormatFault=JE;R.InvalidFormatFault$=oK;R.InvalidNextToken=KE;R.InvalidNextToken$=sK;R.InvalidParameterCombinationException=zE;R.InvalidParameterCombinationException$=iK;R.InvalidParameterValueException=VE;R.InvalidParameterValueException$=aK;R.KmsAccessDeniedException=ME;R.KmsAccessDeniedException$=cK;R.KmsKeyDisabledException=LE;R.KmsKeyDisabledException$=uK;R.KmsKeyNotFoundException=NE;R.KmsKeyNotFoundException$=lK;R.LabelOptions$=FQ;R.LimitExceededException=QE;R.LimitExceededException$=dK;R.LimitExceededFault=YE;R.LimitExceededFault$=pK;R.ListAlarmMuteRules$=kY;R.ListAlarmMuteRulesCommand=Im;R.ListAlarmMuteRulesInput$=BQ;R.ListAlarmMuteRulesOutput$=UQ;R.ListDashboards$=MY;R.ListDashboardsCommand=wm;R.ListDashboardsInput$=GQ;R.ListDashboardsOutput$=qQ;R.ListManagedInsightRules$=LY;R.ListManagedInsightRulesCommand=Pm;R.ListManagedInsightRulesInput$=HQ;R.ListManagedInsightRulesOutput$=jQ;R.ListMetricStreams$=FY;R.ListMetricStreamsCommand=$m;R.ListMetricStreamsInput$=WQ;R.ListMetricStreamsOutput$=KQ;R.ListMetrics$=NY;R.ListMetricsCommand=Om;R.ListMetricsInput$=zQ;R.ListMetricsOutput$=VQ;R.ListTagsForResource$=BY;R.ListTagsForResourceCommand=A_;R.ListTagsForResourceInput$=QQ;R.ListTagsForResourceOutput$=YQ;R.LogAlarm$=JQ;R.ManagedRule$=XQ;R.ManagedRuleDescription$=ZQ;R.ManagedRuleState$=e7;R.MessageData$=t7;R.Metric$=P1;R.MetricAlarm$=r7;R.MetricCharacteristics$=O1;R.MetricDataQuery$=n7;R.MetricDataResult$=o7;R.MetricDatum$=s7;R.MetricMathAnomalyDetector$=lR;R.MetricStat$=i7;R.MetricStreamEntry$=a7;R.MetricStreamFilter$=c7;R.MetricStreamOutputFormat=JFe;R.MetricStreamStatisticsConfiguration$=u7;R.MetricStreamStatisticsMetric$=l7;R.MissingRequiredParameterException=WE;R.MissingRequiredParameterException$=fK;R.MuteTargets$=$1;R.OTelEnrichmentMetricSelector$=d7;R.OTelEnrichmentStatus=XFe;R.PartialFailure$=p7;R.PutAlarmMuteRule$=UY;R.PutAlarmMuteRuleCommand=x_;R.PutAlarmMuteRuleInput$=f7;R.PutAnomalyDetector$=GY;R.PutAnomalyDetectorCommand=T_;R.PutAnomalyDetectorInput$=m7;R.PutAnomalyDetectorOutput$=g7;R.PutCompositeAlarm$=qY;R.PutCompositeAlarmCommand=v_;R.PutCompositeAlarmInput$=h7;R.PutDashboard$=HY;R.PutDashboardCommand=D_;R.PutDashboardInput$=S7;R.PutDashboardOutput$=y7;R.PutInsightRule$=jY;R.PutInsightRuleCommand=I_;R.PutInsightRuleInput$=E7;R.PutInsightRuleOutput$=_7;R.PutLogAlarm$=zY;R.PutLogAlarmCommand=w_;R.PutLogAlarmInput$=R7;R.PutManagedInsightRules$=VY;R.PutManagedInsightRulesCommand=P_;R.PutManagedInsightRulesInput$=C7;R.PutManagedInsightRulesOutput$=b7;R.PutMetricAlarm$=WY;R.PutMetricAlarmCommand=O_;R.PutMetricAlarmInput$=A7;R.PutMetricData$=KY;R.PutMetricDataCommand=$_;R.PutMetricDataInput$=x7;R.PutMetricStream$=QY;R.PutMetricStreamCommand=k_;R.PutMetricStreamInput$=T7;R.PutMetricStreamOutput$=v7;R.Range$=D7;R.RecentlyActive=ZFe;R.ResourceConflict=qE;R.ResourceConflict$=mK;R.ResourceMetricSelection$=I7;R.ResourceMetricsConfiguration$=dR;R.ResourceNotFound=HE;R.ResourceNotFound$=gK;R.ResourceNotFoundException=FE;R.ResourceNotFoundException$=hK;R.Rule$=k1;R.ScanBy=WFe;R.Schedule$=w7;R.ScheduleConfiguration$=P7;R.ScheduledQueryConfiguration$=M1;R.SetAlarmState$=YY;R.SetAlarmStateCommand=M_;R.SetAlarmStateInput$=O7;R.SingleMetricAnomalyDetector$=pR;R.SlidingWindow$=$7;R.StandardUnit=qFe;R.StartMetricStreams$=JY;R.StartMetricStreamsCommand=L_;R.StartMetricStreamsInput$=k7;R.StartMetricStreamsOutput$=M7;R.StartOTelEnrichment$=XY;R.StartOTelEnrichmentCommand=N_;R.StartOTelEnrichmentInput$=L7;R.StartOTelEnrichmentOutput$=N7;R.StateValue=VFe;R.Statistic=QFe;R.StatisticSet$=F7;R.StatusCode=YFe;R.StopMetricStreams$=ZY;R.StopMetricStreamsCommand=F_;R.StopMetricStreamsInput$=B7;R.StopMetricStreamsOutput$=U7;R.StopOTelEnrichment$=eJ;R.StopOTelEnrichmentCommand=B_;R.StopOTelEnrichmentInput$=G7;R.StopOTelEnrichmentOutput$=q7;R.Tag$=H7;R.TagResource$=tJ;R.TagResourceCommand=U_;R.TagResourceInput$=j7;R.TagResourceOutput$=z7;R.UntagResource$=rJ;R.UntagResourceCommand=G_;R.UntagResourceInput$=V7;R.UntagResourceOutput$=W7;R.UpdateOTelEnrichment$=nJ;R.UpdateOTelEnrichmentCommand=q_;R.UpdateOTelEnrichmentInput$=K7;R.UpdateOTelEnrichmentOutput$=Q7;R.UpdateResourceMetricsConfiguration$=oJ;R.UpdateResourceMetricsConfigurationCommand=H_;R.UpdateResourceMetricsConfigurationInput$=Y7;R.UpdateResourceMetricsConfigurationOutput$=J7;R.ValidationException=XE;R.ValidationException$=SK;R.WallClockWindow$=X7;R.WarmUpConfiguration$=qm;R.errorTypeRegistries=yK;R.paginateDescribeAlarmHistory=sJ;R.paginateDescribeAlarms=iJ;R.paginateDescribeAnomalyDetectors=aJ;R.paginateDescribeInsightRules=cJ;R.paginateGetMetricData=uJ;R.paginateListAlarmMuteRules=lJ;R.paginateListDashboards=dJ;R.paginateListManagedInsightRules=pJ;R.paginateListMetricStreams=mJ;R.paginateListMetrics=fJ;R.waitForAlarmExists=PFe;R.waitForAlarmMuteRuleExists=OFe;R.waitForCompositeAlarmExists=$Fe;R.waitForLogAlarmExists=kFe;R.waitUntilAlarmExists=hJ;R.waitUntilAlarmMuteRuleExists=yJ;R.waitUntilCompositeAlarmExists=_J;R.waitUntilLogAlarmExists=CJ});var bn,ud,ki,ld,Ae,gR,Zc,no=g(()=>{bn={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ud=bn.WHEN_SUPPORTED,ki={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},ld=bn.WHEN_SUPPORTED;(function(t){t.MD5="MD5",t.CRC32="CRC32",t.CRC32C="CRC32C",t.CRC64NVME="CRC64NVME",t.SHA1="SHA1",t.SHA256="SHA256"})(Ae||(Ae={}));(function(t){t.HEADER="header",t.TRAILER="trailer"})(gR||(gR={}));Zc=Ae.CRC32});var Ba,dd,B1=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Ba||(Ba={}));dd=(t,e,r,n)=>{if(!(e in t))return;let o=t[e].toUpperCase();if(!Object.values(r).includes(o))throw new TypeError(`Cannot load ${n} '${e}'. Expected one of ${Object.values(r)}, got '${t[e]}'.`);return o}});var U1,G1,DJ,IJ=g(()=>{no();B1();U1="AWS_REQUEST_CHECKSUM_CALCULATION",G1="request_checksum_calculation",DJ={environmentVariableSelector:t=>dd(t,U1,bn,Ba.ENV),configFileSelector:t=>dd(t,G1,bn,Ba.CONFIG),default:ud}});var q1,H1,wJ,PJ=g(()=>{no();B1();q1="AWS_RESPONSE_CHECKSUM_VALIDATION",H1="response_checksum_validation",wJ={environmentVariableSelector:t=>dd(t,q1,ki,Ba.ENV),configFileSelector:t=>dd(t,H1,ki,Ba.CONFIG),default:ld}});var OJ,$J=g(()=>{no();OJ=(t,{requestChecksumRequired:e,requestAlgorithmMember:r,requestChecksumCalculation:n})=>r?t[r]?t[r]:void 0:n===bn.WHEN_SUPPORTED||e?Zc:void 0});var eu,hR=g(()=>{no();eu=t=>t===Ae.MD5?"content-md5":`x-amz-checksum-${t.toLowerCase()}`});var kJ,MJ=g(()=>{kJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(r===n.toLowerCase())return!0;return!1}});var LJ,NJ=g(()=>{LJ=(t,e)=>{let r=t.toLowerCase();for(let n of Object.keys(e))if(n.toLowerCase().startsWith(r))return!0;return!1}});var SR,j1=g(()=>{j();SR=t=>t!==void 0&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!Ou(t)});var FJ,yR,BJ=g(()=>{FJ=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?2197175160^e>>>1:e>>>1;FJ[t]=e>>>0}yR=class{digestLength=4;crc=4294967295;update(e){let r=this.crc;for(let n=0;n<e.length;++n)r=r>>>8^FJ[(r^e[n])&255];this.crc=r}async digest(){let e=(this.crc^4294967295)>>>0,r=new Uint8Array(4);return r[0]=e>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r}reset(){this.crc=4294967295}}});var ER,UJ=g(()=>{BJ();ER=yR});var GJ,qJ=g(()=>{GJ={CrtCrc64Nvme:null}});var eBe,z1,Hm,V1,W1,K1,Q1,Y1,J1,X1,tBe,_R,HJ=g(()=>{eBe=()=>{let e=new Array(8);for(let r=0;r<8;r++){let n=new Array(512);for(let o=0;o<256;o++){let s=BigInt(o);for(let i=0;i<8*(r+1);i++)s&1n?s=s>>1n^0x9a6c9329ac4bc9b5n:s=s>>1n;n[o*2]=Number(s>>32n&0xffffffffn),n[o*2+1]=Number(s&0xffffffffn)}e[r]=new Uint32Array(n)}return e},tBe=()=>{z1||(z1=eBe(),[Hm,V1,W1,K1,Q1,Y1,J1,X1]=z1)},_R=class{c1=0;c2=0;constructor(){tBe(),this.reset()}update(e){let r=e.length,n=0,o=this.c1,s=this.c2;for(;n+8<=r;){let i=((s^e[n++])&255)<<1,a=((s>>>8^e[n++])&255)<<1,c=((s>>>16^e[n++])&255)<<1,u=((s>>>24^e[n++])&255)<<1,f=((o^e[n++])&255)<<1,m=((o>>>8^e[n++])&255)<<1,y=((o>>>16^e[n++])&255)<<1,_=((o>>>24^e[n++])&255)<<1;o=X1[i]^J1[a]^Y1[c]^Q1[u]^K1[f]^W1[m]^V1[y]^Hm[_],s=X1[i+1]^J1[a+1]^Y1[c+1]^Q1[u+1]^K1[f+1]^W1[m+1]^V1[y+1]^Hm[_+1]}for(;n<r;){let i=((s^e[n])&255)<<1;s=(s>>>8|(o&255)<<24)>>>0,o=o>>>8^Hm[i],s^=Hm[i+1],++n}this.c1=o,this.c2=s}async digest(){let e=this.c1^4294967295,r=this.c2^4294967295;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255])}reset(){this.c1=4294967295,this.c2=4294967295}}});var jm,jJ=g(()=>{qJ();HJ();jm=class{impl;constructor(){let e=GJ.CrtCrc64Nvme;this.impl=e?new e:new _R}update(e){this.impl.update(e)}async digest(){return this.impl.digest()}reset(){this.impl.reset()}}});var zJ=g(()=>{UJ();jJ();On()});var VJ,Z1,eM=g(()=>{no();VJ=[Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME,Ae.SHA1,Ae.SHA256],Z1=[Ae.SHA256,Ae.SHA1,Ae.CRC32,Ae.CRC32C,Ae.CRC64NVME]});var RR,tM=g(()=>{zJ();no();eM();RR=(t,e)=>{let{checksumAlgorithms:r={}}=e;switch(t){case Ae.MD5:return r?.MD5??e.md5;case Ae.CRC32:return r?.CRC32??Do;case Ae.CRC32C:return r?.CRC32C??ER;case Ae.CRC64NVME:return r?.CRC64NVME??jm;case Ae.SHA1:return r?.SHA1??e.sha1;case Ae.SHA256:return r?.SHA256??e.sha256;default:if(r?.[t])return r[t];throw new Error(`The checksum algorithm "${t}" is not supported by the client. Select one of ${VJ}, or provide an implementation to the client constructor checksums field.`)}}});var CR,rM=g(()=>{j();CR=(t,e)=>{let r=new t;return r.update(bt(e||"")),r.digest()}});var bR,AR,nM=g(()=>{Ee();V();j();no();$J();hR();MJ();NJ();j1();tM();rM();bR={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},AR=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request)||LJ("x-amz-checksum-",o.request.headers))return r(o);let{request:s,input:i}=o,{body:a,headers:c}=s,{base64Encoder:u,streamHasher:f}=t,{requestChecksumRequired:m,requestAlgorithmMember:y}=e,_=await t.requestChecksumCalculation(),C=y?.name,A=y?.httpHeader;C&&!i[C]&&(_===bn.WHEN_SUPPORTED||m)&&(i[C]=Zc,A&&(c[A]=Zc));let x=OJ(i,{requestChecksumRequired:m,requestAlgorithmMember:y?.name,requestChecksumCalculation:_}),T=a,I=c;if(x){switch(x){case Ae.CRC32:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Ae.CRC32C:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Ae.CRC64NVME:We(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Ae.SHA1:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Ae.SHA256:We(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}let q=eu(x),H=RR(x,t);if(SR(a)){let{getAwsChunkedEncodingStream:me,bodyLengthChecker:et}=t;T=me(typeof t.requestStreamBufferSize=="number"&&t.requestStreamBufferSize>=8*1024?$S(a,t.requestStreamBufferSize,n.logger):a,{base64Encoder:u,bodyLengthChecker:et,checksumLocationName:q,checksumAlgorithmFn:H,streamHasher:f}),I={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":q},delete I["content-length"]}else if(!kJ(q,c)){let me=await CR(H,a);I={...c,[q]:u(me)}}}try{return await r({...o,request:{...s,headers:I,body:T}})}catch(q){if(q instanceof Error&&q.name==="InvalidChunkSizeError")try{q.message.endsWith(".")||(q.message+="."),q.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch{}throw q}}});var WJ,KJ,QJ=g(()=>{Ee();no();WJ={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},KJ=(t,e)=>(r,n)=>async o=>{let s=o.input,{requestValidationModeMember:i}=e,a=await t.requestChecksumCalculation(),c=await t.responseChecksumValidation();switch(a){case bn.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case bn.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case ki.WHEN_REQUIRED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case ki.WHEN_SUPPORTED:We(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return i&&!s[i]&&c===ki.WHEN_SUPPORTED&&(s[i]="ENABLED"),r(o)}});var xR,oM=g(()=>{eM();xR=(t=[])=>{let e=[],r=Z1.length;for(let n of t){let o=Z1.indexOf(n);o!==-1?e[o]=n:e[r++]=n}return e.filter(Boolean)}});var YJ,JJ=g(()=>{YJ=t=>{let e=t.lastIndexOf("-");if(e!==-1){let r=t.slice(e+1);if(!r.startsWith("0")){let n=parseInt(r,10);if(!isNaN(n)&&n>=1&&n<=1e4)return!0}}return!1}});var XJ,ZJ=g(()=>{rM();XJ=async(t,{checksumAlgorithmFn:e,base64Encoder:r})=>r(await CR(e,t))});var eX,tX=g(()=>{j();no();ZJ();oM();hR();j1();tM();eX=async(t,{config:e,responseAlgorithms:r,logger:n})=>{let o=xR(r),{body:s,headers:i}=t;for(let a of o){let c=eu(a),u=i[c];if(u){let f;try{f=RR(a,e)}catch(_){if(a===Ae.CRC64NVME){n?.warn(`Skipping ${Ae.CRC64NVME} checksum validation: ${_.message}`);continue}throw _}let{base64Encoder:m}=e;if(SR(s)){t.body=OS({expectedChecksum:u,checksumSourceLocation:c,checksum:new f,source:s,base64Encoder:m});return}let y=await XJ(s,{checksumAlgorithmFn:f,base64Encoder:m});if(y===u)break;throw new Error(`Checksum mismatch: expected "${y}" but received "${u}" in response header "${c}".`)}}}});var rX,nX,oX=g(()=>{V();oM();hR();JJ();tX();rX={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},nX=(t,e)=>(r,n)=>async o=>{if(!re.isInstance(o.request))return r(o);let s=o.input,i=await r(o),a=i.response,{requestValidationModeMember:c,responseAlgorithms:u}=e;if(c&&s[c]==="ENABLED"){let{clientName:f,commandName:m}=n,y=Object.keys(t.checksumAlgorithms??{}).filter(A=>{let x=eu(A);return a.headers[x]!==void 0}),_=xR([...u??[],...y]);if(f==="S3Client"&&m==="GetObjectCommand"&&_.every(A=>{let x=eu(A),T=a.headers[x];return!T||YJ(T)}))return i;await eX(a,{config:t,responseAlgorithms:_,logger:n.logger})}return i}});var sX,iX=g(()=>{QJ();nM();oX();sX=(t,e)=>({applyToStack:r=>{r.add(AR(t,e),bR),r.addRelativeTo(KJ(t,e),WJ),r.addRelativeTo(nX(t,e),rX)}})});var aX,cX=g(()=>{J();no();aX=t=>{let{requestChecksumCalculation:e,responseChecksumValidation:r,requestStreamBufferSize:n}=t;return Object.assign(t,{requestChecksumCalculation:we(e??ud),responseChecksumValidation:we(r??ld),requestStreamBufferSize:Number(n??0),checksumAlgorithms:t.checksumAlgorithms??{}})}});var uX={};Ct(uX,{CONFIG_REQUEST_CHECKSUM_CALCULATION:()=>G1,CONFIG_RESPONSE_CHECKSUM_VALIDATION:()=>H1,ChecksumAlgorithm:()=>Ae,ChecksumLocation:()=>gR,DEFAULT_CHECKSUM_ALGORITHM:()=>Zc,DEFAULT_REQUEST_CHECKSUM_CALCULATION:()=>ud,DEFAULT_RESPONSE_CHECKSUM_VALIDATION:()=>ld,ENV_REQUEST_CHECKSUM_CALCULATION:()=>U1,ENV_RESPONSE_CHECKSUM_VALIDATION:()=>q1,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:()=>DJ,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:()=>wJ,RequestChecksumCalculation:()=>bn,ResponseChecksumValidation:()=>ki,flexibleChecksumsMiddleware:()=>AR,flexibleChecksumsMiddlewareOptions:()=>bR,getFlexibleChecksumsPlugin:()=>sX,resolveFlexibleChecksumsConfig:()=>aX});var lX=g(()=>{IJ();PJ();no();nM();iX();cX()});function sM(){return(t,e)=>async r=>{let{request:n}=r;if(re.isInstance(n)&&!(rBe in n.headers)&&!(nBe in n.headers)){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof e?.logger?.warn=="function"&&!(e.logger instanceof Nr)?e.logger.warn(o):console.warn(o)}return t({...r})}}var rBe,nBe,iM,dX,pX=g(()=>{J();V();rBe="content-length",nBe="x-amz-decoded-content-length";iM={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},dX=t=>({applyToStack:e=>{e.add(sM(),iM)}})});var TR,vR,aM=g(()=>{TR=t=>(e,r)=>async n=>{let o=await t.region(),s=t.region,i=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(t,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),i=()=>Object.defineProperty(t,"region",{writable:!0,value:s}));try{let a=await e(n);if(r.__s3RegionRedirect){i();let c=await t.region();if(o!==c)throw new Error("Region was not restored following S3 region redirect.")}return a}catch(a){throw i(),a}},vR={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"}});function cM(t){return(e,r)=>async n=>{try{return await e(n)}catch(o){if(t.followRegionRedirects){let s=o?.$metadata?.httpStatusCode,i=r.commandName==="HeadBucketCommand",a=o?.$response?.headers?.["x-amz-bucket-region"];if(a&&(s===301||s===400&&(o?.name==="IllegalLocationConstraintException"||i))){try{let c=a;r.logger?.debug(`Redirecting from ${await t.region()} to ${c}`),r.__s3RegionRedirect=c,We(r,"S3_REGION_REDIRECT","Ah")}catch(c){throw new Error("Region redirect failed: "+c)}return e(n)}}throw o}}}var uM,fX,mX=g(()=>{Ee();aM();uM={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fX=t=>({applyToStack:e=>{e.add(cM(t),uM),e.addRelativeTo(TR(t),vR)}})});var pd,lM=g(()=>{pd=class t{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let r=this.data[e];if(r)return r}set(e,r){return this.data[e]=r,r}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+t.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let r in this.data){let n=this.data[r];if(!n.isRefreshing){let o=await n.identity;o.expiration&&o.expiration.getTime()<e&&delete this.data[r]}}}}});var Ua,dM=g(()=>{Ua=class{_identity;isRefreshing;accessed;constructor(e,r=!1,n=Date.now()){this._identity=e,this.isRefreshing=r,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}});var fd,pM=g(()=>{lM();dM();fd=class t{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,r=new pd){this.createSessionFn=e,this.cache=r}async getS3ExpressIdentity(e,r){let n=r.Bucket,{cache:o}=this,s=o.get(n);return s?s.identity.then(i=>(i.expiration?.getTime()??0)<Date.now()?o.set(n,new Ua(this.getIdentity(n))).identity:((i.expiration?.getTime()??0)<Date.now()+t.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(n).then(u=>{o.set(n,new Ua(Promise.resolve(u)))})),i)):o.set(n,new Ua(this.getIdentity(n))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(o=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
59
+ `+o)});let r=await this.createSessionFn(e);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}}});var gX,hX=g(()=>{pM();gX=(t,{session:e})=>{let[r,n]=e,{forcePathStyle:o,useAccelerateEndpoint:s,disableMultiregionAccessPoints:i,followRegionRedirects:a,s3ExpressIdentityProvider:c,bucketEndpoint:u,expectContinueHeader:f}=t;return Object.assign(t,{forcePathStyle:o??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:i??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:c??new fd(async m=>r().send(new n({Bucket:m}))),bucketEndpoint:u??!1,expectContinueHeader:f??2097152})}});var fM,mM,SX,yX=g(()=>{V();j();fM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(ft.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{gn(s.headers.expires)}catch(i){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${i}`),delete s.headers.expires}}return o},mM={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},SX=t=>({applyToStack:e=>{e.addRelativeTo(fM(t),mM)}})});var EX,DR,_X=g(()=>{EX=Ie(tm()),DR=class extends EX.SignatureV4SignWithCredentials{}});var RX,CX,bX,oBe,AX,sBe,iBe,xX,gM=g(()=>{ye();RX="Directory",CX="S3Express",bX="sigv4-s3express",oBe="X-Amz-S3session-Token",AX=oBe.toLowerCase(),sBe="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",iBe="s3_disable_express_session_auth",xX={environmentVariableSelector:t=>Ve(t,sBe,Be.ENV),configFileSelector:t=>Ve(t,iBe,Be.CONFIG),default:!1}});var hM,SM,TX,vX=g(()=>{Ee();V();gM();hM=t=>(e,r)=>async n=>{if(r.endpointV2){let o=r.endpointV2,s=o.properties?.authSchemes?.[0]?.name===bX;if((o.properties?.backend===CX||o.properties?.bucketType===RX)&&(We(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let a=n.input.Bucket;if(a){let c=await t.s3ExpressIdentityProvider.getS3ExpressIdentity(await t.credentials(),{Bucket:a});r.s3ExpressIdentity=c,re.isInstance(n.request)&&c.sessionToken&&(n.request.headers[AX]=c.sessionToken)}}}return e(n)},SM={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},TX=t=>({applyToStack:e=>{e.add(hM(t),SM)}})});var DX,IX=g(()=>{DX=async(t,e,r,n)=>{let o=await n.signWithCredentials(r,t,{});if(o.headers["X-Amz-Security-Token"]||o.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return o}});var aBe,cBe,wX,yM,PX,OX=g(()=>{jt();J();V();IX();aBe=t=>e=>{throw e},cBe=(t,e)=>{},wX=Pc,yM=t=>(e,r)=>async n=>{if(!re.isInstance(n.request))return e(n);let s=Le(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=s,u;r.s3ExpressIdentity?u=await DX(r.s3ExpressIdentity,i,n.request,await t.signer()):u=await c.sign(n.request,a,i);let f=await e({...n,request:u}).catch((c.errorHandler||aBe)(i));return(c.successHandler||cBe)(f.response,i),f},PX=t=>({applyToStack:e=>{e.addRelativeTo(yM(t),Pc)}})});function kX(t){return $X.Readable.from(Buffer.from(t))}var $X,MX=g(()=>{$X=require("node:stream")});var uBe,EM,lBe,_M,LX,NX=g(()=>{V();MX();uBe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},EM=t=>(e,r)=>async n=>{let o=await e(n),{response:s}=o;if(!ft.isInstance(s))return o;let{statusCode:i,body:a}=s;if(i<200||i>=300)return o;let c=await lBe(a,t);if(s.body=kX(c),c.length===0&&uBe[r.commandName]){let f=new Error("S3 aborted request");throw f.$metadata={httpStatusCode:503},f.name="InternalError",f}let u=t.utf8Encoder(c.subarray(c.length-16));return u&&u.endsWith("</Error>")&&(s.statusCode=503),o},lBe=(t=new Uint8Array,e)=>t instanceof Uint8Array?Promise.resolve(t):e.streamCollector(t)||Promise.resolve(new Uint8Array),_M={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},LX=t=>({applyToStack:e=>{e.addRelativeTo(EM(t),_M)}})});var zm,RM,FX=g(()=>{zm=t=>typeof t=="string"&&t.indexOf("arn:")===0&&t.split(":").length>=6,RM=t=>{let e=t.split(":");if(e.length<6||e[0]!=="arn")throw new Error("Malformed ARN");let[,r,n,o,s,...i]=e;return{partition:r,service:n,region:o,accountId:s,resource:i.join(":")}}});var CM=g(()=>{FX()});function BX(t){return(e,r)=>async n=>{if(t.bucketEndpoint){let o=r.endpointV2;if(o){let s=n.input.Bucket;if(typeof s=="string")try{let i=new URL(s);r.endpointV2={...o,url:i}}catch(i){let a=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(a):r.logger?.warn?.(a),i}}}return e(n)}}var UX,GX=g(()=>{UX={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"}});function bM({bucketEndpoint:t}){return e=>async r=>{let{input:{Bucket:n}}=r;if(!t&&typeof n=="string"&&!zm(n)&&n.indexOf("/")>=0){let o=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw o.name="InvalidBucketName",o}return e({...r})}}var AM,qX,HX=g(()=>{CM();GX();AM={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},qX=t=>({applyToStack:e=>{e.add(bM(t),AM),e.addRelativeTo(BX(t),UX)}})});var IR,jX=g(()=>{Di();ae();IR=class extends Kl{async serializeRequest(e,r,n){let o=await super.serializeRequest(e,r,n),s=B.of(e.input),i=s.getSchema(),a=0,c=i[6]??0;if(r&&typeof r=="object")for(let[u,f]of s.structIterator()){if(++a>c)break;if(u==="Bucket"){if(!r.Bucket&&f.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return o}}});var xM,TM,zX,VX=g(()=>{ye();xM="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS",TM="s3_disable_multiregion_access_points",zX={environmentVariableSelector:t=>Ve(t,xM,Be.ENV),configFileSelector:t=>Ve(t,TM,Be.CONFIG),default:!1}});var vM,DM,WX,KX=g(()=>{ye();vM="AWS_S3_USE_ARN_REGION",DM="s3_use_arn_region",WX={environmentVariableSelector:t=>Ve(t,vM,Be.ENV),configFileSelector:t=>Ve(t,DM,Be.CONFIG),default:void 0}});var dBe,pBe,fBe,wM,mBe,QX,IM,YX,JX,XX,ZX,wR,eZ,tZ,rZ,PR,OR,nZ,$R,kR,Ga,oZ,MR,sZ,LR,iZ,PM=g(()=>{dBe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,pBe=/(\d+\.){3}\d+/,fBe=/\.\./,wM=/\./,mBe=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,QX=/^s3(-external-1)?\.amazonaws\.com$/,IM="amazonaws.com",YX=t=>typeof t.bucketName=="string",JX=t=>dBe.test(t)&&!pBe.test(t)&&!fBe.test(t),XX=t=>{let e=t.match(mBe);return[e[4],t.replace(new RegExp(`^${e[0]}`),"")]},ZX=t=>QX.test(t)?["us-east-1",IM]:XX(t),wR=t=>QX.test(t)?[t.replace(`.${IM}`,""),IM]:XX(t),eZ=t=>{if(t.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},tZ=t=>{if(t!=="s3"&&t!=="s3-outposts"&&t!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")},rZ=t=>{if(t!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")},PR=t=>{if(t!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")},OR=(t,e)=>{if(t!==e.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${t}" but expected "${e.clientPartition}"`)},nZ=(t,e)=>{},$R=t=>{if(["s3-external-1","aws-global"].includes(t))throw new Error(`Client region ${t} is not regional`)},kR=t=>{if(!/[0-9]{12}/.exec(t))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Ga=(t,e={tlsCompatible:!0})=>{if(t.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||e?.tlsCompatible&&wM.test(t))throw new Error(`Invalid DNS label ${t}`)},oZ=t=>{if(t.isCustomEndpoint){if(t.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(t.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}},MR=t=>{let e=t.includes(":")?":":"/",[r,...n]=t.split(e);if(r==="accesspoint"){if(n.length!==1||n[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${e}{accesspointname}`);return{accesspointName:n[0]}}else if(r==="outpost"){if(!n[0]||n[1]!=="accesspoint"||!n[2]||n.length!==3)throw new Error(`Outpost ARN should have resource outpost${e}{outpostId}${e}accesspoint${e}{accesspointName}`);let[o,s,i]=n;return{outpostId:o,accesspointName:i}}else throw new Error(`ARN resource should begin with 'accesspoint${e}' or 'outpost${e}'`)},sZ=t=>{},LR=t=>{if(t)throw new Error("FIPS region is not supported with Outpost.")},iZ=t=>{try{t.split(".").forEach(e=>{Ga(e)})}catch{throw new Error(`"${t}" is not a DNS compatible name.`)}}});var Vm,gBe,hBe,SBe,yBe,EBe,_Be,OM=g(()=>{PM();Vm=t=>(oZ(t),YX(t)?gBe(t):hBe(t)),gBe=({accelerateEndpoint:t=!1,clientRegion:e,baseHostname:r,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:i=!1,tlsCompatible:a=!0,isCustomEndpoint:c=!1})=>{let[u,f]=c?[e,r]:ZX(r);return i||!JX(n)||a&&wM.test(n)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${u}.${f}`:r}:(t?r=`s3-accelerate${o?".dualstack":""}.${f}`:o&&(r=`s3.dualstack.${u}.${f}`),{bucketEndpoint:!0,hostname:`${n}.${r}`})},hBe=t=>{let{isCustomEndpoint:e,baseHostname:r,clientRegion:n}=t,o=e?r:wR(r)[1],{pathStyleEndpoint:s,accelerateEndpoint:i=!1,fipsEndpoint:a=!1,tlsCompatible:c=!0,bucketName:u,clientPartition:f="aws"}=t;eZ({pathStyleEndpoint:s,accelerateEndpoint:i,tlsCompatible:c});let{service:m,partition:y,accountId:_,region:C,resource:A}=u;tZ(m),OR(y,{clientPartition:f}),kR(_);let{accesspointName:x,outpostId:T}=MR(A);return m==="s3-object-lambda"?SBe({...t,tlsCompatible:c,bucketName:u,accesspointName:x,hostnameSuffix:o}):C===""?yBe({...t,clientRegion:n,mrapAlias:x,hostnameSuffix:o}):T?EBe({...t,clientRegion:n,outpostId:T,accesspointName:x,hostnameSuffix:o}):_Be({...t,clientRegion:n,accesspointName:x,hostnameSuffix:o})},SBe=({dualstackEndpoint:t=!1,fipsEndpoint:e=!1,tlsCompatible:r=!0,useArnRegion:n,clientRegion:o,clientSigningRegion:s=o,accesspointName:i,bucketName:a,hostnameSuffix:c})=>{let{accountId:u,region:f,service:m}=a;$R(o);let y=`${i}-${u}`;Ga(y,{tlsCompatible:r});let _=n?f:o,C=n?f:s;return{bucketEndpoint:!0,hostname:`${y}.${m}${e?"-fips":""}.${_}.${c}`,signingRegion:C,signingService:m}},yBe=({disableMultiregionAccessPoints:t,dualstackEndpoint:e=!1,isCustomEndpoint:r,mrapAlias:n,hostnameSuffix:o})=>{if(t===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return iZ(n),{bucketEndpoint:!0,hostname:`${n}${r?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},EBe=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:i=!1,tlsCompatible:a=!0,accesspointName:c,isCustomEndpoint:u,hostnameSuffix:f})=>{$R(e);let m=`${c}-${n.accountId}`;Ga(m,{tlsCompatible:a});let y=t?n.region:e,_=t?n.region:r;return PR(n.service),Ga(o,{tlsCompatible:a}),LR(i),{bucketEndpoint:!0,hostname:`${`${m}.${o}`}${u?"":`.s3-outposts.${y}`}.${f}`,signingRegion:_,signingService:"s3-outposts"}},_Be=({useArnRegion:t,clientRegion:e,clientSigningRegion:r=e,bucketName:n,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:i=!0,accesspointName:a,isCustomEndpoint:c,hostnameSuffix:u})=>{$R(e);let f=`${a}-${n.accountId}`;Ga(f,{tlsCompatible:i});let m=t?n.region:e,y=t?n.region:r;return rZ(n.service),{bucketEndpoint:!0,hostname:`${f}${c?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${m}`}.${u}`,signingRegion:y}}});var $M,kM,aZ,cZ=g(()=>{CM();V();OM();$M=t=>(e,r)=>async n=>{let{Bucket:o}=n.input,s=t.bucketEndpoint,i=n.request;if(re.isInstance(i)){if(t.bucketEndpoint)i.hostname=o;else if(zm(o)){let a=RM(o),c=await t.region(),u=await t.useDualstackEndpoint(),f=await t.useFipsEndpoint(),{partition:m,signingRegion:y=c}=await t.regionInfoProvider(c,{useDualstackEndpoint:u,useFipsEndpoint:f})||{},_=await t.useArnRegion(),{hostname:C,bucketEndpoint:A,signingRegion:x,signingService:T}=Vm({bucketName:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:f,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",useArnRegion:_,clientPartition:m,clientSigningRegion:y,clientRegion:c,isCustomEndpoint:t.isCustomEndpoint,disableMultiregionAccessPoints:await t.disableMultiregionAccessPoints()});x&&x!==y&&(r.signing_region=x),T&&T!=="s3"&&(r.signing_service=T),i.hostname=C,s=A}else{let a=await t.region(),c=await t.useDualstackEndpoint(),u=await t.useFipsEndpoint(),{hostname:f,bucketEndpoint:m}=Vm({bucketName:o,clientRegion:a,baseHostname:i.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:c,fipsEndpoint:u,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:i.protocol==="https:",isCustomEndpoint:t.isCustomEndpoint});i.hostname=f,s=m}s&&(i.path=i.path.replace(/^(\/)?[^\/]+/,""),i.path===""&&(i.path="/"))}return e({...n,request:i})},kM={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},aZ=t=>({applyToStack:e=>{e.addRelativeTo($M(t),kM)}})});function uZ(t){let{bucketEndpoint:e=!1,forcePathStyle:r=!1,useAccelerateEndpoint:n=!1,useArnRegion:o,disableMultiregionAccessPoints:s=!1}=t;return Object.assign(t,{bucketEndpoint:e,forcePathStyle:r,useAccelerateEndpoint:n,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)})}var lZ=g(()=>{});function MM(t){return e=>async r=>{let{request:n}=r;if(t.expectContinueHeader!==!1&&re.isInstance(n)&&n.body&&t.runtime==="node"&&t.requestHandler?.constructor?.name!=="FetchHttpHandler"){let o=!0;if(typeof t.expectContinueHeader=="number")try{o=(Number(n.headers?.["content-length"])??t.bodyLengthChecker?.(n.body)??1/0)>=t.expectContinueHeader}catch{}else o=!!t.expectContinueHeader;o&&(n.headers.Expect="100-continue")}return e({...r,request:n})}}var LM,dZ,pZ=g(()=>{V();LM={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},dZ=t=>({applyToStack:e=>{e.add(MM(t),LM)}})});function NM(t){return e=>async r=>{let{CreateBucketConfiguration:n}=r.input,o=await t.region();return!n?.LocationConstraint&&!n?.Location&&o!=="us-east-1"&&(r.input.CreateBucketConfiguration=r.input.CreateBucketConfiguration??{},r.input.CreateBucketConfiguration.LocationConstraint=o),e(r)}}var FM,fZ,mZ=g(()=>{FM={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},fZ=t=>({applyToStack:e=>{e.add(NM(t),FM)}})});function gZ(t){return t}var hZ=g(()=>{});function BM(t){return e=>async r=>{let n={...r.input},o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let s of o){let i=n[s.target];if(i){let a;typeof i=="string"?GM(i,t)?a=t.base64Decoder(i):(a=t.utf8Decoder(i),n[s.target]=t.base64Encoder(a)):(a=ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i),n[s.target]=t.base64Encoder(a));let c=new t.md5;c.update(a),n[s.hash]=t.base64Encoder(await c.digest())}}return e({...r,input:n})}}function GM(t,e){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t))return!1;try{return e.base64Decoder(t).length===32}catch{return!1}}var UM,SZ,yZ=g(()=>{UM={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},SZ=t=>({applyToStack:e=>{e.add(BM(t),UM)}})});var EZ={};Ct(EZ,{NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS:()=>zX,NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME:()=>xM,NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME:()=>TM,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:()=>xX,NODE_USE_ARN_REGION_CONFIG_OPTIONS:()=>WX,NODE_USE_ARN_REGION_ENV_NAME:()=>vM,NODE_USE_ARN_REGION_INI_NAME:()=>DM,S3ExpressIdentityCache:()=>pd,S3ExpressIdentityCacheEntry:()=>Ua,S3ExpressIdentityProviderImpl:()=>fd,S3RestXmlProtocol:()=>IR,SignatureV4S3Express:()=>DR,addExpectContinueMiddleware:()=>MM,addExpectContinueMiddlewareOptions:()=>LM,bucketEndpointMiddleware:()=>$M,bucketEndpointMiddlewareOptions:()=>kM,bucketHostname:()=>Vm,checkContentLengthHeader:()=>sM,checkContentLengthHeaderMiddlewareOptions:()=>iM,getAddExpectContinuePlugin:()=>dZ,getArnResources:()=>MR,getBucketEndpointPlugin:()=>aZ,getCheckContentLengthHeaderPlugin:()=>dX,getLocationConstraintPlugin:()=>fZ,getRegionRedirectMiddlewarePlugin:()=>fX,getS3ExpiresMiddlewarePlugin:()=>SX,getS3ExpressHttpSigningPlugin:()=>PX,getS3ExpressPlugin:()=>TX,getSsecPlugin:()=>SZ,getSuffixForArnEndpoint:()=>wR,getThrow200ExceptionsPlugin:()=>LX,getValidateBucketNamePlugin:()=>qX,isValidBase64EncodedSSECustomerKey:()=>GM,locationConstraintMiddleware:()=>NM,locationConstraintMiddlewareOptions:()=>FM,regionRedirectEndpointMiddleware:()=>TR,regionRedirectEndpointMiddlewareOptions:()=>vR,regionRedirectMiddleware:()=>cM,regionRedirectMiddlewareOptions:()=>uM,resolveBucketEndpointConfig:()=>uZ,resolveLocationConstraintConfig:()=>gZ,resolveS3Config:()=>gX,s3ExpiresMiddleware:()=>fM,s3ExpiresMiddlewareOptions:()=>mM,s3ExpressHttpSigningMiddleware:()=>yM,s3ExpressHttpSigningMiddlewareOptions:()=>wX,s3ExpressMiddleware:()=>hM,s3ExpressMiddlewareOptions:()=>SM,ssecMiddleware:()=>BM,ssecMiddlewareOptions:()=>UM,throw200ExceptionsMiddleware:()=>EM,throw200ExceptionsMiddlewareOptions:()=>_M,validateAccountId:()=>kR,validateBucketNameMiddleware:()=>bM,validateBucketNameMiddlewareOptions:()=>AM,validateDNSHostLabel:()=>Ga,validateNoDualstack:()=>sZ,validateNoFIPS:()=>LR,validateOutpostService:()=>PR,validatePartition:()=>OR,validateRegion:()=>nZ});var _Z=g(()=>{pX();aM();mX();hX();yX();lM();dM();pM();_X();gM();vX();OX();NX();HX();jX();VX();KX();cZ();OM();lZ();PM();pZ();mZ();hZ();yZ()});var Tt,RZ,CZ,RBe,Mi,NR=g(()=>{j();Tt=64,RZ=20,CZ=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),RBe=new Int32Array([1518500249,1859775393,2400959708,3395469782]),Mi=class t{digestLength=RZ;state=Int32Array.from(CZ);w;buffer=new Uint8Array(Tt);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let n=new Uint8Array(Tt*2);for(let o=0;o<Tt;++o)n[o]=54^r[o],n[o+Tt]=92^r[o];this.inner.update(n.subarray(0,Tt)),this.outer.update(n.subarray(Tt))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=0,{length:n}=e;if(this.bytesHashed+=n,this.bufferLength>0){for(;n>0&&this.bufferLength<Tt;)this.buffer[this.bufferLength++]=e[r++],--n;this.bufferLength===Tt&&(this.hashBuffer(this.buffer,0),this.bufferLength=0)}for(;n>=Tt;)this.hashBuffer(e,r),r+=Tt,n-=Tt;for(;n>0;)this.buffer[this.bufferLength++]=e[r++],--n}async digest(){if(this.inner&&this.outer){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let e=this.inner.digestSync();return this.outer.update(e),this.outer.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(CZ),this.buffer=new Uint8Array(Tt),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed/536870912|0,s=this.bytesHashed<<3;if(r[n++]=128,n>Tt-8){for(let c=n;c<Tt;++c)r[c]=0;this.hashBufferWith(e,r,0),n=0}for(let c=n;c<Tt-8;++c)r[c]=0;let i=new DataView(r.buffer,r.byteOffset,Tt);i.setUint32(Tt-8,o,!1),i.setUint32(Tt-4,s,!1),this.hashBufferWith(e,r,0);let a=new Uint8Array(RZ);return a[0]=e[0]>>>24&255,a[1]=e[0]>>>16&255,a[2]=e[0]>>>8&255,a[3]=e[0]&255,a[4]=e[1]>>>24&255,a[5]=e[1]>>>16&255,a[6]=e[1]>>>8&255,a[7]=e[1]&255,a[8]=e[2]>>>24&255,a[9]=e[2]>>>16&255,a[10]=e[2]>>>8&255,a[11]=e[2]&255,a[12]=e[3]>>>24&255,a[13]=e[3]>>>16&255,a[14]=e[3]>>>8&255,a[15]=e[3]&255,a[16]=e[4]>>>24&255,a[17]=e[4]>>>16&255,a[18]=e[4]>>>8&255,a[19]=e[4]&255,a}static normalizeKey(e){let r=bt(e);if(r.byteLength>Tt){let o=new t;o.update(r);let s=o.digestSync(),i=new Uint8Array(Tt);return i.set(s),i}let n=new Uint8Array(Tt);return n.set(r),n}hashBuffer(e,r){this.hashBufferWith(this.state,e,r)}hashBufferWith(e,r,n){let o=this.w??=new Int32Array(80),s=e[0],i=e[1],a=e[2],c=e[3],u=e[4];for(let f=0;f<16;++f)o[f]=(r[n+f*4]&255)<<24|(r[n+f*4+1]&255)<<16|(r[n+f*4+2]&255)<<8|r[n+f*4+3]&255;for(let f=16;f<80;++f){let m=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=m<<1|m>>>31}for(let f=0;f<80;++f){let m=f<20?0:f<40?1:f<60?2:3,y=((s<<5|s>>>27)+(m===0?i&a^~i&c:m===2?i&a^i&c^a&c:i^a^c)|0)+(u+(RBe[m]+o[f]|0)|0)|0;u=c,c=a,a=i<<30|i>>>2,i=s,s=y}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+u|0}}});function bBe(){return class{digestLength=20;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Wm.createHmac)("sha1",ABe(this.secret)):(0,Wm.createHash)("sha1")}}}function ABe(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Wm,CBe,qM,bZ=g(()=>{Wm=require("node:crypto");NR();CBe=(()=>{try{return(0,Wm.createHash)("sha1"),!0}catch{return!1}})(),qM=CBe?bBe():Mi});var xBe,TBe,vBe,FR,DBe,BR,AZ=g(()=>{j();NR();({digest:xBe,sign:TBe,importKey:vBe}=globalThis?.crypto?.subtle??{}),FR=typeof xBe=="function"&&typeof TBe=="function"&&typeof vBe=="function"?globalThis.crypto.subtle:void 0,DBe=8*1024*1024,BR=class{digestLength=20;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bt(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=DBe&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=Vn(this.pending);if(FR){if(this.secret){this.finished=!0;let o=await FR.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),s=await FR.sign("HMAC",o,e);return new Uint8Array(s)}let n=await FR.digest("SHA-1",e);return new Uint8Array(n)}let r=new Mi(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new Mi(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var xZ={};Ct(xZ,{Sha1:()=>qM,Sha1Js:()=>Mi,Sha1Node:()=>qM,Sha1WebCrypto:()=>BR,Sha256:()=>Sn,Sha256Js:()=>Io,Sha256Node:()=>Sn});var TZ=g(()=>{NR();bZ();AZ();On()});var IN=st(d=>{var{getFlexibleChecksumsPlugin:qa,NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS:IBe,NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS:wBe,resolveFlexibleChecksumsConfig:PBe}=(lX(),F(uX)),{awsEndpointFunctions:OBe,emitWarningIfUnsupportedVersion:$Be,createDefaultUserAgentProvider:kBe,NODE_APP_ID_CONFIG_OPTIONS:MBe,getAwsRegionExtensionConfiguration:LBe,resolveAwsRegionExtensionConfiguration:NBe,resolveUserAgentConfig:FBe,resolveHostHeaderConfig:BBe,getUserAgentPlugin:UBe,getHostHeaderPlugin:GBe,getLoggerPlugin:qBe,getRecursionDetectionPlugin:HBe}=(Ee(),F(kn)),{getThrow200ExceptionsPlugin:Ha,getSsecPlugin:Sd,getLocationConstraintPlugin:jBe,getS3ExpiresMiddlewarePlugin:dee,getCheckContentLengthHeaderPlugin:zBe,S3RestXmlProtocol:VBe,NODE_USE_ARN_REGION_CONFIG_OPTIONS:WBe,NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS:KBe,resolveS3Config:QBe,getValidateBucketNamePlugin:YBe,getAddExpectContinuePlugin:JBe,getRegionRedirectMiddlewarePlugin:XBe,getS3ExpressPlugin:ZBe,getS3ExpressHttpSigningPlugin:e2e}=(_Z(),F(EZ)),{getHttpAuthSchemeEndpointRuleSetPlugin:t2e,DefaultIdentityProviderConfig:r2e,getHttpSigningPlugin:n2e,createPaginator:ag}=(jt(),F(Al)),{normalizeProvider:pee,getSmithyContext:fee,makeBuilder:o2e,ServiceException:s2e,NoOpLogger:i2e,emitWarningIfUnsupportedVersion:a2e,loadConfigsForDefaultMode:c2e,getDefaultExtensionConfiguration:u2e,resolveDefaultRuntimeConfig:l2e,Client:mee,createWaiter:ja,checkExceptions:PA,WaiterState:ei,createAggregatedClient:d2e}=(J(),F(bo)),{Command:p2e}=(J(),F(bo));d.$Command=p2e;d.__Client=mee;var{resolveDefaultsModeConfig:f2e,loadConfig:oo,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:m2e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:g2e,NODE_REGION_CONFIG_OPTIONS:h2e,NODE_REGION_CONFIG_FILE_OPTIONS:S2e,resolveRegionConfig:y2e}=(ye(),F(Br)),{BinaryDecisionDiagram:E2e,EndpointCache:_2e,decideEndpoint:R2e,customEndpointFunctions:C2e,resolveParams:b2e,getEndpointPlugin:A2e,resolveEndpointConfig:x2e}=(He(),F(Hp)),{eventStreamSerdeProvider:T2e,resolveEventStreamSerdeConfig:v2e}=(VS(),F(zS)),{parseUrl:D2e,getHttpHandlerExtensionConfiguration:I2e,resolveHttpHandlerRuntimeConfig:w2e,getContentLengthPlugin:P2e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:O2e,NODE_RETRY_MODE_CONFIG_OPTIONS:$2e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:k2e,resolveRetryConfig:M2e,getRetryPlugin:L2e}=(en(),F(rf)),{TypeRegistry:gee,getSchemaSerdePlugin:N2e}=(ae(),F(vp)),{resolveAwsSdkSigV4Config:F2e,resolveAwsSdkSigV4AConfig:B2e,AwsSdkSigV4Signer:U2e,AwsSdkSigV4ASigner:G2e,NODE_SIGV4A_CONFIG_OPTIONS:q2e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:H2e}=(rr(),F(Dl)),{SignatureV4MultiRegion:hee}=tm(),{defaultProvider:j2e}=Rm(),{Sha256:z2e,Md5:V2e,readableStreamHasher:W2e}=(On(),F(zp)),{toUtf8:K2e,fromUtf8:Q2e,sdkStreamMixin:Y2e,getAwsChunkedEncodingStream:J2e,toBase64:X2e,fromBase64:Z2e,calculateBodyLength:eUe}=(j(),F(To)),{streamCollector:tUe,NodeHttpHandler:rUe}=zs(),{Sha1:nUe}=(TZ(),F(xZ)),Ke="ref",he="argv",See="backend",ri="authSchemes",io="disableDoubleEncoding",ao="signingName",Ui="signingRegion",aL="signingRegionSet",te=-1,Ge=!0,so=!1,HM="isSet",Jo="booleanEquals",Oe="stringEquals",jr="coalesce",sn="substring",Vt="",vZ="aws.partition",yee="partitionResult",DZ="accessPointSuffix",IZ="regionPrefix",UR=t=>"outpostId_ssa_"+t+Vt,Eee="hardwareType",jM="ite",Li="isValidHostLabel",Gi="sigv4",wZ="aws.isVirtualHostableS3Bucket",_ee="url",an="getAttr",Ree="bucketArn",Ni="--",Cee="arnType",PZ="accesspoint",zM=t=>"accessPointName_ssa_"+t+Vt,cL="s3-object-lambda",Qm="s3-outposts",OZ="bucketPartition",bee="us-east-1",$Z="outpostType",Bn="name",Ym="s3",VM="{url#scheme}://{Bucket}.{url#authority}{url#path}",GR="{url#scheme}://{url#authority}{url#path}",kZ="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",MZ="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",LZ="https://{Bucket}.s3.{partitionResult#dnsSuffix}",NZ=t=>"{url#scheme}://{accessPointName_ssa_"+t+"}-{bucketArn#accountId}.{url#authority}{url#path}",FZ=t=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+t+"}`",uL="sigv4a",BZ="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",UZ="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",GZ="https://s3.{partitionResult#dnsSuffix}",qZ={[Ke]:"UseFIPS"},HZ={[Ke]:"UseDualStack"},cr={[Ke]:"Bucket"},WM={fn:an,[he]:[{[Ke]:yee},Bn]},jZ={[Ke]:_ee},md={[Ke]:"Region"},Fi={[Ke]:Ree},zZ={[Ke]:Cee},KM={[Ke]:"accessPointName_ssa_1"},qR={fn:an,[he]:[Fi,"region"]},VZ={[Ke]:Eee},QM={fn:an,[he]:[Fi,"service"]},WZ={fn:an,[he]:[Fi,"accountId"]},HR={[See]:"S3Express",[ri]:[{[io]:!0,[Bn]:"{_s3e_auth}",[ao]:"s3express",[Ui]:"{Region}"}]},KZ={[See]:"S3Express",[ri]:[{[io]:!0,[Bn]:Gi,[ao]:"s3express",[Ui]:"{Region}"}]},jR={[ri]:[{[io]:!0,[Bn]:uL,[ao]:Qm,[aL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Qm,[Ui]:"{Region}"}]},ar={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:bee}]},vt={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{Region}"}]},YM={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:cL,[Ui]:"{bucketArn#region}"}]},Km={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:Ym,[Ui]:"{bucketArn#region}"}]},QZ={[ri]:[{[io]:!0,[Bn]:uL,[ao]:Qm,[aL]:["*"]},{[io]:!0,[Bn]:Gi,[ao]:Qm,[Ui]:"{bucketArn#region}"}]},JM={[ri]:[{[io]:!0,[Bn]:Gi,[ao]:cL,[Ui]:"{Region}"}]},YZ=[md],JZ=[{[Ke]:"Endpoint"}],XM=[cr],XZ=[cr,0,7,!0],ZZ=[Fi,"resourceId[1]"],oUe=["*"],eee={conditions:[[HM,YZ],[Jo,[{[Ke]:"Accelerate"},Ge]],[Jo,[qZ,Ge]],[Jo,[HZ,Ge]],[HM,JZ],[HM,XM],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,6,Ge]},Vt]},"--x-s3"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:XZ},Vt]},"--xa-s3"]],[vZ,YZ,yee],[sn,XZ,DZ],[Oe,[{[Ke]:DZ},"--op-s3"]],[sn,[cr,8,12,Ge],IZ],[sn,[cr,32,49,Ge],UR(2)],[sn,[cr,49,50,Ge],Eee],[Jo,[{[Ke]:"ForcePathStyle"},Ge]],[Oe,[WM,"aws-cn"]],[jM,[HZ,".dualstack",Vt],"_s3e_ds"],[Li,[{[Ke]:UR(2)},so]],[jM,[qZ,"-fips",Vt],"_s3e_fips"],[jM,[{fn:jr,[he]:[{[Ke]:"DisableS3ExpressSessionAuth"},so]},Gi,"sigv4-s3express"],"_s3e_auth"],[wZ,[cr,so]],["parseURL",JZ,_ee],[Jo,[{fn:jr,[he]:[{[Ke]:"UseS3ExpressControlEndpoint"},so]},Ge]],[wZ,[cr,Ge]],[Oe,[{fn:an,[he]:[jZ,"scheme"]},"http"]],[Li,[md,so]],["aws.parseArn",XM,Ree],[an,[{fn:"split",[he]:[cr,Ni,0]},"[-2]"],"s3expressAvailabilityZoneId"],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,0,4,so]},Vt]},"arn:"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,16,18,Ge]},Vt]},Ni]],[Jo,[{fn:an,[he]:[jZ,"isIp"]},Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,21,23,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,27,29,Ge]},Vt]},Ni]],[Oe,[{[Ke]:IZ},"beta"]],["uriEncode",XM,"uri_encoded_bucket"],[Li,[md,Ge]],[Jo,[{fn:jr,[he]:[{[Ke]:"UseObjectLambdaEndpoint"},so]},Ge]],[an,[Fi,"resourceId[0]"],Cee],[Oe,[zZ,Vt]],[Oe,[zZ,PZ]],[an,ZZ,zM(1)],[Oe,[KM,Vt]],[Oe,[qR,Vt]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,14,16,Ge]},Vt]},Ni]],[Oe,[VZ,"e"]],[Oe,[VZ,"o"]],[Oe,[md,"aws-global"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,19,21,Ge]},Vt]},Ni]],[Oe,[QM,cL]],[Jo,[{fn:jr,[he]:[{[Ke]:"DisableAccessPoints"},so]},Ge]],[Oe,[QM,Qm]],[vZ,[qR],OZ],[Li,[KM,Ge]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,26,28,Ge]},Vt]},Ni]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,15,17,Ge]},Vt]},Ni]],[an,[Fi,"resourceId[4]"]],[Oe,[{fn:jr,[he]:[{fn:sn,[he]:[cr,20,22,Ge]},Vt]},Ni]],[Jo,[{[Ke]:"UseGlobalEndpoint"},Ge]],[Oe,[md,bee]],[an,ZZ,UR(1)],[Jo,[{fn:jr,[he]:[{[Ke]:"UseArnRegion"},Ge]},Ge]],[Li,[{[Ke]:UR(1)},so]],[an,[Fi,"resourceId[2]"],$Z],[Oe,[md,qR]],[Oe,[{fn:an,[he]:[{[Ke]:OZ},Bn]},WM]],[Jo,[{[Ke]:"DisableMultiRegionAccessPoints"},Ge]],[Li,[qR,Ge]],[Oe,[{fn:an,[he]:[Fi,"partition"]},WM]],[Oe,[WZ,Vt]],[Oe,[QM,Ym]],[Li,[WZ,so]],[an,[Fi,"resourceId[3]"],zM(2)],[Li,[KM,so]],[Oe,[{[Ke]:$Z},PZ]],[Li,[{[Ke]:zM(2)},so]]],results:[[te],[te,"Accelerate cannot be used with FIPS"],[te,"Cannot set dual-stack in combination with a custom endpoint."],[te,"A custom endpoint cannot be combined with FIPS"],[te,"A custom endpoint cannot be combined with S3 Accelerate"],[te,"Partition does not support FIPS"],[te,"S3Express does not support S3 Accelerate."],["{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",HR],[VM,HR],[te,"S3Express bucket name is not a valid virtual hostable name."],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",KZ],["https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",HR],[te,"Unrecognized S3Express bucket name format."],[GR,HR],["https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}",KZ],[te,"Expected a endpoint to be specified but no endpoint was found"],["https://{Bucket}.ec2.{url#authority}",jR],["https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}",jR],["https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}",jR],["https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}",jR],[te,'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"'],[te,"Invalid Outposts Bucket alias - it must be a valid bucket name."],[te,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[te,"Custom endpoint `{Endpoint}` was not a valid URI"],[te,"S3 Accelerate cannot be used in this region"],["https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",vt],["https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[kZ,ar],[VM,ar],[kZ,vt],[VM,vt],[MZ,ar],[MZ,vt],[LZ,ar],[LZ,vt],["https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"Invalid region: region was not a valid DNS name."],[te,"S3 Object Lambda does not support Dual-stack"],[te,"S3 Object Lambda does not support S3 Accelerate"],[te,"Access points are not supported for this operation"],[te,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[te,"Invalid ARN: Missing account id"],[NZ(1),YM],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",YM],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",YM],[te,FZ(1)],[te,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[te,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[te,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[te,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[te,"Invalid ARN: bucket ARN is missing a region"],[te,"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided"],[te,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[te,"Access Points do not support S3 Accelerate"],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],[NZ(1),Km],["https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",Km],[te,"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}"],[te,"S3 MRAP does not support dual-stack"],[te,"S3 MRAP does not support FIPS"],[te,"S3 MRAP does not support S3 Accelerate"],[te,"Invalid configuration: Multi-Region Access Point ARNs are disabled."],["https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}",{[ri]:[{[io]:Ge,name:uL,[ao]:Ym,[aL]:oUe}]}],[te,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[te,"Invalid Access Point Name"],[te,"S3 Outposts does not support Dual-stack"],[te,"S3 Outposts does not support FIPS"],[te,"S3 Outposts does not support S3 Accelerate"],[te,"Invalid Arn: Outpost Access Point ARN contains sub resources"],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}",QZ],["https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",QZ],[te,FZ(2)],[te,"Expected an outpost type `accesspoint`, found {outpostType}"],[te,"Invalid ARN: expected an access point name"],[te,"Invalid ARN: Expected a 4-component resource"],[te,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[te,"Invalid ARN: The Outpost Id was not set"],[te,"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})"],[te,"Invalid ARN: No ARN type specified"],[te,"Invalid ARN: `{Bucket}` was not a valid ARN"],[te,"Path-style addressing cannot be used with ARN buckets"],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[BZ,ar],[BZ,vt],[UZ,ar],[UZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",vt],[te,"Path-style addressing cannot be used with S3 Accelerate"],[GR,JM],["https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",JM],["https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",JM],["https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3-fips.{Region}.{partitionResult#dnsSuffix}",vt],["https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",ar],["https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",vt],[GR,ar],[GR,vt],[GZ,ar],[GZ,vt],["https://s3.{Region}.{partitionResult#dnsSuffix}",vt],[te,"A region must be set when sending requests to S3."]]},sUe=2,E=1e8,iUe=new Int32Array([-1,1,-1,0,3,E+115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,E+115,16,10,13,18,11,13,19,12,13,22,E+14,13,35,14,E+42,36,E+103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,E+86,38,E+86,29,39,47,30,48,E+58,31,50,32,E+85,51,33,136,55,E+76,34,59,35,E+84,60,39,36,61,37,E+83,62,38,146,63,41,E+46,61,40,E+83,62,41,150,64,42,E+54,66,43,E+53,70,44,E+52,71,45,E+81,73,46,E+80,74,E+78,E+79,40,48,E+57,41,E+57,49,42,185,50,48,62,51,49,E+45,52,51,53,526,60,56,54,62,E+55,55,63,57,E+46,62,E+55,57,64,58,E+54,66,59,E+53,69,60,E+65,70,61,E+52,72,E+64,E+51,49,E+45,63,51,64,526,60,67,65,62,E+55,66,63,68,E+46,62,E+55,68,64,69,E+54,66,70,E+53,68,E+47,71,70,72,E+52,72,E+50,E+51,25,74,E+42,46,E+39,75,57,76,E+41,58,E+40,E+41,26,E+88,78,28,E+87,79,34,82,80,35,81,545,36,E+103,E+115,46,E+97,83,57,84,E+99,58,E+98,E+99,5,101,86,8,87,E+115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,E+14,95,35,96,E+42,36,E+103,E+42,22,E+13,98,35,99,E+42,36,E+101,100,46,E+110,E+111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,E+23,26,107,502,37,108,E+86,38,E+86,109,39,112,110,48,E+58,111,50,136,E+85,40,113,E+57,41,E+57,114,42,115,500,48,E+56,116,52,117,E+72,65,E+69,E+72,21,501,E+23,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,E+23,23,128,129,24,189,129,26,130,197,37,131,E+86,38,E+86,132,39,159,133,48,E+58,134,50,135,E+85,51,141,136,55,E+76,137,59,138,E+84,60,E+83,139,61,140,E+83,63,E+83,E+46,55,E+76,142,59,143,E+84,60,148,144,61,145,E+83,62,147,146,63,150,E+46,63,153,E+46,61,149,E+83,62,153,150,64,151,E+54,66,152,E+53,70,E+82,E+52,64,154,E+54,66,155,E+53,70,156,E+52,71,157,E+81,73,158,E+80,74,E+77,E+79,40,160,E+57,41,E+57,161,42,185,162,48,174,163,49,E+45,164,51,165,526,60,168,166,62,E+55,167,63,169,E+46,62,E+55,169,64,170,E+54,66,171,E+53,69,172,E+65,70,173,E+52,72,E+63,E+51,49,E+45,175,51,176,526,60,179,177,62,E+55,178,63,180,E+46,62,E+55,180,64,181,E+54,66,182,E+53,68,E+47,183,70,184,E+52,72,E+48,E+51,48,E+56,186,52,187,E+72,65,E+69,188,67,E+70,E+71,25,E+36,E+42,21,191,E+23,25,192,E+42,30,194,193,46,E+34,E+36,46,E+33,E+35,21,196,E+23,26,E+88,197,28,E+87,198,34,201,199,35,200,545,36,E+101,E+115,46,E+95,E+96,17,203,E+22,20,204,E+21,21,205,550,33,206,550,44,E+16,207,45,E+18,E+20,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,E+9,20,217,227,21,231,E+9,16,219,220,18,223,220,19,221,224,20,222,227,21,231,E+12,19,226,224,20,225,E+9,21,E+9,E+12,20,230,227,21,228,E+9,30,229,E+9,34,E+7,E+9,21,231,415,30,232,E+8,34,E+7,E+8,4,E+2,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,E+86,38,E+86,248,39,249,518,40,250,E+57,41,E+57,251,42,538,252,48,E+43,253,49,E+45,254,51,255,526,60,258,256,62,E+55,257,63,259,E+46,62,E+55,259,64,260,E+54,66,261,E+53,69,262,E+65,70,263,E+52,72,E+62,E+51,25,265,E+42,46,E+31,E+32,26,E+88,267,28,E+87,268,34,269,544,46,E+93,E+94,8,397,E+9,8,407,E+9,3,346,273,4,E+3,274,5,284,275,8,276,E+115,15,E+5,277,16,278,281,18,279,281,19,280,281,22,E+14,281,35,282,E+42,36,E+102,283,46,E+106,E+107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,E+86,38,E+86,291,39,292,307,40,293,E+57,41,E+57,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,E+5,302,20,337,303,26,304,341,37,305,E+86,38,E+86,306,39,309,307,48,E+58,308,50,E+74,E+85,40,310,E+57,41,E+57,311,42,335,312,48,324,313,49,E+45,314,51,315,526,60,318,316,62,E+55,317,63,319,E+46,62,E+55,319,64,320,E+54,66,321,E+53,69,322,E+65,70,323,E+52,72,E+61,E+51,49,E+45,325,51,326,526,60,329,327,62,E+55,328,63,330,E+46,62,E+55,330,64,331,E+54,66,332,E+53,68,E+47,333,70,334,E+52,72,E+49,E+51,48,E+56,336,52,E+67,E+72,25,338,E+42,46,E+27,E+28,15,E+5,340,26,E+88,341,28,E+87,342,34,345,343,35,344,545,36,E+102,E+115,46,E+91,E+92,4,E+2,347,5,357,348,8,349,E+115,15,E+5,350,16,351,354,18,352,354,19,353,354,22,E+14,354,35,355,E+42,36,E+43,356,46,E+104,E+105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,E+5,367,20,387,368,26,369,391,37,370,E+86,38,E+86,371,39,372,518,40,373,E+57,41,E+57,374,42,538,375,48,E+43,376,49,E+45,377,51,378,526,60,381,379,62,E+55,380,63,382,E+46,62,E+55,382,64,383,E+54,66,384,E+53,69,385,E+65,70,386,E+52,72,E+60,E+51,25,388,E+42,46,E+25,E+26,15,E+5,390,26,E+88,391,28,E+87,392,34,393,544,46,E+89,E+90,15,E+5,547,8,396,E+9,15,E+5,397,16,398,410,18,399,410,19,400,410,20,401,E+9,27,402,E+12,29,E+11,403,31,E+11,404,32,E+11,422,8,406,E+9,15,E+5,407,16,408,410,18,409,410,19,411,410,20,E+12,E+9,20,414,412,22,413,E+9,34,E+10,E+9,22,416,415,27,419,E+12,27,418,417,34,E+10,E+12,34,E+10,419,43,E+11,420,47,E+11,421,53,E+11,422,54,E+11,423,56,E+11,E+12,2,E+1,425,3,478,426,4,E+4,427,5,438,428,8,429,E+115,16,430,433,18,431,433,19,432,433,22,E+14,433,35,434,E+42,36,E+44,435,46,E+112,436,57,437,E+114,58,E+113,E+114,6,E+6,439,7,E+6,440,8,450,441,14,501,442,26,443,502,37,444,E+86,38,E+86,445,39,446,465,40,447,E+57,41,E+57,448,42,471,449,48,E+44,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,E+42,46,E+37,E+38,20,540,461,26,462,474,37,463,E+86,38,E+86,464,39,467,465,48,E+58,466,50,E+75,E+85,40,468,E+57,41,E+57,469,42,471,470,48,E+44,524,48,E+44,472,52,E+68,E+72,26,E+88,474,28,E+87,475,34,E+100,476,35,477,545,36,E+44,E+115,4,E+2,479,5,488,480,8,481,E+115,16,482,485,18,483,485,19,484,485,22,E+14,485,35,486,E+42,36,E+43,487,46,E+108,E+109,6,E+6,489,7,E+6,490,8,503,491,14,501,492,26,493,502,37,494,E+86,38,E+86,495,39,496,518,40,497,E+57,41,E+57,498,42,538,499,48,E+43,500,49,E+45,526,26,E+88,502,28,E+87,E+115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,E+42,46,E+29,E+30,20,540,514,26,515,542,37,516,E+86,38,E+86,517,39,520,518,48,E+58,519,50,E+73,E+85,40,521,E+57,41,E+57,522,42,538,523,48,E+43,524,49,E+45,525,51,529,526,60,E+55,527,62,E+55,528,63,E+55,E+46,60,532,530,62,E+55,531,63,533,E+46,62,E+55,533,64,534,E+54,66,535,E+53,69,536,E+65,70,537,E+52,72,E+59,E+51,48,E+43,539,52,E+66,E+72,25,E+24,E+42,26,E+88,542,28,E+87,543,34,E+100,544,35,546,545,36,E+42,E+115,36,E+43,E+115,17,548,E+22,20,549,E+21,33,552,550,44,E+17,551,45,E+19,E+20,44,E+15,553,45,E+15,E+20]),aUe=E2e.from(iUe,sUe,eee.conditions,eee.results),cUe=new _2e({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Aee=(t,e={})=>cUe.get(t,()=>R2e(aUe,{endpointParams:t,logger:e.logger}));C2e.aws=OBe;var uUe=t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let o=await t(e,r,n),s=fee(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let i=await b2e(n,{getEndpointParameterInstructions:s},e);return Object.assign(o,i)},lUe=async(t,e,r)=>({operation:fee(e).operation,region:await pee(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),dUe=uUe(lUe);function xee(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Tee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var pUe=(t,e,r)=>o=>{let i=t(o).properties?.authSchemes;if(!i)return e(o);let a=[];for(let c of i){let{name:u,properties:f={},...m}=c,y=u.toLowerCase();u!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${y}'`);let _;if(y==="sigv4a"){_="aws.auth#sigv4a";let x=i.find(T=>{let I=T.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(hee.sigv4aDependency()==="none"&&x)continue}else if(y.startsWith("sigv4"))_="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let C=r[_];if(!C)throw new Error(`Could not find HttpAuthOption create function for '${_}'`);let A=C(o);A.schemeId=_,A.signingProperties={...A.signingProperties||{},...m,...f},a.push(A)}return a},fUe=t=>{let e=[];switch(t.operation){default:e.push(xee(t)),e.push(Tee(t))}return e},mUe=pUe(Aee,fUe,{"aws.auth#sigv4":xee,"aws.auth#sigv4a":Tee}),gUe=t=>{let e=F2e(t),r=B2e(e);return Object.assign(r,{authSchemePreference:pee(t.authSchemePreference??[])})},hUe=t=>Object.assign(t,{useFipsEndpoint:t.useFipsEndpoint??!1,useDualstackEndpoint:t.useDualstackEndpoint??!1,forcePathStyle:t.forcePathStyle??!1,useAccelerateEndpoint:t.useAccelerateEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,disableMultiregionAccessPoints:t.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:t.clientContextParams??{}}),SUe={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},k=o2e(SUe,"AmazonS3","S3Client",A2e),An={Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}},yUe={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}},EUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},z={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},vee={DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}},$t={Bucket:{type:"contextParams",name:"Bucket"}},_Ue={},RUe={UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}},OA={Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}},CUe={UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}},ce=(t,e,r,n)=>[Ha(r)],yd=(t,e,r,n)=>[Ha(r),Sd(r)],bUe=(t,e,r,n)=>[Ha(r),jBe(r)],Pr=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})],at=(t,e,r,n)=>[],za=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Ha(r)],AUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]})],xUe=(t,e,r,n)=>[qa(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1","SHA512","MD5","XXHASH64","XXHASH3","XXHASH128"]}),Sd(r),dee(r)],TUe=(t,e,r,n)=>[Ha(r),Sd(r),dee(r)],Dee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})],Iee=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r)],vUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),zBe(r),Ha(r),Sd(r)],DUe=(t,e,r,n)=>[Sd(r)],IUe=(t,e,r,n)=>[qa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ha(r),Sd(r)],rt=class t extends s2e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.s3#S3ServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},zR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchUpload";name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},VR=class t extends rt{static shapeId="com.amazonaws.s3#AccessDenied";name="AccessDenied";$fault="client";constructor(e){super({name:"AccessDenied",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WR=class t extends rt{static shapeId="com.amazonaws.s3#ObjectNotInActiveTierError";name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyExists";name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QR=class t extends rt{static shapeId="com.amazonaws.s3#BucketAlreadyOwnedByYou";name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchBucket";name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchKey";name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XR=class t extends rt{static shapeId="com.amazonaws.s3#InvalidObjectState";name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}},ZR=class t extends rt{static shapeId="com.amazonaws.s3#NoSuchAnnotation";name="NoSuchAnnotation";$fault="client";constructor(e){super({name:"NoSuchAnnotation",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eC=class t extends rt{static shapeId="com.amazonaws.s3#NotFound";name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidPrefix";name="InvalidPrefix";$fault="client";constructor(e){super({name:"InvalidPrefix",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rC=class t extends rt{static shapeId="com.amazonaws.s3#EncryptionTypeMismatch";name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},nC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidRequest";name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidWriteOffset";name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},sC=class t extends rt{static shapeId="com.amazonaws.s3#TooManyParts";name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationLimitExceeded";name="AnnotationLimitExceeded";$fault="client";constructor(e){super({name:"AnnotationLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aC=class t extends rt{static shapeId="com.amazonaws.s3#AnnotationNameTooLong";name="AnnotationNameTooLong";$fault="client";constructor(e){super({name:"AnnotationNameTooLong",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cC=class t extends rt{static shapeId="com.amazonaws.s3#InvalidAnnotationName";name="InvalidAnnotationName";$fault="client";constructor(e){super({name:"InvalidAnnotationName",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uC=class t extends rt{static shapeId="com.amazonaws.s3#UnsupportedMediaType";name="UnsupportedMediaType";$fault="client";constructor(e){super({name:"UnsupportedMediaType",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lC=class t extends rt{static shapeId="com.amazonaws.s3#IdempotencyParameterMismatch";name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dC=class t extends rt{static shapeId="com.amazonaws.s3#ObjectAlreadyInActiveTierError";name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wUe="Account",PUe="AnalyticsAndOperator",pC="AccelerateConfiguration",$A="AccessControlList",Ed="ACL",wee="AnalyticsConfigurationList",tu="AccessControlPolicy",Pee="AccessControlTranslation",Jm="AnalyticsConfiguration",OUe="AnnotationCount",$Ue="AccessDenied",Oee="AbortDate",kUe="AnnotationDirective",$ee="AnnotationEntry",MUe="AnalyticsExportDestination",LUe="AnalyticsFilter",NUe="AllowedHeaders",FUe="AllowedHeader",BUe="AccountId",kee="AbortIncompleteMultipartUpload",tee="AccessKeyId",UUe="AnnotationList",GUe="AnnotationLimitExceeded",qUe="AllowedMethods",HUe="AbortMultipartUpload",jUe="AbortMultipartUploadOutput",zUe="AbortMultipartUploadRequest",VUe="AllowedMethod",cg="AnnotationName",WUe="AnnotationNameTooLong",KUe="AllowedOrigins",QUe="AllowedOrigin",Mee="AnnotationPayload",YUe="AccessPointAlias",Lee="AccessPointArn",Nee="AnnotationPrefix",JUe="AllowQuotedRecordDelimiter",lL="AcceptRanges",Fee="AbortRuleId",fC="AbacStatus",XUe="AnalyticsS3BucketDestination",ZUe="ApplyServerSideEncryptionByDefault",eGe="ArchiveStatus",Bee="AccessTier",mC="AnnotationTableConfiguration",Uee="AnnotationTableConfigurationResult",tGe="AnnotationTableConfigurationUpdates",ug="And",rGe="Annotations",w="Bucket",dL="BucketArn",nGe="BucketAlreadyExists",oGe="BucketAccountId",sGe="BucketAlreadyOwnedByYou",Gee="BlockedEncryptionTypes",pL="BypassGovernanceRetention",iGe="BucketInfo",zr="BucketKeyEnabled",aGe="BucketLifecycleConfiguration",cGe="BucketLocationName",gC="BucketLoggingStatus",uGe="BucketLocationType",lGe="BucketNamespace",dGe="BucketName",qee="BytesProcessed",ree="BlockPublicAcls",nee="BlockPublicPolicy",fL="BucketRegion",Hee="BytesReturned",jee="BytesScanned",lg="Body",mL="Buckets",zee="Checksum",ge="ChecksumAlgorithm",pGe="CannedACL",fGe="CreateBucket",ZM="CreateBucketConfiguration",mGe="CreateBucketMetadataConfiguration",gGe="CreateBucketMetadataConfigurationRequest",hGe="CreateBucketMetadataTableConfiguration",SGe="CreateBucketMetadataTableConfigurationRequest",yGe="CreateBucketOutput",EGe="CreateBucketRequest",_d="CacheControl",ur="ChecksumCRC32",lr="ChecksumCRC32C",dr="ChecksumCRC64NVME",dg="Cache-Control",_Ge="CreationDate",pg="Content-Disposition",Rd="ContentDisposition",RGe="ContinuationEvent",fg="Content-Encoding",Cd="ContentEncoding",CGe="CloudFunction",bGe="CloudFunctionConfiguration",bd="ContentLanguage",mg="Content-Language",Ad="Content-Length",xd="ContentLength",Qe="Content-MD5",pr="ChecksumMD5",Ye="ContentMD5",AGe="CompletedMultipartUpload",xGe="CompleteMultipartUploadOutput",TGe="CreateMultipartUploadOutput",vGe="CompleteMultipartUploadResult",DGe="CompleteMultipartUploadRequest",IGe="CreateMultipartUploadRequest",Vee="CompleteMultipartUpload",wGe="CreateMultipartUpload",gL="ChecksumMode",PGe="CopyObject",OGe="CopyObjectOutput",Wee="CopyObjectResult",hC="CORSConfiguration",hL="CORSRules",SL="CORSRule",$Ge="CopyObjectRequest",kGe="CommonPrefix",MGe="CommonPrefixList",LGe="CompletedPartList",Kee="CopyPartResult",NGe="CompletedPart",kA="CommonPrefixes",yL="ContentRange",FGe="ConfirmRemoveSelfBucketAccess",Qee="Content-Range",Td="ConfigurationState",fr="ChecksumSHA1",mr="ChecksumSHA256",gr="ChecksumSHA512",Yee="CopySourceIfMatch",Jee="CopySourceIfModifiedSince",Xee="CopySourceIfNoneMatch",Zee="CopySourceIfUnmodifiedSince",BGe="CreateSessionOutput",UGe="CreateSessionResult",GGe="CopySourceRange",qGe="CreateSessionRequest",ete="CopySourceSSECustomerAlgorithm",EL="CopySourceSSECustomerKey",tte="CopySourceSSECustomerKeyMD5",rte="CSV",nte="CopySourceVersionId",HGe="CSVInput",jGe="CSVOutput",ote="CopySource",zGe="CreateSession",cn="ChecksumType",gg="Content-Type",VGe="ClientToken",vd="ContentType",WGe="CompressionType",Vr="ContinuationToken",hr="ChecksumXXHASH64",Sr="ChecksumXXHASH3",yr="ChecksumXXHASH128",ste="Condition",KGe="Code",QGe="Comments",ite="Contents",YGe="Cont",oee="Credentials",ru="Days",JGe="DaysAfterInitiation",XGe="DeleteBucket",ZGe="DeleteBucketAnalyticsConfiguration",e4e="DeleteBucketAnalyticsConfigurationRequest",t4e="DeleteBucketCors",r4e="DeleteBucketCorsRequest",n4e="DeleteBucketEncryption",o4e="DeleteBucketEncryptionRequest",s4e="DeleteBucketInventoryConfiguration",i4e="DeleteBucketInventoryConfigurationRequest",a4e="DeleteBucketIntelligentTieringConfiguration",c4e="DeleteBucketIntelligentTieringConfigurationRequest",u4e="DeleteBucketLifecycle",l4e="DeleteBucketLifecycleRequest",d4e="DeleteBucketMetadataConfiguration",p4e="DeleteBucketMetadataConfigurationRequest",f4e="DeleteBucketMetricsConfigurationRequest",m4e="DeleteBucketMetricsConfiguration",g4e="DeleteBucketMetadataTableConfiguration",h4e="DeleteBucketMetadataTableConfigurationRequest",S4e="DeleteBucketOwnershipControls",y4e="DeleteBucketOwnershipControlsRequest",E4e="DeleteBucketPolicy",_4e="DeleteBucketPolicyRequest",R4e="DeleteBucketRequest",C4e="DeleteBucketReplicationRequest",b4e="DeleteBucketReplication",A4e="DeleteBucketTagging",x4e="DeleteBucketTaggingRequest",T4e="DeleteBucketWebsite",v4e="DeleteBucketWebsiteRequest",D4e="DataExport",I4e="DefaultEventHold",w4e="DestinationIfMatch",P4e="DestinationIfModifiedSince",O4e="DestinationIfNoneMatch",$4e="DestinationIfUnmodifiedSince",nu="DeleteMarker",k4e="DeleteMarkerEntry",ate="DeleteMarkerReplication",M4e="DeleteMarkerVersionId",cte="DeleteMarkers",_L="DisplayName",L4e="DeletedObject",N4e="DeleteObjectAnnotation",F4e="DeleteObjectAnnotationOutput",B4e="DeleteObjectAnnotationRequest",U4e="DeleteObjectOutput",G4e="DeleteObjectsOutput",q4e="DeleteObjectRequest",H4e="DeleteObjectsRequest",j4e="DeleteObjectTagging",z4e="DeleteObjectTaggingOutput",V4e="DeleteObjectTaggingRequest",W4e="DeletedObjects",K4e="DeleteObject",Q4e="DeleteObjects",Y4e="DeletePublicAccessBlock",J4e="DeletePublicAccessBlockRequest",X4e="DataRedundancy",ute="DefaultRetention",Z4e="DeleteResult",lte="DestinationResult",dte="Date",eL="Delete",eqe="Deleted",Va="Delimiter",MA="Destination",tqe="Description",pte="Details",Dd="Error",rqe="EmailAddress",fte="EventBridgeConfiguration",L="ExpectedBucketOwner",ou="EncryptionConfiguration",mte="ErrorCode",nqe="ErrorDetails",RL="ErrorDocument",oqe="EndEvent",sqe="ExposeHeaders",gte="EventHoldDuration",iqe="EventHold",aqe="ExposeHeader",hte="ErrorMessage",cqe="ExpiredObjectDeleteMarker",Ste="ExistingObjectReplication",SC="ExpiresString",yte="ExpectedSourceBucketOwner",lt="ETag",uqe="EncryptionTypeList",lqe="EncryptionTypeMismatch",CL="EncryptionType",Wa="EncodingType",dqe="EventThreshold",Ete="ExpressionType",bL="Encryption",pqe="Enabled",_te="End",Rte="Errors",AL="Events",xL="Event",ti="Expiration",Xo="Expires",Cte="Expression",qi="Filter",bte="FieldDelimiter",fqe="FileHeaderInfo",mqe="FetchOwner",Ate="FilterRule",gqe="FilterRuleList",hqe="FilterRules",Sqe="Field",xte="Format",yqe="Frequency",LA="Grants",Eqe="GetBucketAbac",_qe="GetBucketAccelerateConfiguration",Rqe="GetBucketAccelerateConfigurationOutput",Cqe="GetBucketAnalyticsConfigurationOutput",bqe="GetBucketAccelerateConfigurationRequest",Aqe="GetBucketAnalyticsConfigurationRequest",xqe="GetBucketAnalyticsConfiguration",Tqe="GetBucketAbacOutput",vqe="GetBucketAclOutput",Dqe="GetBucketAbacRequest",Iqe="GetBucketAclRequest",wqe="GetBucketAcl",Pqe="GetBucketCors",Oqe="GetBucketCorsOutput",$qe="GetBucketCorsRequest",kqe="GetBucketEncryption",Mqe="GetBucketEncryptionOutput",Lqe="GetBucketEncryptionRequest",Nqe="GetBucketInventoryConfiguration",Fqe="GetBucketInventoryConfigurationOutput",Bqe="GetBucketInventoryConfigurationRequest",Uqe="GetBucketIntelligentTieringConfiguration",Gqe="GetBucketIntelligentTieringConfigurationOutput",qqe="GetBucketIntelligentTieringConfigurationRequest",Hqe="GetBucketLocation",jqe="GetBucketLifecycleConfiguration",zqe="GetBucketLifecycleConfigurationOutput",Vqe="GetBucketLifecycleConfigurationRequest",Wqe="GetBucketLocationOutput",Kqe="GetBucketLoggingOutput",Qqe="GetBucketLocationRequest",Yqe="GetBucketLoggingRequest",Jqe="GetBucketLogging",Xqe="GetBucketMetadataConfiguration",Zqe="GetBucketMetadataConfigurationOutput",eHe="GetBucketMetricsConfigurationOutput",Tte="GetBucketMetadataConfigurationResult",tHe="GetBucketMetadataConfigurationRequest",rHe="GetBucketMetricsConfigurationRequest",nHe="GetBucketMetricsConfiguration",oHe="GetBucketMetadataTableConfiguration",sHe="GetBucketMetadataTableConfigurationOutput",vte="GetBucketMetadataTableConfigurationResult",iHe="GetBucketMetadataTableConfigurationRequest",aHe="GetBucketNotificationConfiguration",cHe="GetBucketNotificationConfigurationRequest",uHe="GetBucketOwnershipControls",lHe="GetBucketOwnershipControlsOutput",dHe="GetBucketOwnershipControlsRequest",pHe="GetBucketPolicy",fHe="GetBucketPolicyOutput",mHe="GetBucketPolicyRequest",gHe="GetBucketPolicyStatus",hHe="GetBucketPolicyStatusOutput",SHe="GetBucketPolicyStatusRequest",yHe="GetBucketReplication",EHe="GetBucketReplicationOutput",_He="GetBucketRequestPayment",RHe="GetBucketRequestPaymentOutput",CHe="GetBucketRequestPaymentRequest",bHe="GetBucketReplicationRequest",AHe="GetBucketTagging",xHe="GetBucketTaggingOutput",THe="GetBucketTaggingRequest",vHe="GetBucketVersioning",DHe="GetBucketVersioningOutput",IHe="GetBucketVersioningRequest",wHe="GetBucketWebsite",PHe="GetBucketWebsiteOutput",OHe="GetBucketWebsiteRequest",Id="GrantFullControl",Dte="GlacierJobParameters",$He="GetObject",kHe="GetObjectAcl",MHe="GetObjectAclOutput",LHe="GetObjectAnnotationOutput",NHe="GetObjectAttributesOutput",FHe="GetObjectAttributesParts",BHe="GetObjectAclRequest",UHe="GetObjectAnnotationRequest",GHe="GetObjectAttributesResponse",qHe="GetObjectAttributesRequest",HHe="GetObjectAnnotation",jHe="GetObjectAttributes",zHe="GetObjectLockConfiguration",VHe="GetObjectLockConfigurationOutput",WHe="GetObjectLockConfigurationRequest",KHe="GetObjectLegalHold",QHe="GetObjectLegalHoldOutput",YHe="GetObjectLegalHoldRequest",JHe="GetObjectOutput",XHe="GetObjectRequest",ZHe="GetObjectRetentionOutput",eje="GetObjectRetentionRequest",tje="GetObjectRetention",rje="GetObjectTagging",nje="GetObjectTaggingOutput",oje="GetObjectTorrentOutput",sje="GetObjectTaggingRequest",ije="GetObjectTorrentRequest",aje="GetObjectTorrent",cje="GetPublicAccessBlock",uje="GetPublicAccessBlockOutput",lje="GetPublicAccessBlockRequest",wd="GrantRead",Pd="GrantReadACP",TL="GrantWrite",Od="GrantWriteACP",vL="Grant",DL="Grantee",dje="HeadBucket",pje="HeadBucketOutput",fje="HeadBucketRequest",mje="HttpErrorCodeReturnedEquals",Ite="HostName",gje="HeadObject",hje="HeadObjectOutput",Sje="HeadObjectRequest",yje="HttpRedirectCode",Wt="Id",Eje="InvalidAnnotationName",Xm="InventoryConfiguration",wte="InventoryConfigurationList",$d="ID",IL="IndexDocument",_je="InventoryDestination",Rje="IsEnabled",Cje="InventoryEncryption",bje="InventoryFilter",Pte="IsLatest",kd="IfMatch",Aje="IfMatchInitiatedTime",xje="IfMatchLastModifiedTime",Tje="IfMatchSize",wL="If-Modified-Since",Ote="IfModifiedSince",vje="InitiateMultipartUploadResult",su="If-Match",hg="IfNoneMatch",Md="If-None-Match",Dje="InventoryOptionalFields",Ije="InvalidObjectState",wje="IncludedObjectVersions",Pje="InvalidPrefix",see="IgnorePublicAcls",Oje="IdempotencyParameterMismatch",iee="IsPublic",$je="InvalidRequest",kje="IsRestoreInProgress",PL="InputSerialization",Mje="InventoryS3BucketDestination",Lje="InventorySchedule",ni="IsTruncated",Nje="IntelligentTieringAndOperator",Zm="IntelligentTieringConfiguration",$te="IntelligentTieringConfigurationList",kte="InventoryTableConfigurationResult",Fje="InventoryTableConfigurationUpdates",yC="InventoryTableConfiguration",Bje="IntelligentTieringFilter",Mte="IfUnmodifiedSince",OL="If-Unmodified-Since",Uje="InvalidWriteOffset",$L="Initiator",Gje="Initiated",Lte="JSON",qje="JSONInput",Hje="JSONOutput",EC="JournalTableConfiguration",Nte="JournalTableConfigurationResult",jje="JournalTableConfigurationUpdates",le="Key",zje="KeyCount",Vje="KeyId",Wje="KmsKeyArn",NA="KeyMarker",Kje="KMSContext",Qje="KMSKeyArn",Yje="KMSKeyId",Jje="KMSMasterKeyID",Xje="KeyPrefixEquals",_C="Location",Zje="ListAllMyBucketsResult",e6e="ListAllMyDirectoryBucketsResult",t6e="ListBuckets",r6e="ListBucketAnalyticsConfigurations",n6e="ListBucketAnalyticsConfigurationsOutput",o6e="ListBucketAnalyticsConfigurationResult",s6e="ListBucketAnalyticsConfigurationsRequest",i6e="ListBucketInventoryConfigurations",a6e="ListBucketInventoryConfigurationsOutput",c6e="ListBucketInventoryConfigurationsRequest",u6e="ListBucketIntelligentTieringConfigurations",l6e="ListBucketIntelligentTieringConfigurationsOutput",d6e="ListBucketIntelligentTieringConfigurationsRequest",p6e="ListBucketMetricsConfigurations",f6e="ListBucketMetricsConfigurationsOutput",m6e="ListBucketMetricsConfigurationsRequest",g6e="ListBucketsOutput",h6e="ListBucketsRequest",Fte="ListBucketResult",tL="LocationConstraint",rL="LifecycleConfiguration",S6e="ListDirectoryBuckets",y6e="ListDirectoryBucketsOutput",E6e="ListDirectoryBucketsRequest",kL="LoggingEnabled",_6e="LifecycleExpiration",R6e="LambdaFunctionArn",C6e="LambdaFunctionConfiguration",b6e="LambdaFunctionConfigurationList",A6e="LambdaFunctionConfigurations",RC="LegalHold",x6e="LocationInfo",T6e="ListInventoryConfigurationsResult",co="LastModified",v6e="ListMetricsConfigurationsResult",D6e="LastModifiedTime",I6e="ListMultipartUploads",w6e="ListMultipartUploadsOutput",P6e="ListMultipartUploadsResult",O6e="ListMultipartUploadsRequest",FA="Last-Modified",$6e="ListObjects",k6e="ListObjectAnnotations",M6e="ListObjectAnnotationsOutput",L6e="ListObjectAnnotationsRequest",N6e="ListObjectsOutput",F6e="ListObjectsRequest",B6e="ListObjectsV2",U6e="ListObjectsV2Output",G6e="ListObjectVersionsOutput",q6e="ListObjectsV2Request",H6e="ListObjectVersionsRequest",j6e="ListObjectVersions",z6e="ListParts",V6e="ListPartsOutput",W6e="ListPartsResult",K6e="ListPartsRequest",Q6e="LifecycleRule",Y6e="LifecycleRuleAndOperator",J6e="LifecycleRuleFilter",X6e="LifecycleRules",Z6e="ListVersionsResult",Ld="Metadata",e5e="MetricsAndOperator",Bte="MaxAnnotationResults",t5e="MaxAgeSeconds",r5e="MaxBuckets",nL="MetadataConfiguration",Ute="MetricsConfigurationList",Gte="MetadataConfigurationResult",eg="MetricsConfiguration",n5e="MetadataDirective",o5e="MaxDirectoryBuckets",qte="MfaDelete",Hte="MetadataEntry",s5e="MetricsFilter",ML="MFA",jte="MFADelete",Nd="MaxKeys",LL="MissingMeta",i5e="MpuObjectSize",BA="MaxParts",oL="MetadataTableConfiguration",zte="MetadataTableConfigurationResult",a5e="MetadataTableEncryptionConfiguration",Vte="MultipartUpload",c5e="MultipartUploadList",Wte="MaxUploads",Kte="Marker",Qte="Metrics",u5e="Message",l5e="Minutes",Yte="Mode",iu="Name",sL="NotificationConfiguration",d5e="NotificationConfigurationFilter",Fd="NextContinuationToken",Jte="NoncurrentDays",p5e="NonEmptyKmsKeyArnString",f5e="NotFound",Xte="NextKeyMarker",m5e="NextMarker",Zte="NewerNoncurrentVersions",ere="NextPartNumberMarker",g5e="NoSuchAnnotation",h5e="NoSuchBucket",S5e="NoSuchKey",y5e="NoSuchUpload",E5e="NextUploadIdMarker",tre="NoncurrentVersionExpiration",_5e="NextVersionIdMarker",R5e="NoncurrentVersionTransitions",C5e="NoncurrentVersionTransitionList",rre="NoncurrentVersionTransition",es="Owner",b5e="ObjectAttributes",A5e="ObjectAlreadyInActiveTierError",CC="OwnershipControls",x5e="OwnershipControlsRule",T5e="OwnershipControlsRules",nre="ObjectEncryption",v5e="OptionalFields",D5e="ObjectIdentifier",I5e="ObjectIdentifierList",ore="ObjectIfMatch",sre="OutputLocation",bC="ObjectLockConfiguration",w5e="ObjectLockEnabled",P5e="ObjectLockEnabledForBucket",Sg="ObjectLockEventHold",yg="ObjectLockEventHoldDurationDays",Eg="ObjectLockEventHoldDurationYears",O5e="ObjectLockLegalHold",Bd="ObjectLockLegalHoldStatus",Ud="ObjectLockMode",$5e="ObjectLockRetention",Gd="ObjectLockRetainUntilDate",k5e="ObjectLockRule",M5e="ObjectList",L5e="ObjectNotInActiveTierError",ire="ObjectOwnership",NL="OptionalObjectAttributes",N5e="ObjectParts",F5e="ObjectPart",B5e="ObjectSize",are="ObjectSizeGreaterThan",cre="ObjectSizeLessThan",U5e="OutputSchemaVersion",FL="OutputSerialization",G5e="ObjectVersion",UA="ObjectVersionId",q5e="ObjectVersionList",H5e="Objects",ure="Object",Je="Prefix",AC="PublicAccessBlockConfiguration",j5e="PutBucketAbac",z5e="PutBucketAccelerateConfiguration",V5e="PutBucketAccelerateConfigurationRequest",W5e="PutBucketAnalyticsConfigurationRequest",K5e="PutBucketAnalyticsConfiguration",Q5e="PutBucketAbacRequest",Y5e="PutBucketAclRequest",J5e="PutBucketAcl",X5e="PutBucketCors",Z5e="PutBucketCorsRequest",eze="PutBucketEncryption",tze="PutBucketEncryptionRequest",rze="PutBucketInventoryConfiguration",nze="PutBucketInventoryConfigurationRequest",oze="PutBucketIntelligentTieringConfiguration",sze="PutBucketIntelligentTieringConfigurationRequest",ize="PutBucketLogging",aze="PutBucketLifecycleConfiguration",cze="PutBucketLifecycleConfigurationOutput",uze="PutBucketLifecycleConfigurationRequest",lze="PutBucketLoggingRequest",dze="PutBucketMetricsConfiguration",pze="PutBucketMetricsConfigurationRequest",fze="PutBucketNotificationConfiguration",mze="PutBucketNotificationConfigurationRequest",gze="PutBucketOwnershipControls",hze="PutBucketOwnershipControlsRequest",Sze="PutBucketPolicy",yze="PutBucketPolicyRequest",Eze="PutBucketReplication",_ze="PutBucketRequestPayment",Rze="PutBucketRequestPaymentRequest",Cze="PutBucketReplicationRequest",bze="PutBucketTagging",Aze="PutBucketTaggingRequest",xze="PutBucketVersioning",Tze="PutBucketVersioningRequest",vze="PutBucketWebsite",Dze="PutBucketWebsiteRequest",GA="PartsCount",Ize="PartitionDateSource",wze="ProgressEvent",Pze="ParquetInput",Oze="PartsList",au="PartNumber",qA="PartNumberMarker",$ze="PutObject",kze="PutObjectAcl",Mze="PutObjectAclOutput",Lze="PutObjectAnnotationOutput",Nze="PutObjectAclRequest",Fze="PutObjectAnnotationRequest",Bze="PutObjectAnnotation",Uze="PutObjectLockConfiguration",Gze="PutObjectLockConfigurationOutput",qze="PutObjectLockConfigurationRequest",Hze="PutObjectLegalHold",jze="PutObjectLegalHoldOutput",zze="PutObjectLegalHoldRequest",Vze="PutObjectOutput",Wze="PutObjectRequest",Kze="PutObjectRetentionOutput",Qze="PutObjectRetentionRequest",Yze="PutObjectRetention",Jze="PutObjectTagging",Xze="PutObjectTaggingOutput",Zze="PutObjectTaggingRequest",xC="PartitionedPrefix",eVe="PutPublicAccessBlock",tVe="PutPublicAccessBlockRequest",lre="PolicyStatus",HA="Parts",jA="Part",rVe="Parquet",dre="Payer",pre="Payload",fre="Permission",mre="Policy",gre="Progress",nVe="Priority",hre="Protocol",oVe="Quiet",sVe="QueueArn",Sre="QuoteCharacter",iVe="QueueConfigurationList",aVe="QueueConfigurations",yre="QueueConfiguration",Ere="QuoteEscapeCharacter",cVe="QuoteFields",uVe="Queue",zA="Role",BL="RedirectAllRequestsTo",$e="RequestCharged",_re="ResponseCacheControl",Rre="ResponseContentDisposition",Cre="ResponseContentEncoding",bre="ResponseContentLanguage",Are="ResponseContentType",TC="ReplicationConfiguration",UL="RecordDelimiter",xre="ResponseExpires",lVe="RestoreExpiryDate",VA="RecordExpiration",dVe="RecordsEvent",pVe="ReplicaKmsKeyID",fVe="ReplaceKeyPrefixWith",mVe="ReplaceKeyWith",Tre="ReplicaModifications",gVe="RenameObject",hVe="RenameObjectOutput",SVe="RestoreObjectOutput",yVe="RestoreOutputPath",EVe="RenameObjectRequest",_Ve="RestoreObjectRequest",RVe="RestoreObject",xe="RequestPayer",aee="RestrictPublicBuckets",vC="RequestPaymentConfiguration",vre="RequestProgress",GL="RoutingRules",CVe="ReplicationRuleAndOperator",bVe="ReplicationRuleFilter",AVe="ReplicationRule",xVe="ReplicationRules",TVe="RequestRoute",iL="RestoreRequest",Dre="RoutingRule",_g="ReplicationStatus",qL="RestoreStatus",vVe="RenameSource",Ire="ReplicationTime",DVe="ReplicationTimeValue",IVe="RequestToken",wVe="RetainUntilDate",DC="Range",HL="Restore",PVe="Records",wre="Redirect",IC="Retention",Rg="Rules",qd="Rule",Wr="Status",Pre="StartAfter",cee="SecretAccessKey",OVe="SseAlgorithm",$Ve="StreamingBlob",Ore="S3BucketDestination",Kr="StorageClass",$re="StorageClassAnalysis",kVe="StorageClassAnalysisDataExport",MVe="SessionCredentialValue",LVe="SessionCredentials",NVe="StatusCode",FVe="SkipDestinationValidation",BVe="StatsEvent",UVe="SourceIfMatch",GVe="SourceIfModifiedSince",qVe="SourceIfNoneMatch",HVe="SourceIfUnmodifiedSince",WA="SSE-KMS",kre="SseKmsEncryptedObjects",jVe="S3KeyFilter",zVe="S3Key",VVe="S3Location",WVe="SessionMode",KVe="SelectObjectContent",QVe="SelectObjectContentEventStream",YVe="SelectObjectContentOutput",JVe="SelectObjectContentRequest",Mre="SelectParameters",wC="SimplePrefix",Lre="ScanRange",Nre="SSE-S3",Fre="SourceSelectionCriteria",Qr="ServerSideEncryption",XVe="SSEAlgorithm",ZVe="ServerSideEncryptionByDefault",PC="ServerSideEncryptionConfiguration",Kt="SSECustomerAlgorithm",uo="SSECustomerKey",Qt="SSECustomerKeyMD5",jL="SSEKMS",eWe="SSEKMSEncryption",Hi="SSEKMSEncryptionContext",un="SSEKMSKeyId",tWe="ServerSideEncryptionRule",rWe="ServerSideEncryptionRules",Bre="SSES3",uee="SessionToken",Ure="S3TablesDestination",Gre="S3TablesDestinationResult",nWe="S3",oWe="Schedule",cu="Size",sWe="Start",qre="Stats",iWe="Suffix",Hd="Tags",KA="TableArn",aWe="TopicArn",cWe="TargetBucket",zL="TableBucketArn",uWe="TableBucketType",VL="TagCount",lWe="TopicConfigurationList",dWe="TopicConfigurations",Hre="TopicConfiguration",pWe="TaggingDirective",WL="TransitionDefaultMinimumObjectSize",jre="TargetGrants",fWe="TargetGrant",mWe="TieringList",gWe="TransitionList",hWe="TooManyParts",Cg="TableName",zre="TableNamespace",Vre="TargetObjectKeyFormat",SWe="TargetPrefix",yWe="TotalPartsCount",KL="TableStatus",QA="TagSet",lo="Tag",Zo="Tagging",Wre="Tier",EWe="Tierings",Kre="Tiering",_We="Time",Qre="Token",RWe="Topic",CWe="Transitions",Yre="Transition",bg="Type",bWe="Uploads",AWe="UpdateBucketMetadataAnnotationTableConfiguration",xWe="UpdateBucketMetadataAnnotationTableConfigurationRequest",TWe="UpdateBucketMetadataInventoryTableConfiguration",vWe="UpdateBucketMetadataInventoryTableConfigurationRequest",DWe="UpdateBucketMetadataJournalTableConfiguration",IWe="UpdateBucketMetadataJournalTableConfigurationRequest",Ka="UploadId",Jre="UploadIdMarker",Xre="UserMetadata",wWe="UnsupportedMediaType",PWe="UpdateObjectEncryption",OWe="UpdateObjectEncryptionRequest",$We="UpdateObjectEncryptionResponse",kWe="UploadPart",MWe="UploadPartCopy",LWe="UploadPartCopyOutput",NWe="UploadPartCopyRequest",FWe="UploadPartOutput",BWe="UploadPartRequest",UWe="URI",GWe="Upload",QL="Value",OC="VersioningConfiguration",Re="VersionId",Zre="VersionIdMarker",qWe="Versions",HWe="Version",$C="WebsiteConfiguration",jWe="WriteGetObjectResponse",zWe="WriteGetObjectResponseRequest",VWe="WriteOffsetBytes",Ag="WebsiteRedirectLocation",ene="Years",YL="annotationName",WWe="annotation-prefix",tne="accept-ranges",KWe="bucket-region",Dt="client",Qa="continuation-token",YA="delimiter",It="error",JL="eventPayload",QWe="endpoint",JA="encoding-type",YWe="fetch-owner",M="http",ve="httpChecksum",kt="httpError",l="httpHeader",JWe="hostLabel",Ce="httpPayload",jd="httpPrefixHeaders",U="httpQuery",rne="http://www.w3.org/2001/XMLSchema-instance",po="id",XWe="idempotencyToken",nne="key-marker",ZWe="marker",e8e="max-annotation-results",t8e="max-buckets",r8e="max-directory-buckets",XL="max-keys",n8e="max-parts",o8e="max-uploads",xg="prefix",XA="partNumber",s8e="part-number-marker",one="response-cache-control",sne="response-content-disposition",ine="response-content-encoding",ane="response-content-language",cne="response-content-type",une="response-expires",lne="smithy.ts.sdk.synthetic.com.amazonaws.s3",i8e="start-after",dne="streaming",Tg="uploadId",a8e="upload-id-marker",Yt="versionId",c8e="version-id-marker",pne="xsi",u8e="xmlAttribute",ne="xmlFlattened",v="xmlName",fne="xmlNamespace",zd="x-amz-acl",mne="x-amz-abort-date",l8e="x-amz-access-point-alias",gne="x-amz-abort-rule-id",d8e="x-amz-archive-status",hne="x-amz-bucket-arn",ZL="x-amz-bypass-governance-retention",p8e="x-amz-bucket-location-name",f8e="x-amz-bucket-location-type",m8e="x-amz-bucket-namespace",g8e="x-amz-bucket-object-lock-enabled",Sne="x-amz-bucket-object-lock-token",h8e="x-amz-bucket-region",eN="x-amz-checksum-algorithm",oi="x-amz-checksum-crc32",si="x-amz-checksum-crc32c",ii="x-amz-checksum-crc64nvme",ai="x-amz-checksum-md5",tN="x-amz-checksum-mode",S8e="x-amz-confirm-remove-self-bucket-access",ci="x-amz-checksum-sha1",ui="x-amz-checksum-sha256",li="x-amz-checksum-sha512",yne="x-amz-copy-source",Ene="x-amz-copy-source-if-match",_ne="x-amz-copy-source-if-modified-since",Rne="x-amz-copy-source-if-none-match",Cne="x-amz-copy-source-if-unmodified-since",y8e="x-amz-create-session-mode",E8e="x-amz-copy-source-range",bne="x-amz-copy-source-server-side-encryption-customer-algorithm",Ane="x-amz-copy-source-server-side-encryption-customer-key",xne="x-amz-copy-source-server-side-encryption-customer-key-MD5",Tne="x-amz-copy-source-version-id",Ya="x-amz-checksum-type",_8e="x-amz-client-token",di="x-amz-checksum-xxhash64",pi="x-amz-checksum-xxhash3",fi="x-amz-checksum-xxhash128",ZA="x-amz-delete-marker",vg="x-amz-expiration",N="x-amz-expected-bucket-owner",R8e="x-amz-fwd-error-code",C8e="x-amz-fwd-error-message",b8e="x-amz-fwd-header-Cache-Control",A8e="x-amz-fwd-header-Content-Disposition",x8e="x-amz-fwd-header-Content-Encoding",T8e="x-amz-fwd-header-Content-Language",v8e="x-amz-fwd-header-Content-Range",D8e="x-amz-fwd-header-Content-Type",I8e="x-amz-fwd-header-ETag",w8e="x-amz-fwd-header-Expires",P8e="x-amz-fwd-header-Last-Modified",O8e="x-amz-fwd-header-accept-ranges",$8e="x-amz-fwd-header-x-amz-checksum-crc32",k8e="x-amz-fwd-header-x-amz-checksum-crc32c",M8e="x-amz-fwd-header-x-amz-checksum-crc64nvme",L8e="x-amz-fwd-header-x-amz-checksum-md5",N8e="x-amz-fwd-header-x-amz-checksum-sha1",F8e="x-amz-fwd-header-x-amz-checksum-sha256",B8e="x-amz-fwd-header-x-amz-checksum-sha512",U8e="x-amz-fwd-header-x-amz-checksum-xxhash64",G8e="x-amz-fwd-header-x-amz-checksum-xxhash3",q8e="x-amz-fwd-header-x-amz-checksum-xxhash128",H8e="x-amz-fwd-header-x-amz-delete-marker",j8e="x-amz-fwd-header-x-amz-expiration",z8e="x-amz-fwd-header-x-amz-missing-meta",V8e="x-amz-fwd-header-x-amz-mp-parts-count",W8e="x-amz-fwd-header-x-amz-object-lock-legal-hold",K8e="x-amz-fwd-header-x-amz-object-lock-mode",Q8e="x-amz-fwd-header-x-amz-object-lock-retain-until-date",Y8e="x-amz-fwd-header-x-amz-restore",J8e="x-amz-fwd-header-x-amz-request-charged",X8e="x-amz-fwd-header-x-amz-replication-status",Z8e="x-amz-fwd-header-x-amz-storage-class",e9e="x-amz-fwd-header-x-amz-server-side-encryption",t9e="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",r9e="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",n9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",o9e="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-MD5",s9e="x-amz-fwd-header-x-amz-tagging-count",i9e="x-amz-fwd-header-x-amz-version-id",a9e="x-amz-fwd-status",Vd="x-amz-grant-full-control",Wd="x-amz-grant-read",Kd="x-amz-grant-read-acp",rN="x-amz-grant-write",Qd="x-amz-grant-write-acp",c9e="x-amz-if-match-initiated-time",u9e="x-amz-if-match-last-modified-time",l9e="x-amz-if-match-size",Yd="x-amz-meta-",nN="x-amz-mfa",d9e="x-amz-metadata-directive",vne="x-amz-missing-meta",p9e="x-amz-mp-object-size",f9e="x-amz-max-parts",Dne="x-amz-mp-parts-count",m9e="x-amz-object-attributes",g9e="x-amz-object-annotation-directive",Ine="x-amz-object-if-match",Dg="x-amz-object-lock-event-hold",Ig="x-amz-object-lock-event-hold-duration-days",wg="x-amz-object-lock-event-hold-duration-years",Pg="x-amz-object-lock-legal-hold",Og="x-amz-object-lock-mode",$g="x-amz-object-lock-retain-until-date",h9e="x-amz-object-ownership",oN="x-amz-optional-object-attributes",S9e="x-amz-object-size",ex="x-amz-object-version-id",y9e="x-amz-part-number-marker",wne="x-amz-restore",Ne="x-amz-request-charged",E9e="x-amz-restore-output-path",Te="x-amz-request-payer",_9e="x-amz-request-route",sN="x-amz-replication-status",R9e="x-amz-rename-source",C9e="x-amz-rename-source-if-match",b9e="x-amz-rename-source-if-modified-since",A9e="x-amz-rename-source-if-none-match",x9e="x-amz-rename-source-if-unmodified-since",T9e="x-amz-request-token",kg="x-amz-storage-class",ke="x-amz-sdk-checksum-algorithm",v9e="x-amz-skip-destination-validation",Pne="x-amz-source-expected-bucket-owner",ln="x-amz-server-side-encryption",Un="x-amz-server-side-encryption-aws-kms-key-id",Gn="x-amz-server-side-encryption-bucket-key-enabled",Ja="x-amz-server-side-encryption-context",Er="x-amz-server-side-encryption-customer-algorithm",ts="x-amz-server-side-encryption-customer-key",_r="x-amz-server-side-encryption-customer-key-MD5",iN="x-amz-tagging",One="x-amz-tagging-count",D9e="x-amz-tagging-directive",aN="x-amz-transition-default-minimum-object-size",mi="x-amz-version-id",I9e="x-amz-write-offset-bytes",Mg="x-amz-website-redirect-location",w9e="xsi:type",h="com.amazonaws.s3",$ne=new gee(lne),kne=[-3,lne,"S3ServiceException",0,[],[]];$ne.registerError(kne,rt);var Et=new gee(h),Mne=[-3,h,$Ue,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Mne,VR);var Lne=[-3,h,GUe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Lne,iC);var Nne=[-3,h,WUe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Nne,aC);var Fne=[-3,h,nGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Fne,KR);var Bne=[-3,h,sGe,{[It]:Dt,[kt]:409},[],[]];Et.registerError(Bne,QR);var Une=[-3,h,lqe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Une,rC);var Gne=[-3,h,Oje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Gne,lC);var qne=[-3,h,Eje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(qne,cC);var Hne=[-3,h,Ije,{[It]:Dt,[kt]:403},[Kr,Bee],[0,0]];Et.registerError(Hne,XR);var jne=[-3,h,Pje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(jne,tC);var zne=[-3,h,$je,{[It]:Dt,[kt]:400},[],[]];Et.registerError(zne,nC);var Vne=[-3,h,Uje,{[It]:Dt,[kt]:400},[],[]];Et.registerError(Vne,oC);var Wne=[-3,h,g5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Wne,ZR);var Kne=[-3,h,h5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Kne,YR);var Qne=[-3,h,S5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Qne,JR);var Yne=[-3,h,y5e,{[It]:Dt,[kt]:404},[],[]];Et.registerError(Yne,zR);var Jne=[-3,h,f5e,{[It]:Dt},[],[]];Et.registerError(Jne,eC);var Xne=[-3,h,A5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Xne,dC);var Zne=[-3,h,L5e,{[It]:Dt,[kt]:403},[],[]];Et.registerError(Zne,WR);var eoe=[-3,h,hWe,{[It]:Dt,[kt]:400},[],[]];Et.registerError(eoe,sC);var toe=[-3,h,wWe,{[It]:Dt,[kt]:415},[],[]];Et.registerError(toe,uC);var roe=[$ne,Et],noe=[0,h,EL,8,0],P9e=[0,h,p5e,8,0],lee=[0,h,MVe,8,0],rs=[0,h,uo,8,0],Xa=[0,h,Hi,8,0],Or=[0,h,un,8,0],uu=[0,h,$Ve,{[dne]:1},42],cN=[3,h,fC,0,[Wr],[0]],ooe=[3,h,kee,0,[JGe],[1]],soe=[3,h,jUe,0,[$e],[[0,{[l]:Ne}]]],ioe=[3,h,zUe,0,[w,le,Ka,xe,L,Aje],[[0,1],[0,1],[0,{[U]:Tg}],[0,{[l]:Te}],[0,{[l]:N}],[6,{[l]:c9e}]],3],aoe=[3,h,pC,0,[Wr],[0]],uN=[3,h,tu,0,[LA,es],[[()=>ux,{[v]:$A}],()=>gi]],coe=[3,h,Pee,0,[es],[0],1],uoe=[3,h,PUe,0,[Je,Hd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],tx=[3,h,Jm,0,[Wt,$re,qi],[0,()=>Tue,[()=>Yue,0]],2],loe=[3,h,MUe,0,[Ore],[()=>doe],1],doe=[3,h,XUe,0,[xte,w,oGe,Je],[0,0,0,0],2],poe=[3,h,$ee,0,[cg,co,cu,lt,ge,_g],[0,4,1,0,[64,{[ne]:1}],0],3],foe=[3,h,mC,0,[Td,ou,zA],[0,()=>Jd,0],1],moe=[3,h,Uee,0,[Td,KL,Dd,Cg,KA,zA],[0,0,()=>Lg,0,0,0],1],goe=[3,h,tGe,0,[Td,ou,zA],[0,()=>Jd,0],1],hoe=[3,h,Gee,0,[CL],[[()=>N9e,{[ne]:1}]]],Soe=[3,h,w,0,[iu,_Ge,fL,dL],[0,4,0,0]],yoe=[3,h,iGe,0,[X4e,bg],[0,0]],Eoe=[3,h,aGe,0,[Rg],[[()=>Wue,{[ne]:1,[v]:qd}]],1],_oe=[3,h,gC,0,[kL],[[()=>hN,0]]],Roe=[3,h,zee,0,[ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn],[0,0,0,0,0,0,0,0,0,0,0]],Coe=[3,h,kGe,0,[Je],[0]],boe=[3,h,AGe,0,[HA],[[()=>k9e,{[ne]:1,[v]:jA}]]],Aoe=[3,h,NGe,0,[lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,au],[0,0,0,0,0,0,0,0,0,0,0,1]],xoe=[3,h,xGe,{[v]:vGe},[_C,w,le,ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,un,zr,$e],[0,0,0,[0,{[l]:vg}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[l]:ln}],[0,{[l]:mi}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Toe=[3,h,DGe,0,[w,le,Ka,Vte,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,i5e,xe,L,kd,hg,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:Tg}],[()=>boe,{[Ce]:1,[v]:Vee}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:p9e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:su}],[0,{[l]:Md}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],voe=[3,h,ste,0,[mje,Xje],[0,0]],Doe=[3,h,RGe,0,[],[]],Ioe=[3,h,OGe,0,[Wee,ti,nte,Re,Qr,Kt,Qt,un,Hi,zr,$e],[[()=>Poe,16],[0,{[l]:vg}],[0,{[l]:Tne}],[0,{[l]:mi}],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],woe=[3,h,$Ge,0,[w,ote,le,Ed,_d,ge,Rd,Cd,bd,vd,Yee,Jee,Xee,Zee,Xo,Id,wd,Pd,Od,kd,hg,Ld,n5e,pWe,kUe,Qr,Kr,Ag,Kt,uo,Qt,un,Hi,zr,ete,EL,tte,xe,Zo,Ud,Gd,Bd,Sg,yg,Eg,L,yte],[[0,1],[0,{[l]:yne}],[0,1],[0,{[l]:zd}],[0,{[l]:dg}],[0,{[l]:eN}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Ene}],[4,{[l]:_ne}],[0,{[l]:Rne}],[4,{[l]:Cne}],[4,{[l]:Xo}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[0,{[l]:su}],[0,{[l]:Md}],[128,{[jd]:Yd}],[0,{[l]:d9e}],[0,{[l]:D9e}],[0,{[l]:g9e}],[0,{[l]:ln}],[0,{[l]:kg}],[0,{[l]:Mg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:bne}],[()=>noe,{[l]:Ane}],[0,{[l]:xne}],[0,{[l]:Te}],[0,{[l]:iN}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}],[0,{[l]:N}],[0,{[l]:Pne}]],3],Poe=[3,h,Wee,0,[lt,co,cn,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0,0]],Ooe=[3,h,Kee,0,[lt,co,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[0,4,0,0,0,0,0,0,0,0,0,0]],$oe=[3,h,hC,0,[hL],[[()=>Vue,{[ne]:1,[v]:SL}]],1],koe=[3,h,SL,0,[qUe,KUe,$d,NUe,sqe,t5e],[[64,{[ne]:1,[v]:VUe}],[64,{[ne]:1,[v]:QUe}],0,[64,{[ne]:1,[v]:FUe}],[64,{[ne]:1,[v]:aqe}],1],2],Moe=[3,h,ZM,0,[tL,_C,w,Hd],[0,()=>Uae,()=>yoe,[()=>ji,0]]],Loe=[3,h,gGe,0,[w,nL,Ye,ge,L],[[0,1],[()=>Gae,{[Ce]:1,[v]:nL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Noe=[3,h,SGe,0,[w,oL,Ye,ge,L],[[0,1],[()=>jae,{[Ce]:1,[v]:oL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Foe=[3,h,yGe,0,[_C,dL],[[0,{[l]:_C}],[0,{[l]:hne}]]],Boe=[3,h,EGe,0,[w,Ed,ZM,Id,wd,Pd,TL,Od,P5e,ire,lGe],[[0,1],[0,{[l]:zd}],[()=>Moe,{[Ce]:1,[v]:ZM}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:rN}],[0,{[l]:Qd}],[2,{[l]:g8e}],[0,{[l]:h9e}],[0,{[l]:m8e}]],1],Uoe=[3,h,TGe,{[v]:vje},[Oee,Fee,w,le,Ka,Qr,Kt,Qt,un,Hi,zr,$e,ge,cn],[[4,{[l]:mne}],[0,{[l]:gne}],[0,{[v]:w}],0,0,[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Ne}],[0,{[l]:eN}],[0,{[l]:Ya}]]],Goe=[3,h,IGe,0,[w,le,Ed,_d,Rd,Cd,bd,vd,Xo,Id,wd,Pd,Od,Ld,Qr,Kr,Ag,Kt,uo,Qt,un,Hi,zr,xe,Zo,Ud,Gd,Bd,Sg,yg,Eg,L,ge,cn],[[0,1],[0,1],[0,{[l]:zd}],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[4,{[l]:Xo}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[128,{[jd]:Yd}],[0,{[l]:ln}],[0,{[l]:kg}],[0,{[l]:Mg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:iN}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}],[0,{[l]:N}],[0,{[l]:eN}],[0,{[l]:Ya}]],2],qoe=[3,h,BGe,{[v]:UGe},[oee,Qr,un,Hi,zr],[[()=>Sue,{[v]:oee}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],Hoe=[3,h,qGe,0,[w,WVe,Qr,un,Hi,zr],[[0,1],[0,{[l]:y8e}],[0,{[l]:ln}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}]],1],joe=[3,h,HGe,0,[fqe,QGe,Ere,UL,bte,Sre,JUe],[0,0,0,0,0,0,2]],zoe=[3,h,jGe,0,[cVe,Ere,UL,bte,Sre],[0,0,0,0,0]],Voe=[3,h,ute,0,[Yte,ru,ene,I4e],[0,1,1,()=>dN]],Woe=[3,h,eL,0,[H5e,oVe],[[()=>W9e,{[ne]:1,[v]:ure}],2],1],Koe=[3,h,e4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Qoe=[3,h,r4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],Yoe=[3,h,o4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],Joe=[3,h,c4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Xoe=[3,h,i4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Zoe=[3,h,l4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ese=[3,h,p4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],tse=[3,h,h4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],rse=[3,h,f4e,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],nse=[3,h,y4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ose=[3,h,_4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],sse=[3,h,C4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ise=[3,h,R4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],ase=[3,h,x4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],cse=[3,h,v4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],use=[3,h,L4e,0,[le,Re,nu,M4e],[0,0,2,0]],lse=[3,h,k4e,0,[es,le,Re,Pte,co],[()=>gi,0,0,2,4]],dse=[3,h,ate,0,[Wr],[0]],pse=[3,h,F4e,0,[UA,$e],[[0,{[l]:ex}],[0,{[l]:Ne}]]],fse=[3,h,B4e,0,[w,le,cg,Re,xe,L,ore],[[0,1],[0,1],[0,{[U]:YL}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Ine}]],3],mse=[3,h,U4e,0,[nu,Re,$e],[[2,{[l]:ZA}],[0,{[l]:mi}],[0,{[l]:Ne}]]],gse=[3,h,q4e,0,[w,le,ML,Re,xe,pL,L,kd,xje,Tje],[[0,1],[0,1],[0,{[l]:nN}],[0,{[U]:Yt}],[0,{[l]:Te}],[2,{[l]:ZL}],[0,{[l]:N}],[0,{[l]:su}],[6,{[l]:u9e}],[1,{[l]:l9e}]],2],hse=[3,h,G4e,{[v]:Z4e},[eqe,$e,Rte],[[()=>M9e,{[ne]:1}],[0,{[l]:Ne}],[()=>F9e,{[ne]:1,[v]:Dd}]]],Sse=[3,h,H4e,0,[w,eL,ML,xe,pL,L,ge],[[0,1],[()=>Woe,{[Ce]:1,[v]:eL}],[0,{[l]:nN}],[0,{[l]:Te}],[2,{[l]:ZL}],[0,{[l]:N}],[0,{[l]:ke}]],2],yse=[3,h,z4e,0,[Re],[[0,{[l]:mi}]]],Ese=[3,h,V4e,0,[w,le,Re,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}]],2],_se=[3,h,J4e,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rse=[3,h,MA,0,[w,wUe,Kr,Pee,ou,Ire,Qte],[0,0,0,()=>coe,()=>Ase,()=>eue,()=>Vae],1],Cse=[3,h,lte,0,[uWe,zL,zre],[0,0,0]],bse=[3,h,bL,0,[CL,Yje,Kje],[0,[()=>Or,0],0],1],Ase=[3,h,ou,0,[pVe],[0]],xse=[3,h,oqe,0,[],[]],Tse=[3,h,Dd,0,[le,Re,KGe,u5e],[0,0,0,0]],Lg=[3,h,nqe,0,[mte,hte],[0,0]],lN=[3,h,RL,0,[le],[0],1],vse=[3,h,fte,0,[],[]],dN=[3,h,gte,0,[ru,ene],[1,1]],Dse=[3,h,Ste,0,[Wr],[0],1],Ise=[3,h,Ate,0,[iu,QL],[0,0]],wse=[3,h,Tqe,0,[fC],[[()=>cN,16]]],Pse=[3,h,Dqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Ose=[3,h,Rqe,{[v]:pC},[Wr,$e],[0,[0,{[l]:Ne}]]],$se=[3,h,bqe,0,[w,L,xe],[[0,1],[0,{[l]:N}],[0,{[l]:Te}]],1],kse=[3,h,vqe,{[v]:tu},[es,LA],[()=>gi,[()=>ux,{[v]:$A}]]],Mse=[3,h,Iqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Lse=[3,h,Cqe,0,[Jm],[[()=>tx,16]]],Nse=[3,h,Aqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Fse=[3,h,Oqe,{[v]:hC},[hL],[[()=>Vue,{[ne]:1,[v]:SL}]]],Bse=[3,h,$qe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Use=[3,h,Mqe,0,[PC],[[()=>DN,16]]],Gse=[3,h,Lqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],qse=[3,h,Gqe,0,[Zm],[[()=>rx,16]]],Hse=[3,h,qqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],jse=[3,h,Fqe,0,[Xm],[[()=>nx,16]]],zse=[3,h,Bqe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],Vse=[3,h,zqe,{[v]:rL},[Rg,WL],[[()=>Wue,{[ne]:1,[v]:qd}],[0,{[l]:aN}]]],Wse=[3,h,Vqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kse=[3,h,Wqe,{[v]:tL},[tL],[0]],Qse=[3,h,Qqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Yse=[3,h,Kqe,{[v]:gC},[kL],[[()=>hN,0]]],Jse=[3,h,Yqe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Xse=[3,h,Zqe,0,[Tte],[[()=>eie,16]]],Zse=[3,h,tHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],eie=[3,h,Tte,0,[Gte],[()=>qae],1],tie=[3,h,sHe,0,[vte],[[()=>nie,16]]],rie=[3,h,iHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],nie=[3,h,vte,0,[zte,Wr,Dd],[()=>zae,0,()=>Lg],2],oie=[3,h,eHe,0,[eg],[[()=>ox,16]]],sie=[3,h,rHe,0,[w,Wt,L],[[0,1],[0,{[U]:po}],[0,{[l]:N}]],2],iie=[3,h,cHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],aie=[3,h,lHe,0,[CC],[[()=>CN,16]]],cie=[3,h,dHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],uie=[3,h,fHe,0,[mre],[[0,16]]],lie=[3,h,mHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],die=[3,h,hHe,0,[lre],[[()=>ace,16]]],pie=[3,h,SHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],fie=[3,h,EHe,0,[TC],[[()=>xN,16]]],mie=[3,h,bHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],gie=[3,h,RHe,{[v]:vC},[dre],[0]],hie=[3,h,CHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Sie=[3,h,xHe,{[v]:Zo},[QA],[[()=>ji,0]],1],yie=[3,h,THe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Eie=[3,h,DHe,{[v]:OC},[Wr,jte],[0,[0,{[v]:qte}]]],_ie=[3,h,IHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],Rie=[3,h,PHe,{[v]:$C},[BL,IL,RL,GL],[()=>AN,()=>fN,()=>lN,[()=>Que,0]]],Cie=[3,h,OHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],bie=[3,h,MHe,{[v]:tu},[es,LA,$e],[()=>gi,[()=>ux,{[v]:$A}],[0,{[l]:Ne}]]],Aie=[3,h,BHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],xie=[3,h,LHe,0,[Mee,UA,co,xd,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e,_g],[[()=>uu,16],[0,{[l]:ex}],[4,{[l]:FA}],[1,{[l]:Ad}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}],[0,{[l]:sN}]]],Tie=[3,h,UHe,0,[w,le,cg,Re,xe,L,gL],[[0,1],[0,1],[0,{[U]:YL}],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:tN}]],3],vie=[3,h,NHe,{[v]:GHe},[nu,co,Re,$e,lt,zee,N5e,Kr,B5e],[[2,{[l]:ZA}],[4,{[l]:FA}],[0,{[l]:mi}],[0,{[l]:Ne}],0,()=>Roe,[()=>Die,0],0,1]],Die=[3,h,FHe,0,[yWe,qA,ere,BA,ni,HA],[[1,{[v]:GA}],0,0,1,2,[()=>J9e,{[ne]:1,[v]:jA}]]],Iie=[3,h,qHe,0,[w,le,b5e,Re,BA,qA,Kt,uo,Qt,xe,L],[[0,1],[0,1],[64,{[l]:m9e}],[0,{[U]:Yt}],[1,{[l]:f9e}],[0,{[l]:y9e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],3],wie=[3,h,QHe,0,[RC],[[()=>EN,{[Ce]:1,[v]:RC}]]],Pie=[3,h,YHe,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Oie=[3,h,VHe,0,[bC],[[()=>yN,16]]],$ie=[3,h,WHe,0,[w,L],[[0,1],[0,{[l]:N}]],1],kie=[3,h,JHe,0,[lg,nu,lL,ti,HL,co,xd,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,LL,Re,_d,Rd,Cd,bd,yL,vd,Xo,SC,Ag,Qr,Ld,Kt,Qt,un,zr,Kr,$e,_g,GA,VL,Ud,Gd,Bd,Sg,yg,Eg],[[()=>uu,16],[2,{[l]:ZA}],[0,{[l]:tne}],[0,{[l]:vg}],[0,{[l]:wne}],[4,{[l]:FA}],[1,{[l]:Ad}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[1,{[l]:vne}],[0,{[l]:mi}],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:Qee}],[0,{[l]:gg}],[4,{[l]:Xo}],[0,{[l]:SC}],[0,{[l]:Mg}],[0,{[l]:ln}],[128,{[jd]:Yd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:kg}],[0,{[l]:Ne}],[0,{[l]:sN}],[1,{[l]:Dne}],[1,{[l]:One}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}]]],Mie=[3,h,XHe,0,[w,le,kd,Ote,hg,Mte,DC,_re,Rre,Cre,bre,Are,xre,Re,Kt,uo,Qt,xe,au,L,gL],[[0,1],[0,1],[0,{[l]:su}],[4,{[l]:wL}],[0,{[l]:Md}],[4,{[l]:OL}],[0,{[l]:DC}],[0,{[U]:one}],[0,{[U]:sne}],[0,{[U]:ine}],[0,{[U]:ane}],[0,{[U]:cne}],[6,{[U]:une}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:XA}],[0,{[l]:N}],[0,{[l]:tN}]],2],Lie=[3,h,ZHe,0,[IC],[[()=>_N,{[Ce]:1,[v]:IC}]]],Nie=[3,h,eje,0,[w,le,Re,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}]],2],Fie=[3,h,nje,{[v]:Zo},[QA,Re],[[()=>ji,0],[0,{[l]:mi}]],1],Bie=[3,h,sje,0,[w,le,Re,L,xe],[[0,1],[0,1],[0,{[U]:Yt}],[0,{[l]:N}],[0,{[l]:Te}]],2],Uie=[3,h,oje,0,[lg,$e],[[()=>uu,16],[0,{[l]:Ne}]]],Gie=[3,h,ije,0,[w,le,xe,L],[[0,1],[0,1],[0,{[l]:Te}],[0,{[l]:N}]],2],qie=[3,h,uje,0,[AC],[[()=>bN,16]]],Hie=[3,h,lje,0,[w,L],[[0,1],[0,{[l]:N}]],1],jie=[3,h,Dte,0,[Wre],[0],1],zie=[3,h,vL,0,[DL,fre],[[()=>pN,{[fne]:[pne,rne]}],0]],pN=[3,h,DL,0,[bg,_L,rqe,$d,UWe],[[0,{[u8e]:1,[v]:w9e}],0,0,0,0],1],Vie=[3,h,pje,0,[dL,uGe,cGe,fL,YUe],[[0,{[l]:hne}],[0,{[l]:f8e}],[0,{[l]:p8e}],[0,{[l]:h8e}],[2,{[l]:l8e}]]],Wie=[3,h,fje,0,[w,L],[[0,1],[0,{[l]:N}]],1],Kie=[3,h,hje,0,[nu,lL,ti,HL,eGe,co,xd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,lt,LL,Re,_d,Rd,Cd,bd,vd,yL,Xo,SC,Ag,Qr,Ld,Kt,Qt,un,zr,Kr,$e,_g,GA,VL,Ud,Gd,Bd,Sg,yg,Eg],[[2,{[l]:ZA}],[0,{[l]:tne}],[0,{[l]:vg}],[0,{[l]:wne}],[0,{[l]:d8e}],[4,{[l]:FA}],[1,{[l]:Ad}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:lt}],[1,{[l]:vne}],[0,{[l]:mi}],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[0,{[l]:gg}],[0,{[l]:Qee}],[4,{[l]:Xo}],[0,{[l]:SC}],[0,{[l]:Mg}],[0,{[l]:ln}],[128,{[jd]:Yd}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:kg}],[0,{[l]:Ne}],[0,{[l]:sN}],[1,{[l]:Dne}],[1,{[l]:One}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}]]],Qie=[3,h,Sje,0,[w,le,kd,Ote,hg,Mte,DC,_re,Rre,Cre,bre,Are,xre,Re,Kt,uo,Qt,xe,au,L,gL],[[0,1],[0,1],[0,{[l]:su}],[4,{[l]:wL}],[0,{[l]:Md}],[4,{[l]:OL}],[0,{[l]:DC}],[0,{[U]:one}],[0,{[U]:sne}],[0,{[U]:ine}],[0,{[U]:ane}],[0,{[U]:cne}],[6,{[U]:une}],[0,{[U]:Yt}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[1,{[U]:XA}],[0,{[l]:N}],[0,{[l]:tN}]],2],fN=[3,h,IL,0,[iWe],[0],1],mN=[3,h,$L,0,[$d,_L],[0,0]],gN=[3,h,PL,0,[rte,WGe,Lte,rVe],[()=>joe,0,()=>uae,()=>oce]],Yie=[3,h,Nje,0,[Je,Hd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],rx=[3,h,Zm,0,[Wt,Wr,EWe,qi],[0,0,[()=>rKe,{[ne]:1,[v]:Kre}],[()=>Jie,0]],3],Jie=[3,h,Bje,0,[Je,lo,ug],[0,()=>lu,[()=>Yie,0]]],nx=[3,h,Xm,0,[MA,Rje,Wt,wje,oWe,qi,v5e],[[()=>Xie,0],2,0,0,()=>rae,()=>eae,[()=>q9e,0]],5],Xie=[3,h,_je,0,[Ore],[[()=>tae,0]],1],Zie=[3,h,Cje,0,[Bre,jL],[[()=>bue,{[v]:Nre}],[()=>_ue,{[v]:WA}]]],eae=[3,h,bje,0,[Je],[0],1],tae=[3,h,Mje,0,[w,xte,BUe,Je,bL],[0,0,0,0,[()=>Zie,0]],2],rae=[3,h,Lje,0,[yqe],[0],1],nae=[3,h,yC,0,[Td,ou],[0,()=>Jd],1],oae=[3,h,kte,0,[Td,KL,Dd,Cg,KA],[0,0,()=>Lg,0,0],1],sae=[3,h,Fje,0,[Td,ou],[0,()=>Jd],1],iae=[3,h,EC,0,[VA,ou],[()=>ix,()=>Jd],1],aae=[3,h,Nte,0,[KL,Cg,VA,Dd,KA],[0,0,()=>ix,()=>Lg,0],3],cae=[3,h,jje,0,[VA],[()=>ix],1],uae=[3,h,qje,0,[bg],[0]],lae=[3,h,Hje,0,[UL],[0]],dae=[3,h,C6e,0,[R6e,AL,Wt,qi],[[0,{[v]:CGe}],[64,{[ne]:1,[v]:xL}],0,[()=>sx,0]],2],pae=[3,h,_6e,0,[dte,ru,cqe],[5,1,2]],fae=[3,h,Q6e,0,[Wr,ti,$d,Je,qi,CWe,R5e,tre,kee],[0,()=>pae,0,0,[()=>gae,0],[()=>oKe,{[ne]:1,[v]:Yre}],[()=>V9e,{[ne]:1,[v]:rre}],()=>Qae,()=>ooe],1],mae=[3,h,Y6e,0,[Je,Hd,are,cre],[0,[()=>ji,{[ne]:1,[v]:lo}],1,1]],gae=[3,h,J6e,0,[Je,lo,are,cre,ug],[0,()=>lu,1,1,[()=>mae,0]]],hae=[3,h,n6e,{[v]:o6e},[ni,Vr,Fd,wee],[2,0,0,[()=>O9e,{[ne]:1,[v]:Jm}]]],Sae=[3,h,s6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],yae=[3,h,l6e,0,[ni,Vr,Fd,$te],[2,0,0,[()=>U9e,{[ne]:1,[v]:Zm}]]],Eae=[3,h,d6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],_ae=[3,h,a6e,{[v]:T6e},[Vr,wte,ni,Fd],[0,[()=>G9e,{[ne]:1,[v]:Xm}],2,0]],Rae=[3,h,c6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Cae=[3,h,f6e,{[v]:v6e},[ni,Vr,Fd,Ute],[2,0,0,[()=>j9e,{[ne]:1,[v]:eg}]]],bae=[3,h,m6e,0,[w,Vr,L],[[0,1],[0,{[U]:Qa}],[0,{[l]:N}]],1],Aae=[3,h,g6e,{[v]:Zje},[mL,es,Vr,Je],[[()=>zue,0],()=>gi,0,0]],xae=[3,h,h6e,0,[r5e,Vr,Je,fL],[[1,{[U]:t8e}],[0,{[U]:Qa}],[0,{[U]:xg}],[0,{[U]:KWe}]]],Tae=[3,h,y6e,{[v]:e6e},[mL,Vr],[[()=>zue,0],0]],vae=[3,h,E6e,0,[Vr,o5e],[[0,{[U]:Qa}],[1,{[U]:r8e}]]],Dae=[3,h,w6e,{[v]:P6e},[w,NA,Jre,Xte,Je,Va,E5e,Wte,ni,bWe,kA,Wa,$e],[0,0,0,0,0,0,0,1,2,[()=>z9e,{[ne]:1,[v]:GWe}],[()=>cx,{[ne]:1}],0,[0,{[l]:Ne}]]],Iae=[3,h,O6e,0,[w,Va,Wa,NA,Wte,Je,Jre,L,xe],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[0,{[U]:nne}],[1,{[U]:o8e}],[0,{[U]:xg}],[0,{[U]:a8e}],[0,{[l]:N}],[0,{[l]:Te}]],1],wae=[3,h,M6e,0,[rGe,w,le,UA,Nee,Bte,OUe,Vr,Fd,$e],[[()=>$9e,0],0,0,[0,{[l]:ex}],0,1,1,0,0,[0,{[l]:Ne}]]],Pae=[3,h,L6e,0,[w,le,Re,Bte,Nee,Vr,xe,L],[[0,1],[0,1],[0,{[U]:Yt}],[1,{[U]:e8e}],[0,{[U]:WWe}],[0,{[U]:Qa}],[0,{[l]:Te}],[0,{[l]:N}]],2],Oae=[3,h,N6e,{[v]:Fte},[ni,Kte,m5e,ite,iu,Je,Va,Nd,kA,Wa,$e],[2,0,0,[()=>Kue,{[ne]:1}],0,0,0,1,[()=>cx,{[ne]:1}],0,[0,{[l]:Ne}]]],$ae=[3,h,F6e,0,[w,Va,Wa,Kte,Nd,Je,xe,L,NL],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[0,{[U]:ZWe}],[1,{[U]:XL}],[0,{[U]:xg}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:oN}]],1],kae=[3,h,U6e,{[v]:Fte},[ni,ite,iu,Je,Va,Nd,kA,Wa,zje,Vr,Fd,Pre,$e],[2,[()=>Kue,{[ne]:1}],0,0,0,1,[()=>cx,{[ne]:1}],0,1,0,0,0,[0,{[l]:Ne}]]],Mae=[3,h,q6e,0,[w,Va,Wa,Nd,Je,Vr,mqe,Pre,xe,L,NL],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[1,{[U]:XL}],[0,{[U]:xg}],[0,{[U]:Qa}],[2,{[U]:YWe}],[0,{[U]:i8e}],[0,{[l]:Te}],[0,{[l]:N}],[64,{[l]:oN}]],1],Lae=[3,h,G6e,{[v]:Z6e},[ni,NA,Zre,Xte,_5e,qWe,cte,iu,Je,Va,Nd,kA,Wa,$e],[2,0,0,0,0,[()=>K9e,{[ne]:1,[v]:HWe}],[()=>L9e,{[ne]:1,[v]:nu}],0,0,0,1,[()=>cx,{[ne]:1}],0,[0,{[l]:Ne}]]],Nae=[3,h,H6e,0,[w,Va,Wa,NA,Nd,Je,Zre,L,xe,NL],[[0,1],[0,{[U]:YA}],[0,{[U]:JA}],[0,{[U]:nne}],[1,{[U]:XL}],[0,{[U]:xg}],[0,{[U]:c8e}],[0,{[l]:N}],[0,{[l]:Te}],[64,{[l]:oN}]],1],Fae=[3,h,V6e,{[v]:W6e},[Oee,Fee,w,le,Ka,qA,ere,BA,ni,HA,$L,es,Kr,$e,ge,cn],[[4,{[l]:mne}],[0,{[l]:gne}],0,0,0,0,0,1,2,[()=>Y9e,{[ne]:1,[v]:jA}],()=>mN,()=>gi,0,[0,{[l]:Ne}],0,0]],Bae=[3,h,K6e,0,[w,le,Ka,BA,qA,xe,L,Kt,uo,Qt],[[0,1],[0,1],[0,{[U]:Tg}],[1,{[U]:n8e}],[0,{[U]:s8e}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}]],3],Uae=[3,h,x6e,0,[bg,iu],[0,0]],hN=[3,h,kL,0,[cWe,SWe,jre,Vre],[0,0,[()=>tKe,0],[()=>Iue,0]],2],Gae=[3,h,nL,0,[EC,yC,mC],[()=>iae,()=>nae,()=>foe],1],qae=[3,h,Gte,0,[lte,Nte,kte,Uee],[()=>Cse,()=>aae,()=>oae,()=>moe],1],Hae=[3,h,Hte,0,[iu,QL],[0,0]],jae=[3,h,oL,0,[Ure],[()=>uue],1],zae=[3,h,zte,0,[Gre],[()=>lue],1],Jd=[3,h,a5e,0,[OVe,Wje],[0,0],1],Vae=[3,h,Qte,0,[Wr,dqe],[0,()=>TN],1],Wae=[3,h,e5e,0,[Je,Hd,Lee],[0,[()=>ji,{[ne]:1,[v]:lo}],0]],ox=[3,h,eg,0,[Wt,qi],[0,[()=>Jue,0]],1],Kae=[3,h,Vte,0,[Ka,le,Gje,Kr,es,$L,ge,cn],[0,0,4,0,()=>gi,()=>mN,0,0]],Qae=[3,h,tre,0,[Jte,Zte],[1,1]],Yae=[3,h,rre,0,[Jte,Kr,Zte],[1,0,1]],SN=[3,h,sL,0,[dWe,aVe,A6e,fte],[[()=>nKe,{[ne]:1,[v]:Hre}],[()=>X9e,{[ne]:1,[v]:yre}],[()=>H9e,{[ne]:1,[v]:bGe}],()=>vse]],sx=[3,h,d5e,0,[le],[[()=>aue,{[v]:zVe}]]],Jae=[3,h,ure,0,[le,co,lt,ge,cn,cu,Kr,es,qL],[0,4,0,[64,{[ne]:1}],0,1,0,()=>gi,()=>vN]],Xae=[3,h,D5e,0,[le,Re,lt,D6e,cu],[0,0,0,6,1],1],yN=[3,h,bC,0,[w5e,qd],[0,()=>Zae]],EN=[3,h,O5e,0,[Wr],[0]],_N=[3,h,$5e,0,[Yte,wVe,iqe,gte],[0,5,0,()=>dN]],Zae=[3,h,k5e,0,[ute],[()=>Voe]],ece=[3,h,F5e,0,[au,cu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,1,0,0,0,0,0,0,0,0,0,0]],tce=[3,h,G5e,0,[lt,ge,cn,cu,Kr,le,Re,Pte,co,es,qL],[0,[64,{[ne]:1}],0,1,0,0,0,2,4,()=>gi,()=>vN]],rce=[3,h,sre,0,[nWe],[[()=>cue,0]]],RN=[3,h,FL,0,[rte,Lte],[()=>zoe,()=>lae]],gi=[3,h,es,0,[_L,$d],[0,0]],CN=[3,h,CC,0,[Rg],[[()=>Q9e,{[ne]:1,[v]:qd}]],1],nce=[3,h,x5e,0,[ire],[0],1],oce=[3,h,Pze,0,[],[]],sce=[3,h,jA,0,[au,co,lt,cu,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr],[1,4,0,1,0,0,0,0,0,0,0,0,0,0]],ice=[3,h,xC,{[v]:xC},[Ize],[0]],ace=[3,h,lre,0,[iee],[[2,{[v]:iee}]]],cce=[3,h,gre,0,[jee,qee,Hee],[1,1,1]],uce=[3,h,wze,0,[pte],[[()=>cce,{[JL]:1}]]],bN=[3,h,AC,0,[ree,see,nee,aee],[[2,{[v]:ree}],[2,{[v]:see}],[2,{[v]:nee}],[2,{[v]:aee}]]],lce=[3,h,Q5e,0,[w,fC,Ye,ge,L],[[0,1],[()=>cN,{[Ce]:1,[v]:fC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],dce=[3,h,V5e,0,[w,pC,L,ge],[[0,1],[()=>aoe,{[Ce]:1,[v]:pC}],[0,{[l]:N}],[0,{[l]:ke}]],2],pce=[3,h,Y5e,0,[w,Ed,tu,Ye,ge,Id,wd,Pd,TL,Od,L],[[0,1],[0,{[l]:zd}],[()=>uN,{[Ce]:1,[v]:tu}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:rN}],[0,{[l]:Qd}],[0,{[l]:N}]],1],fce=[3,h,W5e,0,[w,Wt,Jm,L],[[0,1],[0,{[U]:po}],[()=>tx,{[Ce]:1,[v]:Jm}],[0,{[l]:N}]],3],mce=[3,h,Z5e,0,[w,hC,Ye,ge,L],[[0,1],[()=>$oe,{[Ce]:1,[v]:hC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],gce=[3,h,tze,0,[w,PC,Ye,ge,L],[[0,1],[()=>DN,{[Ce]:1,[v]:PC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],hce=[3,h,sze,0,[w,Wt,Zm,L],[[0,1],[0,{[U]:po}],[()=>rx,{[Ce]:1,[v]:Zm}],[0,{[l]:N}]],3],Sce=[3,h,nze,0,[w,Wt,Xm,L],[[0,1],[0,{[U]:po}],[()=>nx,{[Ce]:1,[v]:Xm}],[0,{[l]:N}]],3],yce=[3,h,cze,0,[WL],[[0,{[l]:aN}]]],Ece=[3,h,uze,0,[w,ge,rL,L,WL],[[0,1],[0,{[l]:ke}],[()=>Eoe,{[Ce]:1,[v]:rL}],[0,{[l]:N}],[0,{[l]:aN}]],1],_ce=[3,h,lze,0,[w,gC,Ye,ge,L],[[0,1],[()=>_oe,{[Ce]:1,[v]:gC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Rce=[3,h,pze,0,[w,Wt,eg,L],[[0,1],[0,{[U]:po}],[()=>ox,{[Ce]:1,[v]:eg}],[0,{[l]:N}]],3],Cce=[3,h,mze,0,[w,sL,L,FVe],[[0,1],[()=>SN,{[Ce]:1,[v]:sL}],[0,{[l]:N}],[2,{[l]:v9e}]],2],bce=[3,h,hze,0,[w,CC,Ye,L,ge],[[0,1],[()=>CN,{[Ce]:1,[v]:CC}],[0,{[l]:Qe}],[0,{[l]:N}],[0,{[l]:ke}]],2],Ace=[3,h,yze,0,[w,mre,Ye,ge,FGe,L],[[0,1],[0,16],[0,{[l]:Qe}],[0,{[l]:ke}],[2,{[l]:S8e}],[0,{[l]:N}]],2],xce=[3,h,Cze,0,[w,TC,Ye,ge,Qre,L],[[0,1],[()=>xN,{[Ce]:1,[v]:TC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Sne}],[0,{[l]:N}]],2],Tce=[3,h,Rze,0,[w,vC,Ye,ge,L],[[0,1],[()=>tue,{[Ce]:1,[v]:vC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],vce=[3,h,Aze,0,[w,Zo,Ye,ge,L],[[0,1],[()=>ax,{[Ce]:1,[v]:Zo}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Dce=[3,h,Tze,0,[w,OC,Ye,ge,ML,L],[[0,1],[()=>que,{[Ce]:1,[v]:OC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:nN}],[0,{[l]:N}]],2],Ice=[3,h,Dze,0,[w,$C,Ye,ge,L],[[0,1],[()=>Hue,{[Ce]:1,[v]:$C}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],wce=[3,h,Mze,0,[$e],[[0,{[l]:Ne}]]],Pce=[3,h,Nze,0,[w,le,Ed,tu,Ye,ge,Id,wd,Pd,TL,Od,xe,Re,L],[[0,1],[0,1],[0,{[l]:zd}],[()=>uN,{[Ce]:1,[v]:tu}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:rN}],[0,{[l]:Qd}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:N}]],2],Oce=[3,h,Lze,0,[le,cg,UA,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,$e],[0,0,[0,{[l]:ex}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:Ne}]]],$ce=[3,h,Fze,0,[w,le,cg,Mee,Re,ore,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Ye,xe,L],[[0,1],[0,1],[0,{[U]:YL}],[()=>uu,16],[0,{[U]:Yt}],[0,{[l]:Ine}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Qe}],[0,{[l]:Te}],[0,{[l]:N}]],4],kce=[3,h,jze,0,[$e],[[0,{[l]:Ne}]]],Mce=[3,h,zze,0,[w,le,RC,xe,Re,Ye,ge,L],[[0,1],[0,1],[()=>EN,{[Ce]:1,[v]:RC}],[0,{[l]:Te}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Lce=[3,h,Gze,0,[$e],[[0,{[l]:Ne}]]],Nce=[3,h,qze,0,[w,bC,xe,Qre,Ye,ge,L],[[0,1],[()=>yN,{[Ce]:1,[v]:bC}],[0,{[l]:Te}],[0,{[l]:Sne}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],1],Fce=[3,h,Vze,0,[ti,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,cn,Qr,Re,Kt,Qt,un,Hi,zr,cu,$e],[[0,{[l]:vg}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Ya}],[0,{[l]:ln}],[0,{[l]:mi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[1,{[l]:S9e}],[0,{[l]:Ne}]]],Bce=[3,h,Wze,0,[w,le,Ed,lg,_d,Rd,Cd,bd,xd,Ye,vd,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Xo,kd,hg,Id,wd,Pd,Od,VWe,Ld,Qr,Kr,Ag,Kt,uo,Qt,un,Hi,zr,xe,Zo,Ud,Gd,Bd,Sg,yg,Eg,L],[[0,1],[0,1],[0,{[l]:zd}],[()=>uu,16],[0,{[l]:dg}],[0,{[l]:pg}],[0,{[l]:fg}],[0,{[l]:mg}],[1,{[l]:Ad}],[0,{[l]:Qe}],[0,{[l]:gg}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[4,{[l]:Xo}],[0,{[l]:su}],[0,{[l]:Md}],[0,{[l]:Vd}],[0,{[l]:Wd}],[0,{[l]:Kd}],[0,{[l]:Qd}],[1,{[l]:I9e}],[128,{[jd]:Yd}],[0,{[l]:ln}],[0,{[l]:kg}],[0,{[l]:Mg}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[()=>Xa,{[l]:Ja}],[2,{[l]:Gn}],[0,{[l]:Te}],[0,{[l]:iN}],[0,{[l]:Og}],[5,{[l]:$g}],[0,{[l]:Pg}],[0,{[l]:Dg}],[1,{[l]:Ig}],[1,{[l]:wg}],[0,{[l]:N}]],2],Uce=[3,h,Kze,0,[$e],[[0,{[l]:Ne}]]],Gce=[3,h,Qze,0,[w,le,IC,xe,Re,pL,Ye,ge,L],[[0,1],[0,1],[()=>_N,{[Ce]:1,[v]:IC}],[0,{[l]:Te}],[0,{[U]:Yt}],[2,{[l]:ZL}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],qce=[3,h,Xze,0,[Re],[[0,{[l]:mi}]]],Hce=[3,h,Zze,0,[w,le,Zo,Re,Ye,ge,L,xe],[[0,1],[0,1],[()=>ax,{[Ce]:1,[v]:Zo}],[0,{[U]:Yt}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}],[0,{[l]:Te}]],3],jce=[3,h,tVe,0,[w,AC,Ye,ge,L],[[0,1],[()=>bN,{[Ce]:1,[v]:AC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],zce=[3,h,yre,0,[sVe,AL,Wt,qi],[[0,{[v]:uVe}],[64,{[ne]:1,[v]:xL}],0,[()=>sx,0]],2],ix=[3,h,VA,0,[ti,ru],[0,1],1],Vce=[3,h,dVe,0,[pre],[[21,{[JL]:1}]]],Wce=[3,h,wre,0,[Ite,yje,hre,fVe,mVe],[0,0,0,0,0]],AN=[3,h,BL,0,[Ite,hre],[0,0],1],Kce=[3,h,hVe,0,[],[]],Qce=[3,h,EVe,0,[w,le,vVe,w4e,O4e,P4e,$4e,UVe,qVe,GVe,HVe,VGe],[[0,1],[0,1],[0,{[l]:R9e}],[0,{[l]:su}],[0,{[l]:Md}],[4,{[l]:wL}],[4,{[l]:OL}],[0,{[l]:C9e}],[0,{[l]:A9e}],[6,{[l]:b9e}],[6,{[l]:x9e}],[0,{[l]:_8e,[XWe]:1}]],3],Yce=[3,h,Tre,0,[Wr],[0],1],xN=[3,h,TC,0,[zA,Rg],[0,[()=>Z9e,{[ne]:1,[v]:qd}]],2],Jce=[3,h,AVe,0,[Wr,MA,$d,nVe,Je,qi,Fre,Ste,ate],[0,()=>Rse,0,1,0,[()=>Zce,0],()=>Eue,()=>Dse,()=>dse],2],Xce=[3,h,CVe,0,[Je,Hd],[0,[()=>ji,{[ne]:1,[v]:lo}]]],Zce=[3,h,bVe,0,[Je,lo,ug],[0,()=>lu,[()=>Xce,0]]],eue=[3,h,Ire,0,[Wr,_We],[0,()=>TN],2],TN=[3,h,DVe,0,[l5e],[1]],tue=[3,h,vC,0,[dre],[0],1],rue=[3,h,vre,0,[pqe],[2]],nue=[3,h,SVe,0,[$e,yVe],[[0,{[l]:Ne}],[0,{[l]:E9e}]]],oue=[3,h,_Ve,0,[w,le,Re,iL,xe,ge,L],[[0,1],[0,1],[0,{[U]:Yt}],[()=>sue,{[Ce]:1,[v]:iL}],[0,{[l]:Te}],[0,{[l]:ke}],[0,{[l]:N}]],2],sue=[3,h,iL,0,[ru,Dte,bg,Wre,tqe,Mre,sre],[1,()=>jie,0,0,0,()=>mue,[()=>rce,0]]],vN=[3,h,qL,0,[kje,lVe],[2,4]],iue=[3,h,Dre,0,[wre,ste],[()=>Wce,()=>voe],1],aue=[3,h,jVe,0,[hqe],[[()=>B9e,{[ne]:1,[v]:Ate}]]],cue=[3,h,VVe,0,[dGe,Je,bL,pGe,$A,Zo,Xre,Kr],[0,0,[()=>bse,0],0,[()=>ux,0],[()=>ax,0],[()=>sKe,0],0],2],uue=[3,h,Ure,0,[zL,Cg],[0,0],2],lue=[3,h,Gre,0,[zL,Cg,KA,zre],[0,0,0,0],4],due=[3,h,Lre,0,[sWe,_te],[1,1]],pue=[3,h,YVe,0,[pre],[[()=>Zue,16]]],fue=[3,h,JVe,0,[w,le,Cte,Ete,PL,FL,Kt,uo,Qt,vre,Lre,L],[[0,1],[0,1],0,0,()=>gN,()=>RN,[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],()=>rue,()=>due,[0,{[l]:N}]],6],mue=[3,h,Mre,0,[PL,Ete,Cte,FL],[()=>gN,0,0,()=>RN],4],gue=[3,h,ZVe,0,[XVe,Jje],[0,[()=>Or,0]],1],DN=[3,h,PC,0,[Rg],[[()=>eKe,{[ne]:1,[v]:qd}]],1],hue=[3,h,tWe,0,[ZUe,zr,Gee],[[()=>gue,0],2,[()=>hoe,0]]],Sue=[3,h,LVe,0,[tee,cee,uee,ti],[[0,{[v]:tee}],[()=>lee,{[v]:cee}],[()=>lee,{[v]:uee}],[4,{[v]:ti}]],4],yue=[3,h,wC,{[v]:wC},[],[]],Eue=[3,h,Fre,0,[kre,Tre],[()=>Rue,()=>Yce]],_ue=[3,h,jL,{[v]:WA},[Vje],[[()=>Or,0]],1],Rue=[3,h,kre,0,[Wr],[0],1],Cue=[3,h,eWe,{[v]:WA},[Qje,zr],[[()=>P9e,0],2],1],bue=[3,h,Bre,{[v]:Nre},[],[]],Aue=[3,h,qre,0,[jee,qee,Hee],[1,1,1]],xue=[3,h,BVe,0,[pte],[[()=>Aue,{[JL]:1}]]],Tue=[3,h,$re,0,[D4e],[()=>vue]],vue=[3,h,kVe,0,[U5e,MA],[0,()=>loe],2],lu=[3,h,lo,0,[le,QL],[0,0],2],ax=[3,h,Zo,0,[QA],[[()=>ji,0]],1],Due=[3,h,fWe,0,[DL,fre],[[()=>pN,{[fne]:[pne,rne]}],0]],Iue=[3,h,Vre,0,[wC,xC],[[()=>yue,{[v]:wC}],[()=>ice,{[v]:xC}]]],wue=[3,h,Kre,0,[ru,Bee],[1,0],2],Pue=[3,h,Hre,0,[aWe,AL,Wt,qi],[[0,{[v]:RWe}],[64,{[ne]:1,[v]:xL}],0,[()=>sx,0]],2],Oue=[3,h,Yre,0,[dte,ru,Kr],[5,1,0]],$ue=[3,h,xWe,0,[w,mC,Ye,ge,L],[[0,1],[()=>goe,{[Ce]:1,[v]:mC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],kue=[3,h,vWe,0,[w,yC,Ye,ge,L],[[0,1],[()=>sae,{[Ce]:1,[v]:yC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Mue=[3,h,IWe,0,[w,EC,Ye,ge,L],[[0,1],[()=>cae,{[Ce]:1,[v]:EC}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:N}]],2],Lue=[3,h,OWe,0,[w,le,nre,Re,xe,L,Ye,ge],[[0,1],[0,1],[()=>Xue,16],[0,{[U]:Yt}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Qe}],[0,{[l]:ke}]],3],Nue=[3,h,$We,0,[$e],[[0,{[l]:Ne}]]],Fue=[3,h,LWe,0,[nte,Kee,Qr,Kt,Qt,un,zr,$e],[[0,{[l]:Tne}],[()=>Ooe,16],[0,{[l]:ln}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Bue=[3,h,NWe,0,[w,ote,le,au,Ka,Yee,Jee,Xee,Zee,GGe,Kt,uo,Qt,ete,EL,tte,xe,L,yte],[[0,1],[0,{[l]:yne}],[0,1],[1,{[U]:XA}],[0,{[U]:Tg}],[0,{[l]:Ene}],[4,{[l]:_ne}],[0,{[l]:Rne}],[4,{[l]:Cne}],[0,{[l]:E8e}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:bne}],[()=>noe,{[l]:Ane}],[0,{[l]:xne}],[0,{[l]:Te}],[0,{[l]:N}],[0,{[l]:Pne}]],5],Uue=[3,h,FWe,0,[Qr,lt,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,Qt,un,zr,$e],[[0,{[l]:ln}],[0,{[l]:lt}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[0,{[l]:_r}],[()=>Or,{[l]:Un}],[2,{[l]:Gn}],[0,{[l]:Ne}]]],Gue=[3,h,BWe,0,[w,le,au,Ka,lg,xd,Ye,ge,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,Kt,uo,Qt,xe,L],[[0,1],[0,1],[1,{[U]:XA}],[0,{[U]:Tg}],[()=>uu,16],[1,{[l]:Ad}],[0,{[l]:Qe}],[0,{[l]:ke}],[0,{[l]:oi}],[0,{[l]:si}],[0,{[l]:ii}],[0,{[l]:ci}],[0,{[l]:ui}],[0,{[l]:li}],[0,{[l]:ai}],[0,{[l]:di}],[0,{[l]:pi}],[0,{[l]:fi}],[0,{[l]:Er}],[()=>rs,{[l]:ts}],[0,{[l]:_r}],[0,{[l]:Te}],[0,{[l]:N}]],4],que=[3,h,OC,0,[jte,Wr],[[0,{[v]:qte}],0]],Hue=[3,h,$C,0,[RL,IL,BL,GL],[()=>lN,()=>fN,()=>AN,[()=>Que,0]]],jue=[3,h,zWe,0,[TVe,IVe,lg,NVe,mte,hte,lL,_d,Rd,Cd,bd,xd,yL,vd,ur,lr,dr,fr,mr,gr,pr,hr,Sr,yr,nu,lt,Xo,ti,co,LL,Ld,Ud,Bd,Gd,GA,_g,$e,HL,Qr,Kt,un,Qt,Kr,VL,Re,zr],[[0,{[JWe]:1,[l]:_9e}],[0,{[l]:T9e}],[()=>uu,16],[1,{[l]:a9e}],[0,{[l]:R8e}],[0,{[l]:C8e}],[0,{[l]:O8e}],[0,{[l]:b8e}],[0,{[l]:A8e}],[0,{[l]:x8e}],[0,{[l]:T8e}],[1,{[l]:Ad}],[0,{[l]:v8e}],[0,{[l]:D8e}],[0,{[l]:$8e}],[0,{[l]:k8e}],[0,{[l]:M8e}],[0,{[l]:N8e}],[0,{[l]:F8e}],[0,{[l]:B8e}],[0,{[l]:L8e}],[0,{[l]:U8e}],[0,{[l]:G8e}],[0,{[l]:q8e}],[2,{[l]:H8e}],[0,{[l]:I8e}],[4,{[l]:w8e}],[0,{[l]:j8e}],[4,{[l]:P8e}],[1,{[l]:z8e}],[128,{[jd]:Yd}],[0,{[l]:K8e}],[0,{[l]:W8e}],[5,{[l]:Q8e}],[1,{[l]:V8e}],[0,{[l]:X8e}],[0,{[l]:J8e}],[0,{[l]:Y8e}],[0,{[l]:e9e}],[0,{[l]:n9e}],[()=>Or,{[l]:t9e}],[0,{[l]:o9e}],[0,{[l]:Z8e}],[1,{[l]:s9e}],[0,{[l]:i9e}],[2,{[l]:r9e}]],2],pe="unit",O9e=[1,h,wee,0,[()=>tx,0]],$9e=[1,h,UUe,0,[()=>poe,{[v]:$ee}]],zue=[1,h,mL,0,[()=>Soe,{[v]:w}]],cx=[1,h,MGe,0,()=>Coe],k9e=[1,h,LGe,0,()=>Aoe],Vue=[1,h,hL,0,[()=>koe,0]],M9e=[1,h,W4e,0,()=>use],L9e=[1,h,cte,0,()=>lse],N9e=[1,h,uqe,0,[0,{[v]:CL}]],F9e=[1,h,Rte,0,()=>Tse],B9e=[1,h,gqe,0,()=>Ise],ux=[1,h,LA,0,[()=>zie,{[v]:vL}]],U9e=[1,h,$te,0,[()=>rx,0]],G9e=[1,h,wte,0,[()=>nx,0]],q9e=[1,h,Dje,0,[0,{[v]:Sqe}]],H9e=[1,h,b6e,0,[()=>dae,0]],Wue=[1,h,X6e,0,[()=>fae,0]],j9e=[1,h,Ute,0,[()=>ox,0]],z9e=[1,h,c5e,0,()=>Kae],V9e=[1,h,C5e,0,()=>Yae],W9e=[1,h,I5e,0,()=>Xae],Kue=[1,h,M5e,0,[()=>Jae,0]],K9e=[1,h,q5e,0,[()=>tce,0]],Q9e=[1,h,T5e,0,()=>nce],Y9e=[1,h,HA,0,()=>sce],J9e=[1,h,Oze,0,()=>ece],X9e=[1,h,iVe,0,[()=>zce,0]],Z9e=[1,h,xVe,0,[()=>Jce,0]],Que=[1,h,GL,0,[()=>iue,{[v]:Dre}]],eKe=[1,h,rWe,0,[()=>hue,0]],ji=[1,h,QA,0,[()=>lu,{[v]:lo}]],tKe=[1,h,jre,0,[()=>Due,{[v]:vL}]],rKe=[1,h,mWe,0,()=>wue],nKe=[1,h,lWe,0,[()=>Pue,0]],oKe=[1,h,gWe,0,()=>Oue],sKe=[1,h,Xre,0,[()=>Hae,{[v]:Hte}]],Yue=[4,h,LUe,0,[Je,lo,ug],[0,()=>lu,[()=>uoe,0]]],Jue=[4,h,s5e,0,[Je,lo,Lee,ug],[0,()=>lu,0,[()=>Wae,0]]],Xue=[4,h,nre,0,[jL],[[()=>Cue,{[v]:WA}]]],Zue=[4,h,QVe,{[dne]:1},[PVe,qre,gre,YGe,_te],[[()=>Vce,0],[()=>xue,0],[()=>uce,0],()=>Doe,()=>xse]],ele=[9,h,HUe,{[M]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>ioe,()=>soe],tle=[9,h,Vee,{[M]:["POST","/{Key+}",200]},()=>Toe,()=>xoe],rle=[9,h,PGe,{[M]:["PUT","/{Key+}?x-id=CopyObject",200]},()=>woe,()=>Ioe],nle=[9,h,fGe,{[M]:["PUT","/",200]},()=>Boe,()=>Foe],ole=[9,h,mGe,{[ve]:"-",[M]:["POST","/?metadataConfiguration",200]},()=>Loe,()=>pe],sle=[9,h,hGe,{[ve]:"-",[M]:["POST","/?metadataTable",200]},()=>Noe,()=>pe],ile=[9,h,wGe,{[M]:["POST","/{Key+}?uploads",200]},()=>Goe,()=>Uoe],ale=[9,h,zGe,{[M]:["GET","/?session",200]},()=>Hoe,()=>qoe],cle=[9,h,XGe,{[M]:["DELETE","/",204]},()=>ise,()=>pe],ule=[9,h,ZGe,{[M]:["DELETE","/?analytics",204]},()=>Koe,()=>pe],lle=[9,h,t4e,{[M]:["DELETE","/?cors",204]},()=>Qoe,()=>pe],dle=[9,h,n4e,{[M]:["DELETE","/?encryption",204]},()=>Yoe,()=>pe],ple=[9,h,a4e,{[M]:["DELETE","/?intelligent-tiering",204]},()=>Joe,()=>pe],fle=[9,h,s4e,{[M]:["DELETE","/?inventory",204]},()=>Xoe,()=>pe],mle=[9,h,u4e,{[M]:["DELETE","/?lifecycle",204]},()=>Zoe,()=>pe],gle=[9,h,d4e,{[M]:["DELETE","/?metadataConfiguration",204]},()=>ese,()=>pe],hle=[9,h,g4e,{[M]:["DELETE","/?metadataTable",204]},()=>tse,()=>pe],Sle=[9,h,m4e,{[M]:["DELETE","/?metrics",204]},()=>rse,()=>pe],yle=[9,h,S4e,{[M]:["DELETE","/?ownershipControls",204]},()=>nse,()=>pe],Ele=[9,h,E4e,{[M]:["DELETE","/?policy",204]},()=>ose,()=>pe],_le=[9,h,b4e,{[M]:["DELETE","/?replication",204]},()=>sse,()=>pe],Rle=[9,h,A4e,{[M]:["DELETE","/?tagging",204]},()=>ase,()=>pe],Cle=[9,h,T4e,{[M]:["DELETE","/?website",204]},()=>cse,()=>pe],ble=[9,h,K4e,{[M]:["DELETE","/{Key+}?x-id=DeleteObject",204]},()=>gse,()=>mse],Ale=[9,h,N4e,{[M]:["DELETE","/{Key+}?annotation",204]},()=>fse,()=>pse],xle=[9,h,Q4e,{[ve]:"-",[M]:["POST","/?delete",200]},()=>Sse,()=>hse],Tle=[9,h,j4e,{[M]:["DELETE","/{Key+}?tagging",204]},()=>Ese,()=>yse],vle=[9,h,Y4e,{[M]:["DELETE","/?publicAccessBlock",204]},()=>_se,()=>pe],Dle=[9,h,Eqe,{[M]:["GET","/?abac",200]},()=>Pse,()=>wse],Ile=[9,h,_qe,{[M]:["GET","/?accelerate",200]},()=>$se,()=>Ose],wle=[9,h,wqe,{[M]:["GET","/?acl",200]},()=>Mse,()=>kse],Ple=[9,h,xqe,{[M]:["GET","/?analytics&x-id=GetBucketAnalyticsConfiguration",200]},()=>Nse,()=>Lse],Ole=[9,h,Pqe,{[M]:["GET","/?cors",200]},()=>Bse,()=>Fse],$le=[9,h,kqe,{[M]:["GET","/?encryption",200]},()=>Gse,()=>Use],kle=[9,h,Uqe,{[M]:["GET","/?intelligent-tiering&x-id=GetBucketIntelligentTieringConfiguration",200]},()=>Hse,()=>qse],Mle=[9,h,Nqe,{[M]:["GET","/?inventory&x-id=GetBucketInventoryConfiguration",200]},()=>zse,()=>jse],Lle=[9,h,jqe,{[M]:["GET","/?lifecycle",200]},()=>Wse,()=>Vse],Nle=[9,h,Hqe,{[M]:["GET","/?location",200]},()=>Qse,()=>Kse],Fle=[9,h,Jqe,{[M]:["GET","/?logging",200]},()=>Jse,()=>Yse],Ble=[9,h,Xqe,{[M]:["GET","/?metadataConfiguration",200]},()=>Zse,()=>Xse],Ule=[9,h,oHe,{[M]:["GET","/?metadataTable",200]},()=>rie,()=>tie],Gle=[9,h,nHe,{[M]:["GET","/?metrics&x-id=GetBucketMetricsConfiguration",200]},()=>sie,()=>oie],qle=[9,h,aHe,{[M]:["GET","/?notification",200]},()=>iie,()=>SN],Hle=[9,h,uHe,{[M]:["GET","/?ownershipControls",200]},()=>cie,()=>aie],jle=[9,h,pHe,{[M]:["GET","/?policy",200]},()=>lie,()=>uie],zle=[9,h,gHe,{[M]:["GET","/?policyStatus",200]},()=>pie,()=>die],Vle=[9,h,yHe,{[M]:["GET","/?replication",200]},()=>mie,()=>fie],Wle=[9,h,_He,{[M]:["GET","/?requestPayment",200]},()=>hie,()=>gie],Kle=[9,h,AHe,{[M]:["GET","/?tagging",200]},()=>yie,()=>Sie],Qle=[9,h,vHe,{[M]:["GET","/?versioning",200]},()=>_ie,()=>Eie],Yle=[9,h,wHe,{[M]:["GET","/?website",200]},()=>Cie,()=>Rie],Jle=[9,h,$He,{[ve]:"-",[M]:["GET","/{Key+}?x-id=GetObject",200]},()=>Mie,()=>kie],Xle=[9,h,kHe,{[M]:["GET","/{Key+}?acl",200]},()=>Aie,()=>bie],Zle=[9,h,HHe,{[ve]:"-",[M]:["GET","/{Key+}?annotation&x-id=GetObjectAnnotation",200]},()=>Tie,()=>xie],ede=[9,h,jHe,{[M]:["GET","/{Key+}?attributes",200]},()=>Iie,()=>vie],tde=[9,h,KHe,{[M]:["GET","/{Key+}?legal-hold",200]},()=>Pie,()=>wie],rde=[9,h,zHe,{[M]:["GET","/?object-lock",200]},()=>$ie,()=>Oie],nde=[9,h,tje,{[M]:["GET","/{Key+}?retention",200]},()=>Nie,()=>Lie],ode=[9,h,rje,{[M]:["GET","/{Key+}?tagging",200]},()=>Bie,()=>Fie],sde=[9,h,aje,{[M]:["GET","/{Key+}?torrent",200]},()=>Gie,()=>Uie],ide=[9,h,cje,{[M]:["GET","/?publicAccessBlock",200]},()=>Hie,()=>qie],ade=[9,h,dje,{[M]:["HEAD","/",200]},()=>Wie,()=>Vie],cde=[9,h,gje,{[M]:["HEAD","/{Key+}",200]},()=>Qie,()=>Kie],ude=[9,h,r6e,{[M]:["GET","/?analytics&x-id=ListBucketAnalyticsConfigurations",200]},()=>Sae,()=>hae],lde=[9,h,u6e,{[M]:["GET","/?intelligent-tiering&x-id=ListBucketIntelligentTieringConfigurations",200]},()=>Eae,()=>yae],dde=[9,h,i6e,{[M]:["GET","/?inventory&x-id=ListBucketInventoryConfigurations",200]},()=>Rae,()=>_ae],pde=[9,h,p6e,{[M]:["GET","/?metrics&x-id=ListBucketMetricsConfigurations",200]},()=>bae,()=>Cae],fde=[9,h,t6e,{[M]:["GET","/?x-id=ListBuckets",200]},()=>xae,()=>Aae],mde=[9,h,S6e,{[M]:["GET","/?x-id=ListDirectoryBuckets",200]},()=>vae,()=>Tae],gde=[9,h,I6e,{[M]:["GET","/?uploads",200]},()=>Iae,()=>Dae],hde=[9,h,k6e,{[M]:["GET","/{Key+}?annotation&x-id=ListObjectAnnotations",200]},()=>Pae,()=>wae],Sde=[9,h,$6e,{[M]:["GET","/",200]},()=>$ae,()=>Oae],yde=[9,h,B6e,{[M]:["GET","/?list-type=2",200]},()=>Mae,()=>kae],Ede=[9,h,j6e,{[M]:["GET","/?versions",200]},()=>Nae,()=>Lae],_de=[9,h,z6e,{[M]:["GET","/{Key+}?x-id=ListParts",200]},()=>Bae,()=>Fae],Rde=[9,h,j5e,{[ve]:"-",[M]:["PUT","/?abac",200]},()=>lce,()=>pe],Cde=[9,h,z5e,{[ve]:"-",[M]:["PUT","/?accelerate",200]},()=>dce,()=>pe],bde=[9,h,J5e,{[ve]:"-",[M]:["PUT","/?acl",200]},()=>pce,()=>pe],Ade=[9,h,K5e,{[M]:["PUT","/?analytics",200]},()=>fce,()=>pe],xde=[9,h,X5e,{[ve]:"-",[M]:["PUT","/?cors",200]},()=>mce,()=>pe],Tde=[9,h,eze,{[ve]:"-",[M]:["PUT","/?encryption",200]},()=>gce,()=>pe],vde=[9,h,oze,{[M]:["PUT","/?intelligent-tiering",200]},()=>hce,()=>pe],Dde=[9,h,rze,{[M]:["PUT","/?inventory",200]},()=>Sce,()=>pe],Ide=[9,h,aze,{[ve]:"-",[M]:["PUT","/?lifecycle",200]},()=>Ece,()=>yce],wde=[9,h,ize,{[ve]:"-",[M]:["PUT","/?logging",200]},()=>_ce,()=>pe],Pde=[9,h,dze,{[M]:["PUT","/?metrics",200]},()=>Rce,()=>pe],Ode=[9,h,fze,{[M]:["PUT","/?notification",200]},()=>Cce,()=>pe],$de=[9,h,gze,{[ve]:"-",[M]:["PUT","/?ownershipControls",200]},()=>bce,()=>pe],kde=[9,h,Sze,{[ve]:"-",[M]:["PUT","/?policy",200]},()=>Ace,()=>pe],Mde=[9,h,Eze,{[ve]:"-",[M]:["PUT","/?replication",200]},()=>xce,()=>pe],Lde=[9,h,_ze,{[ve]:"-",[M]:["PUT","/?requestPayment",200]},()=>Tce,()=>pe],Nde=[9,h,bze,{[ve]:"-",[M]:["PUT","/?tagging",200]},()=>vce,()=>pe],Fde=[9,h,xze,{[ve]:"-",[M]:["PUT","/?versioning",200]},()=>Dce,()=>pe],Bde=[9,h,vze,{[ve]:"-",[M]:["PUT","/?website",200]},()=>Ice,()=>pe],Ude=[9,h,$ze,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Bce,()=>Fce],Gde=[9,h,kze,{[ve]:"-",[M]:["PUT","/{Key+}?acl",200]},()=>Pce,()=>wce],qde=[9,h,Bze,{[ve]:"-",[M]:["PUT","/{Key+}?annotation",200]},()=>$ce,()=>Oce],Hde=[9,h,Hze,{[ve]:"-",[M]:["PUT","/{Key+}?legal-hold",200]},()=>Mce,()=>kce],jde=[9,h,Uze,{[ve]:"-",[M]:["PUT","/?object-lock",200]},()=>Nce,()=>Lce],zde=[9,h,Yze,{[ve]:"-",[M]:["PUT","/{Key+}?retention",200]},()=>Gce,()=>Uce],Vde=[9,h,Jze,{[ve]:"-",[M]:["PUT","/{Key+}?tagging",200]},()=>Hce,()=>qce],Wde=[9,h,eVe,{[ve]:"-",[M]:["PUT","/?publicAccessBlock",200]},()=>jce,()=>pe],Kde=[9,h,gVe,{[M]:["PUT","/{Key+}?renameObject",200]},()=>Qce,()=>Kce],Qde=[9,h,RVe,{[ve]:"-",[M]:["POST","/{Key+}?restore",200]},()=>oue,()=>nue],Yde=[9,h,KVe,{[M]:["POST","/{Key+}?select&select-type=2",200]},()=>fue,()=>pue],Jde=[9,h,AWe,{[ve]:"-",[M]:["PUT","/?metadataAnnotationTable",200]},()=>$ue,()=>pe],Xde=[9,h,TWe,{[ve]:"-",[M]:["PUT","/?metadataInventoryTable",200]},()=>kue,()=>pe],Zde=[9,h,DWe,{[ve]:"-",[M]:["PUT","/?metadataJournalTable",200]},()=>Mue,()=>pe],epe=[9,h,PWe,{[ve]:"-",[M]:["PUT","/{Key+}?encryption",200]},()=>Lue,()=>Nue],tpe=[9,h,kWe,{[ve]:"-",[M]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>Gue,()=>Uue],rpe=[9,h,MWe,{[M]:["PUT","/{Key+}?x-id=UploadPartCopy",200]},()=>Bue,()=>Fue],npe=[9,h,jWe,{[QWe]:["{RequestRoute}."],[M]:["POST","/WriteGetObjectResponse",200]},()=>jue,()=>pe],tg=class extends k(vee,ce,"CreateSession",ale){},iKe="3.1151.0",aKe={version:iKe},cKe=t=>({apiVersion:"2006-03-01",base64Decoder:t?.base64Decoder??Z2e,base64Encoder:t?.base64Encoder??X2e,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Aee,extensions:t?.extensions??[],getAwsChunkedEncodingStream:t?.getAwsChunkedEncodingStream??J2e,httpAuthSchemeProvider:t?.httpAuthSchemeProvider??mUe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new U2e},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new G2e}],logger:t?.logger??new i2e,md5:t?.md5??V2e,protocol:t?.protocol??VBe,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:roe,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:t?.sdkStreamMixin??Y2e,serviceId:t?.serviceId??"S3",sha1:t?.sha1??nUe,sha256:t?.sha256??z2e,signerConstructor:t?.signerConstructor??hee,signingEscapePath:t?.signingEscapePath??!1,urlParser:t?.urlParser??D2e,useArnRegion:t?.useArnRegion??void 0,utf8Decoder:t?.utf8Decoder??Q2e,utf8Encoder:t?.utf8Encoder??K2e}),uKe=t=>{a2e(process.version);let e=f2e(t),r=()=>e().then(c2e),n=cKe(t);$Be(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??oo(H2e,o),bodyLengthChecker:t?.bodyLengthChecker??eUe,credentialDefaultProvider:t?.credentialDefaultProvider??j2e,defaultUserAgentProvider:t?.defaultUserAgentProvider??kBe({serviceId:n.serviceId,clientVersion:aKe.version}),disableS3ExpressSessionAuth:t?.disableS3ExpressSessionAuth??oo(KBe,o),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??T2e,maxAttempts:t?.maxAttempts??oo(k2e,t),region:t?.region??oo(h2e,{...S2e,...o}),requestChecksumCalculation:t?.requestChecksumCalculation??oo(wBe,o),requestHandler:rUe.create(t?.requestHandler??r),responseChecksumValidation:t?.responseChecksumValidation??oo(IBe,o),retryMode:t?.retryMode??oo({...$2e,default:async()=>(await r()).retryMode||O2e},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??oo(q2e,o),streamCollector:t?.streamCollector??tUe,streamHasher:t?.streamHasher??W2e,useArnRegion:t?.useArnRegion??oo(WBe,o),useDualstackEndpoint:t?.useDualstackEndpoint??oo(g2e,o),useFipsEndpoint:t?.useFipsEndpoint??oo(m2e,o),userAgentAppId:t?.userAgentAppId??oo(MBe,o)}},lKe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},dKe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),pKe=(t,e)=>{let r=Object.assign(LBe(t),u2e(t),I2e(t),lKe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,NBe(r),l2e(r),w2e(r),dKe(r))},Bi=class extends mee{config;constructor(...[e]){let r=uKe(e||{});super(r),this.initConfig=r;let n=hUe(r),o=FBe(n),s=PBe(o),i=M2e(s),a=y2e(i),c=BBe(a),u=x2e(c),f=v2e(u),m=gUe(f),y=QBe(m,{session:[()=>this,tg]}),_=pKe(y,e?.extensions||[]);this.config=_,this.middlewareStack.use(N2e(this.config)),this.middlewareStack.use(UBe(this.config)),this.middlewareStack.use(L2e(this.config)),this.middlewareStack.use(P2e(this.config)),this.middlewareStack.use(GBe(this.config)),this.middlewareStack.use(qBe(this.config)),this.middlewareStack.use(HBe(this.config)),this.middlewareStack.use(t2e(this.config,{httpAuthSchemeParametersProvider:dUe,identityProviderConfigProvider:async C=>new r2e({"aws.auth#sigv4":C.credentials,"aws.auth#sigv4a":C.credentials})})),this.middlewareStack.use(n2e(this.config)),this.middlewareStack.use(YBe(this.config)),this.middlewareStack.use(JBe(this.config)),this.middlewareStack.use(XBe(this.config)),this.middlewareStack.use(ZBe(this.config)),this.middlewareStack.use(e2e(this.config))}destroy(){super.destroy()}},kC=class extends k(An,ce,"AbortMultipartUpload",ele){},MC=class extends k(An,yd,"CompleteMultipartUpload",tle){},LC=class extends k(yUe,yd,"CopyObject",rle){},NC=class extends k(EUe,bUe,"CreateBucket",nle){},FC=class extends k(z,Pr,"CreateBucketMetadataConfiguration",ole){},BC=class extends k(z,Pr,"CreateBucketMetadataTableConfiguration",sle){},UC=class extends k(An,yd,"CreateMultipartUpload",ile){},GC=class extends k(z,at,"DeleteBucketAnalyticsConfiguration",ule){},qC=class extends k(z,at,"DeleteBucket",cle){},HC=class extends k(z,at,"DeleteBucketCors",lle){},jC=class extends k(z,at,"DeleteBucketEncryption",dle){},zC=class extends k(z,at,"DeleteBucketIntelligentTieringConfiguration",ple){},VC=class extends k(z,at,"DeleteBucketInventoryConfiguration",fle){},WC=class extends k(z,at,"DeleteBucketLifecycle",mle){},KC=class extends k(z,at,"DeleteBucketMetadataConfiguration",gle){},QC=class extends k(z,at,"DeleteBucketMetadataTableConfiguration",hle){},YC=class extends k(z,at,"DeleteBucketMetricsConfiguration",Sle){},JC=class extends k(z,at,"DeleteBucketOwnershipControls",yle){},XC=class extends k(z,at,"DeleteBucketPolicy",Ele){},ZC=class extends k(z,at,"DeleteBucketReplication",_le){},eb=class extends k(z,at,"DeleteBucketTagging",Rle){},tb=class extends k(z,at,"DeleteBucketWebsite",Cle){},rb=class extends k($t,ce,"DeleteObjectAnnotation",Ale){},nb=class extends k(An,ce,"DeleteObject",ble){},ob=class extends k($t,za,"DeleteObjects",xle){},sb=class extends k($t,ce,"DeleteObjectTagging",Tle){},ib=class extends k(z,at,"DeletePublicAccessBlock",vle){},ab=class extends k($t,ce,"GetBucketAbac",Dle){},cb=class extends k(z,ce,"GetBucketAccelerateConfiguration",Ile){},ub=class extends k(z,ce,"GetBucketAcl",wle){},lb=class extends k(z,ce,"GetBucketAnalyticsConfiguration",Ple){},db=class extends k(z,ce,"GetBucketCors",Ole){},pb=class extends k(z,ce,"GetBucketEncryption",$le){},fb=class extends k(z,ce,"GetBucketIntelligentTieringConfiguration",kle){},mb=class extends k(z,ce,"GetBucketInventoryConfiguration",Mle){},gb=class extends k(z,ce,"GetBucketLifecycleConfiguration",Lle){},hb=class extends k(z,ce,"GetBucketLocation",Nle){},Sb=class extends k(z,ce,"GetBucketLogging",Fle){},yb=class extends k(z,ce,"GetBucketMetadataConfiguration",Ble){},Eb=class extends k(z,ce,"GetBucketMetadataTableConfiguration",Ule){},_b=class extends k(z,ce,"GetBucketMetricsConfiguration",Gle){},Rb=class extends k(z,ce,"GetBucketNotificationConfiguration",qle){},Cb=class extends k(z,ce,"GetBucketOwnershipControls",Hle){},bb=class extends k(z,at,"GetBucketPolicy",jle){},Ab=class extends k(z,ce,"GetBucketPolicyStatus",zle){},xb=class extends k(z,ce,"GetBucketReplication",Vle){},Tb=class extends k(z,ce,"GetBucketRequestPayment",Wle){},vb=class extends k(z,ce,"GetBucketTagging",Kle){},Db=class extends k(z,ce,"GetBucketVersioning",Qle){},Ib=class extends k(z,ce,"GetBucketWebsite",Yle){},wb=class extends k(An,ce,"GetObjectAcl",Xle){},Pb=class extends k(An,AUe,"GetObjectAnnotation",Zle){},Ob=class extends k($t,yd,"GetObjectAttributes",ede){},$b=class extends k(An,xUe,"GetObject",Jle){},kb=class extends k($t,ce,"GetObjectLegalHold",tde){},Mb=class extends k($t,ce,"GetObjectLockConfiguration",rde){},Lb=class extends k($t,ce,"GetObjectRetention",nde){},Nb=class extends k($t,ce,"GetObjectTagging",ode){},Fb=class extends k($t,at,"GetObjectTorrent",sde){},Bb=class extends k(z,ce,"GetPublicAccessBlock",ide){},gd=class extends k($t,ce,"HeadBucket",ade){},hd=class extends k(An,TUe,"HeadObject",cde){},Ub=class extends k(z,ce,"ListBucketAnalyticsConfigurations",ude){},Gb=class extends k(z,ce,"ListBucketIntelligentTieringConfigurations",lde){},qb=class extends k(z,ce,"ListBucketInventoryConfigurations",dde){},Hb=class extends k(z,ce,"ListBucketMetricsConfigurations",pde){},rg=class extends k(_Ue,ce,"ListBuckets",fde){},ng=class extends k(RUe,ce,"ListDirectoryBuckets",mde){},jb=class extends k(OA,ce,"ListMultipartUploads",gde){},og=class extends k($t,ce,"ListObjectAnnotations",hde){},zb=class extends k(OA,ce,"ListObjects",Sde){},sg=class extends k(OA,ce,"ListObjectsV2",yde){},Vb=class extends k(OA,ce,"ListObjectVersions",Ede){},ig=class extends k(An,yd,"ListParts",_de){},Wb=class extends k($t,Dee,"PutBucketAbac",Rde){},Kb=class extends k(z,Dee,"PutBucketAccelerateConfiguration",Cde){},Qb=class extends k(z,Pr,"PutBucketAcl",bde){},Yb=class extends k(z,at,"PutBucketAnalyticsConfiguration",Ade){},Jb=class extends k(z,Pr,"PutBucketCors",xde){},Xb=class extends k(z,Pr,"PutBucketEncryption",Tde){},Zb=class extends k(z,at,"PutBucketIntelligentTieringConfiguration",vde){},eA=class extends k(z,at,"PutBucketInventoryConfiguration",Dde){},tA=class extends k(z,za,"PutBucketLifecycleConfiguration",Ide){},rA=class extends k(z,Pr,"PutBucketLogging",wde){},nA=class extends k(z,at,"PutBucketMetricsConfiguration",Pde){},oA=class extends k(z,at,"PutBucketNotificationConfiguration",Ode){},sA=class extends k(z,Pr,"PutBucketOwnershipControls",$de){},iA=class extends k(z,Pr,"PutBucketPolicy",kde){},aA=class extends k(z,Pr,"PutBucketReplication",Mde){},cA=class extends k(z,Pr,"PutBucketRequestPayment",Lde){},uA=class extends k(z,Pr,"PutBucketTagging",Nde){},lA=class extends k(z,Pr,"PutBucketVersioning",Fde){},dA=class extends k(z,Pr,"PutBucketWebsite",Bde){},pA=class extends k(An,za,"PutObjectAcl",Gde){},fA=class extends k(An,Iee,"PutObjectAnnotation",qde){},mA=class extends k(An,vUe,"PutObject",Ude){},gA=class extends k($t,za,"PutObjectLegalHold",Hde){},hA=class extends k($t,za,"PutObjectLockConfiguration",jde){},SA=class extends k($t,za,"PutObjectRetention",zde){},yA=class extends k($t,za,"PutObjectTagging",Vde){},EA=class extends k(z,Pr,"PutPublicAccessBlock",Wde){},_A=class extends k(An,ce,"RenameObject",Kde){},RA=class extends k($t,Iee,"RestoreObject",Qde){},CA=class extends k($t,DUe,"SelectObjectContent",Yde){},bA=class extends k(z,Pr,"UpdateBucketMetadataAnnotationTableConfiguration",Jde){},AA=class extends k(z,Pr,"UpdateBucketMetadataInventoryTableConfiguration",Xde){},xA=class extends k(z,Pr,"UpdateBucketMetadataJournalTableConfiguration",Zde){},TA=class extends k($t,za,"UpdateObjectEncryption",epe){},vA=class extends k(An,IUe,"UploadPart",tpe){},DA=class extends k(vee,yd,"UploadPartCopy",rpe){},IA=class extends k(CUe,at,"WriteGetObjectResponse",npe){},ope=ag(Bi,rg,"ContinuationToken","ContinuationToken","MaxBuckets"),spe=ag(Bi,ng,"ContinuationToken","ContinuationToken","MaxDirectoryBuckets"),ipe=ag(Bi,og,"ContinuationToken","NextContinuationToken","MaxAnnotationResults"),ape=ag(Bi,sg,"ContinuationToken","NextContinuationToken","MaxKeys"),cpe=ag(Bi,ig,"PartNumberMarker","NextPartNumberMarker","MaxParts"),upe=async(t,e)=>{let r;try{return r=await t.send(new gd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},fKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,upe),lpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,upe);return PA(n)},dpe=async(t,e)=>{let r;try{r=await t.send(new gd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},mKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,dpe),ppe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,dpe);return PA(n)},fpe=async(t,e)=>{let r;try{return r=await t.send(new hd(e)),{state:ei.SUCCESS,reason:r}}catch(n){if(r=n,n.name==="NotFound")return{state:ei.RETRY,reason:r}}return{state:ei.RETRY,reason:r}},gKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,fpe),mpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,fpe);return PA(n)},gpe=async(t,e)=>{let r;try{r=await t.send(new hd(e))}catch(n){if(r=n,n.name==="NotFound")return{state:ei.SUCCESS,reason:r}}return{state:ei.RETRY,reason:r}},hKe=async(t,e)=>ja({...{minDelay:5,maxDelay:120},...t},e,gpe),hpe=async(t,e)=>{let n=await ja({...{minDelay:5,maxDelay:120},...t},e,gpe);return PA(n)},SKe={AbortMultipartUploadCommand:kC,CompleteMultipartUploadCommand:MC,CopyObjectCommand:LC,CreateBucketCommand:NC,CreateBucketMetadataConfigurationCommand:FC,CreateBucketMetadataTableConfigurationCommand:BC,CreateMultipartUploadCommand:UC,CreateSessionCommand:tg,DeleteBucketCommand:qC,DeleteBucketAnalyticsConfigurationCommand:GC,DeleteBucketCorsCommand:HC,DeleteBucketEncryptionCommand:jC,DeleteBucketIntelligentTieringConfigurationCommand:zC,DeleteBucketInventoryConfigurationCommand:VC,DeleteBucketLifecycleCommand:WC,DeleteBucketMetadataConfigurationCommand:KC,DeleteBucketMetadataTableConfigurationCommand:QC,DeleteBucketMetricsConfigurationCommand:YC,DeleteBucketOwnershipControlsCommand:JC,DeleteBucketPolicyCommand:XC,DeleteBucketReplicationCommand:ZC,DeleteBucketTaggingCommand:eb,DeleteBucketWebsiteCommand:tb,DeleteObjectCommand:nb,DeleteObjectAnnotationCommand:rb,DeleteObjectsCommand:ob,DeleteObjectTaggingCommand:sb,DeletePublicAccessBlockCommand:ib,GetBucketAbacCommand:ab,GetBucketAccelerateConfigurationCommand:cb,GetBucketAclCommand:ub,GetBucketAnalyticsConfigurationCommand:lb,GetBucketCorsCommand:db,GetBucketEncryptionCommand:pb,GetBucketIntelligentTieringConfigurationCommand:fb,GetBucketInventoryConfigurationCommand:mb,GetBucketLifecycleConfigurationCommand:gb,GetBucketLocationCommand:hb,GetBucketLoggingCommand:Sb,GetBucketMetadataConfigurationCommand:yb,GetBucketMetadataTableConfigurationCommand:Eb,GetBucketMetricsConfigurationCommand:_b,GetBucketNotificationConfigurationCommand:Rb,GetBucketOwnershipControlsCommand:Cb,GetBucketPolicyCommand:bb,GetBucketPolicyStatusCommand:Ab,GetBucketReplicationCommand:xb,GetBucketRequestPaymentCommand:Tb,GetBucketTaggingCommand:vb,GetBucketVersioningCommand:Db,GetBucketWebsiteCommand:Ib,GetObjectCommand:$b,GetObjectAclCommand:wb,GetObjectAnnotationCommand:Pb,GetObjectAttributesCommand:Ob,GetObjectLegalHoldCommand:kb,GetObjectLockConfigurationCommand:Mb,GetObjectRetentionCommand:Lb,GetObjectTaggingCommand:Nb,GetObjectTorrentCommand:Fb,GetPublicAccessBlockCommand:Bb,HeadBucketCommand:gd,HeadObjectCommand:hd,ListBucketAnalyticsConfigurationsCommand:Ub,ListBucketIntelligentTieringConfigurationsCommand:Gb,ListBucketInventoryConfigurationsCommand:qb,ListBucketMetricsConfigurationsCommand:Hb,ListBucketsCommand:rg,ListDirectoryBucketsCommand:ng,ListMultipartUploadsCommand:jb,ListObjectAnnotationsCommand:og,ListObjectsCommand:zb,ListObjectsV2Command:sg,ListObjectVersionsCommand:Vb,ListPartsCommand:ig,PutBucketAbacCommand:Wb,PutBucketAccelerateConfigurationCommand:Kb,PutBucketAclCommand:Qb,PutBucketAnalyticsConfigurationCommand:Yb,PutBucketCorsCommand:Jb,PutBucketEncryptionCommand:Xb,PutBucketIntelligentTieringConfigurationCommand:Zb,PutBucketInventoryConfigurationCommand:eA,PutBucketLifecycleConfigurationCommand:tA,PutBucketLoggingCommand:rA,PutBucketMetricsConfigurationCommand:nA,PutBucketNotificationConfigurationCommand:oA,PutBucketOwnershipControlsCommand:sA,PutBucketPolicyCommand:iA,PutBucketReplicationCommand:aA,PutBucketRequestPaymentCommand:cA,PutBucketTaggingCommand:uA,PutBucketVersioningCommand:lA,PutBucketWebsiteCommand:dA,PutObjectCommand:mA,PutObjectAclCommand:pA,PutObjectAnnotationCommand:fA,PutObjectLegalHoldCommand:gA,PutObjectLockConfigurationCommand:hA,PutObjectRetentionCommand:SA,PutObjectTaggingCommand:yA,PutPublicAccessBlockCommand:EA,RenameObjectCommand:_A,RestoreObjectCommand:RA,SelectObjectContentCommand:CA,UpdateBucketMetadataAnnotationTableConfigurationCommand:bA,UpdateBucketMetadataInventoryTableConfigurationCommand:AA,UpdateBucketMetadataJournalTableConfigurationCommand:xA,UpdateObjectEncryptionCommand:TA,UploadPartCommand:vA,UploadPartCopyCommand:DA,WriteGetObjectResponseCommand:IA},yKe={paginateListBuckets:ope,paginateListDirectoryBuckets:spe,paginateListObjectAnnotations:ipe,paginateListObjectsV2:ape,paginateListParts:cpe},EKe={waitUntilBucketExists:lpe,waitUntilBucketNotExists:ppe,waitUntilObjectExists:mpe,waitUntilObjectNotExists:hpe},wA=class extends Bi{};d2e(SKe,wA,{paginators:yKe,waiters:EKe});var _Ke={Disabled:"Disabled",Enabled:"Enabled"},RKe={requester:"requester"},CKe={requester:"requester"},bKe={Enabled:"Enabled",Suspended:"Suspended"},AKe={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"},xKe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"},TKe={Destination:"Destination"},vKe={COMPOSITE:"COMPOSITE",FULL_OBJECT:"FULL_OBJECT"},DKe={AES256:"AES256",aws_backup:"aws:backup",aws_fsx:"aws:fsx",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"},IKe={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},wKe={COPY:"COPY",EXCLUDE:"EXCLUDE"},PKe={CRC32:"CRC32",CRC32C:"CRC32C",CRC64NVME:"CRC64NVME",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA512:"SHA512",XXHASH128:"XXHASH128",XXHASH3:"XXHASH3",XXHASH64:"XXHASH64"},OKe={COPY:"COPY",REPLACE:"REPLACE"},$Ke={OFF:"OFF",ON:"ON"},kKe={OFF:"OFF",ON:"ON"},MKe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},LKe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},NKe={COPY:"COPY",REPLACE:"REPLACE"},FKe={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"},BKe={ACCOUNT_REGIONAL:"account-regional",GLOBAL:"global"},UKe={SingleAvailabilityZone:"SingleAvailabilityZone",SingleLocalZone:"SingleLocalZone"},GKe={Directory:"Directory"},qKe={AvailabilityZone:"AvailabilityZone",LocalZone:"LocalZone"},HKe={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_east_2:"ap-east-2",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_south_2:"ap-south-2",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ap_southeast_4:"ap-southeast-4",ap_southeast_5:"ap-southeast-5",ap_southeast_6:"ap-southeast-6",ap_southeast_7:"ap-southeast-7",ca_central_1:"ca-central-1",ca_west_1:"ca-west-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_central_2:"eu-central-2",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_south_2:"eu-south-2",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",il_central_1:"il-central-1",me_central_1:"me-central-1",me_south_1:"me-south-1",mx_central_1:"mx-central-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"},jKe={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"},zKe={DISABLED:"DISABLED",ENABLED:"ENABLED"},VKe={AES256:"AES256",aws_kms:"aws:kms"},WKe={DISABLED:"DISABLED",ENABLED:"ENABLED"},KKe={DISABLED:"DISABLED",ENABLED:"ENABLED"},QKe={ReadOnly:"ReadOnly",ReadWrite:"ReadWrite"},YKe={CSV:"CSV"},JKe={V_1:"V_1"},XKe={NONE:"NONE",SSE_C:"SSE-C"},ZKe={Disabled:"Disabled",Enabled:"Enabled"},eQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},tQe={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"},rQe={All:"All",Current:"Current"},nQe={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IntelligentTieringReferenceDate:"IntelligentTieringReferenceDate",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",LifecycleExpirationDate:"LifecycleExpirationDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockEventHoldDuration:"ObjectLockEventHoldDuration",ObjectLockEventHoldStatus:"ObjectLockEventHoldStatus",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"},oQe={Daily:"Daily",Weekly:"Weekly"},sQe={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"},iQe={Disabled:"Disabled",Enabled:"Enabled"},aQe={all_storage_classes_128K:"all_storage_classes_128K",varies_by_storage_class:"varies_by_storage_class"},cQe={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"},uQe={DeliveryTime:"DeliveryTime",EventTime:"EventTime"},lQe={aws:"aws",customer:"customer"},dQe={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectAnnotation_:"s3:ObjectAnnotation:*",s3_ObjectAnnotation_Delete:"s3:ObjectAnnotation:Delete",s3_ObjectAnnotation_Put:"s3:ObjectAnnotation:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectRetention_Put:"s3:ObjectRetention:Put",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"},pQe={prefix:"prefix",suffix:"suffix"},fQe={Disabled:"Disabled",Enabled:"Enabled"},mQe={Disabled:"Disabled",Enabled:"Enabled"},gQe={Disabled:"Disabled",Enabled:"Enabled"},hQe={Disabled:"Disabled",Enabled:"Enabled"},SQe={Disabled:"Disabled",Enabled:"Enabled"},yQe={Disabled:"Disabled",Enabled:"Enabled"},EQe={Disabled:"Disabled",Enabled:"Enabled"},_Qe={BucketOwner:"BucketOwner",Requester:"Requester"},RQe={Disabled:"Disabled",Enabled:"Enabled"},CQe={Enabled:"Enabled",Suspended:"Suspended"},bQe={http:"http",https:"https"},AQe={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"},xQe={ENABLED:"ENABLED"},TQe={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"},vQe={Enabled:"Enabled"},DQe={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"},IQe={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"},wQe={url:"url"},PQe={AWS_BACKUP_LOW_COST_WARM:"AWS_BACKUP_LOW_COST_WARM",AWS_BACKUP_WARM:"AWS_BACKUP_WARM",DEEP_ARCHIVE:"DEEP_ARCHIVE",EXPRESS_ONEZONE:"EXPRESS_ONEZONE",FSX_ONTAP:"FSX_ONTAP",FSX_OPENZFS:"FSX_OPENZFS",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"},OQe={RESTORE_STATUS:"RestoreStatus"},$Qe={STANDARD:"STANDARD"},kQe={Disabled:"Disabled",Enabled:"Enabled"},MQe={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"},LQe={SQL:"SQL"},NQe={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"},FQe={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"},BQe={DOCUMENT:"DOCUMENT",LINES:"LINES"},UQe={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"},GQe={SELECT:"SELECT"};d.AbacStatus$=cN;d.AbortIncompleteMultipartUpload$=ooe;d.AbortMultipartUpload$=ele;d.AbortMultipartUploadCommand=kC;d.AbortMultipartUploadOutput$=soe;d.AbortMultipartUploadRequest$=ioe;d.AccelerateConfiguration$=aoe;d.AccessControlPolicy$=uN;d.AccessControlTranslation$=coe;d.AccessDenied=VR;d.AccessDenied$=Mne;d.AnalyticsAndOperator$=uoe;d.AnalyticsConfiguration$=tx;d.AnalyticsExportDestination$=loe;d.AnalyticsFilter$=Yue;d.AnalyticsS3BucketDestination$=doe;d.AnalyticsS3ExportFileFormat=YKe;d.AnnotationConfigurationState=zKe;d.AnnotationDirective=wKe;d.AnnotationEntry$=poe;d.AnnotationLimitExceeded=iC;d.AnnotationLimitExceeded$=Lne;d.AnnotationNameTooLong=aC;d.AnnotationNameTooLong$=Nne;d.AnnotationTableConfiguration$=foe;d.AnnotationTableConfigurationResult$=moe;d.AnnotationTableConfigurationUpdates$=goe;d.ArchiveStatus=IQe;d.BlockedEncryptionTypes$=hoe;d.Bucket$=Soe;d.BucketAbacStatus=_Ke;d.BucketAccelerateStatus=bKe;d.BucketAlreadyExists=KR;d.BucketAlreadyExists$=Fne;d.BucketAlreadyOwnedByYou=QR;d.BucketAlreadyOwnedByYou$=Bne;d.BucketCannedACL=FKe;d.BucketInfo$=yoe;d.BucketLifecycleConfiguration$=Eoe;d.BucketLocationConstraint=HKe;d.BucketLoggingStatus$=_oe;d.BucketLogsPermission=cQe;d.BucketNamespace=BKe;d.BucketType=GKe;d.BucketVersioningStatus=CQe;d.CORSConfiguration$=$oe;d.CORSRule$=koe;d.CSVInput$=joe;d.CSVOutput$=zoe;d.Checksum$=Roe;d.ChecksumAlgorithm=PKe;d.ChecksumMode=xQe;d.ChecksumType=vKe;d.CommonPrefix$=Coe;d.CompleteMultipartUpload$=tle;d.CompleteMultipartUploadCommand=MC;d.CompleteMultipartUploadOutput$=xoe;d.CompleteMultipartUploadRequest$=Toe;d.CompletedMultipartUpload$=boe;d.CompletedPart$=Aoe;d.CompressionType=NQe;d.Condition$=voe;d.ContinuationEvent$=Doe;d.CopyObject$=rle;d.CopyObjectCommand=LC;d.CopyObjectOutput$=Ioe;d.CopyObjectRequest$=woe;d.CopyObjectResult$=Poe;d.CopyPartResult$=Ooe;d.CreateBucket$=nle;d.CreateBucketCommand=NC;d.CreateBucketConfiguration$=Moe;d.CreateBucketMetadataConfiguration$=ole;d.CreateBucketMetadataConfigurationCommand=FC;d.CreateBucketMetadataConfigurationRequest$=Loe;d.CreateBucketMetadataTableConfiguration$=sle;d.CreateBucketMetadataTableConfigurationCommand=BC;d.CreateBucketMetadataTableConfigurationRequest$=Noe;d.CreateBucketOutput$=Foe;d.CreateBucketRequest$=Boe;d.CreateMultipartUpload$=ile;d.CreateMultipartUploadCommand=UC;d.CreateMultipartUploadOutput$=Uoe;d.CreateMultipartUploadRequest$=Goe;d.CreateSession$=ale;d.CreateSessionCommand=tg;d.CreateSessionOutput$=qoe;d.CreateSessionRequest$=Hoe;d.DataRedundancy=UKe;d.DefaultRetention$=Voe;d.Delete$=Woe;d.DeleteBucket$=cle;d.DeleteBucketAnalyticsConfiguration$=ule;d.DeleteBucketAnalyticsConfigurationCommand=GC;d.DeleteBucketAnalyticsConfigurationRequest$=Koe;d.DeleteBucketCommand=qC;d.DeleteBucketCors$=lle;d.DeleteBucketCorsCommand=HC;d.DeleteBucketCorsRequest$=Qoe;d.DeleteBucketEncryption$=dle;d.DeleteBucketEncryptionCommand=jC;d.DeleteBucketEncryptionRequest$=Yoe;d.DeleteBucketIntelligentTieringConfiguration$=ple;d.DeleteBucketIntelligentTieringConfigurationCommand=zC;d.DeleteBucketIntelligentTieringConfigurationRequest$=Joe;d.DeleteBucketInventoryConfiguration$=fle;d.DeleteBucketInventoryConfigurationCommand=VC;d.DeleteBucketInventoryConfigurationRequest$=Xoe;d.DeleteBucketLifecycle$=mle;d.DeleteBucketLifecycleCommand=WC;d.DeleteBucketLifecycleRequest$=Zoe;d.DeleteBucketMetadataConfiguration$=gle;d.DeleteBucketMetadataConfigurationCommand=KC;d.DeleteBucketMetadataConfigurationRequest$=ese;d.DeleteBucketMetadataTableConfiguration$=hle;d.DeleteBucketMetadataTableConfigurationCommand=QC;d.DeleteBucketMetadataTableConfigurationRequest$=tse;d.DeleteBucketMetricsConfiguration$=Sle;d.DeleteBucketMetricsConfigurationCommand=YC;d.DeleteBucketMetricsConfigurationRequest$=rse;d.DeleteBucketOwnershipControls$=yle;d.DeleteBucketOwnershipControlsCommand=JC;d.DeleteBucketOwnershipControlsRequest$=nse;d.DeleteBucketPolicy$=Ele;d.DeleteBucketPolicyCommand=XC;d.DeleteBucketPolicyRequest$=ose;d.DeleteBucketReplication$=_le;d.DeleteBucketReplicationCommand=ZC;d.DeleteBucketReplicationRequest$=sse;d.DeleteBucketRequest$=ise;d.DeleteBucketTagging$=Rle;d.DeleteBucketTaggingCommand=eb;d.DeleteBucketTaggingRequest$=ase;d.DeleteBucketWebsite$=Cle;d.DeleteBucketWebsiteCommand=tb;d.DeleteBucketWebsiteRequest$=cse;d.DeleteMarkerEntry$=lse;d.DeleteMarkerReplication$=dse;d.DeleteMarkerReplicationStatus=fQe;d.DeleteObject$=ble;d.DeleteObjectAnnotation$=Ale;d.DeleteObjectAnnotationCommand=rb;d.DeleteObjectAnnotationOutput$=pse;d.DeleteObjectAnnotationRequest$=fse;d.DeleteObjectCommand=nb;d.DeleteObjectOutput$=mse;d.DeleteObjectRequest$=gse;d.DeleteObjectTagging$=Tle;d.DeleteObjectTaggingCommand=sb;d.DeleteObjectTaggingOutput$=yse;d.DeleteObjectTaggingRequest$=Ese;d.DeleteObjects$=xle;d.DeleteObjectsCommand=ob;d.DeleteObjectsOutput$=hse;d.DeleteObjectsRequest$=Sse;d.DeletePublicAccessBlock$=vle;d.DeletePublicAccessBlockCommand=ib;d.DeletePublicAccessBlockRequest$=_se;d.DeletedObject$=use;d.Destination$=Rse;d.DestinationResult$=Cse;d.EncodingType=wQe;d.Encryption$=bse;d.EncryptionConfiguration$=Ase;d.EncryptionType=XKe;d.EncryptionTypeMismatch=rC;d.EncryptionTypeMismatch$=Une;d.EndEvent$=xse;d.ErrorDetails$=Lg;d.ErrorDocument$=lN;d.Event=dQe;d.EventBridgeConfiguration$=vse;d.EventHoldDuration$=dN;d.ExistingObjectReplication$=Dse;d.ExistingObjectReplicationStatus=hQe;d.ExpirationState=KKe;d.ExpirationStatus=iQe;d.ExpressionType=LQe;d.FileHeaderInfo=FQe;d.FilterRule$=Ise;d.FilterRuleName=pQe;d.GetBucketAbac$=Dle;d.GetBucketAbacCommand=ab;d.GetBucketAbacOutput$=wse;d.GetBucketAbacRequest$=Pse;d.GetBucketAccelerateConfiguration$=Ile;d.GetBucketAccelerateConfigurationCommand=cb;d.GetBucketAccelerateConfigurationOutput$=Ose;d.GetBucketAccelerateConfigurationRequest$=$se;d.GetBucketAcl$=wle;d.GetBucketAclCommand=ub;d.GetBucketAclOutput$=kse;d.GetBucketAclRequest$=Mse;d.GetBucketAnalyticsConfiguration$=Ple;d.GetBucketAnalyticsConfigurationCommand=lb;d.GetBucketAnalyticsConfigurationOutput$=Lse;d.GetBucketAnalyticsConfigurationRequest$=Nse;d.GetBucketCors$=Ole;d.GetBucketCorsCommand=db;d.GetBucketCorsOutput$=Fse;d.GetBucketCorsRequest$=Bse;d.GetBucketEncryption$=$le;d.GetBucketEncryptionCommand=pb;d.GetBucketEncryptionOutput$=Use;d.GetBucketEncryptionRequest$=Gse;d.GetBucketIntelligentTieringConfiguration$=kle;d.GetBucketIntelligentTieringConfigurationCommand=fb;d.GetBucketIntelligentTieringConfigurationOutput$=qse;d.GetBucketIntelligentTieringConfigurationRequest$=Hse;d.GetBucketInventoryConfiguration$=Mle;d.GetBucketInventoryConfigurationCommand=mb;d.GetBucketInventoryConfigurationOutput$=jse;d.GetBucketInventoryConfigurationRequest$=zse;d.GetBucketLifecycleConfiguration$=Lle;d.GetBucketLifecycleConfigurationCommand=gb;d.GetBucketLifecycleConfigurationOutput$=Vse;d.GetBucketLifecycleConfigurationRequest$=Wse;d.GetBucketLocation$=Nle;d.GetBucketLocationCommand=hb;d.GetBucketLocationOutput$=Kse;d.GetBucketLocationRequest$=Qse;d.GetBucketLogging$=Fle;d.GetBucketLoggingCommand=Sb;d.GetBucketLoggingOutput$=Yse;d.GetBucketLoggingRequest$=Jse;d.GetBucketMetadataConfiguration$=Ble;d.GetBucketMetadataConfigurationCommand=yb;d.GetBucketMetadataConfigurationOutput$=Xse;d.GetBucketMetadataConfigurationRequest$=Zse;d.GetBucketMetadataConfigurationResult$=eie;d.GetBucketMetadataTableConfiguration$=Ule;d.GetBucketMetadataTableConfigurationCommand=Eb;d.GetBucketMetadataTableConfigurationOutput$=tie;d.GetBucketMetadataTableConfigurationRequest$=rie;d.GetBucketMetadataTableConfigurationResult$=nie;d.GetBucketMetricsConfiguration$=Gle;d.GetBucketMetricsConfigurationCommand=_b;d.GetBucketMetricsConfigurationOutput$=oie;d.GetBucketMetricsConfigurationRequest$=sie;d.GetBucketNotificationConfiguration$=qle;d.GetBucketNotificationConfigurationCommand=Rb;d.GetBucketNotificationConfigurationRequest$=iie;d.GetBucketOwnershipControls$=Hle;d.GetBucketOwnershipControlsCommand=Cb;d.GetBucketOwnershipControlsOutput$=aie;d.GetBucketOwnershipControlsRequest$=cie;d.GetBucketPolicy$=jle;d.GetBucketPolicyCommand=bb;d.GetBucketPolicyOutput$=uie;d.GetBucketPolicyRequest$=lie;d.GetBucketPolicyStatus$=zle;d.GetBucketPolicyStatusCommand=Ab;d.GetBucketPolicyStatusOutput$=die;d.GetBucketPolicyStatusRequest$=pie;d.GetBucketReplication$=Vle;d.GetBucketReplicationCommand=xb;d.GetBucketReplicationOutput$=fie;d.GetBucketReplicationRequest$=mie;d.GetBucketRequestPayment$=Wle;d.GetBucketRequestPaymentCommand=Tb;d.GetBucketRequestPaymentOutput$=gie;d.GetBucketRequestPaymentRequest$=hie;d.GetBucketTagging$=Kle;d.GetBucketTaggingCommand=vb;d.GetBucketTaggingOutput$=Sie;d.GetBucketTaggingRequest$=yie;d.GetBucketVersioning$=Qle;d.GetBucketVersioningCommand=Db;d.GetBucketVersioningOutput$=Eie;d.GetBucketVersioningRequest$=_ie;d.GetBucketWebsite$=Yle;d.GetBucketWebsiteCommand=Ib;d.GetBucketWebsiteOutput$=Rie;d.GetBucketWebsiteRequest$=Cie;d.GetObject$=Jle;d.GetObjectAcl$=Xle;d.GetObjectAclCommand=wb;d.GetObjectAclOutput$=bie;d.GetObjectAclRequest$=Aie;d.GetObjectAnnotation$=Zle;d.GetObjectAnnotationCommand=Pb;d.GetObjectAnnotationOutput$=xie;d.GetObjectAnnotationRequest$=Tie;d.GetObjectAttributes$=ede;d.GetObjectAttributesCommand=Ob;d.GetObjectAttributesOutput$=vie;d.GetObjectAttributesParts$=Die;d.GetObjectAttributesRequest$=Iie;d.GetObjectCommand=$b;d.GetObjectLegalHold$=tde;d.GetObjectLegalHoldCommand=kb;d.GetObjectLegalHoldOutput$=wie;d.GetObjectLegalHoldRequest$=Pie;d.GetObjectLockConfiguration$=rde;d.GetObjectLockConfigurationCommand=Mb;d.GetObjectLockConfigurationOutput$=Oie;d.GetObjectLockConfigurationRequest$=$ie;d.GetObjectOutput$=kie;d.GetObjectRequest$=Mie;d.GetObjectRetention$=nde;d.GetObjectRetentionCommand=Lb;d.GetObjectRetentionOutput$=Lie;d.GetObjectRetentionRequest$=Nie;d.GetObjectTagging$=ode;d.GetObjectTaggingCommand=Nb;d.GetObjectTaggingOutput$=Fie;d.GetObjectTaggingRequest$=Bie;d.GetObjectTorrent$=sde;d.GetObjectTorrentCommand=Fb;d.GetObjectTorrentOutput$=Uie;d.GetObjectTorrentRequest$=Gie;d.GetPublicAccessBlock$=ide;d.GetPublicAccessBlockCommand=Bb;d.GetPublicAccessBlockOutput$=qie;d.GetPublicAccessBlockRequest$=Hie;d.GlacierJobParameters$=jie;d.Grant$=zie;d.Grantee$=pN;d.HeadBucket$=ade;d.HeadBucketCommand=gd;d.HeadBucketOutput$=Vie;d.HeadBucketRequest$=Wie;d.HeadObject$=cde;d.HeadObjectCommand=hd;d.HeadObjectOutput$=Kie;d.HeadObjectRequest$=Qie;d.IdempotencyParameterMismatch=lC;d.IdempotencyParameterMismatch$=Gne;d.IndexDocument$=fN;d.Initiator$=mN;d.InputSerialization$=gN;d.IntelligentTieringAccessTier=eQe;d.IntelligentTieringAndOperator$=Yie;d.IntelligentTieringConfiguration$=rx;d.IntelligentTieringFilter$=Jie;d.IntelligentTieringStatus=ZKe;d.InvalidAnnotationName=cC;d.InvalidAnnotationName$=qne;d.InvalidObjectState=XR;d.InvalidObjectState$=Hne;d.InvalidPrefix=tC;d.InvalidPrefix$=jne;d.InvalidRequest=nC;d.InvalidRequest$=zne;d.InvalidWriteOffset=oC;d.InvalidWriteOffset$=Vne;d.InventoryConfiguration$=nx;d.InventoryConfigurationState=WKe;d.InventoryDestination$=Xie;d.InventoryEncryption$=Zie;d.InventoryFilter$=eae;d.InventoryFormat=tQe;d.InventoryFrequency=oQe;d.InventoryIncludedObjectVersions=rQe;d.InventoryOptionalField=nQe;d.InventoryS3BucketDestination$=tae;d.InventorySchedule$=rae;d.InventoryTableConfiguration$=nae;d.InventoryTableConfigurationResult$=oae;d.InventoryTableConfigurationUpdates$=sae;d.JSONInput$=uae;d.JSONOutput$=lae;d.JSONType=BQe;d.JournalTableConfiguration$=iae;d.JournalTableConfigurationResult$=aae;d.JournalTableConfigurationUpdates$=cae;d.LambdaFunctionConfiguration$=dae;d.LifecycleExpiration$=pae;d.LifecycleRule$=fae;d.LifecycleRuleAndOperator$=mae;d.LifecycleRuleFilter$=gae;d.ListBucketAnalyticsConfigurations$=ude;d.ListBucketAnalyticsConfigurationsCommand=Ub;d.ListBucketAnalyticsConfigurationsOutput$=hae;d.ListBucketAnalyticsConfigurationsRequest$=Sae;d.ListBucketIntelligentTieringConfigurations$=lde;d.ListBucketIntelligentTieringConfigurationsCommand=Gb;d.ListBucketIntelligentTieringConfigurationsOutput$=yae;d.ListBucketIntelligentTieringConfigurationsRequest$=Eae;d.ListBucketInventoryConfigurations$=dde;d.ListBucketInventoryConfigurationsCommand=qb;d.ListBucketInventoryConfigurationsOutput$=_ae;d.ListBucketInventoryConfigurationsRequest$=Rae;d.ListBucketMetricsConfigurations$=pde;d.ListBucketMetricsConfigurationsCommand=Hb;d.ListBucketMetricsConfigurationsOutput$=Cae;d.ListBucketMetricsConfigurationsRequest$=bae;d.ListBuckets$=fde;d.ListBucketsCommand=rg;d.ListBucketsOutput$=Aae;d.ListBucketsRequest$=xae;d.ListDirectoryBuckets$=mde;d.ListDirectoryBucketsCommand=ng;d.ListDirectoryBucketsOutput$=Tae;d.ListDirectoryBucketsRequest$=vae;d.ListMultipartUploads$=gde;d.ListMultipartUploadsCommand=jb;d.ListMultipartUploadsOutput$=Dae;d.ListMultipartUploadsRequest$=Iae;d.ListObjectAnnotations$=hde;d.ListObjectAnnotationsCommand=og;d.ListObjectAnnotationsOutput$=wae;d.ListObjectAnnotationsRequest$=Pae;d.ListObjectVersions$=Ede;d.ListObjectVersionsCommand=Vb;d.ListObjectVersionsOutput$=Lae;d.ListObjectVersionsRequest$=Nae;d.ListObjects$=Sde;d.ListObjectsCommand=zb;d.ListObjectsOutput$=Oae;d.ListObjectsRequest$=$ae;d.ListObjectsV2$=yde;d.ListObjectsV2Command=sg;d.ListObjectsV2Output$=kae;d.ListObjectsV2Request$=Mae;d.ListParts$=_de;d.ListPartsCommand=ig;d.ListPartsOutput$=Fae;d.ListPartsRequest$=Bae;d.LocationInfo$=Uae;d.LocationType=qKe;d.LoggingEnabled$=hN;d.MFADelete=kQe;d.MFADeleteStatus=RQe;d.MetadataConfiguration$=Gae;d.MetadataConfigurationResult$=qae;d.MetadataDirective=OKe;d.MetadataEntry$=Hae;d.MetadataTableConfiguration$=jae;d.MetadataTableConfigurationResult$=zae;d.MetadataTableEncryptionConfiguration$=Jd;d.Metrics$=Vae;d.MetricsAndOperator$=Wae;d.MetricsConfiguration$=ox;d.MetricsFilter$=Jue;d.MetricsStatus=mQe;d.MultipartUpload$=Kae;d.NoSuchAnnotation=ZR;d.NoSuchAnnotation$=Wne;d.NoSuchBucket=YR;d.NoSuchBucket$=Kne;d.NoSuchKey=JR;d.NoSuchKey$=Qne;d.NoSuchUpload=zR;d.NoSuchUpload$=Yne;d.NoncurrentVersionExpiration$=Qae;d.NoncurrentVersionTransition$=Yae;d.NotFound=eC;d.NotFound$=Jne;d.NotificationConfiguration$=SN;d.NotificationConfigurationFilter$=sx;d.ObjectAlreadyInActiveTierError=dC;d.ObjectAlreadyInActiveTierError$=Xne;d.ObjectAttributes=TQe;d.ObjectCannedACL=IKe;d.ObjectEncryption$=Xue;d.ObjectIdentifier$=Xae;d.ObjectLockConfiguration$=yN;d.ObjectLockEnabled=vQe;d.ObjectLockEventHold=$Ke;d.ObjectLockLegalHold$=EN;d.ObjectLockLegalHoldStatus=kKe;d.ObjectLockMode=MKe;d.ObjectLockRetention$=_N;d.ObjectLockRetentionMode=DQe;d.ObjectLockRule$=Zae;d.ObjectNotInActiveTierError=WR;d.ObjectNotInActiveTierError$=Zne;d.ObjectOwnership=jKe;d.ObjectPart$=ece;d.ObjectStorageClass=PQe;d.ObjectVersion$=tce;d.ObjectVersionStorageClass=$Qe;d.OptionalObjectAttributes=OQe;d.OutputLocation$=rce;d.OutputSerialization$=RN;d.Owner$=gi;d.OwnerOverride=TKe;d.OwnershipControls$=CN;d.OwnershipControlsRule$=nce;d.ParquetInput$=oce;d.Part$=sce;d.PartitionDateSource=uQe;d.PartitionedPrefix$=ice;d.Payer=_Qe;d.Permission=xKe;d.PolicyStatus$=ace;d.Progress$=cce;d.ProgressEvent$=uce;d.Protocol=bQe;d.PublicAccessBlockConfiguration$=bN;d.PutBucketAbac$=Rde;d.PutBucketAbacCommand=Wb;d.PutBucketAbacRequest$=lce;d.PutBucketAccelerateConfiguration$=Cde;d.PutBucketAccelerateConfigurationCommand=Kb;d.PutBucketAccelerateConfigurationRequest$=dce;d.PutBucketAcl$=bde;d.PutBucketAclCommand=Qb;d.PutBucketAclRequest$=pce;d.PutBucketAnalyticsConfiguration$=Ade;d.PutBucketAnalyticsConfigurationCommand=Yb;d.PutBucketAnalyticsConfigurationRequest$=fce;d.PutBucketCors$=xde;d.PutBucketCorsCommand=Jb;d.PutBucketCorsRequest$=mce;d.PutBucketEncryption$=Tde;d.PutBucketEncryptionCommand=Xb;d.PutBucketEncryptionRequest$=gce;d.PutBucketIntelligentTieringConfiguration$=vde;d.PutBucketIntelligentTieringConfigurationCommand=Zb;d.PutBucketIntelligentTieringConfigurationRequest$=hce;d.PutBucketInventoryConfiguration$=Dde;d.PutBucketInventoryConfigurationCommand=eA;d.PutBucketInventoryConfigurationRequest$=Sce;d.PutBucketLifecycleConfiguration$=Ide;d.PutBucketLifecycleConfigurationCommand=tA;d.PutBucketLifecycleConfigurationOutput$=yce;d.PutBucketLifecycleConfigurationRequest$=Ece;d.PutBucketLogging$=wde;d.PutBucketLoggingCommand=rA;d.PutBucketLoggingRequest$=_ce;d.PutBucketMetricsConfiguration$=Pde;d.PutBucketMetricsConfigurationCommand=nA;d.PutBucketMetricsConfigurationRequest$=Rce;d.PutBucketNotificationConfiguration$=Ode;d.PutBucketNotificationConfigurationCommand=oA;d.PutBucketNotificationConfigurationRequest$=Cce;d.PutBucketOwnershipControls$=$de;d.PutBucketOwnershipControlsCommand=sA;d.PutBucketOwnershipControlsRequest$=bce;d.PutBucketPolicy$=kde;d.PutBucketPolicyCommand=iA;d.PutBucketPolicyRequest$=Ace;d.PutBucketReplication$=Mde;d.PutBucketReplicationCommand=aA;d.PutBucketReplicationRequest$=xce;d.PutBucketRequestPayment$=Lde;d.PutBucketRequestPaymentCommand=cA;d.PutBucketRequestPaymentRequest$=Tce;d.PutBucketTagging$=Nde;d.PutBucketTaggingCommand=uA;d.PutBucketTaggingRequest$=vce;d.PutBucketVersioning$=Fde;d.PutBucketVersioningCommand=lA;d.PutBucketVersioningRequest$=Dce;d.PutBucketWebsite$=Bde;d.PutBucketWebsiteCommand=dA;d.PutBucketWebsiteRequest$=Ice;d.PutObject$=Ude;d.PutObjectAcl$=Gde;d.PutObjectAclCommand=pA;d.PutObjectAclOutput$=wce;d.PutObjectAclRequest$=Pce;d.PutObjectAnnotation$=qde;d.PutObjectAnnotationCommand=fA;d.PutObjectAnnotationOutput$=Oce;d.PutObjectAnnotationRequest$=$ce;d.PutObjectCommand=mA;d.PutObjectLegalHold$=Hde;d.PutObjectLegalHoldCommand=gA;d.PutObjectLegalHoldOutput$=kce;d.PutObjectLegalHoldRequest$=Mce;d.PutObjectLockConfiguration$=jde;d.PutObjectLockConfigurationCommand=hA;d.PutObjectLockConfigurationOutput$=Lce;d.PutObjectLockConfigurationRequest$=Nce;d.PutObjectOutput$=Fce;d.PutObjectRequest$=Bce;d.PutObjectRetention$=zde;d.PutObjectRetentionCommand=SA;d.PutObjectRetentionOutput$=Uce;d.PutObjectRetentionRequest$=Gce;d.PutObjectTagging$=Vde;d.PutObjectTaggingCommand=yA;d.PutObjectTaggingOutput$=qce;d.PutObjectTaggingRequest$=Hce;d.PutPublicAccessBlock$=Wde;d.PutPublicAccessBlockCommand=EA;d.PutPublicAccessBlockRequest$=jce;d.QueueConfiguration$=zce;d.QuoteFields=UQe;d.RecordExpiration$=ix;d.RecordsEvent$=Vce;d.Redirect$=Wce;d.RedirectAllRequestsTo$=AN;d.RenameObject$=Kde;d.RenameObjectCommand=_A;d.RenameObjectOutput$=Kce;d.RenameObjectRequest$=Qce;d.ReplicaModifications$=Yce;d.ReplicaModificationsStatus=SQe;d.ReplicationConfiguration$=xN;d.ReplicationRule$=Jce;d.ReplicationRuleAndOperator$=Xce;d.ReplicationRuleFilter$=Zce;d.ReplicationRuleStatus=EQe;d.ReplicationStatus=AQe;d.ReplicationTime$=eue;d.ReplicationTimeStatus=gQe;d.ReplicationTimeValue$=TN;d.RequestCharged=RKe;d.RequestPayer=CKe;d.RequestPaymentConfiguration$=tue;d.RequestProgress$=rue;d.RestoreObject$=Qde;d.RestoreObjectCommand=RA;d.RestoreObjectOutput$=nue;d.RestoreObjectRequest$=oue;d.RestoreRequest$=sue;d.RestoreRequestType=GQe;d.RestoreStatus$=vN;d.RoutingRule$=iue;d.S3=wA;d.S3Client=Bi;d.S3KeyFilter$=aue;d.S3Location$=cue;d.S3ServiceException=rt;d.S3ServiceException$=kne;d.S3TablesBucketType=lQe;d.S3TablesDestination$=uue;d.S3TablesDestinationResult$=lue;d.SSEKMS$=_ue;d.SSEKMSEncryption$=Cue;d.SSES3$=bue;d.ScanRange$=due;d.SelectObjectContent$=Yde;d.SelectObjectContentCommand=CA;d.SelectObjectContentEventStream$=Zue;d.SelectObjectContentOutput$=pue;d.SelectObjectContentRequest$=fue;d.SelectParameters$=mue;d.ServerSideEncryption=DKe;d.ServerSideEncryptionByDefault$=gue;d.ServerSideEncryptionConfiguration$=DN;d.ServerSideEncryptionRule$=hue;d.SessionCredentials$=Sue;d.SessionMode=QKe;d.SimplePrefix$=yue;d.SourceSelectionCriteria$=Eue;d.SseKmsEncryptedObjects$=Rue;d.SseKmsEncryptedObjectsStatus=yQe;d.Stats$=Aue;d.StatsEvent$=xue;d.StorageClass=LKe;d.StorageClassAnalysis$=Tue;d.StorageClassAnalysisDataExport$=vue;d.StorageClassAnalysisSchemaVersion=JKe;d.TableSseAlgorithm=VKe;d.Tag$=lu;d.Tagging$=ax;d.TaggingDirective=NKe;d.TargetGrant$=Due;d.TargetObjectKeyFormat$=Iue;d.Tier=MQe;d.Tiering$=wue;d.TooManyParts=sC;d.TooManyParts$=eoe;d.TopicConfiguration$=Pue;d.Transition$=Oue;d.TransitionDefaultMinimumObjectSize=aQe;d.TransitionStorageClass=sQe;d.Type=AKe;d.UnsupportedMediaType=uC;d.UnsupportedMediaType$=toe;d.UpdateBucketMetadataAnnotationTableConfiguration$=Jde;d.UpdateBucketMetadataAnnotationTableConfigurationCommand=bA;d.UpdateBucketMetadataAnnotationTableConfigurationRequest$=$ue;d.UpdateBucketMetadataInventoryTableConfiguration$=Xde;d.UpdateBucketMetadataInventoryTableConfigurationCommand=AA;d.UpdateBucketMetadataInventoryTableConfigurationRequest$=kue;d.UpdateBucketMetadataJournalTableConfiguration$=Zde;d.UpdateBucketMetadataJournalTableConfigurationCommand=xA;d.UpdateBucketMetadataJournalTableConfigurationRequest$=Mue;d.UpdateObjectEncryption$=epe;d.UpdateObjectEncryptionCommand=TA;d.UpdateObjectEncryptionRequest$=Lue;d.UpdateObjectEncryptionResponse$=Nue;d.UploadPart$=tpe;d.UploadPartCommand=vA;d.UploadPartCopy$=rpe;d.UploadPartCopyCommand=DA;d.UploadPartCopyOutput$=Fue;d.UploadPartCopyRequest$=Bue;d.UploadPartOutput$=Uue;d.UploadPartRequest$=Gue;d.VersioningConfiguration$=que;d.WebsiteConfiguration$=Hue;d.WriteGetObjectResponse$=npe;d.WriteGetObjectResponseCommand=IA;d.WriteGetObjectResponseRequest$=jue;d._Error$=Tse;d._Object$=Jae;d.errorTypeRegistries=roe;d.paginateListBuckets=ope;d.paginateListDirectoryBuckets=spe;d.paginateListObjectAnnotations=ipe;d.paginateListObjectsV2=ape;d.paginateListParts=cpe;d.waitForBucketExists=fKe;d.waitForBucketNotExists=mKe;d.waitForObjectExists=gKe;d.waitForObjectNotExists=hKe;d.waitUntilBucketExists=lpe;d.waitUntilBucketNotExists=ppe;d.waitUntilObjectExists=mpe;d.waitUntilObjectNotExists=hpe});var WN=st(D=>{var{awsEndpointFunctions:zQe,emitWarningIfUnsupportedVersion:VQe,createDefaultUserAgentProvider:WQe,NODE_APP_ID_CONFIG_OPTIONS:KQe,getAwsRegionExtensionConfiguration:QQe,resolveAwsRegionExtensionConfiguration:YQe,resolveUserAgentConfig:JQe,resolveHostHeaderConfig:XQe,getUserAgentPlugin:ZQe,getHostHeaderPlugin:e7e,getLoggerPlugin:t7e,getRecursionDetectionPlugin:r7e}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:n7e,DefaultIdentityProviderConfig:o7e,getHttpSigningPlugin:s7e,createPaginator:ON}=(jt(),F(Al)),{normalizeProvider:Lpe,getSmithyContext:i7e,ServiceException:a7e,NoOpLogger:c7e,emitWarningIfUnsupportedVersion:u7e,loadConfigsForDefaultMode:l7e,getDefaultExtensionConfiguration:d7e,resolveDefaultRuntimeConfig:p7e,Client:Npe,makeBuilder:f7e,createWaiter:fo,checkExceptions:ep,WaiterState:ct,createAggregatedClient:m7e}=(J(),F(bo)),{Command:g7e}=(J(),F(bo));D.$Command=g7e;D.__Client=Npe;var{resolveDefaultsModeConfig:h7e,loadConfig:du,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:S7e,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:y7e,NODE_REGION_CONFIG_OPTIONS:E7e,NODE_REGION_CONFIG_FILE_OPTIONS:_7e,resolveRegionConfig:R7e}=(ye(),F(Br)),{BinaryDecisionDiagram:C7e,EndpointCache:b7e,decideEndpoint:A7e,customEndpointFunctions:x7e,resolveEndpointConfig:T7e,getEndpointPlugin:v7e}=(He(),F(Hp)),{parseUrl:D7e,getHttpHandlerExtensionConfiguration:I7e,resolveHttpHandlerRuntimeConfig:w7e,getContentLengthPlugin:P7e}=(V(),F(wo)),{DEFAULT_RETRY_MODE:O7e,NODE_RETRY_MODE_CONFIG_OPTIONS:$7e,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:k7e,resolveRetryConfig:M7e,getRetryPlugin:L7e}=(en(),F(rf)),{TypeRegistry:Fpe,getSchemaSerdePlugin:N7e}=(ae(),F(vp)),{resolveAwsSdkSigV4Config:F7e,AwsSdkSigV4Signer:B7e,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:U7e}=(rr(),F(Dl)),{defaultProvider:G7e}=Rm(),{toUtf8:q7e,fromUtf8:H7e,toBase64:j7e,fromBase64:z7e,calculateBodyLength:V7e}=(j(),F(To)),{streamCollector:W7e,NodeHttpHandler:K7e}=zs(),{AwsRestJsonProtocol:Q7e}=(Di(),F(zy)),{Sha256:Y7e}=(On(),F(zp)),J7e=async(t,e,r)=>({operation:i7e(e).operation,region:await Lpe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function X7e(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Z7e=t=>{let e=[];switch(t.operation){default:e.push(X7e(t))}return e},eYe=t=>{let e=F7e(t);return Object.assign(e,{authSchemePreference:Lpe(t.authSchemePreference??[])})},tYe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"lambda"}),rYe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},nYe="3.1151.0",oYe={version:nYe},Fg="ref",pu=-1,lx=!0,Ipe="isSet",Bpe="PartitionResult",dx="booleanEquals",wpe="getAttr",Ppe={[Fg]:"Endpoint"},Ope={[Fg]:Bpe},Ng={},$pe=[{[Fg]:"Region"}],kpe={conditions:[[Ipe,[Ppe]],[Ipe,$pe],["aws.partition",$pe,Bpe],[dx,[{[Fg]:"UseFIPS"},lx]],[dx,[{[Fg]:"UseDualStack"},lx]],[dx,[{fn:wpe,argv:[Ope,"supportsDualStack"]},lx]],[dx,[{fn:wpe,argv:[Ope,"supportsFIPS"]},lx]]],results:[[pu],[pu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[pu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ppe,Ng],["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ng],[pu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",Ng],[pu,"FIPS is enabled but this partition does not support FIPS"],["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",Ng],[pu,"DualStack is enabled but this partition does not support DualStack"],["https://lambda.{Region}.{PartitionResult#dnsSuffix}",Ng],[pu,"Invalid Configuration: Missing Region"]]},sYe=2,qn=1e8,iYe=new Int32Array([-1,1,-1,0,12,3,1,4,qn+11,2,5,qn+11,3,8,6,4,7,qn+10,5,qn+8,qn+9,4,10,9,6,qn+6,qn+7,5,11,qn+5,6,qn+4,qn+5,3,qn+1,13,4,qn+2,qn+3]),aYe=C7e.from(iYe,sYe,kpe.conditions,kpe.results),cYe=new b7e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),uYe=(t,e={})=>cYe.get(t,()=>A7e(aYe,{endpointParams:t,logger:e.logger}));x7e.aws=zQe;var ns=class t extends a7e{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb#LambdaWebServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},px=class t extends ns{static shapeId="com.amazonaws.lambdaweb#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},fx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ConflictException";name="ConflictException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},mx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#InternalServerException";name="InternalServerException";$fault="server";$retryable={};constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},gx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";resourceId;resourceType;constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType}},hx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";resourceId;resourceType;serviceCode;quotaCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceId=e.resourceId,this.resourceType=e.resourceType,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},Sx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ThrottlingException";name="ThrottlingException";$fault="client";$retryable={throttling:!0};retryAfterSeconds;serviceCode;quotaCode;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.retryAfterSeconds=e.retryAfterSeconds,this.serviceCode=e.serviceCode,this.quotaCode=e.quotaCode}},yx=class t extends ns{static shapeId="com.amazonaws.lambdaweb#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lYe="AccessDeniedException",dYe="AccountQuotas",pYe="AccountUsage",fYe="BuildConfig",mYe="CodeConfig",gYe="ConflictException",hYe="CreateWebFunction",SYe="CreateWebFunctionEndpoint",yYe="CreateWebFunctionEndpointRequest",EYe="CreateWebFunctionEndpointResponse",_Ye="CreateWebFunctionRequest",RYe="CreateWebFunctionRevisionRequest",CYe="CreateWebFunctionRevisionResponse",bYe="CreateWebFunctionResponse",AYe="CreateWebFunctionRevision",xYe="DeleteResourcePolicy",TYe="DeleteResourcePolicyRequest",vYe="DeleteWebFunction",DYe="DeleteWebFunctionEndpoint",IYe="DeleteWebFunctionEndpointRequest",wYe="DeleteWebFunctionRequest",PYe="DeleteWebFunctionRevisionRequest",OYe="DeleteWebFunctionRevision",$Ye="EndpointConfig",kYe="EnvironmentVariables",MYe="Filter",LYe="FunctionEndpointSummary",NYe="FunctionEndpointSummaryList",FYe="FilterList",BYe="FunctionRevisionSummary",UYe="FunctionRevisionSummaryList",GYe="FunctionSummary",qYe="FunctionSummaryList",HYe="GetResourcePolicy",jYe="GetResourcePolicyRequest",zYe="GetResourcePolicyResponse",VYe="GetWebAccountSettings",WYe="GetWebAccountSettingsRequest",KYe="GetWebAccountSettingsResponse",QYe="GetWebFunction",YYe="GetWebFunctionEndpoint",JYe="GetWebFunctionEndpointRequest",XYe="GetWebFunctionEndpointResponse",ZYe="GetWebFunctionRequest",eJe="GetWebFunctionRevisionRequest",tJe="GetWebFunctionRevisionResponse",rJe="GetWebFunctionResponse",nJe="GetWebFunctionRevision",oJe="InternalServerException",sJe="LoggingConfig",iJe="ListTags",aJe="ListTagsRequest",cJe="ListTagsResponse",uJe="ListWebFunctions",lJe="ListWebFunctionEndpoints",dJe="ListWebFunctionEndpointsRequest",pJe="ListWebFunctionEndpointsResponse",fJe="ListWebFunctionsRequest",mJe="ListWebFunctionRevisionsRequest",gJe="ListWebFunctionRevisionsResponse",hJe="ListWebFunctionsResponse",SJe="ListWebFunctionRevisions",$N="Policy",yJe="PutResourcePolicy",EJe="PutResourcePolicyRequest",_Je="PutResourcePolicyResponse",RJe="Retry-After",CJe="RevisionConfig",bJe="RuntimeConfig",AJe="RegionalEndpoint",xJe="RevisionError",TJe="RegionalEndpoints",vJe="RevisionErrors",kx="RevisionId",DJe="ResourceNotFoundException",IJe="RevisionWeight",wJe="RevisionWeightList",PJe="ScalingConfig",OJe="ServiceConfig",$Je="S3Object",kJe="ServiceQuotaExceededException",Upe="Tags",MJe="TelemetryConfig",LJe="ThrottleConfig",NJe="ThrottlingException",FJe="TagResource",BJe="TagResourceRequest",UJe="UntagResource",GJe="UntagResourceRequest",qJe="UpdateWebFunctionEndpoint",HJe="UpdateWebFunctionEndpointRequest",jJe="UpdateWebFunctionEndpointResponse",zJe="ValidationException",VJe="attribute",gu="autoDeploymentMode",WJe="applicationLogLevel",KJe="accountQuotas",tc="authType",QJe="accountUsage",YJe="bucket",Mx="buildConfig",tp="client",hi="createdAt",JJe="codeConfig",mo="description",Hg="domainName",hu="error",Lx="endpointArn",XJe="endpointConfig",ZJe="errorCode",eXe="errorMessage",zi="endpointName",tXe="egressNetworkConnectorArn",rXe="executionRoleArn",rp="endpointType",nXe="environmentVariables",oXe="endpoint",sXe="endpoints",Gpe="errors",kN="filters",rc="functionArn",iXe="functionCount",dn="functionName",aXe="functions",Mt="http",Su="httpError",cXe="httpHeader",qpe="httpQuery",ec="jsonName",uXe="key",Nx="kmsKeyArn",lXe="loggingConfig",dXe="logGroup",yu="message",pXe="maxConcurrencyPerEnvironment",fXe="maxEnvironments",mXe="maxEndpointsPerFunction",MN="maxResults",gXe="maxRevisionsPerFunction",hXe="maxTotalArmVCpus",SXe="maxTotalRateLimit",yXe="name",np="nextToken",LN="policy",Hpe="quotaCode",op="regions",NN="revisionArn",EXe="retryAfterSeconds",FN="resourceArn",_Xe="runtimeConfig",RXe="revisionConfig",BN="regionalEndpoints",UN="resourceId",Si="revisionId",CXe="rateLimit",GN="resourceType",Eu="revisionWeights",bXe="revision",qN="resource",AXe="revisions",xXe="runtime",jpe="smithy.ts.sdk.synthetic.com.amazonaws.lambdaweb",zpe="serviceCode",nc="scalingConfig",Fx="serviceConfig",TXe="systemLogLevel",vXe="s3Object",os="stateReason",DXe="server",ss="state",Bx="tags",oc="throttleConfig",IXe="telemetryConfig",Mpe="tagKeys",wXe="timeoutSeconds",_u="updatedAt",jg="updateStatus",zg="updateStatusReason",PXe="values",OXe="versionId",$Xe="weight",G="com.amazonaws.lambdaweb",Vpe=new Fpe(jpe),Wpe=[-3,jpe,"LambdaWebServiceException",0,[],[]];Vpe.registerError(Wpe,ns);var sc=new Fpe(G),Kpe=[-3,G,lYe,{[hu]:tp,[Su]:403},[yu],[0],1];sc.registerError(Kpe,px);var Qpe=[-3,G,gYe,{[hu]:tp,[Su]:409},[yu,UN,GN],[0,0,0],1];sc.registerError(Qpe,fx);var Ype=[-3,G,oJe,{[hu]:DXe,[Su]:500},[yu],[0]];sc.registerError(Ype,mx);var Jpe=[-3,G,DJe,{[hu]:tp,[Su]:404},[yu,UN,GN],[0,0,0],1];sc.registerError(Jpe,gx);var Xpe=[-3,G,kJe,{[hu]:tp,[Su]:402},[yu,UN,GN,zpe,Hpe],[0,0,0,0,0],1];sc.registerError(Xpe,hx);var Zpe=[-3,G,NJe,{[hu]:tp,[Su]:429},[yu,EXe,zpe,Hpe],[0,[1,{[cXe]:RJe}],0,0],1];sc.registerError(Zpe,Sx);var efe=[-3,G,zJe,{[hu]:tp,[Su]:400},[yu],[0],1];sc.registerError(efe,yx);var tfe=[Vpe,sc],rfe=[3,G,dYe,0,[hXe,SXe,gXe,mXe],[1,1,1,1],4],nfe=[3,G,pYe,0,[iXe],[1],1],Vg=[3,G,fYe,0,[JJe,_Xe],[()=>ofe,()=>Hfe],2],ofe=[3,G,mYe,0,[vXe],[()=>jfe],1],sfe=[3,G,yYe,0,[dn,zi,rp,tc,mo,gu,Eu,op,nc,oc],[[0,1],0,0,0,0,0,()=>Ru,64,()=>Vi,()=>Wi],4],ife=[3,G,EYe,0,[rc,Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,BN,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,0,()=>Ru,64,0,0,()=>VN,5,5,0,()=>Vi,()=>Wi,0,0],14],afe=[3,G,_Ye,0,[dn,RXe,XJe,Bx],[0,[()=>Ufe,0],()=>gfe,128],1],cfe=[3,G,bYe,0,[dn,rc,ss,os,hi,_u,bXe,oXe,Bx],[0,0,0,0,5,5,()=>jN,()=>HN,128],6],ufe=[3,G,RYe,0,[dn,Mx,Fx,mo,Nx],[[0,1],()=>Vg,[()=>Wg,0],0,0],3],lfe=[3,G,CYe,0,[rc,NN,Si,Mx,Fx,ss,os,hi,mo,Nx,Gpe],[0,0,0,()=>Vg,[()=>Wg,0],0,0,5,0,0,()=>Yfe],8],dfe=[3,G,TYe,0,[FN,Si],[[0,1],[0,{[qpe]:kx}]],1],pfe=[3,G,IYe,0,[dn,zi],[[0,1],[0,1]],2],ffe=[3,G,wYe,0,[dn],[[0,1]],1],mfe=[3,G,PYe,0,[dn,Si],[[0,1],[0,1]],2],gfe=[3,G,$Ye,0,[zi,rp,tc,mo,gu,op,nc,oc],[0,0,0,0,0,64,()=>Vi,()=>Wi],3],hfe=[3,G,MYe,0,[yXe,PXe],[0,64],2],HN=[3,G,LYe,0,[Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,()=>Ru,64,0,0,5,5,0,()=>Vi,()=>Wi,0,0],12],jN=[3,G,BYe,0,[NN,Si,ss,os,hi,mo],[0,0,0,0,5,0],5],Sfe=[3,G,GYe,0,[dn,rc,ss,os,hi,_u],[0,0,0,0,5,5],6],yfe=[3,G,jYe,0,[FN],[[0,1]],1],Efe=[3,G,zYe,0,[LN,Si],[[0,{[ec]:$N}],[0,{[ec]:kx}]],2],_fe=[3,G,WYe,0,[],[]],Rfe=[3,G,KYe,0,[KJe,QJe],[()=>rfe,()=>nfe],2],Cfe=[3,G,JYe,0,[dn,zi],[[0,1],[0,1]],2],bfe=[3,G,XYe,0,[rc,Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,BN,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,0,()=>Ru,64,0,0,()=>VN,5,5,0,()=>Vi,()=>Wi,0,0],14],Afe=[3,G,ZYe,0,[dn],[[0,1]],1],xfe=[3,G,rJe,0,[dn,rc,ss,os,hi,_u],[0,0,0,0,5,5],6],Tfe=[3,G,eJe,0,[dn,Si],[[0,1],[0,1]],2],vfe=[3,G,tJe,0,[rc,NN,Si,Mx,Fx,ss,os,hi,mo,Nx,Gpe],[0,0,0,()=>Vg,[()=>Wg,0],0,0,5,0,0,()=>Yfe],8],Dfe=[3,G,aJe,0,[qN],[[0,1]],1],Ife=[3,G,cJe,0,[Bx],[[128,{[ec]:Upe}]]],wfe=[3,G,dJe,0,[dn,kN,MN,np],[[0,1],()=>zN,1,0],1],Pfe=[3,G,pJe,0,[sXe,np],[()=>kXe,0],1],Ofe=[3,G,mJe,0,[dn,kN,MN,np],[[0,1],()=>zN,1,0],1],$fe=[3,G,gJe,0,[AXe,np],[()=>MXe,0],1],kfe=[3,G,fJe,0,[kN,MN,np],[()=>zN,1,0]],Mfe=[3,G,hJe,0,[aXe,np],[()=>LXe,0],1],Lfe=[3,G,sJe,0,[dXe,WJe,TXe],[0,0,0]],Nfe=[3,G,EJe,0,[FN,LN,Si],[[0,1],[0,{[ec]:$N}],[0,{[ec]:kx}]],2],Ffe=[3,G,_Je,0,[LN,Si],[[0,{[ec]:$N}],[0,{[ec]:kx}]],2],Bfe=[3,G,AJe,0,[tc,Eu,ss,os,Hg,nc,oc,jg,zg],[0,()=>Ru,0,0,0,()=>Vi,()=>Wi,0,0],4],Ufe=[3,G,CJe,0,[Mx,Fx,mo,Nx],[()=>Vg,[()=>Wg,0],0,0],2],Gfe=[3,G,xJe,0,[VJe,ZJe,eXe],[0,0,0],3],qfe=[3,G,IJe,0,[Si,$Xe],[0,1],2],Hfe=[3,G,bJe,0,[xXe],[0],1],jfe=[3,G,$Je,0,[YJe,uXe,OXe],[0,0,0],2],Vi=[3,G,PJe,0,[fXe],[1]],Wg=[3,G,OJe,0,[rXe,wXe,tXe,pXe,nXe,IXe],[0,1,0,1,[()=>NXe,0],()=>Vfe],1],zfe=[3,G,BJe,0,[qN,Bx],[[0,1],[128,{[ec]:Upe}]],2],Vfe=[3,G,MJe,0,[lXe],[()=>Lfe]],Wi=[3,G,LJe,0,[CXe],[1]],Wfe=[3,G,GJe,0,[qN,Mpe],[[0,1],[64,{[qpe]:Mpe}]],2],Kfe=[3,G,HJe,0,[dn,zi,mo,tc,gu,Eu,nc,oc],[[0,1],[0,1],0,0,0,()=>Ru,()=>Vi,()=>Wi],2],Qfe=[3,G,jJe,0,[rc,Lx,zi,rp,Hg,tc,gu,Eu,op,ss,os,BN,hi,_u,mo,nc,oc,jg,zg],[0,0,0,0,0,0,0,()=>Ru,64,0,0,()=>VN,5,5,0,()=>Vi,()=>Wi,0,0],14],sp="unit",zN=[1,G,FYe,0,()=>hfe],kXe=[1,G,NYe,0,()=>HN],MXe=[1,G,UYe,0,()=>jN],LXe=[1,G,qYe,0,()=>Sfe],Yfe=[1,G,vJe,0,()=>Gfe],Ru=[1,G,wJe,0,()=>qfe],NXe=[2,G,kYe,8,0,0],VN=[2,G,TJe,0,0,()=>Bfe],Jfe=[9,G,hYe,{[Mt]:["PUT","/2025-03-07/web-functions",202]},()=>afe,()=>cfe],Xfe=[9,G,SYe,{[Mt]:["PUT","/2025-03-07/web-functions/{functionName}/endpoints",202]},()=>sfe,()=>ife],Zfe=[9,G,AYe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/revisions",202]},()=>ufe,()=>lfe],eme=[9,G,xYe,{[Mt]:["DELETE","/2025-03-07/resource-policy/{resourceArn}",204]},()=>dfe,()=>sp],tme=[9,G,vYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}",204]},()=>ffe,()=>sp],rme=[9,G,DYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",204]},()=>pfe,()=>sp],nme=[9,G,OYe,{[Mt]:["DELETE","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",204]},()=>mfe,()=>sp],ome=[9,G,HYe,{[Mt]:["GET","/2025-03-07/resource-policy/{resourceArn}",200]},()=>yfe,()=>Efe],sme=[9,G,VYe,{[Mt]:["GET","/2025-03-07/web-account-settings",200]},()=>_fe,()=>Rfe],ime=[9,G,QYe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}",200]},()=>Afe,()=>xfe],ame=[9,G,YYe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",200]},()=>Cfe,()=>bfe],cme=[9,G,nJe,{[Mt]:["GET","/2025-03-07/web-functions/{functionName}/revisions/{revisionId}",200]},()=>Tfe,()=>vfe],ume=[9,G,iJe,{[Mt]:["GET","/2025-03-07/tags/{resource}",200]},()=>Dfe,()=>Ife],lme=[9,G,lJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-endpoints",200]},()=>wfe,()=>Pfe],dme=[9,G,SJe,{[Mt]:["POST","/2025-03-07/web-functions/{functionName}/list-revisions",200]},()=>Ofe,()=>$fe],pme=[9,G,uJe,{[Mt]:["POST","/2025-03-07/web-functions",200]},()=>kfe,()=>Mfe],fme=[9,G,yJe,{[Mt]:["PUT","/2025-03-07/resource-policy/{resourceArn}",200]},()=>Nfe,()=>Ffe],mme=[9,G,FJe,{[Mt]:["POST","/2025-03-07/tags/{resource}",204]},()=>zfe,()=>sp],gme=[9,G,UJe,{[Mt]:["DELETE","/2025-03-07/tags/{resource}",204]},()=>Wfe,()=>sp],hme=[9,G,qJe,{[Mt]:["PATCH","/2025-03-07/web-functions/{functionName}/endpoints/{endpointName}",202]},()=>Kfe,()=>Qfe],FXe=t=>({apiVersion:"2025-03-07",base64Decoder:t?.base64Decoder??z7e,base64Encoder:t?.base64Encoder??j7e,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??uYe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Z7e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new B7e}],logger:t?.logger??new c7e,protocol:t?.protocol??Q7e,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.lambdaweb",errorTypeRegistries:tfe,version:"2025-03-07",serviceTarget:"LambdaWeb"},serviceId:t?.serviceId??"Lambda Web",sha256:t?.sha256??Y7e,urlParser:t?.urlParser??D7e,utf8Decoder:t?.utf8Decoder??H7e,utf8Encoder:t?.utf8Encoder??q7e}),BXe=t=>{u7e(process.version);let e=h7e(t),r=()=>e().then(l7e),n=FXe(t);VQe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??du(U7e,o),bodyLengthChecker:t?.bodyLengthChecker??V7e,credentialDefaultProvider:t?.credentialDefaultProvider??G7e,defaultUserAgentProvider:t?.defaultUserAgentProvider??WQe({serviceId:n.serviceId,clientVersion:oYe.version}),maxAttempts:t?.maxAttempts??du(k7e,t),region:t?.region??du(E7e,{..._7e,...o}),requestHandler:K7e.create(t?.requestHandler??r),retryMode:t?.retryMode??du({...$7e,default:async()=>(await r()).retryMode||O7e},t),streamCollector:t?.streamCollector??W7e,useDualstackEndpoint:t?.useDualstackEndpoint??du(y7e,o),useFipsEndpoint:t?.useFipsEndpoint??du(S7e,o),userAgentAppId:t?.userAgentAppId??du(KQe,o)}},UXe=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},GXe=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),qXe=(t,e)=>{let r=Object.assign(QQe(t),d7e(t),I7e(t),UXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,YQe(r),p7e(r),w7e(r),GXe(r))},fu=class extends Npe{config;constructor(...[e]){let r=BXe(e||{});super(r),this.initConfig=r;let n=tYe(r),o=JQe(n),s=M7e(o),i=R7e(s),a=XQe(i),c=T7e(a),u=eYe(c),f=qXe(u,e?.extensions||[]);this.config=f,this.middlewareStack.use(N7e(this.config)),this.middlewareStack.use(ZQe(this.config)),this.middlewareStack.use(L7e(this.config)),this.middlewareStack.use(P7e(this.config)),this.middlewareStack.use(e7e(this.config)),this.middlewareStack.use(t7e(this.config)),this.middlewareStack.use(r7e(this.config)),this.middlewareStack.use(n7e(this.config,{httpAuthSchemeParametersProvider:J7e,identityProviderConfigProvider:async m=>new o7e({"aws.auth#sigv4":m.credentials})})),this.middlewareStack.use(s7e(this.config))}destroy(){super.destroy()}},Lt=f7e(rYe,"LambdaWeb","LambdaWebClient",v7e),Nt={},Ft=(t,e,r,n)=>[],Ex=class extends Lt(Nt,Ft,"CreateWebFunction",Jfe){},_x=class extends Lt(Nt,Ft,"CreateWebFunctionEndpoint",Xfe){},Rx=class extends Lt(Nt,Ft,"CreateWebFunctionRevision",Zfe){},Cx=class extends Lt(Nt,Ft,"DeleteResourcePolicy",eme){},bx=class extends Lt(Nt,Ft,"DeleteWebFunction",tme){},Ax=class extends Lt(Nt,Ft,"DeleteWebFunctionEndpoint",rme){},xx=class extends Lt(Nt,Ft,"DeleteWebFunctionRevision",nme){},Tx=class extends Lt(Nt,Ft,"GetResourcePolicy",ome){},vx=class extends Lt(Nt,Ft,"GetWebAccountSettings",sme){},Zd=class extends Lt(Nt,Ft,"GetWebFunction",ime){},mu=class extends Lt(Nt,Ft,"GetWebFunctionEndpoint",ame){},Bg=class extends Lt(Nt,Ft,"GetWebFunctionRevision",cme){},Dx=class extends Lt(Nt,Ft,"ListTags",ume){},Ug=class extends Lt(Nt,Ft,"ListWebFunctionEndpoints",lme){},Gg=class extends Lt(Nt,Ft,"ListWebFunctionRevisions",dme){},qg=class extends Lt(Nt,Ft,"ListWebFunctions",pme){},Ix=class extends Lt(Nt,Ft,"PutResourcePolicy",fme){},wx=class extends Lt(Nt,Ft,"TagResource",mme){},Px=class extends Lt(Nt,Ft,"UntagResource",gme){},Ox=class extends Lt(Nt,Ft,"UpdateWebFunctionEndpoint",hme){},Sme=ON(fu,Ug,"nextToken","nextToken","maxResults"),yme=ON(fu,Gg,"nextToken","nextToken","maxResults"),Eme=ON(fu,qg,"nextToken","nextToken","maxResults"),_me=async(t,e)=>{let r;try{let n=await t.send(new Zd(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},HXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,_me),Rme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,_me);return ep(n)},Cme=async(t,e)=>{let r;try{let n=await t.send(new Zd(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},jXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Cme),bme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Cme);return ep(n)},Ame=async(t,e)=>{let r;try{let n=await t.send(new mu(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Deleting")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},zXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Ame),xme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Ame);return ep(n)},Tme=async(t,e)=>{let r;try{let n=await t.send(new mu(e));r=n;try{if(n.state==="Deleting")return{state:ct.RETRY,reason:r}}catch{}}catch(n){if(r=n,n.name==="ResourceNotFoundException")return{state:ct.SUCCESS,reason:r}}return{state:ct.RETRY,reason:r}},VXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Tme),vme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Tme);return ep(n)},Dme=async(t,e)=>{let r;try{let n=await t.send(new mu(e));r=n;try{if(n.updateStatus==="Successful")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.updateStatus==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.updateStatus==="InProgress")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},WXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,Dme),Ime=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,Dme);return ep(n)},wme=async(t,e)=>{let r;try{let n=await t.send(new Bg(e));r=n;try{if(n.state==="Active")return{state:ct.SUCCESS,reason:r}}catch{}try{if(n.state==="Failed")return{state:ct.FAILURE,reason:r}}catch{}try{if(n.state==="Pending")return{state:ct.RETRY,reason:r}}catch{}}catch(n){r=n}return{state:ct.RETRY,reason:r}},KXe=async(t,e)=>fo({...{minDelay:1,maxDelay:300},...t},e,wme),Pme=async(t,e)=>{let n=await fo({...{minDelay:1,maxDelay:300},...t},e,wme);return ep(n)},QXe={CreateWebFunctionCommand:Ex,CreateWebFunctionEndpointCommand:_x,CreateWebFunctionRevisionCommand:Rx,DeleteResourcePolicyCommand:Cx,DeleteWebFunctionCommand:bx,DeleteWebFunctionEndpointCommand:Ax,DeleteWebFunctionRevisionCommand:xx,GetResourcePolicyCommand:Tx,GetWebAccountSettingsCommand:vx,GetWebFunctionCommand:Zd,GetWebFunctionEndpointCommand:mu,GetWebFunctionRevisionCommand:Bg,ListTagsCommand:Dx,ListWebFunctionEndpointsCommand:Ug,ListWebFunctionRevisionsCommand:Gg,ListWebFunctionsCommand:qg,PutResourcePolicyCommand:Ix,TagResourceCommand:wx,UntagResourceCommand:Px,UpdateWebFunctionEndpointCommand:Ox},YXe={paginateListWebFunctionEndpoints:Sme,paginateListWebFunctionRevisions:yme,paginateListWebFunctions:Eme},JXe={waitUntilWebFunctionActive:Rme,waitUntilWebFunctionDeleted:bme,waitUntilWebFunctionEndpointActive:xme,waitUntilWebFunctionEndpointDeleted:vme,waitUntilWebFunctionEndpointUpdated:Ime,waitUntilWebFunctionRevisionActive:Pme},$x=class extends fu{};m7e(QXe,$x,{paginators:YXe,waiters:JXe});var XXe={DEBUG:"DEBUG",ERROR:"ERROR",FATAL:"FATAL",INFO:"INFO",TRACE:"TRACE",WARN:"WARN"},ZXe={APPLICATION_MANAGED:"ApplicationManaged",IAM_AUTH:"IamAuth"},eZe={DISABLED:"Disabled",LATEST_REVISION:"LatestRevision"},tZe={HOME_REGION:"HomeRegion",MULTI_REGION:"MultiRegion",PER_REGION:"PerRegion"},rZe={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN"},nZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"},oZe={FAILED:"Failed",IN_PROGRESS:"InProgress",SUCCESSFUL:"Successful"},sZe={ACTIVE:"Active",FAILED:"Failed",PENDING:"Pending"},iZe={ACTIVE:"Active",DELETING:"Deleting",FAILED:"Failed",PENDING:"Pending"};D.AccessDeniedException=px;D.AccessDeniedException$=Kpe;D.AccountQuotas$=rfe;D.AccountUsage$=nfe;D.ApplicationLogLevel=XXe;D.AuthType=ZXe;D.AutoDeploymentMode=eZe;D.BuildConfig$=Vg;D.CodeConfig$=ofe;D.ConflictException=fx;D.ConflictException$=Qpe;D.CreateWebFunction$=Jfe;D.CreateWebFunctionCommand=Ex;D.CreateWebFunctionEndpoint$=Xfe;D.CreateWebFunctionEndpointCommand=_x;D.CreateWebFunctionEndpointRequest$=sfe;D.CreateWebFunctionEndpointResponse$=ife;D.CreateWebFunctionRequest$=afe;D.CreateWebFunctionResponse$=cfe;D.CreateWebFunctionRevision$=Zfe;D.CreateWebFunctionRevisionCommand=Rx;D.CreateWebFunctionRevisionRequest$=ufe;D.CreateWebFunctionRevisionResponse$=lfe;D.DeleteResourcePolicy$=eme;D.DeleteResourcePolicyCommand=Cx;D.DeleteResourcePolicyRequest$=dfe;D.DeleteWebFunction$=tme;D.DeleteWebFunctionCommand=bx;D.DeleteWebFunctionEndpoint$=rme;D.DeleteWebFunctionEndpointCommand=Ax;D.DeleteWebFunctionEndpointRequest$=pfe;D.DeleteWebFunctionRequest$=ffe;D.DeleteWebFunctionRevision$=nme;D.DeleteWebFunctionRevisionCommand=xx;D.DeleteWebFunctionRevisionRequest$=mfe;D.EndpointConfig$=gfe;D.EndpointState=nZe;D.EndpointType=tZe;D.EndpointUpdateStatus=oZe;D.Filter$=hfe;D.FunctionEndpointSummary$=HN;D.FunctionRevisionSummary$=jN;D.FunctionState=iZe;D.FunctionSummary$=Sfe;D.GetResourcePolicy$=ome;D.GetResourcePolicyCommand=Tx;D.GetResourcePolicyRequest$=yfe;D.GetResourcePolicyResponse$=Efe;D.GetWebAccountSettings$=sme;D.GetWebAccountSettingsCommand=vx;D.GetWebAccountSettingsRequest$=_fe;D.GetWebAccountSettingsResponse$=Rfe;D.GetWebFunction$=ime;D.GetWebFunctionCommand=Zd;D.GetWebFunctionEndpoint$=ame;D.GetWebFunctionEndpointCommand=mu;D.GetWebFunctionEndpointRequest$=Cfe;D.GetWebFunctionEndpointResponse$=bfe;D.GetWebFunctionRequest$=Afe;D.GetWebFunctionResponse$=xfe;D.GetWebFunctionRevision$=cme;D.GetWebFunctionRevisionCommand=Bg;D.GetWebFunctionRevisionRequest$=Tfe;D.GetWebFunctionRevisionResponse$=vfe;D.InternalServerException=mx;D.InternalServerException$=Ype;D.LambdaWeb=$x;D.LambdaWebClient=fu;D.LambdaWebServiceException=ns;D.LambdaWebServiceException$=Wpe;D.ListTags$=ume;D.ListTagsCommand=Dx;D.ListTagsRequest$=Dfe;D.ListTagsResponse$=Ife;D.ListWebFunctionEndpoints$=lme;D.ListWebFunctionEndpointsCommand=Ug;D.ListWebFunctionEndpointsRequest$=wfe;D.ListWebFunctionEndpointsResponse$=Pfe;D.ListWebFunctionRevisions$=dme;D.ListWebFunctionRevisionsCommand=Gg;D.ListWebFunctionRevisionsRequest$=Ofe;D.ListWebFunctionRevisionsResponse$=$fe;D.ListWebFunctions$=pme;D.ListWebFunctionsCommand=qg;D.ListWebFunctionsRequest$=kfe;D.ListWebFunctionsResponse$=Mfe;D.LoggingConfig$=Lfe;D.PutResourcePolicy$=fme;D.PutResourcePolicyCommand=Ix;D.PutResourcePolicyRequest$=Nfe;D.PutResourcePolicyResponse$=Ffe;D.RegionalEndpoint$=Bfe;D.ResourceNotFoundException=gx;D.ResourceNotFoundException$=Jpe;D.RevisionConfig$=Ufe;D.RevisionError$=Gfe;D.RevisionState=sZe;D.RevisionWeight$=qfe;D.RuntimeConfig$=Hfe;D.S3Object$=jfe;D.ScalingConfig$=Vi;D.ServiceConfig$=Wg;D.ServiceQuotaExceededException=hx;D.ServiceQuotaExceededException$=Xpe;D.SystemLogLevel=rZe;D.TagResource$=mme;D.TagResourceCommand=wx;D.TagResourceRequest$=zfe;D.TelemetryConfig$=Vfe;D.ThrottleConfig$=Wi;D.ThrottlingException=Sx;D.ThrottlingException$=Zpe;D.UntagResource$=gme;D.UntagResourceCommand=Px;D.UntagResourceRequest$=Wfe;D.UpdateWebFunctionEndpoint$=hme;D.UpdateWebFunctionEndpointCommand=Ox;D.UpdateWebFunctionEndpointRequest$=Kfe;D.UpdateWebFunctionEndpointResponse$=Qfe;D.ValidationException=yx;D.ValidationException$=efe;D.errorTypeRegistries=tfe;D.paginateListWebFunctionEndpoints=Sme;D.paginateListWebFunctionRevisions=yme;D.paginateListWebFunctions=Eme;D.waitForWebFunctionActive=HXe;D.waitForWebFunctionDeleted=jXe;D.waitForWebFunctionEndpointActive=zXe;D.waitForWebFunctionEndpointDeleted=VXe;D.waitForWebFunctionEndpointUpdated=WXe;D.waitForWebFunctionRevisionActive=KXe;D.waitUntilWebFunctionActive=Rme;D.waitUntilWebFunctionDeleted=bme;D.waitUntilWebFunctionEndpointActive=xme;D.waitUntilWebFunctionEndpointDeleted=vme;D.waitUntilWebFunctionEndpointUpdated=Ime;D.waitUntilWebFunctionRevisionActive=Pme});var Lbe=st(p=>{var{awsEndpointFunctions:aZe,emitWarningIfUnsupportedVersion:cZe,createDefaultUserAgentProvider:uZe,NODE_APP_ID_CONFIG_OPTIONS:lZe,getAwsRegionExtensionConfiguration:dZe,resolveAwsRegionExtensionConfiguration:pZe,resolveUserAgentConfig:fZe,resolveHostHeaderConfig:mZe,getUserAgentPlugin:gZe,getHostHeaderPlugin:hZe,getLoggerPlugin:SZe,getRecursionDetectionPlugin:yZe}=(Ee(),F(kn)),{getHttpAuthSchemeEndpointRuleSetPlugin:EZe,DefaultIdentityProviderConfig:_Ze,getHttpSigningPlugin:RZe,createPaginator:Rr}=(jt(),F(Al)),{normalizeProvider:Ume,getSmithyContext:CZe,ServiceException:bZe,NoOpLogger:AZe,emitWarningIfUnsupportedVersion:xZe,loadConfigsForDefaultMode:TZe,getDefaultExtensionConfiguration:vZe,resolveDefaultRuntimeConfig:DZe,Client:Gme,makeBuilder:IZe,createAggregatedClient:wZe}=(J(),F(bo)),{Command:PZe}=(J(),F(bo));p.$Command=PZe;p.__Client=Gme;var{resolveDefaultsModeConfig:OZe,loadConfig:Cu,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:$Ze,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:kZe,NODE_REGION_CONFIG_OPTIONS:MZe,NODE_REGION_CONFIG_FILE_OPTIONS:LZe,resolveRegionConfig:NZe}=(ye(),F(Br)),{BinaryDecisionDiagram:FZe,EndpointCache:BZe,decideEndpoint:UZe,customEndpointFunctions:GZe,resolveEndpointConfig:qZe,getEndpointPlugin:HZe}=(He(),F(Hp)),{eventStreamSerdeProvider:jZe,resolveEventStreamSerdeConfig:zZe}=(VS(),F(zS)),{parseUrl:VZe,getHttpHandlerExtensionConfiguration:WZe,resolveHttpHandlerRuntimeConfig:KZe,getContentLengthPlugin:QZe}=(V(),F(wo)),{DEFAULT_RETRY_MODE:YZe,NODE_RETRY_MODE_CONFIG_OPTIONS:JZe,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:XZe,resolveRetryConfig:ZZe,getRetryPlugin:eet}=(en(),F(rf)),{TypeRegistry:qme,getSchemaSerdePlugin:tet}=(ae(),F(vp)),{resolveAwsSdkSigV4Config:ret,AwsSdkSigV4Signer:net,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:oet}=(rr(),F(Dl)),{defaultProvider:set}=Rm(),{toUtf8:iet,fromUtf8:aet,toBase64:cet,fromBase64:uet,calculateBodyLength:det}=(j(),F(To)),{streamCollector:pet,NodeHttpHandler:fet}=zs(),{AwsJson1_1Protocol:met}=(Di(),F(zy)),{Sha256:get}=(On(),F(zp)),het=async(t,e,r)=>({operation:CZe(e).operation,region:await Ume(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function yet(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"logs",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}var Eet=t=>{let e=[];switch(t.operation){default:e.push(yet(t))}return e},_et=t=>{let e=ret(t);return Object.assign(e,{authSchemePreference:Ume(t.authSchemePreference??[])})},Ret=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"logs"}),Cet={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},bet="3.1151.0",Aet={version:bet},Kg="ref",bu=-1,Gx=!0,$me="isSet",Hme="PartitionResult",qx="booleanEquals",kme="getAttr",Mme="stringEquals",Lme={[Kg]:"Endpoint"},Nme={[Kg]:Hme},KN={[Kg]:"Region"},Au={},Fme=[KN],Bme={conditions:[[$me,[Lme]],[$me,Fme],["aws.partition",Fme,Hme],[qx,[{[Kg]:"UseFIPS"},Gx]],[qx,[{[Kg]:"UseDualStack"},Gx]],[qx,[{fn:kme,argv:[Nme,"supportsDualStack"]},Gx]],[qx,[{fn:kme,argv:[Nme,"supportsFIPS"]},Gx]],[Mme,[KN,"us-gov-east-1"]],[Mme,[KN,"us-gov-west-1"]]],results:[[bu],[bu,"Invalid Configuration: FIPS and custom endpoint are not supported"],[bu,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Lme,Au],["https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Au],[bu,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://logs.us-gov-east-1.amazonaws.com",Au],["https://logs.us-gov-west-1.amazonaws.com",Au],["https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",Au],[bu,"FIPS is enabled but this partition does not support FIPS"],["https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",Au],[bu,"DualStack is enabled but this partition does not support DualStack"],["https://logs.{Region}.{PartitionResult#dnsSuffix}",Au],[bu,"Invalid Configuration: Missing Region"]]},xet=2,pn=1e8,Tet=new Int32Array([-1,1,-1,0,14,3,1,4,pn+13,2,5,pn+13,3,8,6,4,7,pn+12,5,pn+10,pn+11,4,12,9,6,10,pn+9,7,pn+6,11,8,pn+7,pn+8,5,13,pn+5,6,pn+4,pn+5,3,pn+1,15,4,pn+2,pn+3]),vet=FZe.from(Tet,xet,Bme.conditions,Bme.results),Det=new BZe({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Iet=(t,e={})=>Det.get(t,()=>UZe(vet,{endpointParams:t,logger:e.logger}));GZe.aws=aZe;var nt=class t extends bZe{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs#CloudWatchLogsServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},Hx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#OperationAbortedException";name="OperationAbortedException";$fault="client";constructor(e){super({name:"OperationAbortedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Vx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Wx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Kx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalServerException";name="InternalServerException";$fault="server";constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},Qx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ThrottlingException";name="ThrottlingException";$fault="client";constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Yx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Jx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidOperationException";name="InvalidOperationException";$fault="client";constructor(e){super({name:"InvalidOperationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Xx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ConflictException";name="ConflictException";$fault="client";constructor(e){super({name:"ConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Zx=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},eT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},tT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException";name="ResourceAlreadyExistsException";$fault="client";constructor(e){super({name:"ResourceAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},rT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException";name="DataAlreadyAcceptedException";$fault="client";expectedSequenceToken;constructor(e){super({name:"DataAlreadyAcceptedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},nT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InternalStreamingException";name="InternalStreamingException";$fault="client";constructor(e){super({name:"InternalStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException";name="InvalidSequenceTokenException";$fault="client";expectedSequenceToken;constructor(e){super({name:"InvalidSequenceTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.expectedSequenceToken=e.expectedSequenceToken}},sT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#UnrecognizedClientException";name="UnrecognizedClientException";$fault="client";constructor(e){super({name:"UnrecognizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionStreamingException";name="SessionStreamingException";$fault="client";constructor(e){super({name:"SessionStreamingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},aT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#SessionTimeoutException";name="SessionTimeoutException";$fault="client";constructor(e){super({name:"SessionTimeoutException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#MalformedQueryException";name="MalformedQueryException";$fault="client";queryCompileError;constructor(e){super({name:"MalformedQueryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.queryCompileError=e.queryCompileError}},uT=class t extends nt{static shapeId="com.amazonaws.cloudwatchlogs#TooManyTagsException";name="TooManyTagsException";$fault="client";resourceName;constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.resourceName=e.resourceName}},wet="Anomaly",Pet="AnomalyDetector",Oet="AccessDeniedException",$et="AnomalyDetectors",ket="AllowedFields",Met="AddKeys",Let="AddKeyEntry",Net="AddKeyEntries",Fet="AssociateKmsKey",Bet="AssociateKmsKeyRequest",Uet="AggregateLogGroupSummary",Get="AggregateLogGroupSummaries",qet="AccountPolicy",Het="AccountPolicies",jet="AssociateSourceToS3TableIntegration",zet="AssociateSourceToS3TableIntegrationRequest",Vet="AssociateSourceToS3TableIntegrationResponse",Wet="Anomalies",Ket="CreateDelivery",Qet="CreateDeliveryRequest",Yet="CreateDeliveryResponse",Jet="ConflictException",Xet="CancelExportTask",Zet="CancelExportTaskRequest",ett="CreateExportTaskRequest",ttt="CreateExportTaskResponse",rtt="CreateExportTask",ntt="CancelImportTask",ott="CancelImportTaskRequest",stt="CancelImportTaskResponse",itt="CreateImportTaskRequest",att="CreateImportTaskResponse",ctt="CreateImportTask",utt="CreateLogAnomalyDetector",ltt="CreateLogAnomalyDetectorRequest",dtt="CreateLogAnomalyDetectorResponse",ptt="CreateLogGroup",ftt="CreateLogGroupRequest",mtt="CreateLogStream",gtt="CreateLogStreamRequest",htt="CreateLookupTable",Stt="CreateLookupTableRequest",ytt="CreateLookupTableResponse",Ett="CreateScheduledQuery",_tt="CreateScheduledQueryRequest",Rtt="CreateScheduledQueryResponse",Ctt="CSV",btt="ConfigurationTemplate",Att="ConfigurationTemplateDeliveryConfigValues",xtt="ConfigurationTemplates",Ttt="CopyValue",vtt="CopyValueEntry",Dtt="CopyValueEntries",Itt="Delivery",wtt="DataAlreadyAcceptedException",Ptt="DeleteAccountPolicy",Ott="DeleteAccountPolicyRequest",$tt="DescribeAccountPoliciesRequest",ktt="DescribeAccountPoliciesResponse",Mtt="DescribeAccountPolicies",Ltt="DestinationConfiguration",Ntt="DescribeConfigurationTemplates",Ftt="DescribeConfigurationTemplatesRequest",Btt="DescribeConfigurationTemplatesResponse",Utt="DeliveryDestination",Gtt="DeliveryDestinationConfiguration",qtt="DeleteDeliveryDestination",Htt="DeleteDeliveryDestinationPolicy",jtt="DeleteDeliveryDestinationPolicyRequest",ztt="DeleteDeliveryDestinationRequest",Vtt="DescribeDeliveryDestinationsRequest",Wtt="DescribeDeliveryDestinationsResponse",Ktt="DescribeDeliveryDestinations",Qtt="DeleteDataProtectionPolicy",Ytt="DeleteDataProtectionPolicyRequest",Jtt="DeleteDeliveryRequest",Xtt="DeleteDestinationRequest",Ztt="DescribeDeliveriesRequest",ert="DescribeDeliveriesResponse",trt="DescribeDestinationsRequest",rrt="DescribeDestinationsResponse",nrt="DeleteDeliverySource",ort="DeleteDeliverySourceRequest",srt="DescribeDeliverySourcesRequest",irt="DescribeDeliverySourcesResponse",art="DescribeDeliverySources",crt="DeliveryDestinations",urt="DeleteDelivery",lrt="DeleteDestination",drt="DescribeDeliveries",prt="DescribeDestinations",frt="DescribeExportTasks",mrt="DescribeExportTasksRequest",grt="DescribeExportTasksResponse",hrt="DescribeFieldIndexes",Srt="DescribeFieldIndexesRequest",yrt="DescribeFieldIndexesResponse",Ert="DeleteIntegration",_rt="DeleteIndexPolicy",Rrt="DeleteIndexPolicyRequest",Crt="DeleteIndexPolicyResponse",brt="DescribeIndexPoliciesRequest",Art="DescribeIndexPoliciesResponse",xrt="DescribeIndexPolicies",Trt="DeleteIntegrationRequest",vrt="DeleteIntegrationResponse",Drt="DescribeImportTasks",Irt="DescribeImportTaskBatches",wrt="DescribeImportTaskBatchesRequest",Prt="DescribeImportTaskBatchesResponse",Ort="DescribeImportTasksRequest",$rt="DescribeImportTasksResponse",krt="DeleteKeys",Mrt="DisassociateKmsKey",Lrt="DisassociateKmsKeyRequest",Nrt="DeleteLogAnomalyDetector",Frt="DeleteLogAnomalyDetectorRequest",Brt="DeleteLogGroup",Urt="DeleteLogGroupRequest",Grt="DescribeLogGroupsRequest",qrt="DescribeLogGroupsResponse",Hrt="DescribeLogGroups",jrt="DeleteLogStream",zrt="DeleteLogStreamRequest",Vrt="DescribeLogStreamsRequest",Wrt="DescribeLogStreamsResponse",Krt="DescribeLogStreams",Qrt="DeleteLookupTable",Yrt="DeleteLookupTableRequest",Jrt="DescribeLookupTablesRequest",Xrt="DescribeLookupTablesResponse",Zrt="DescribeLookupTables",ent="DeleteMetricFilter",tnt="DeleteMetricFilterRequest",rnt="DescribeMetricFiltersRequest",nnt="DescribeMetricFiltersResponse",ont="DescribeMetricFilters",snt="DestinationNamePrefix",int="DescribeQueries",ant="DeleteQueryDefinition",cnt="DeleteQueryDefinitionRequest",unt="DeleteQueryDefinitionResponse",lnt="DescribeQueryDefinitionsRequest",dnt="DescribeQueryDefinitionsResponse",pnt="DescribeQueryDefinitions",fnt="DescribeQueriesRequest",mnt="DescribeQueriesResponse",gnt="DeleteResourcePolicy",hnt="DeleteResourcePolicyRequest",Snt="DeleteRetentionPolicyRequest",ynt="DescribeResourcePoliciesRequest",Ent="DescribeResourcePoliciesResponse",_nt="DeleteRetentionPolicy",Rnt="DescribeResourcePolicies",Cnt="DataSource",bnt="DeleteSyslogConfiguration",Ant="DeleteSyslogConfigurationRequest",xnt="DeliverySourceConfigurationSchema",Tnt="DeliverySourceConfigurationSchemas",vnt="DataSourceFilter",Dnt="DeleteSubscriptionFilterRequest",Int="DescribeSubscriptionFiltersRequest",wnt="DescribeSubscriptionFiltersResponse",Pnt="DisassociateSourceFromS3TableIntegration",Ont="DisassociateSourceFromS3TableIntegrationRequest",$nt="DisassociateSourceFromS3TableIntegrationResponse",knt="DataSourceFilters",Mnt="DeleteSubscriptionFilter",Lnt="DescribeSubscriptionFilters",Nnt="DeleteScheduledQuery",Fnt="DeleteScheduledQueryRequest",Bnt="DeleteScheduledQueryResponse",Unt="DeliverySource",Gnt="DeliverySources",qnt="DeleteTransformer",Hnt="DateTimeConverter",jnt="DeleteTransformerRequest",znt="Destination",Vnt="Deliveries",Wnt="Destinations",Knt="Entity",Qnt="ExportTask",Ynt="ExportTaskExecutionInfo",Jnt="ExportTaskStatus",Xnt="ExportTasks",Znt="FieldsData",eot="FieldIndex",tot="FieldIndexes",rot="FilteredLogEvent",not="FilterLogEventsRequest",oot="FilterLogEventsResponse",sot="FilteredLogEvents",iot="FilterLogEvents",aot="Grok",cot="GetDelivery",uot="GetDeliveryDestination",lot="GetDeliveryDestinationPolicy",dot="GetDeliveryDestinationPolicyRequest",pot="GetDeliveryDestinationPolicyResponse",fot="GetDeliveryDestinationRequest",mot="GetDeliveryDestinationResponse",got="GetDataProtectionPolicy",hot="GetDataProtectionPolicyRequest",Sot="GetDataProtectionPolicyResponse",yot="GetDeliveryRequest",Eot="GetDeliveryResponse",_ot="GetDeliverySource",Rot="GetDeliverySourceRequest",Cot="GetDeliverySourceResponse",bot="GroupingIdentifier",Aot="GetIntegrationRequest",xot="GetIntegrationResponse",Tot="GetIntegration",vot="GroupingIdentifiers",Dot="GetLogAnomalyDetector",Iot="GetLogAnomalyDetectorRequest",wot="GetLogAnomalyDetectorResponse",Pot="GetLogEvents",Oot="GetLogEventsRequest",$ot="GetLogEventsResponse",kot="GetLogFields",Mot="GetLogFieldsRequest",Lot="GetLogFieldsResponse",Not="GetLogGroupFields",Fot="GetLogGroupFieldsRequest",Bot="GetLogGroupFieldsResponse",Uot="GetLogObject",Got="GetLogObjectRequest",qot="GetLogObjectResponseStream",Hot="GetLogObjectResponse",jot="GetLogRecord",zot="GetLogRecordRequest",Vot="GetLogRecordResponse",Wot="GetLookupTable",Kot="GetLookupTableRequest",Qot="GetLookupTableResponse",Yot="GetQueryResults",Jot="GetQueryResultsRequest",Xot="GetQueryResultsResponse",Zot="GetScheduledQuery",est="GetScheduledQueryHistory",tst="GetScheduledQueryHistoryRequest",rst="GetScheduledQueryHistoryResponse",nst="GetScheduledQueryRequest",ost="GetScheduledQueryResponse",sst="GetStorageTierPolicy",ist="GetStorageTierPolicyRequest",ast="GetStorageTierPolicyResponse",cst="GetTransformer",ust="GetTransformerRequest",lst="GetTransformerResponse",dst="Import",pst="ImportBatch",fst="ImportBatchList",mst="IntegrationDetails",gst="ImportFilter",hst="ImportList",Sst="InputLogEvent",yst="InputLogEvents",Est="InvalidOperationException",_st="IndexPolicy",Rst="InvalidParameterException",Cst="IndexPolicies",bst="ImportStatistics",Ast="InternalServerException",jme="InternalStreamingException",xst="InvalidSequenceTokenException",Tst="IntegrationSummary",vst="IntegrationSummaries",Dst="ListAnomalies",Ist="ListAggregateLogGroupSummaries",wst="ListAggregateLogGroupSummariesRequest",Pst="ListAggregateLogGroupSummariesResponse",Ost="ListAnomaliesRequest",$st="ListAnomaliesResponse",kst="LowerCaseString",Mst="LogEvent",Lst="LimitExceededException",Nst="LogFieldsList",Fst="LogFieldsListItem",Bst="LogFieldType",Ust="LogGroup",Gst="LogGroupField",qst="LogGroupFieldList",Hst="LogGroupSummary",jst="LogGroupSummaries",zst="LogGroups",Vst="ListIntegrations",Wst="ListIntegrationsRequest",Kst="ListIntegrationsResponse",Qst="ListLogAnomalyDetectors",Yst="ListLogAnomalyDetectorsRequest",Jst="ListLogAnomalyDetectorsResponse",Xst="ListLogGroups",Zst="ListLogGroupsForQuery",eit="ListLogGroupsForQueryRequest",tit="ListLogGroupsForQueryResponse",rit="ListLogGroupsRequest",nit="ListLogGroupsResponse",oit="LogStream",sit="ListSyslogConfigurations",iit="ListSyslogConfigurationsRequest",ait="ListSyslogConfigurationsResponse",cit="ListSourcesForS3TableIntegration",uit="ListSourcesForS3TableIntegrationRequest",lit="ListSourcesForS3TableIntegrationResponse",dit="ListScheduledQueries",pit="ListScheduledQueriesRequest",fit="ListScheduledQueriesResponse",mit="LogSamples",git="LogStreams",hit="LookupTable",Sit="LookupTableConfiguration",yit="ListTagsForResource",Eit="ListTagsForResourceRequest",_it="ListTagsForResourceResponse",Rit="ListTagsLogGroup",Cit="ListTagsLogGroupRequest",bit="ListTagsLogGroupResponse",Ait="ListToMap",xit="LiveTailSessionLogEvent",Tit="LiveTailSessionMetadata",vit="LiveTailSessionResults",Dit="LiveTailSessionStart",Iit="LiveTailSessionUpdate",wit="LookupTables",Pit="MetricFilter",Oit="MetricFilterMatches",$it="MetricFilterMatchRecord",kit="MetricFilters",Mit="MoveKeys",Lit="MoveKeyEntry",Nit="MoveKeyEntries",Fit="MalformedQueryException",Bit="MetricTransformation",Uit="MetricTransformations",Git="OperationAbortedException",qit="OutputLogEvent",Hit="OutputLogEvents",jit="OpenSearchApplication",zit="OpenSearchCollection",Vit="OpenSearchDataAccessPolicy",Wit="OpenSearchDataSource",Kit="OpenSearchEncryptionPolicy",Qit="OpenSearchIntegrationDetails",Yit="OpenSearchLifecyclePolicy",Jit="OpenSearchNetworkPolicy",Xit="OpenSearchResourceConfig",Zit="OpenSearchResourceStatus",eat="OpenSearchWorkspace",tat="Policy",rat="PutAccountPolicy",nat="PutAccountPolicyRequest",oat="PutAccountPolicyResponse",sat="PutBearerTokenAuthentication",iat="PutBearerTokenAuthenticationRequest",aat="ParseCloudfront",cat="PutDestination",uat="PutDeliveryDestination",lat="PutDeliveryDestinationPolicy",dat="PutDeliveryDestinationPolicyRequest",pat="PutDeliveryDestinationPolicyResponse",fat="PutDeliveryDestinationRequest",mat="PutDeliveryDestinationResponse",gat="PutDestinationPolicy",hat="PutDataProtectionPolicy",Sat="PutDataProtectionPolicyRequest",yat="PutDataProtectionPolicyResponse",Eat="PutDestinationPolicyRequest",_at="PutDestinationRequest",Rat="PutDestinationResponse",Cat="PutDeliverySource",bat="PutDeliverySourceRequest",Aat="PutDeliverySourceResponse",xat="PutIntegration",Tat="PutIndexPolicy",vat="PutIndexPolicyRequest",Dat="PutIndexPolicyResponse",Iat="PutIntegrationRequest",wat="PutIntegrationResponse",Pat="ParseJSON",Oat="ParseKeyValue",$at="PutLogEvents",kat="PutLogEventsRequest",Mat="PutLogEventsResponse",Lat="PutLogGroupDeletionProtection",Nat="PutLogGroupDeletionProtectionRequest",Fat="PutMetricFilter",Bat="PutMetricFilterRequest",Uat="ParsePostgres",Gat="PutQueryDefinition",qat="PutQueryDefinitionRequest",Hat="PutQueryDefinitionResponse",jat="ParseRoute53",zat="PutResourcePolicy",Vat="PutResourcePolicyRequest",Wat="PutResourcePolicyResponse",Kat="PutRetentionPolicyRequest",Qat="PutRetentionPolicy",Yat="PutSyslogConfiguration",Jat="PutSyslogConfigurationRequest",Xat="PutSubscriptionFilter",Zat="PutSubscriptionFilterRequest",ect="PutStorageTierPolicy",tct="PutStorageTierPolicyRequest",rct="PutStorageTierPolicyResponse",nct="PatternToken",oct="ParseToOCSF",sct="PutTransformerRequest",ict="PatternTokens",act="PutTransformer",cct="ParseVPC",uct="ParseWAF",lct="Processor",dct="Processors",pct="QueryCompileError",fct="QueryCompileErrorLocation",mct="QueryDefinition",gct="QueryDefinitionList",hct="QueryInfo",Sct="QueryInfoList",yct="QueryParameter",Ect="QueryParameterList",_ct="QueryResults",Rct="QueryStatistics",Cct="ResourceAlreadyExistsException",bct="ResourceConfig",Act="RejectedEntityInfo",xct="RecordField",Tct="ResultField",vct="RenameKeys",Dct="RenameKeyEntry",Ict="RenameKeyEntries",wct="RejectedLogEventsInfo",Pct="ResourceNotFoundException",Oct="ResourcePolicy",$ct="ResourcePolicies",kct="ResultRows",Mct="S3Configuration",Lct="SyslogConfiguration",Nct="SyslogConfigurations",Fct="S3DeliveryConfiguration",Bct="SubscriptionFilter",Uct="SubscriptionFilters",Gct="SearchedLogStream",qct="SearchedLogStreams",Hct="StartLiveTail",jct="StartLiveTailRequest",zct="StartLiveTailResponseStream",Vct="StartLiveTailResponse",Wct="SuppressionPeriod",Kct="StartQuery",Qct="ScheduledQueryDestination",Yct="ScheduledQueryDestinationList",Jct="ServiceQuotaExceededException",Xct="StartQueryRequest",Zct="StartQueryResponse",eut="StopQueryRequest",tut="StopQueryResponse",rut="ScheduledQuerySummary",nut="ScheduledQuerySummaryList",out="StopQuery",sut="SplitString",zme="SessionStreamingException",iut="SplitStringEntry",aut="SplitStringEntries",cut="SubstituteStringEntry",uut="SubstituteStringEntries",lut="SubstituteString",Vme="SessionTimeoutException",dut="S3TablesIntegration",put="S3TableIntegrationSource",fut="S3TableIntegrationSources",mut="ServiceUnavailableException",gut="TypeConverter",hut="TypeConverterEntry",Sut="TypeConverterEntries",yut="ThrottlingException",Eut="TagFilter",_ut="TagFilters",Rut="TriggerHistoryRecord",Cut="TriggerHistoryRecordList",but="TransformedLogs",Aut="TagLogGroup",xut="TagLogGroupRequest",Tut="TransformedLogRecord",vut="TestMetricFilter",Dut="TestMetricFilterRequest",Iut="TestMetricFilterResponse",wut="TooManyTagsException",Put="TagResource",Out="TagResourceRequest",$ut="TrimString",kut="TestTransformer",Mut="TestTransformerRequest",Lut="TestTransformerResponse",Nut="UpdateAnomaly",Fut="UpdateAnomalyRequest",But="UnrecognizedClientException",Uut="UpperCaseString",Gut="UpdateDeliveryConfiguration",qut="UpdateDeliveryConfigurationRequest",Hut="UpdateDeliveryConfigurationResponse",jut="UpdateLogAnomalyDetector",zut="UpdateLogAnomalyDetectorRequest",Vut="UntagLogGroup",Wut="UntagLogGroupRequest",Kut="UpdateLookupTable",Qut="UpdateLookupTableRequest",Yut="UpdateLookupTableResponse",Jut="UntagResource",Xut="UntagResourceRequest",Zut="UpdateScheduledQuery",elt="UpdateScheduledQueryRequest",tlt="UpdateScheduledQueryResponse",rlt="ValidationException",nlt="active",Wme="applicationArn",olt="allowedActionForAllowVendedLogsDeliveryForResource",slt="anomalyDetectors",ic="anomalyDetectorArn",Kme="anomalyDetectorStatus",ilt="applicationEndpoint",alt="allowedFields",clt="allowedFieldDelimiters",ult="accountId",nD="accountIdentifiers",Qme="anomalyId",llt="applicationId",dlt="addKeys",plt="aggregateLogGroupSummaries",flt="allowedOutputFormats",oD="applyOnTransformedLogs",mlt="accountPolicies",QN="accessPolicy",glt="accountPolicy",hlt="allowedSuffixPathFields",sD="anomalyVisibilityTime",Slt="anomalies",ylt="application",ip="arn",Elt="attributes",_lt="baseline",Rlt="batchId",Clt="batchImportStatus",blt="bytesImported",Yme="bytesScanned",Jme="bearerTokenAuthenticationEnabled",Jt="client",Xme="createdAt",Alt="collectionArn",xlt="collectionEndpoint",Hn="creationTime",Zme="creationTimeStamp",Tlt="createdTimeStamp",vlt="clientToken",Dlt="configurationTemplates",Ilt="completionTime",wlt="createTime",Plt="copyValue",Olt="columns",$lt="code",klt="collection",Mlt="csv",is="description",ege="destinationArn",fh="destinationConfiguration",Llt="deliveryDestinations",tge="deliveryDestinationArn",rge="deliveryDestinationConfiguration",Nlt="defaultDeliveryConfigValues",YN="deliveryDestinationName",nge="deliveryDestinationPolicy",iD="deliveryDestinationType",Flt="deliveryDestinationTypes",oge="deliveryDestination",sge="destinationIdentifier",Blt="deleteKeys",JN="detectorName",Ult="datasourceName",aD="destinationName",ige="destinationPrefix",XN="deletionProtectionEnabled",Glt="dataProtectionStatus",qlt="destinationResourceArn",ZN="dataSource",e3="deliverySourceConfiguration",age="deliverySourceName",cge="dataSourceName",Hlt="dataSourceRoleArn",jlt="dataSourceType",uge="dataSources",zlt="deliverySources",lge="deliverySource",Vlt="datasourceType",Wlt="dateTimeConverter",Klt="dynamicTokenPosition",Qlt="destinationType",t3="defaultValue",Ylt="dashboardViewerPrincipals",Jlt="data",dge="delivery",pge="delimiter",Xlt="deliveries",ap="destination",Zlt="descending",fge="destinations",edt="dimensions",mge="distribution",wt="error",tdt="estimatedBytesSkipped",rdt="endCharOffset",ndt="endEventTime",cD="evaluationFrequency",odt="enableHiveCompatiblePath",sdt="executionInfo",idt="eventId",adt="encryptionKey",cdt="expiredLogEventEndIndex",uD="errorMessage",gge="eventMessage",hge="eventNumber",udt="encryptionPolicy",lD="executionRoleArn",Sge="expectedRevisionId",ldt="estimatedRecordsSkipped",ddt="executionStatuses",yge="emitSystemFields",Ege="emitSystemFieldDimensions",_ge="expectedSequenceToken",pdt="eventSource",fdt="executionStatus",mdt="exportTasks",dD="endTimeOffset",pD="endTime",gdt="errorType",hdt="extractedValues",Sdt="element",xu="entries",ydt="enabled",Rge="endpoint",Edt="entity",_dt="enumerations",Cge="events",r3="from",mh="fieldDelimiter",Rdt="flattenedElement",Cdt="firstEventTime",bdt="firstEventTimestamp",Adt="fieldIndexes",xdt="fieldIndexName",Tdt="fieldIndexNames",vdt="filterLogGroupArn",cp="filterName",bge="filterNamePrefix",yi="filterPattern",Ddt="firstSeen",fD="fieldSelectionCriteria",Idt="fieldStream",wdt="forceUpdate",Age="fields",Pdt="field",Odt="flatten",$dt="force",kdt="grok",Mdt="groupBy",Ldt="groupingIdentifiers",Ndt="histogram",xge="httpError",ac="identifier",Tge="integrationArn",Fdt="importBatches",Bdt="indexCategories",Udt="indexCategory",Gdt="integrationDetails",vge="importDestinationArn",qdt="isDynamic",Dge="importFilter",Tu="importId",n3="includeLinkedAccounts",up="integrationName",Hdt="integrationNamePrefix",jdt="indexPolicies",zdt="isPatternLevelSuppression",Vdt="inheritedProperties",Wdt="indexPolicy",Kdt="importRoleArn",Ige="importStatistics",mD="importSourceArn",o3="importStatus",gD="integrationStatus",Qdt="integrationSummaries",s3="ingestionTime",Ydt="inferredTokenName",hD="integrationType",SD="id",Jdt="imports",Xdt="interleaved",lp="key",Zdt="keyAttributes",ept="kmsKeyArn",go="kmsKeyId",tpt="keyName",rpt="keyPrefix",npt="keyValueDelimiter",opt="locale",spt="lowerCaseString",ipt="logEvents",wge="logEventFilterPattern",Pge="logEventMessages",i3="lastExecutionStatus",apt="lastEventTime",cpt="lastEventTimestamp",upt="logFields",lpt="logFieldName",dpt="logFieldType",Oge="logGroups",a3="logGroupArn",yD="logGroupArnList",ppt="logGroupCount",dp="logGroupClass",fpt="logGroupFields",as="logGroupIdentifiers",dt="logGroupIdentifier",Me="logGroupName",mpt="logGroupNamePrefix",c3="logGroupNamePattern",u3="logGroupNames",gpt="logGroupsScanned",hpt="logGroupTags",Spt="lastIngestionTime",ypt="lastModified",Ept="lastModifiedTime",$ge="lastModifiedTimeStamp",_pt="logObjectPointer",Rpt="lifecyclePolicy",Cpt="logRecord",bpt="logRecordPointer",Apt="lastSeen",cc="logStreamName",l3="logStreamNamePrefix",kge="logStreamNamePrefixes",d3="logStreamNames",xpt="lastScanTime",Tpt="logSamples",vpt="logStreams",p3="logType",vu="lookupTableArn",Dpt="lookupTableConfiguration",Ipt="listToMap",f3="lookupTableName",wpt="lookupTableNamePrefix",m3="lastTriggeredTime",Ppt="logTypes",Opt="lookupTables",xn="lastUpdatedTime",$pt="lastUpdateTime",Bt="limit",kpt="location",je="message",Mpt="metricFilters",Lpt="metricFilterCount",Npt="maxItems",Fpt="moveKeys",Mge="metricName",Lge="metricNamespace",Bpt="matchPatterns",uc="maxResults",Nge="metricTransformations",Upt="minValue",Gpt="maxValue",qpt="mappingVersion",Hpt="metricValue",jpt="match",zpt="mandatory",Vpt="matches",Ut="name",Wpt="nextBackwardToken",Kpt="nextForwardToken",Qpt="nonMatchValue",Ypt="networkPolicy",Jpt="nextSequenceToken",Q="nextToken",Xpt="ownerAccountId",Zpt="orderBy",Fge="outputFormat",gh="overwriteIfExists",eft="openSearchIntegrationDetails",tft="openSearchResourceConfig",rft="ocsfVersion",nft="priority",oft="parseCloudfront",Ki="policyDocument",Bge="patternId",sft="processedIdentifier",ift="parseJSON",aft="parseKeyValue",ho="policyName",cft="parsePostgres",uft="patternRegex",lft="parseRoute53",dft="patternString",pft="parentSourceIdentifier",Uge="policyScope",ED="policyType",fft="parseToOCSF",mft="patternTokens",gft="parseVPC",hft="parseWAF",Gge="parameters",Sft="percent",qge="policy",yft="queries",Eft="quoteCharacter",_ft="queryCompileError",Rft="queryDefinitions",_D="queryDefinitionId",Cft="queryDefinitionNamePrefix",bft="queryDuration",lc="queryId",cs="queryLanguage",dc="queryString",Aft="results",pc="resourceArn",xft="resourceArns",fc="roleArn",Tft="recordsCount",vft="resourceConfig",Dft="resultCount",Ift="retentionDays",wft="rejectedEntityInfo",RD="recordFields",Hge="resourceIdentifier",jge="retentionInDays",Pft="requestId",zge="revisionId",Oft="renameKeys",$ft="rejectedLogEventsInfo",kft="recordsMatched",Mft="resourceName",Lft="resourcePolicies",Nft="resourcePolicy",Fft="recordsScanned",Bft="responseStream",Uft="resourceType",Gft="resourceTypes",qft="renameTo",Vge="smithy.ts.sdk.synthetic.com.amazonaws.cloudwatchlogs",Wge="sizeBytes",Kge="storedBytes",Qge="selectionCriteria",Hft="startCharOffset",jft="searchedCompletely",zft="s3Configuration",Vft="statusCode",Wft="syslogConfigurations",Kft="suppressedDate",CD="s3DeliveryConfiguration",hh="scheduleExpression",bD="scheduleEndTime",Qft="startEventTime",Yft="subscriptionFilters",Yge="startFromHead",Jft="sessionId",Xft="searchedLogStreams",Zft="sessionMetadata",emt="statusMessage",tmt="suffixPath",rmt="suppressionPeriod",nmt="scheduledQueries",Sh="scheduledQueryArn",Jge="statusReason",omt="sessionResults",smt="suppressionState",AD="scheduleStartTime",imt="sessionStart",amt="splitString",cmt="substituteString",umt="sourceTimezone",lmt="s3TablesIntegration",xD="startTimeOffset",TD="scheduleType",dmt="sequenceToken",pmt="sourceType",vD="startTime",g3="storageTier",fmt="suppressionType",mmt="suppressedUntil",gmt="sessionUpdate",hmt="suppressionUnit",Smt="supportedValues",ymt="sampled",Xge="scope",Zge="server",h3="service",$r="source",Emt="sources",mc="state",kr="status",_mt="statistics",ehe="streaming",Rmt="suppressed",the="success",DD="target",rhe="targetArn",S3="tableBody",y3="transformerConfig",Cmt="typeConverter",bmt="transformedEventMessage",Amt="targetFormat",xmt="tableFields",Tmt="triggerHistory",ID="taskId",vmt="tagKeys",Dmt="transformedLogs",nhe="taskName",Imt="tooNewLogEventStartIndex",wmt="tableName",Pmt="tooOldLogEventEndIndex",Omt="tokenString",$mt="trimString",kmt="targetTimezone",Mmt="triggeredTimestamp",Mr="tags",yh="timezone",Eh="timestamp",Lmt="time",E3="to",_h="type",wD="unmask",Nmt="upperCaseString",Fmt="userIdentity",Bmt="uploadSequenceToken",Umt="unit",PD="value",OD="vpcEndpointId",Gmt="valueKey",qmt="valueType",Hmt="values",jmt="workspace",zmt="workspaceId",$D="withKeys",S="com.amazonaws.cloudwatchlogs",ohe=new qme(Vge),she=[-3,Vge,"CloudWatchLogsServiceException",0,[],[]];ohe.registerError(she,nt);var Rt=new qme(S),ihe=[-3,S,Oet,{[wt]:Jt},[je],[0]];Rt.registerError(ihe,Hx);var ahe=[-3,S,Jet,{[wt]:Jt},[je],[0]];Rt.registerError(ahe,Xx);var che=[-3,S,wtt,{[wt]:Jt},[_ge,je],[0,0]];Rt.registerError(che,rT);var uhe=[-3,S,Ast,{[wt]:Zge,[xge]:500},[je],[0]];Rt.registerError(uhe,Kx);var _3=[-3,S,jme,{[wt]:Jt},[je],[0]];Rt.registerError(_3,nT);var lhe=[-3,S,Est,{[wt]:Jt},[je],[0]];Rt.registerError(lhe,Jx);var dhe=[-3,S,Rst,{[wt]:Jt},[je],[0]];Rt.registerError(dhe,jx);var phe=[-3,S,xst,{[wt]:Jt},[_ge,je],[0,0]];Rt.registerError(phe,oT);var fhe=[-3,S,Lst,{[wt]:Jt},[je],[0]];Rt.registerError(fhe,eT);var mhe=[-3,S,Fit,{[wt]:Jt},[_ft,je],[()=>e_e,0]];Rt.registerError(mhe,cT);var ghe=[-3,S,Git,{[wt]:Jt},[je],[0]];Rt.registerError(ghe,zx);var hhe=[-3,S,Cct,{[wt]:Jt},[je],[0]];Rt.registerError(hhe,tT);var She=[-3,S,Pct,{[wt]:Jt},[je],[0]];Rt.registerError(She,Vx);var yhe=[-3,S,Jct,{[wt]:Jt},[je],[0]];Rt.registerError(yhe,Zx);var Ehe=[-3,S,mut,{[wt]:Zge},[je],[0]];Rt.registerError(Ehe,Wx);var R3=[-3,S,zme,{[wt]:Jt},[je],[0]];Rt.registerError(R3,iT);var C3=[-3,S,Vme,{[wt]:Jt},[je],[0]];Rt.registerError(C3,aT);var _he=[-3,S,yut,{[wt]:Jt},[je],[0]];Rt.registerError(_he,Qx);var Rhe=[-3,S,wut,{[wt]:Jt,[xge]:400},[je,Mft],[0,0]];Rt.registerError(Rhe,uT);var Che=[-3,S,But,{[wt]:Jt},[je],[0]];Rt.registerError(Che,sT);var bhe=[-3,S,rlt,{[wt]:Jt},[je],[0]];Rt.registerError(bhe,Yx);var Ahe=[ohe,Rt],b3=[3,S,qet,0,[ho,Ki,xn,ED,Xge,Qge,ult],[0,0,1,0,0,0,0]],xhe=[3,S,Let,0,[lp,PD,gh],[0,0,2],2],The=[3,S,Met,0,[xu],[()=>Wmt],1],vhe=[3,S,Uet,0,[ppt,Ldt],[1,()=>cgt]],Dhe=[3,S,wet,0,[Qme,Bge,ic,dft,Ddt,Apt,is,nlt,mc,Ndt,Tpt,mft,yD,uft,nft,Rmt,Kft,mmt,zdt],[0,0,0,0,1,1,0,2,0,129,()=>ygt,()=>xgt,64,0,0,2,1,1,2],13],Ihe=[3,S,Pet,0,[ic,JN,yD,cD,yi,Kme,go,Zme,$ge,sD],[0,0,64,0,0,0,0,1,1,1]],whe=[3,S,Bet,0,[go,Me,Hge],[0,0,0],1],Phe=[3,S,zet,0,[Tge,ZN],[0,()=>A3],2],Ohe=[3,S,Vet,0,[ac],[0]],$he=[3,S,Zet,0,[ID],[0],1],khe=[3,S,ott,0,[Tu],[0],1],Mhe=[3,S,stt,0,[Tu,Ige,o3,Hn,xn],[0,()=>D3,0,1,1]],Lhe=[3,S,btt,0,[h3,p3,Uft,iD,Nlt,alt,flt,olt,clt,hlt,e3,lmt],[0,0,0,0,()=>Nhe,()=>Qmt,64,0,64,64,()=>rgt,()=>m_e]],Nhe=[3,S,Att,0,[RD,mh,CD],[64,0,()=>Rh]],Fhe=[3,S,Ttt,0,[xu],[()=>Zmt],1],Bhe=[3,S,vtt,0,[$r,DD,gh],[0,0,2],2],Uhe=[3,S,Qet,0,[age,tge,RD,mh,CD,Mr],[0,0,64,0,()=>Rh,128],2],Ghe=[3,S,Yet,0,[dge],[()=>kD]],qhe=[3,S,ett,0,[Me,r3,E3,ap,nhe,l3,ige],[0,1,1,0,0,0,0],4],Hhe=[3,S,ttt,0,[ID],[0]],jhe=[3,S,itt,0,[mD,Kdt,Dge],[0,0,()=>v3],2],zhe=[3,S,att,0,[Tu,vge,Hn],[0,0,1]],Vhe=[3,S,ltt,0,[yD,JN,cD,yi,go,sD,Mr],[64,0,0,0,0,1,128],1],Whe=[3,S,dtt,0,[ic],[0]],Khe=[3,S,ftt,0,[Me,go,Mr,dp,XN],[0,0,128,0,2],1],Qhe=[3,S,gtt,0,[Me,cc],[0,0],2],Yhe=[3,S,Stt,0,[f3,is,S3,lc,go,Mr],[0,0,0,0,0,128],1],Jhe=[3,S,ytt,0,[vu,Xme],[0,1]],Xhe=[3,S,_tt,0,[Ut,cs,dc,hh,lD,is,as,yh,xD,dD,fh,AD,bD,mc,Mr],[0,0,0,0,0,0,64,0,1,1,()=>pp,1,1,0,128],5],Zhe=[3,S,Rtt,0,[Sh,mc],[0,0]],eSe=[3,S,Ctt,0,[Eft,pge,Olt,$r,ap],[0,0,64,0,0]],A3=[3,S,Cnt,0,[Ut,_h],[0,0],1],tSe=[3,S,vnt,0,[Ut,_h],[0,0],1],rSe=[3,S,Hnt,0,[$r,DD,Bpt,Amt,umt,kmt,opt],[0,0,64,0,0,0,0],3],nSe=[3,S,Ott,0,[ho,ED],[0,0],2],oSe=[3,S,Ytt,0,[dt],[0],1],sSe=[3,S,jtt,0,[YN],[0],1],iSe=[3,S,ztt,0,[Ut],[0],1],aSe=[3,S,Jtt,0,[SD],[0],1],cSe=[3,S,ort,0,[Ut],[0],1],uSe=[3,S,Xtt,0,[aD],[0],1],lSe=[3,S,Rrt,0,[dt],[0],1],dSe=[3,S,Crt,0,[],[]],pSe=[3,S,Trt,0,[up,$dt],[0,2],1],fSe=[3,S,vrt,0,[],[]],mSe=[3,S,krt,0,[$D],[64],1],gSe=[3,S,Frt,0,[ic],[0],1],hSe=[3,S,Urt,0,[Me],[0],1],SSe=[3,S,zrt,0,[Me,cc],[0,0],2],ySe=[3,S,Yrt,0,[vu],[0],1],ESe=[3,S,tnt,0,[Me,cp],[0,0],2],_Se=[3,S,cnt,0,[_D],[0],1],RSe=[3,S,unt,0,[the],[2]],CSe=[3,S,hnt,0,[ho,pc,Sge],[0,0,0]],bSe=[3,S,Snt,0,[Me],[0],1],ASe=[3,S,Fnt,0,[ac],[0],1],xSe=[3,S,Bnt,0,[],[]],TSe=[3,S,Dnt,0,[Me,cp],[0,0],2],vSe=[3,S,Ant,0,[dt,OD],[0,0],1],DSe=[3,S,jnt,0,[dt],[0],1],kD=[3,S,Itt,0,[SD,ip,age,tge,iD,RD,mh,CD,Mr],[0,0,0,0,0,64,0,()=>Rh,128]],MD=[3,S,Utt,0,[Ut,ip,iD,Fge,rge,fc,Mr],[0,0,0,0,()=>x3,0,128]],x3=[3,S,Gtt,0,[qlt],[0],1],LD=[3,S,Unt,0,[Ut,ip,xft,h3,p3,Mr,e3,kr,Jge],[0,0,64,0,0,128,128,0,0]],ISe=[3,S,xnt,0,[tpt,qmt,t3,Smt,Upt,Gpt],[0,0,0,64,1,1],3],wSe=[3,S,$tt,0,[ED,ho,nD,Q],[0,0,64,0],1],PSe=[3,S,ktt,0,[mlt,Q],[()=>Vmt,0]],OSe=[3,S,Ftt,0,[h3,Ppt,Gft,Flt,Q,Bt],[0,64,64,64,0,1]],$Se=[3,S,Btt,0,[Dlt,Q],[()=>Xmt,0]],kSe=[3,S,Ztt,0,[Q,Bt],[0,1]],MSe=[3,S,ert,0,[Xlt,Q],[()=>egt,0]],LSe=[3,S,Vtt,0,[Q,Bt],[0,1]],NSe=[3,S,Wtt,0,[Llt,Q],[()=>tgt,0]],FSe=[3,S,srt,0,[Q,Bt],[0,1]],BSe=[3,S,irt,0,[zlt,Q],[()=>ngt,0]],USe=[3,S,trt,0,[snt,Q,Bt],[0,0,1]],GSe=[3,S,rrt,0,[fge,Q],[()=>ogt,0]],qSe=[3,S,mrt,0,[ID,Vft,Q,Bt],[0,0,0,1]],HSe=[3,S,grt,0,[mdt,Q],[()=>sgt,0]],jSe=[3,S,Srt,0,[as,Bdt,Q],[64,64,0],1],zSe=[3,S,yrt,0,[Adt,Q],[()=>igt,0]],VSe=[3,S,wrt,0,[Tu,Clt,Bt,Q],[0,64,1,0],1],WSe=[3,S,Prt,0,[mD,Tu,Fdt,Q],[0,0,()=>ugt,0]],KSe=[3,S,Ort,0,[Tu,o3,mD,Bt,Q],[0,0,0,1,0]],QSe=[3,S,$rt,0,[Jdt,Q],[()=>lgt,0]],YSe=[3,S,brt,0,[as,Q],[64,0],1],JSe=[3,S,Art,0,[jdt,Q],[()=>dgt,0]],XSe=[3,S,Grt,0,[nD,mpt,c3,Q,Bt,n3,dp,as],[64,0,0,0,1,2,0,64]],ZSe=[3,S,qrt,0,[Oge,Q],[()=>hgt,0]],e0e=[3,S,Vrt,0,[Me,dt,l3,Zpt,Zlt,Q,Bt],[0,0,0,0,2,0,1]],t0e=[3,S,Wrt,0,[vpt,Q],[()=>Egt,0]],r0e=[3,S,Jrt,0,[wpt,uc,Q],[0,1,0]],n0e=[3,S,Xrt,0,[Opt,Q],[()=>_gt,0]],o0e=[3,S,rnt,0,[Me,bge,Q,Bt,Mge,Lge],[0,0,0,1,0,0]],s0e=[3,S,nnt,0,[Mpt,Q],[()=>Cgt,0]],i0e=[3,S,fnt,0,[Me,kr,uc,Q,cs],[0,0,1,0,0]],a0e=[3,S,mnt,0,[yft,Q],[()=>vgt,0]],c0e=[3,S,lnt,0,[cs,Cft,uc,Q],[0,0,1,0]],u0e=[3,S,dnt,0,[Rft,Q],[()=>Tgt,0]],l0e=[3,S,ynt,0,[Q,Bt,pc,Uge],[0,1,0,0]],d0e=[3,S,Ent,0,[Lft,Q],[()=>wgt,0]],p0e=[3,S,Int,0,[Me,bge,Q,Bt],[0,0,0,1],1],f0e=[3,S,wnt,0,[Yft,Q],[()=>Ngt,0]],T3=[3,S,znt,0,[aD,rhe,fc,QN,ip,Hn],[0,0,0,0,0,1]],pp=[3,S,Ltt,0,[zft,Dpt],[()=>p_e,()=>Kye]],m0e=[3,S,Lrt,0,[Me,Hge],[0,0]],g0e=[3,S,Ont,0,[ac],[0],1],h0e=[3,S,$nt,0,[ac],[0]],S0e=[3,S,Knt,0,[Zdt,Elt],[128,128]],y0e=[3,S,Qnt,0,[ID,nhe,Me,r3,E3,ap,ige,kr,sdt],[0,0,0,1,1,0,0,()=>_0e,()=>E0e]],E0e=[3,S,Ynt,0,[Hn,Ilt],[1,1]],_0e=[3,S,Jnt,0,[$lt,je],[0,0]],R0e=[3,S,eot,0,[dt,xdt,xpt,Cdt,apt,_h,Udt],[0,0,1,1,1,0,0]],C0e=[3,S,Znt,0,[Jlt],[21]],b0e=[3,S,rot,0,[cc,Eh,je,s3,idt],[0,1,0,1,0]],A0e=[3,S,not,0,[Me,dt,d3,l3,vD,pD,yi,Q,Bt,Yge,Xdt,wD],[0,0,64,0,1,1,0,0,1,2,2,2]],x0e=[3,S,oot,0,[Cge,Xft,Q],[()=>agt,()=>Mgt,0]],T0e=[3,S,hot,0,[dt],[0],1],v0e=[3,S,Sot,0,[dt,Ki,xn],[0,0,1]],D0e=[3,S,dot,0,[YN],[0],1],I0e=[3,S,pot,0,[qge],[()=>P3]],w0e=[3,S,fot,0,[Ut],[0],1],P0e=[3,S,mot,0,[oge],[()=>MD]],O0e=[3,S,yot,0,[SD],[0],1],$0e=[3,S,Eot,0,[dge],[()=>kD]],k0e=[3,S,Rot,0,[Ut],[0],1],M0e=[3,S,Cot,0,[lge],[()=>LD]],L0e=[3,S,Aot,0,[up],[0],1],N0e=[3,S,xot,0,[up,hD,gD,Gdt],[0,0,0,()=>sRe]],F0e=[3,S,Iot,0,[ic],[0],1],B0e=[3,S,wot,0,[JN,yD,cD,yi,Kme,go,Zme,$ge,sD],[0,64,0,0,0,0,1,1,1]],U0e=[3,S,Oot,0,[cc,Me,dt,vD,pD,Q,Bt,Yge,wD],[0,0,0,1,1,0,1,2,2],1],G0e=[3,S,$ot,0,[Cge,Kpt,Wpt],[()=>Agt,0,0]],q0e=[3,S,Mot,0,[cge,jlt],[0,0],2],H0e=[3,S,Lot,0,[upt],[()=>tRe]],j0e=[3,S,Fot,0,[Me,Lmt,dt],[0,1,0]],z0e=[3,S,Bot,0,[fpt],[()=>ggt]],V0e=[3,S,Got,0,[_pt,wD],[0,2],1],W0e=[3,S,Hot,0,[Idt],[[()=>oRe,0]]],K0e=[3,S,zot,0,[bpt,wD],[0,2],1],Q0e=[3,S,Vot,0,[Cpt],[128]],Y0e=[3,S,Kot,0,[vu],[0],1],J0e=[3,S,Qot,0,[vu,f3,is,S3,Wge,xn,go],[0,0,0,0,1,1,0]],X0e=[3,S,Jot,0,[lc,Q,Npt],[0,0,1],1],Z0e=[3,S,Xot,0,[cs,Aft,_mt,kr,adt,Q],[0,()=>Dgt,()=>s_e,0,0,0]],eye=[3,S,tst,0,[ac,vD,pD,ddt,uc,Q],[0,1,1,64,1,0],3],tye=[3,S,rst,0,[Ut,Sh,Tmt,Q],[0,0,()=>qgt,0]],rye=[3,S,nst,0,[ac],[0],1],nye=[3,S,ost,0,[Sh,Ut,is,cs,dc,as,hh,yh,xD,dD,fh,mc,TD,m3,i3,AD,bD,lD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>pp,0,0,1,0,1,1,0,1,1]],oye=[3,S,ist,0,[],[]],sye=[3,S,ast,0,[g3,xn],[0,1]],iye=[3,S,ust,0,[dt],[0],1],aye=[3,S,lst,0,[dt,Hn,Ept,y3],[0,1,1,()=>$3]],cye=[3,S,aot,0,[jpt,$r],[0,0],1],uye=[3,S,bot,0,[lp,PD],[0,0]],lye=[3,S,dst,0,[Tu,mD,o3,vge,Ige,Dge,Hn,xn,uD],[0,0,0,0,()=>D3,()=>v3,1,1,0]],dye=[3,S,pst,0,[Rlt,kr,uD],[0,0,0],2],v3=[3,S,gst,0,[Qft,ndt],[1,1]],D3=[3,S,bst,0,[blt],[1]],I3=[3,S,_st,0,[dt,$pt,Ki,ho,$r],[0,1,0,0,0]],pye=[3,S,Sst,0,[Eh,je],[1,0],2],fye=[3,S,Tst,0,[up,hD,gD],[0,0,0]],mye=[3,S,wst,0,[Mdt,nD,n3,dp,c3,uge,Q,Bt],[0,64,2,0,0,()=>eRe,0,1],1],gye=[3,S,Pst,0,[plt,Q],[()=>Kmt,0]],hye=[3,S,Ost,0,[ic,smt,Bt,Q],[0,0,1,0]],Sye=[3,S,$st,0,[Slt,Q],[()=>Ymt,0]],yye=[3,S,Wst,0,[Hdt,hD,gD],[0,0,0]],Eye=[3,S,Kst,0,[Qdt],[()=>fgt]],_ye=[3,S,Yst,0,[vdt,Bt,Q],[0,1,0]],Rye=[3,S,Jst,0,[slt,Q],[()=>Jmt,0]],Cye=[3,S,eit,0,[lc,Q,uc],[0,0,1],1],bye=[3,S,tit,0,[as,Q],[64,0]],Aye=[3,S,rit,0,[c3,dp,n3,nD,Q,Bt,uge,Tdt,hpt],[0,0,2,64,0,1,()=>eRe,64,()=>Ugt]],xye=[3,S,nit,0,[Oge,Q],[()=>Sgt,0]],Tye=[3,S,pit,0,[uc,Q,mc,TD],[1,0,0,0]],vye=[3,S,fit,0,[Q,nmt],[0,()=>kgt]],Dye=[3,S,uit,0,[Tge,uc,Q],[0,1,0],1],Iye=[3,S,lit,0,[Emt,Q],[()=>Ogt,0]],wye=[3,S,iit,0,[dt,OD,Q,uc],[0,0,0,1]],Pye=[3,S,ait,0,[Wft,Q],[()=>Bgt,0]],Oye=[3,S,Eit,0,[pc],[0],1],$ye=[3,S,_it,0,[Mr],[128]],kye=[3,S,Cit,0,[Me],[0],1],Mye=[3,S,bit,0,[Mr],[128]],Lye=[3,S,Ait,0,[$r,lp,Gmt,DD,Odt,Rdt],[0,0,0,0,2,0],2],Nye=[3,S,xit,0,[cc,dt,je,Eh,s3],[0,0,0,1,1]],Fye=[3,S,Tit,0,[ymt],[2]],Bye=[3,S,Dit,0,[Pft,Jft,as,d3,kge,wge],[0,0,64,64,64,0]],Uye=[3,S,Iit,0,[Zft,omt],[()=>Fye,()=>mgt]],Gye=[3,S,Mst,0,[Eh,je],[1,0]],qye=[3,S,Fst,0,[lpt,dpt],[0,()=>w3]],w3=[3,S,Bst,0,[_h,Sdt,Age],[0,()=>w3,()=>tRe]],Hye=[3,S,Ust,0,[Me,Hn,jge,Lpt,ip,Kge,go,Glt,Vdt,dp,a3,XN,Jme],[0,1,1,1,0,1,0,0,64,0,0,2,2]],jye=[3,S,Gst,0,[Ut,Sft],[0,1]],zye=[3,S,Hst,0,[Me,a3,dp],[0,0,0]],Vye=[3,S,oit,0,[cc,Hn,bdt,cpt,Spt,Bmt,ip,Kge],[0,1,1,1,1,0,0,1]],Wye=[3,S,hit,0,[vu,f3,is,xmt,Tft,Wge,xn,go],[0,0,0,64,1,1,1,0]],Kye=[3,S,Sit,0,[wmt,fc,is,go,Mr],[0,0,0,0,128],2],Qye=[3,S,kst,0,[$D],[64],1],Yye=[3,S,Pit,0,[cp,yi,Nge,Hn,Me,oD,fD,Ege],[0,0,()=>rRe,1,0,2,0,64]],Jye=[3,S,$it,0,[hge,gge,hdt],[1,0,128]],Xye=[3,S,Bit,0,[Mge,Lge,Hpt,t3,edt,Umt],[0,0,0,1,128,0],3],Zye=[3,S,Lit,0,[$r,DD,gh],[0,0,2],2],eEe=[3,S,Mit,0,[xu],[()=>bgt],1],tEe=[3,S,jit,0,[ilt,Wme,llt,kr],[0,0,0,()=>Qi]],rEe=[3,S,zit,0,[xlt,Alt,kr],[0,0,()=>Qi]],nEe=[3,S,Vit,0,[ho,kr],[0,()=>Qi]],oEe=[3,S,Wit,0,[cge,kr],[0,()=>Qi]],sEe=[3,S,Kit,0,[ho,kr],[0,()=>Qi]],iEe=[3,S,Qit,0,[ZN,ylt,klt,jmt,udt,Ypt,QN,Rpt],[()=>oEe,()=>tEe,()=>rEe,()=>lEe,()=>sEe,()=>cEe,()=>nEe,()=>aEe]],aEe=[3,S,Yit,0,[ho,kr],[0,()=>Qi]],cEe=[3,S,Jit,0,[ho,kr],[0,()=>Qi]],uEe=[3,S,Xit,0,[Hlt,Ylt,Ift,ept,Wme],[0,64,1,0,0],3],Qi=[3,S,Zit,0,[kr,emt],[0,0]],lEe=[3,S,eat,0,[zmt,kr],[0,()=>Qi]],dEe=[3,S,qit,0,[Eh,je,s3],[1,0,1]],pEe=[3,S,aat,0,[$r],[0]],fEe=[3,S,Pat,0,[$r,ap],[0,0]],mEe=[3,S,Oat,0,[$r,ap,mh,npt,rpt,Qpt,gh],[0,0,0,0,0,0,2]],gEe=[3,S,Uat,0,[$r],[0]],hEe=[3,S,jat,0,[$r],[0]],SEe=[3,S,oct,0,[pdt,rft,$r,qpt],[0,0,0,0],2],yEe=[3,S,cct,0,[$r],[0]],EEe=[3,S,uct,0,[$r],[0]],_Ee=[3,S,nct,0,[Klt,qdt,Omt,_dt,Ydt],[1,2,0,129,0]],P3=[3,S,tat,0,[nge],[0]],REe=[3,S,lct,0,[dlt,Plt,Mlt,Wlt,Blt,kdt,Ipt,spt,Fpt,oft,ift,aft,lft,fft,cft,gft,hft,Oft,amt,cmt,$mt,Cmt,Nmt],[()=>The,()=>Fhe,()=>eSe,()=>rSe,()=>mSe,()=>cye,()=>Lye,()=>Qye,()=>eEe,()=>pEe,()=>fEe,()=>mEe,()=>hEe,()=>SEe,()=>gEe,()=>yEe,()=>EEe,()=>l_e,()=>y_e,()=>v_e,()=>U_e,()=>G_e,()=>Z_e]],CEe=[3,S,nat,0,[ho,Ki,ED,Xge,Qge],[0,0,0,0,0],3],bEe=[3,S,oat,0,[glt],[()=>b3]],AEe=[3,S,iat,0,[dt,Jme],[0,2],2],xEe=[3,S,Sat,0,[dt,Ki],[0,0],2],TEe=[3,S,yat,0,[dt,Ki,xn],[0,0,1]],vEe=[3,S,dat,0,[YN,nge],[0,0],2],DEe=[3,S,pat,0,[qge],[()=>P3]],IEe=[3,S,fat,0,[Ut,Fge,rge,iD,fc,Mr],[0,0,()=>x3,0,0,128],1],wEe=[3,S,mat,0,[oge],[()=>MD]],PEe=[3,S,bat,0,[Ut,pc,p3,Mr,e3],[0,0,0,128,128],3],OEe=[3,S,Aat,0,[lge],[()=>LD]],$Ee=[3,S,Eat,0,[aD,QN,wdt],[0,0,2],2],kEe=[3,S,_at,0,[aD,rhe,fc,Mr],[0,0,0,128],3],MEe=[3,S,Rat,0,[ap],[()=>T3]],LEe=[3,S,vat,0,[dt,Ki],[0,0],2],NEe=[3,S,Dat,0,[Wdt],[()=>I3]],FEe=[3,S,Iat,0,[up,vft,hD],[0,()=>iRe,0],3],BEe=[3,S,wat,0,[up,gD],[0,0]],UEe=[3,S,kat,0,[Me,cc,ipt,dmt,Edt],[0,0,()=>pgt,0,()=>S0e],3],GEe=[3,S,Mat,0,[Jpt,$ft,wft],[0,()=>c_e,()=>a_e]],qEe=[3,S,Nat,0,[dt,XN],[0,2],2],HEe=[3,S,Bat,0,[Me,cp,yi,Nge,oD,fD,Ege],[0,0,0,()=>rRe,2,0,64],4],jEe=[3,S,qat,0,[Ut,dc,cs,_D,u3,vlt,Gge],[0,0,0,0,64,[0,4],()=>nRe],2],zEe=[3,S,Hat,0,[_D],[0]],VEe=[3,S,Vat,0,[ho,Ki,pc,Sge],[0,0,0,0]],WEe=[3,S,Wat,0,[Nft,zge],[()=>O3,0]],KEe=[3,S,Kat,0,[Me,jge],[0,1],2],QEe=[3,S,tct,0,[g3],[0],1],YEe=[3,S,rct,0,[g3,xn],[0,1]],JEe=[3,S,Zat,0,[Me,cp,yi,ege,fc,mge,oD,fD,yge],[0,0,0,0,0,0,2,0,64],4],XEe=[3,S,Jat,0,[dt,OD],[0,0],1],ZEe=[3,S,sct,0,[dt,y3],[0,()=>$3],2],e_e=[3,S,pct,0,[kpt,je],[()=>t_e,0]],t_e=[3,S,fct,0,[Hft,rdt],[1,1]],r_e=[3,S,mct,0,[cs,_D,Ut,dc,ypt,u3,Gge],[0,0,0,0,1,64,()=>nRe]],n_e=[3,S,hct,0,[cs,lc,dc,kr,wlt,Me,bft,Yme,Fmt],[0,0,0,0,1,0,1,1,0]],o_e=[3,S,yct,0,[Ut,t3,is],[0,0,0],1],s_e=[3,S,Rct,0,[kft,Fft,ldt,Yme,tdt,gpt,Dft],[1,1,1,1,1,1,1]],i_e=[3,S,xct,0,[Ut,zpt],[0,2]],a_e=[3,S,Act,0,[gdt],[0],1],c_e=[3,S,wct,0,[Imt,Pmt,cdt],[1,1,1]],u_e=[3,S,Dct,0,[lp,qft,gh],[0,0,2],2],l_e=[3,S,vct,0,[xu],[()=>Igt],1],O3=[3,S,Oct,0,[ho,Ki,xn,Uge,pc,zge],[0,0,1,0,0,0]],d_e=[3,S,Tct,0,[Pdt,PD],[0,0]],p_e=[3,S,Mct,0,[sge,fc,Xpt,go],[0,0,0,0],2],Rh=[3,S,Fct,0,[tmt,odt],[0,2]],f_e=[3,S,put,0,[ac,ZN,kr,Jge,Tlt,pft],[0,()=>A3,0,0,1,0]],m_e=[3,S,dut,0,[Ult,Vlt],[0,0]],g_e=[3,S,Qct,0,[Qlt,sge,kr,sft,uD],[0,0,0,0,0]],h_e=[3,S,rut,0,[Sh,Ut,mc,TD,m3,i3,hh,yh,fh,Hn,xn],[0,0,0,0,1,0,0,0,()=>pp,1,1]],S_e=[3,S,Gct,0,[cc,jft],[0,2]],y_e=[3,S,sut,0,[xu],[()=>Lgt],1],E_e=[3,S,iut,0,[$r,pge],[0,0],2],__e=[3,S,jct,0,[as,d3,kge,wge],[64,64,64,0],1],R_e=[3,S,Vct,0,[Bft],[[()=>aRe,0]]],C_e=[3,S,Xct,0,[vD,pD,dc,cs,Me,u3,as,Bt],[1,1,0,0,0,64,64,1],3],b_e=[3,S,Zct,0,[lc],[0]],A_e=[3,S,eut,0,[lc],[0],1],x_e=[3,S,tut,0,[the],[2]],T_e=[3,S,Bct,0,[cp,Me,yi,ege,fc,mge,oD,Hn,fD,yge],[0,0,0,0,0,0,2,1,0,64]],v_e=[3,S,lut,0,[xu],[()=>Fgt],1],D_e=[3,S,cut,0,[$r,r3,E3],[0,0,0],3],I_e=[3,S,Wct,0,[PD,hmt],[1,0]],w_e=[3,S,Lct,0,[a3,pmt,OD,Xme],[0,0,0,1]],P_e=[3,S,Eut,0,[lp,Hmt],[0,64],1],O_e=[3,S,xut,0,[Me,Mr],[0,128],2],$_e=[3,S,Out,0,[pc,Mr],[0,128],2],k_e=[3,S,Dut,0,[yi,Pge],[0,64],2],M_e=[3,S,Iut,0,[Vpt],[()=>Rgt]],L_e=[3,S,Mut,0,[y3,Pge],[()=>$3,64],2],N_e=[3,S,Lut,0,[Dmt],[()=>Ggt]],F_e=[3,S,Tut,0,[hge,gge,bmt],[1,0,0]],B_e=[3,S,Rut,0,[lc,fdt,Mmt,uD,fge],[0,0,1,0,()=>$gt]],U_e=[3,S,$ut,0,[$D],[64],1],G_e=[3,S,gut,0,[xu],[()=>Hgt],1],q_e=[3,S,hut,0,[lp,_h],[0,0],2],H_e=[3,S,Wut,0,[Me,Mr],[0,64],2],j_e=[3,S,Xut,0,[pc,vmt],[0,64],2],z_e=[3,S,Fut,0,[ic,Qme,Bge,fmt,rmt,_lt],[0,0,0,0,()=>I_e,2],1],V_e=[3,S,qut,0,[SD,RD,mh,CD],[0,64,0,()=>Rh],1],W_e=[3,S,Hut,0,[],[]],K_e=[3,S,zut,0,[ic,ydt,cD,yi,sD],[0,2,0,0,1],2],Q_e=[3,S,Qut,0,[vu,is,S3,lc,go],[0,0,0,0,0],1],Y_e=[3,S,Yut,0,[vu,xn],[0,1]],J_e=[3,S,elt,0,[ac,cs,dc,hh,lD,is,as,yh,xD,dD,fh,AD,bD,mc],[0,0,0,0,0,0,64,0,1,1,()=>pp,1,1,0],5],X_e=[3,S,tlt,0,[Sh,Ut,is,cs,dc,as,hh,yh,xD,dD,fh,mc,TD,m3,i3,AD,bD,lD,Hn,xn],[0,0,0,0,0,64,0,0,1,1,()=>pp,0,0,1,0,1,1,0,1,1]],Z_e=[3,S,Uut,0,[$D],[64],1],Se="unit",Vmt=[1,S,Het,0,()=>b3],Wmt=[1,S,Net,0,()=>xhe],Kmt=[1,S,Get,0,()=>vhe],Qmt=[1,S,ket,0,()=>i_e],Ymt=[1,S,Wet,0,()=>Dhe],Jmt=[1,S,$et,0,()=>Ihe],Xmt=[1,S,xtt,0,()=>Lhe],Zmt=[1,S,Dtt,0,()=>Bhe],eRe=[1,S,knt,0,()=>tSe],egt=[1,S,Vnt,0,()=>kD],tgt=[1,S,crt,0,()=>MD],rgt=[1,S,Tnt,0,()=>ISe],ngt=[1,S,Gnt,0,()=>LD],ogt=[1,S,Wnt,0,()=>T3],sgt=[1,S,Xnt,0,()=>y0e],igt=[1,S,tot,0,()=>R0e],agt=[1,S,sot,0,()=>b0e],cgt=[1,S,vot,0,()=>uye],ugt=[1,S,fst,0,()=>dye],lgt=[1,S,hst,0,()=>lye],dgt=[1,S,Cst,0,()=>I3],pgt=[1,S,yst,0,()=>pye],fgt=[1,S,vst,0,()=>fye],mgt=[1,S,vit,0,()=>Nye],tRe=[1,S,Nst,0,()=>qye],ggt=[1,S,qst,0,()=>jye],hgt=[1,S,zst,0,()=>Hye],Sgt=[1,S,jst,0,()=>zye],ygt=[1,S,mit,0,()=>Gye],Egt=[1,S,git,0,()=>Vye],_gt=[1,S,wit,0,()=>Wye],Rgt=[1,S,Oit,0,()=>Jye],Cgt=[1,S,kit,0,()=>Yye],rRe=[1,S,Uit,0,()=>Xye],bgt=[1,S,Nit,0,()=>Zye],Agt=[1,S,Hit,0,()=>dEe],xgt=[1,S,ict,0,()=>_Ee],$3=[1,S,dct,0,()=>REe],Tgt=[1,S,gct,0,()=>r_e],vgt=[1,S,Sct,0,()=>n_e],nRe=[1,S,Ect,0,()=>o_e],Dgt=[1,S,_ct,0,()=>Pgt],Igt=[1,S,Ict,0,()=>u_e],wgt=[1,S,$ct,0,()=>O3],Pgt=[1,S,kct,0,()=>d_e],Ogt=[1,S,fut,0,()=>f_e],$gt=[1,S,Yct,0,()=>g_e],kgt=[1,S,nut,0,()=>h_e],Mgt=[1,S,qct,0,()=>S_e],Lgt=[1,S,aut,0,()=>E_e],Ngt=[1,S,Uct,0,()=>T_e],Fgt=[1,S,uut,0,()=>D_e],Bgt=[1,S,Nct,0,()=>w_e],Ugt=[1,S,_ut,0,()=>P_e],Ggt=[1,S,but,0,()=>F_e],qgt=[1,S,Cut,0,()=>B_e],Hgt=[1,S,Sut,0,()=>q_e],oRe=[4,S,qot,{[ehe]:1},[Age,jme],[()=>C0e,[()=>_3,0]]],sRe=[4,S,mst,0,[eft],[()=>iEe]],iRe=[4,S,bct,0,[tft],[()=>uEe]],aRe=[4,S,zct,{[ehe]:1},[imt,gmt,Vme,zme],[()=>Bye,()=>Uye,[()=>C3,0],[()=>R3,0]]],cRe=[9,S,Fet,0,()=>whe,()=>Se],uRe=[9,S,jet,0,()=>Phe,()=>Ohe],lRe=[9,S,Xet,0,()=>$he,()=>Se],dRe=[9,S,ntt,0,()=>khe,()=>Mhe],pRe=[9,S,Ket,0,()=>Uhe,()=>Ghe],fRe=[9,S,rtt,0,()=>qhe,()=>Hhe],mRe=[9,S,ctt,0,()=>jhe,()=>zhe],gRe=[9,S,utt,0,()=>Vhe,()=>Whe],hRe=[9,S,ptt,0,()=>Khe,()=>Se],SRe=[9,S,mtt,0,()=>Qhe,()=>Se],yRe=[9,S,htt,0,()=>Yhe,()=>Jhe],ERe=[9,S,Ett,0,()=>Xhe,()=>Zhe],_Re=[9,S,Ptt,0,()=>nSe,()=>Se],RRe=[9,S,Qtt,0,()=>oSe,()=>Se],CRe=[9,S,urt,0,()=>aSe,()=>Se],bRe=[9,S,qtt,0,()=>iSe,()=>Se],ARe=[9,S,Htt,0,()=>sSe,()=>Se],xRe=[9,S,nrt,0,()=>cSe,()=>Se],TRe=[9,S,lrt,0,()=>uSe,()=>Se],vRe=[9,S,_rt,0,()=>lSe,()=>dSe],DRe=[9,S,Ert,0,()=>pSe,()=>fSe],IRe=[9,S,Nrt,0,()=>gSe,()=>Se],wRe=[9,S,Brt,0,()=>hSe,()=>Se],PRe=[9,S,jrt,0,()=>SSe,()=>Se],ORe=[9,S,Qrt,0,()=>ySe,()=>Se],$Re=[9,S,ent,0,()=>ESe,()=>Se],kRe=[9,S,ant,0,()=>_Se,()=>RSe],MRe=[9,S,gnt,0,()=>CSe,()=>Se],LRe=[9,S,_nt,0,()=>bSe,()=>Se],NRe=[9,S,Nnt,0,()=>ASe,()=>xSe],FRe=[9,S,Mnt,0,()=>TSe,()=>Se],BRe=[9,S,bnt,0,()=>vSe,()=>Se],URe=[9,S,qnt,0,()=>DSe,()=>Se],GRe=[9,S,Mtt,0,()=>wSe,()=>PSe],qRe=[9,S,Ntt,0,()=>OSe,()=>$Se],HRe=[9,S,drt,0,()=>kSe,()=>MSe],jRe=[9,S,Ktt,0,()=>LSe,()=>NSe],zRe=[9,S,art,0,()=>FSe,()=>BSe],VRe=[9,S,prt,0,()=>USe,()=>GSe],WRe=[9,S,frt,0,()=>qSe,()=>HSe],KRe=[9,S,hrt,0,()=>jSe,()=>zSe],QRe=[9,S,Irt,0,()=>VSe,()=>WSe],YRe=[9,S,Drt,0,()=>KSe,()=>QSe],JRe=[9,S,xrt,0,()=>YSe,()=>JSe],XRe=[9,S,Hrt,0,()=>XSe,()=>ZSe],ZRe=[9,S,Krt,0,()=>e0e,()=>t0e],eCe=[9,S,Zrt,0,()=>r0e,()=>n0e],tCe=[9,S,ont,0,()=>o0e,()=>s0e],rCe=[9,S,int,0,()=>i0e,()=>a0e],nCe=[9,S,pnt,0,()=>c0e,()=>u0e],oCe=[9,S,Rnt,0,()=>l0e,()=>d0e],sCe=[9,S,Lnt,0,()=>p0e,()=>f0e],iCe=[9,S,Mrt,0,()=>m0e,()=>Se],aCe=[9,S,Pnt,0,()=>g0e,()=>h0e],cCe=[9,S,iot,0,()=>A0e,()=>x0e],uCe=[9,S,got,0,()=>T0e,()=>v0e],lCe=[9,S,cot,0,()=>O0e,()=>$0e],dCe=[9,S,uot,0,()=>w0e,()=>P0e],pCe=[9,S,lot,0,()=>D0e,()=>I0e],fCe=[9,S,_ot,0,()=>k0e,()=>M0e],mCe=[9,S,Tot,0,()=>L0e,()=>N0e],gCe=[9,S,Dot,0,()=>F0e,()=>B0e],hCe=[9,S,Pot,0,()=>U0e,()=>G0e],SCe=[9,S,kot,0,()=>q0e,()=>H0e],yCe=[9,S,Not,0,()=>j0e,()=>z0e],ECe=[9,S,Uot,{[Rge]:["stream-"]},()=>V0e,()=>W0e],_Ce=[9,S,jot,0,()=>K0e,()=>Q0e],RCe=[9,S,Wot,0,()=>Y0e,()=>J0e],CCe=[9,S,Yot,0,()=>X0e,()=>Z0e],bCe=[9,S,Zot,0,()=>rye,()=>nye],ACe=[9,S,est,0,()=>eye,()=>tye],xCe=[9,S,sst,0,()=>oye,()=>sye],TCe=[9,S,cst,0,()=>iye,()=>aye],vCe=[9,S,Ist,0,()=>mye,()=>gye],DCe=[9,S,Dst,0,()=>hye,()=>Sye],ICe=[9,S,Vst,0,()=>yye,()=>Eye],wCe=[9,S,Qst,0,()=>_ye,()=>Rye],PCe=[9,S,Xst,0,()=>Aye,()=>xye],OCe=[9,S,Zst,0,()=>Cye,()=>bye],$Ce=[9,S,dit,0,()=>Tye,()=>vye],kCe=[9,S,cit,0,()=>Dye,()=>Iye],MCe=[9,S,sit,0,()=>wye,()=>Pye],LCe=[9,S,yit,0,()=>Oye,()=>$ye],NCe=[9,S,Rit,0,()=>kye,()=>Mye],FCe=[9,S,rat,0,()=>CEe,()=>bEe],BCe=[9,S,sat,0,()=>AEe,()=>Se],UCe=[9,S,hat,0,()=>xEe,()=>TEe],GCe=[9,S,uat,0,()=>IEe,()=>wEe],qCe=[9,S,lat,0,()=>vEe,()=>DEe],HCe=[9,S,Cat,0,()=>PEe,()=>OEe],jCe=[9,S,cat,0,()=>kEe,()=>MEe],zCe=[9,S,gat,0,()=>$Ee,()=>Se],VCe=[9,S,Tat,0,()=>LEe,()=>NEe],WCe=[9,S,xat,0,()=>FEe,()=>BEe],KCe=[9,S,$at,0,()=>UEe,()=>GEe],QCe=[9,S,Lat,0,()=>qEe,()=>Se],YCe=[9,S,Fat,0,()=>HEe,()=>Se],JCe=[9,S,Gat,0,()=>jEe,()=>zEe],XCe=[9,S,zat,0,()=>VEe,()=>WEe],ZCe=[9,S,Qat,0,()=>KEe,()=>Se],ebe=[9,S,ect,0,()=>QEe,()=>YEe],tbe=[9,S,Xat,0,()=>JEe,()=>Se],rbe=[9,S,Yat,0,()=>XEe,()=>Se],nbe=[9,S,act,0,()=>ZEe,()=>Se],obe=[9,S,Hct,{[Rge]:["stream-"]},()=>__e,()=>R_e],sbe=[9,S,Kct,0,()=>C_e,()=>b_e],ibe=[9,S,out,0,()=>A_e,()=>x_e],abe=[9,S,Aut,0,()=>O_e,()=>Se],cbe=[9,S,Put,0,()=>$_e,()=>Se],ube=[9,S,vut,0,()=>k_e,()=>M_e],lbe=[9,S,kut,0,()=>L_e,()=>N_e],dbe=[9,S,Vut,0,()=>H_e,()=>Se],pbe=[9,S,Jut,0,()=>j_e,()=>Se],fbe=[9,S,Nut,0,()=>z_e,()=>Se],mbe=[9,S,Gut,0,()=>V_e,()=>W_e],gbe=[9,S,jut,0,()=>K_e,()=>Se],hbe=[9,S,Kut,0,()=>Q_e,()=>Y_e],Sbe=[9,S,Zut,0,()=>J_e,()=>X_e],jgt=t=>({apiVersion:"2014-03-28",base64Decoder:t?.base64Decoder??uet,base64Encoder:t?.base64Encoder??cet,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Iet,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Eet,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new net}],logger:t?.logger??new AZe,protocol:t?.protocol??met,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cloudwatchlogs",errorTypeRegistries:Ahe,xmlNamespace:"http://monitoring.amazonaws.com/doc/2014-03-28/",version:"2014-03-28",serviceTarget:"Logs_20140328"},serviceId:t?.serviceId??"CloudWatch Logs",sha256:t?.sha256??get,urlParser:t?.urlParser??VZe,utf8Decoder:t?.utf8Decoder??aet,utf8Encoder:t?.utf8Encoder??iet}),zgt=t=>{xZe(process.version);let e=OZe(t),r=()=>e().then(TZe),n=jgt(t);cZe(process.version);let o={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Cu(oet,o),bodyLengthChecker:t?.bodyLengthChecker??det,credentialDefaultProvider:t?.credentialDefaultProvider??set,defaultUserAgentProvider:t?.defaultUserAgentProvider??uZe({serviceId:n.serviceId,clientVersion:Aet.version}),eventStreamSerdeProvider:t?.eventStreamSerdeProvider??jZe,maxAttempts:t?.maxAttempts??Cu(XZe,t),region:t?.region??Cu(MZe,{...LZe,...o}),requestHandler:fet.create(t?.requestHandler??r),retryMode:t?.retryMode??Cu({...JZe,default:async()=>(await r()).retryMode||YZe},t),streamCollector:t?.streamCollector??pet,useDualstackEndpoint:t?.useDualstackEndpoint??Cu(kZe,o),useFipsEndpoint:t?.useFipsEndpoint??Cu($Ze,o),userAgentAppId:t?.userAgentAppId??Cu(lZe,o)}},Vgt=t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(o){let s=e.findIndex(i=>i.schemeId===o.schemeId);s===-1?e.push(o):e.splice(s,1,o)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){n=o},credentials(){return n}}},Wgt=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Kgt=(t,e)=>{let r=Object.assign(dZe(t),vZe(t),WZe(t),Vgt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,pZe(r),DZe(r),KZe(r),Wgt(r))},_t=class extends Gme{config;constructor(...[e]){let r=zgt(e||{});super(r),this.initConfig=r;let n=Ret(r),o=fZe(n),s=ZZe(o),i=NZe(s),a=mZe(i),c=qZe(a),u=zZe(c),f=_et(u),m=Kgt(f,e?.extensions||[]);this.config=m,this.middlewareStack.use(tet(this.config)),this.middlewareStack.use(gZe(this.config)),this.middlewareStack.use(eet(this.config)),this.middlewareStack.use(QZe(this.config)),this.middlewareStack.use(hZe(this.config)),this.middlewareStack.use(SZe(this.config)),this.middlewareStack.use(yZe(this.config)),this.middlewareStack.use(EZe(this.config,{httpAuthSchemeParametersProvider:het,identityProviderConfigProvider:async y=>new _Ze({"aws.auth#sigv4":y.credentials})})),this.middlewareStack.use(RZe(this.config))}destroy(){super.destroy()}},P=IZe(Cet,"Logs_20140328","CloudWatchLogsClient",HZe),O={},$=(t,e,r,n)=>[],lT=class extends P(O,$,"AssociateKmsKey",cRe){},dT=class extends P(O,$,"AssociateSourceToS3TableIntegration",uRe){},pT=class extends P(O,$,"CancelExportTask",lRe){},fT=class extends P(O,$,"CancelImportTask",dRe){},mT=class extends P(O,$,"CreateDelivery",pRe){},gT=class extends P(O,$,"CreateExportTask",fRe){},hT=class extends P(O,$,"CreateImportTask",mRe){},ST=class extends P(O,$,"CreateLogAnomalyDetector",gRe){},yT=class extends P(O,$,"CreateLogGroup",hRe){},ET=class extends P(O,$,"CreateLogStream",SRe){},_T=class extends P(O,$,"CreateLookupTable",yRe){},RT=class extends P(O,$,"CreateScheduledQuery",ERe){},CT=class extends P(O,$,"DeleteAccountPolicy",_Re){},bT=class extends P(O,$,"DeleteDataProtectionPolicy",RRe){},AT=class extends P(O,$,"DeleteDelivery",CRe){},xT=class extends P(O,$,"DeleteDeliveryDestination",bRe){},TT=class extends P(O,$,"DeleteDeliveryDestinationPolicy",ARe){},vT=class extends P(O,$,"DeleteDeliverySource",xRe){},DT=class extends P(O,$,"DeleteDestination",TRe){},IT=class extends P(O,$,"DeleteIndexPolicy",vRe){},wT=class extends P(O,$,"DeleteIntegration",DRe){},PT=class extends P(O,$,"DeleteLogAnomalyDetector",IRe){},OT=class extends P(O,$,"DeleteLogGroup",wRe){},$T=class extends P(O,$,"DeleteLogStream",PRe){},kT=class extends P(O,$,"DeleteLookupTable",ORe){},MT=class extends P(O,$,"DeleteMetricFilter",$Re){},LT=class extends P(O,$,"DeleteQueryDefinition",kRe){},NT=class extends P(O,$,"DeleteResourcePolicy",MRe){},FT=class extends P(O,$,"DeleteRetentionPolicy",LRe){},BT=class extends P(O,$,"DeleteScheduledQuery",NRe){},UT=class extends P(O,$,"DeleteSubscriptionFilter",FRe){},GT=class extends P(O,$,"DeleteSyslogConfiguration",BRe){},qT=class extends P(O,$,"DeleteTransformer",URe){},HT=class extends P(O,$,"DescribeAccountPolicies",GRe){},Qg=class extends P(O,$,"DescribeConfigurationTemplates",qRe){},Yg=class extends P(O,$,"DescribeDeliveries",HRe){},Jg=class extends P(O,$,"DescribeDeliveryDestinations",jRe){},Xg=class extends P(O,$,"DescribeDeliverySources",zRe){},Zg=class extends P(O,$,"DescribeDestinations",VRe){},jT=class extends P(O,$,"DescribeExportTasks",WRe){},zT=class extends P(O,$,"DescribeFieldIndexes",KRe){},VT=class extends P(O,$,"DescribeImportTaskBatches",QRe){},WT=class extends P(O,$,"DescribeImportTasks",YRe){},KT=class extends P(O,$,"DescribeIndexPolicies",JRe){},eh=class extends P(O,$,"DescribeLogGroups",XRe){},th=class extends P(O,$,"DescribeLogStreams",ZRe){},QT=class extends P(O,$,"DescribeLookupTables",eCe){},rh=class extends P(O,$,"DescribeMetricFilters",tCe){},YT=class extends P(O,$,"DescribeQueries",rCe){},JT=class extends P(O,$,"DescribeQueryDefinitions",nCe){},XT=class extends P(O,$,"DescribeResourcePolicies",oCe){},nh=class extends P(O,$,"DescribeSubscriptionFilters",sCe){},ZT=class extends P(O,$,"DisassociateKmsKey",iCe){},ev=class extends P(O,$,"DisassociateSourceFromS3TableIntegration",aCe){},oh=class extends P(O,$,"FilterLogEvents",cCe){},tv=class extends P(O,$,"GetDataProtectionPolicy",uCe){},rv=class extends P(O,$,"GetDelivery",lCe){},nv=class extends P(O,$,"GetDeliveryDestination",dCe){},ov=class extends P(O,$,"GetDeliveryDestinationPolicy",pCe){},sv=class extends P(O,$,"GetDeliverySource",fCe){},iv=class extends P(O,$,"GetIntegration",mCe){},av=class extends P(O,$,"GetLogAnomalyDetector",gCe){},sh=class extends P(O,$,"GetLogEvents",hCe){},cv=class extends P(O,$,"GetLogFields",SCe){},uv=class extends P(O,$,"GetLogGroupFields",yCe){},lv=class extends P(O,$,"GetLogObject",ECe){},dv=class extends P(O,$,"GetLogRecord",_Ce){},pv=class extends P(O,$,"GetLookupTable",RCe){},fv=class extends P(O,$,"GetQueryResults",CCe){},mv=class extends P(O,$,"GetScheduledQuery",bCe){},ih=class extends P(O,$,"GetScheduledQueryHistory",ACe){},gv=class extends P(O,$,"GetStorageTierPolicy",xCe){},hv=class extends P(O,$,"GetTransformer",TCe){},ah=class extends P(O,$,"ListAggregateLogGroupSummaries",vCe){},ch=class extends P(O,$,"ListAnomalies",DCe){},Sv=class extends P(O,$,"ListIntegrations",ICe){},uh=class extends P(O,$,"ListLogAnomalyDetectors",wCe){},yv=class extends P(O,$,"ListLogGroups",PCe){},lh=class extends P(O,$,"ListLogGroupsForQuery",OCe){},dh=class extends P(O,$,"ListScheduledQueries",$Ce){},ph=class extends P(O,$,"ListSourcesForS3TableIntegration",kCe){},Ev=class extends P(O,$,"ListSyslogConfigurations",MCe){},_v=class extends P(O,$,"ListTagsForResource",LCe){},Rv=class extends P(O,$,"ListTagsLogGroup",NCe){},Cv=class extends P(O,$,"PutAccountPolicy",FCe){},bv=class extends P(O,$,"PutBearerTokenAuthentication",BCe){},Av=class extends P(O,$,"PutDataProtectionPolicy",UCe){},xv=class extends P(O,$,"PutDeliveryDestination",GCe){},Tv=class extends P(O,$,"PutDeliveryDestinationPolicy",qCe){},vv=class extends P(O,$,"PutDeliverySource",HCe){},Dv=class extends P(O,$,"PutDestination",jCe){},Iv=class extends P(O,$,"PutDestinationPolicy",zCe){},wv=class extends P(O,$,"PutIndexPolicy",VCe){},Pv=class extends P(O,$,"PutIntegration",WCe){},Ov=class extends P(O,$,"PutLogEvents",KCe){},$v=class extends P(O,$,"PutLogGroupDeletionProtection",QCe){},kv=class extends P(O,$,"PutMetricFilter",YCe){},Mv=class extends P(O,$,"PutQueryDefinition",JCe){},Lv=class extends P(O,$,"PutResourcePolicy",XCe){},Nv=class extends P(O,$,"PutRetentionPolicy",ZCe){},Fv=class extends P(O,$,"PutStorageTierPolicy",ebe){},Bv=class extends P(O,$,"PutSubscriptionFilter",tbe){},Uv=class extends P(O,$,"PutSyslogConfiguration",rbe){},Gv=class extends P(O,$,"PutTransformer",nbe){},qv=class extends P(O,$,"StartLiveTail",obe){},Hv=class extends P(O,$,"StartQuery",sbe){},jv=class extends P(O,$,"StopQuery",ibe){},zv=class extends P(O,$,"TagLogGroup",abe){},Vv=class extends P(O,$,"TagResource",cbe){},Wv=class extends P(O,$,"TestMetricFilter",ube){},Kv=class extends P(O,$,"TestTransformer",lbe){},Qv=class extends P(O,$,"UntagLogGroup",dbe){},Yv=class extends P(O,$,"UntagResource",pbe){},Jv=class extends P(O,$,"UpdateAnomaly",fbe){},Xv=class extends P(O,$,"UpdateDeliveryConfiguration",mbe){},Zv=class extends P(O,$,"UpdateLogAnomalyDetector",gbe){},eD=class extends P(O,$,"UpdateLookupTable",hbe){},tD=class extends P(O,$,"UpdateScheduledQuery",Sbe){},ybe=Rr(_t,Qg,"nextToken","nextToken","limit"),Ebe=Rr(_t,Yg,"nextToken","nextToken","limit"),_be=Rr(_t,Jg,"nextToken","nextToken","limit"),Rbe=Rr(_t,Xg,"nextToken","nextToken","limit"),Cbe=Rr(_t,Zg,"nextToken","nextToken","limit"),bbe=Rr(_t,eh,"nextToken","nextToken","limit"),Abe=Rr(_t,th,"nextToken","nextToken","limit"),xbe=Rr(_t,rh,"nextToken","nextToken","limit"),Tbe=Rr(_t,nh,"nextToken","nextToken","limit"),vbe=Rr(_t,oh,"nextToken","nextToken","limit"),Dbe=Rr(_t,sh,"nextToken","nextForwardToken","limit"),Ibe=Rr(_t,ih,"nextToken","nextToken","maxResults"),wbe=Rr(_t,ah,"nextToken","nextToken","limit"),Pbe=Rr(_t,ch,"nextToken","nextToken","limit"),Obe=Rr(_t,uh,"nextToken","nextToken","limit"),$be=Rr(_t,lh,"nextToken","nextToken","maxResults"),kbe=Rr(_t,dh,"nextToken","nextToken","maxResults"),Mbe=Rr(_t,ph,"nextToken","nextToken","maxResults"),Qgt={AssociateKmsKeyCommand:lT,AssociateSourceToS3TableIntegrationCommand:dT,CancelExportTaskCommand:pT,CancelImportTaskCommand:fT,CreateDeliveryCommand:mT,CreateExportTaskCommand:gT,CreateImportTaskCommand:hT,CreateLogAnomalyDetectorCommand:ST,CreateLogGroupCommand:yT,CreateLogStreamCommand:ET,CreateLookupTableCommand:_T,CreateScheduledQueryCommand:RT,DeleteAccountPolicyCommand:CT,DeleteDataProtectionPolicyCommand:bT,DeleteDeliveryCommand:AT,DeleteDeliveryDestinationCommand:xT,DeleteDeliveryDestinationPolicyCommand:TT,DeleteDeliverySourceCommand:vT,DeleteDestinationCommand:DT,DeleteIndexPolicyCommand:IT,DeleteIntegrationCommand:wT,DeleteLogAnomalyDetectorCommand:PT,DeleteLogGroupCommand:OT,DeleteLogStreamCommand:$T,DeleteLookupTableCommand:kT,DeleteMetricFilterCommand:MT,DeleteQueryDefinitionCommand:LT,DeleteResourcePolicyCommand:NT,DeleteRetentionPolicyCommand:FT,DeleteScheduledQueryCommand:BT,DeleteSubscriptionFilterCommand:UT,DeleteSyslogConfigurationCommand:GT,DeleteTransformerCommand:qT,DescribeAccountPoliciesCommand:HT,DescribeConfigurationTemplatesCommand:Qg,DescribeDeliveriesCommand:Yg,DescribeDeliveryDestinationsCommand:Jg,DescribeDeliverySourcesCommand:Xg,DescribeDestinationsCommand:Zg,DescribeExportTasksCommand:jT,DescribeFieldIndexesCommand:zT,DescribeImportTaskBatchesCommand:VT,DescribeImportTasksCommand:WT,DescribeIndexPoliciesCommand:KT,DescribeLogGroupsCommand:eh,DescribeLogStreamsCommand:th,DescribeLookupTablesCommand:QT,DescribeMetricFiltersCommand:rh,DescribeQueriesCommand:YT,DescribeQueryDefinitionsCommand:JT,DescribeResourcePoliciesCommand:XT,DescribeSubscriptionFiltersCommand:nh,DisassociateKmsKeyCommand:ZT,DisassociateSourceFromS3TableIntegrationCommand:ev,FilterLogEventsCommand:oh,GetDataProtectionPolicyCommand:tv,GetDeliveryCommand:rv,GetDeliveryDestinationCommand:nv,GetDeliveryDestinationPolicyCommand:ov,GetDeliverySourceCommand:sv,GetIntegrationCommand:iv,GetLogAnomalyDetectorCommand:av,GetLogEventsCommand:sh,GetLogFieldsCommand:cv,GetLogGroupFieldsCommand:uv,GetLogObjectCommand:lv,GetLogRecordCommand:dv,GetLookupTableCommand:pv,GetQueryResultsCommand:fv,GetScheduledQueryCommand:mv,GetScheduledQueryHistoryCommand:ih,GetStorageTierPolicyCommand:gv,GetTransformerCommand:hv,ListAggregateLogGroupSummariesCommand:ah,ListAnomaliesCommand:ch,ListIntegrationsCommand:Sv,ListLogAnomalyDetectorsCommand:uh,ListLogGroupsCommand:yv,ListLogGroupsForQueryCommand:lh,ListScheduledQueriesCommand:dh,ListSourcesForS3TableIntegrationCommand:ph,ListSyslogConfigurationsCommand:Ev,ListTagsForResourceCommand:_v,ListTagsLogGroupCommand:Rv,PutAccountPolicyCommand:Cv,PutBearerTokenAuthenticationCommand:bv,PutDataProtectionPolicyCommand:Av,PutDeliveryDestinationCommand:xv,PutDeliveryDestinationPolicyCommand:Tv,PutDeliverySourceCommand:vv,PutDestinationCommand:Dv,PutDestinationPolicyCommand:Iv,PutIndexPolicyCommand:wv,PutIntegrationCommand:Pv,PutLogEventsCommand:Ov,PutLogGroupDeletionProtectionCommand:$v,PutMetricFilterCommand:kv,PutQueryDefinitionCommand:Mv,PutResourcePolicyCommand:Lv,PutRetentionPolicyCommand:Nv,PutStorageTierPolicyCommand:Fv,PutSubscriptionFilterCommand:Bv,PutSyslogConfigurationCommand:Uv,PutTransformerCommand:Gv,StartLiveTailCommand:qv,StartQueryCommand:Hv,StopQueryCommand:jv,TagLogGroupCommand:zv,TagResourceCommand:Vv,TestMetricFilterCommand:Wv,TestTransformerCommand:Kv,UntagLogGroupCommand:Qv,UntagResourceCommand:Yv,UpdateAnomalyCommand:Jv,UpdateDeliveryConfigurationCommand:Xv,UpdateLogAnomalyDetectorCommand:Zv,UpdateLookupTableCommand:eD,UpdateScheduledQueryCommand:tD},Ygt={paginateDescribeConfigurationTemplates:ybe,paginateDescribeDeliveries:Ebe,paginateDescribeDeliveryDestinations:_be,paginateDescribeDeliverySources:Rbe,paginateDescribeDestinations:Cbe,paginateDescribeLogGroups:bbe,paginateDescribeLogStreams:Abe,paginateDescribeMetricFilters:xbe,paginateDescribeSubscriptionFilters:Tbe,paginateFilterLogEvents:vbe,paginateGetLogEvents:Dbe,paginateGetScheduledQueryHistory:Ibe,paginateListAggregateLogGroupSummaries:wbe,paginateListAnomalies:Pbe,paginateListLogAnomalyDetectors:Obe,paginateListLogGroupsForQuery:$be,paginateListScheduledQueries:kbe,paginateListSourcesForS3TableIntegration:Mbe},rD=class extends _t{};wZe(Qgt,rD,{paginators:Ygt});var Jgt={DATA_PROTECTION_POLICY:"DATA_PROTECTION_POLICY",FIELD_INDEX_POLICY:"FIELD_INDEX_POLICY",METRIC_EXTRACTION_POLICY:"METRIC_EXTRACTION_POLICY",SUBSCRIPTION_FILTER_POLICY:"SUBSCRIPTION_FILTER_POLICY",TRANSFORMER_POLICY:"TRANSFORMER_POLICY"},Xgt={ALL:"ALL"},Zgt={CLIENT_ERROR:"CLIENT_ERROR",COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},eht={Active:"Active",Baseline:"Baseline",Suppressed:"Suppressed"},tht={ANALYZING:"ANALYZING",DELETED:"DELETED",FAILED:"FAILED",INITIALIZING:"INITIALIZING",PAUSED:"PAUSED",TRAINING:"TRAINING"},rht={FIFTEEN_MIN:"FIFTEEN_MIN",FIVE_MIN:"FIVE_MIN",ONE_HOUR:"ONE_HOUR",ONE_MIN:"ONE_MIN",TEN_MIN:"TEN_MIN",THIRTY_MIN:"THIRTY_MIN"},nht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},oht={JSON:"json",PARQUET:"parquet",PLAIN:"plain",RAW:"raw",W3C:"w3c"},sht={CWL:"CWL",FH:"FH",S3:"S3",XRAY:"XRAY"},iht={BOOLEAN:"boolean",DOUBLE:"double",INT:"int",LONG:"long",STRING:"string"},aht={DELIVERY:"DELIVERY",INFREQUENT_ACCESS:"INFREQUENT_ACCESS",STANDARD:"STANDARD"},cht={CWLI:"CWLI",PPL:"PPL",SQL:"SQL"},uht={DISABLED:"DISABLED",ENABLED:"ENABLED"},lht={ACTIVATED:"ACTIVATED",ARCHIVED:"ARCHIVED",DELETED:"DELETED",DISABLED:"DISABLED"},dht={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},pht={RESOURCE_DELETED:"RESOURCE_DELETED"},fht={CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",PENDING_CANCEL:"PENDING_CANCEL",RUNNING:"RUNNING"},mht={AUTO:"AUTO",CUSTOM:"CUSTOM",DEFAULT:"DEFAULT",INACTIVE:"INACTIVE"},ght={FACET:"FACET",FIELD_INDEX:"FIELD_INDEX"},hht={ACCOUNT:"ACCOUNT",LOG_GROUP:"LOG_GROUP"},Sht={ACCOUNT_DATA_PROTECTION:"ACCOUNT_DATA_PROTECTION"},yht={LastEventTime:"LastEventTime",LogStreamName:"LogStreamName"},Eht={Bits:"Bits",BitsSecond:"Bits/Second",Bytes:"Bytes",BytesSecond:"Bytes/Second",Count:"Count",CountSecond:"Count/Second",Gigabits:"Gigabits",GigabitsSecond:"Gigabits/Second",Gigabytes:"Gigabytes",GigabytesSecond:"Gigabytes/Second",Kilobits:"Kilobits",KilobitsSecond:"Kilobits/Second",Kilobytes:"Kilobytes",KilobytesSecond:"Kilobytes/Second",Megabits:"Megabits",MegabitsSecond:"Megabits/Second",Megabytes:"Megabytes",MegabytesSecond:"Megabytes/Second",Microseconds:"Microseconds",Milliseconds:"Milliseconds",None:"None",Percent:"Percent",Seconds:"Seconds",Terabits:"Terabits",TerabitsSecond:"Terabits/Second",Terabytes:"Terabytes",TerabytesSecond:"Terabytes/Second"},_ht={Cancelled:"Cancelled",Complete:"Complete",Failed:"Failed",Running:"Running",Scheduled:"Scheduled",Timeout:"Timeout",Unknown:"Unknown"},Rht={ACCOUNT:"ACCOUNT",RESOURCE:"RESOURCE"},Cht={ByLogStream:"ByLogStream",Random:"Random"},bht={ENTITY_SIZE_TOO_LARGE:"EntitySizeTooLarge",INVALID_ATTRIBUTES:"InvalidAttributes",INVALID_ENTITY:"InvalidEntity",INVALID_KEY_ATTRIBUTE:"InvalidKeyAttributes",INVALID_TYPE_VALUE:"InvalidTypeValue",MISSING_REQUIRED_FIELDS:"MissingRequiredFields",UNSUPPORTED_LOG_GROUP_TYPE:"UnsupportedLogGroupType"},Aht={AWSWAF:"AWSWAF",CLOUD_TRAIL:"CloudTrail",EKS_AUDIT:"EKSAudit",ROUTE53_RESOLVER:"Route53Resolver",VPC_FLOW:"VPCFlow"},xht={Complete:"Complete",Failed:"Failed",InvalidQuery:"InvalidQuery",Running:"Running",Timeout:"Timeout"},Tht={FIRST:"first",LAST:"last"},vht={ACTIVE:"ACTIVE",ERROR:"ERROR",NOT_FOUND:"NOT_FOUND"},Dht={ACTIVE:"ACTIVE",FAILED:"FAILED",PROVISIONING:"PROVISIONING"},Iht={OPENSEARCH:"OPENSEARCH"},wht={AWS_MANAGED:"AWS_MANAGED",CUSTOMER_MANAGED:"CUSTOMER_MANAGED"},Pht={LOOKUP_TABLE:"LOOKUP_TABLE",S3:"S3"},Oht={INTELLIGENT_TIERING:"INTELLIGENT_TIERING",STANDARD:"STANDARD"},$ht={V1_1:"V1.1",V1_5:"V1.5"},kht={BOOLEAN:"boolean",DOUBLE:"double",INTEGER:"integer",STRING:"string"},Mht={DATA_SOURCE_NAME_AND_TYPE:"DATA_SOURCE_NAME_AND_TYPE",DATA_SOURCE_NAME_TYPE_AND_FORMAT:"DATA_SOURCE_NAME_TYPE_AND_FORMAT"},Lht={SUPPRESSED:"SUPPRESSED",UNSUPPRESSED:"UNSUPPRESSED"},Nht={ACTIVE:"ACTIVE",DATA_SOURCE_DELETE_IN_PROGRESS:"DATA_SOURCE_DELETE_IN_PROGRESS",FAILED:"FAILED",UNHEALTHY:"UNHEALTHY"},Fht={VPCE:"VPCE"},Bht={HOURS:"HOURS",MINUTES:"MINUTES",SECONDS:"SECONDS"},Uht={INFINITE:"INFINITE",LIMITED:"LIMITED"};p.AccessDeniedException=Hx;p.AccessDeniedException$=ihe;p.AccountPolicy$=b3;p.ActionStatus=Zgt;p.AddKeyEntry$=xhe;p.AddKeys$=The;p.AggregateLogGroupSummary$=vhe;p.Anomaly$=Dhe;p.AnomalyDetector$=Ihe;p.AnomalyDetectorStatus=tht;p.AssociateKmsKey$=cRe;p.AssociateKmsKeyCommand=lT;p.AssociateKmsKeyRequest$=whe;p.AssociateSourceToS3TableIntegration$=uRe;p.AssociateSourceToS3TableIntegrationCommand=dT;p.AssociateSourceToS3TableIntegrationRequest$=Phe;p.AssociateSourceToS3TableIntegrationResponse$=Ohe;p.CSV$=eSe;p.CancelExportTask$=lRe;p.CancelExportTaskCommand=pT;p.CancelExportTaskRequest$=$he;p.CancelImportTask$=dRe;p.CancelImportTaskCommand=fT;p.CancelImportTaskRequest$=khe;p.CancelImportTaskResponse$=Mhe;p.CloudWatchLogs=rD;p.CloudWatchLogsClient=_t;p.CloudWatchLogsServiceException=nt;p.CloudWatchLogsServiceException$=she;p.ConfigurationTemplate$=Lhe;p.ConfigurationTemplateDeliveryConfigValues$=Nhe;p.ConflictException=Xx;p.ConflictException$=ahe;p.CopyValue$=Fhe;p.CopyValueEntry$=Bhe;p.CreateDelivery$=pRe;p.CreateDeliveryCommand=mT;p.CreateDeliveryRequest$=Uhe;p.CreateDeliveryResponse$=Ghe;p.CreateExportTask$=fRe;p.CreateExportTaskCommand=gT;p.CreateExportTaskRequest$=qhe;p.CreateExportTaskResponse$=Hhe;p.CreateImportTask$=mRe;p.CreateImportTaskCommand=hT;p.CreateImportTaskRequest$=jhe;p.CreateImportTaskResponse$=zhe;p.CreateLogAnomalyDetector$=gRe;p.CreateLogAnomalyDetectorCommand=ST;p.CreateLogAnomalyDetectorRequest$=Vhe;p.CreateLogAnomalyDetectorResponse$=Whe;p.CreateLogGroup$=hRe;p.CreateLogGroupCommand=yT;p.CreateLogGroupRequest$=Khe;p.CreateLogStream$=SRe;p.CreateLogStreamCommand=ET;p.CreateLogStreamRequest$=Qhe;p.CreateLookupTable$=yRe;p.CreateLookupTableCommand=_T;p.CreateLookupTableRequest$=Yhe;p.CreateLookupTableResponse$=Jhe;p.CreateScheduledQuery$=ERe;p.CreateScheduledQueryCommand=RT;p.CreateScheduledQueryRequest$=Xhe;p.CreateScheduledQueryResponse$=Zhe;p.DataAlreadyAcceptedException=rT;p.DataAlreadyAcceptedException$=che;p.DataProtectionStatus=lht;p.DataSource$=A3;p.DataSourceFilter$=tSe;p.DateTimeConverter$=rSe;p.DeleteAccountPolicy$=_Re;p.DeleteAccountPolicyCommand=CT;p.DeleteAccountPolicyRequest$=nSe;p.DeleteDataProtectionPolicy$=RRe;p.DeleteDataProtectionPolicyCommand=bT;p.DeleteDataProtectionPolicyRequest$=oSe;p.DeleteDelivery$=CRe;p.DeleteDeliveryCommand=AT;p.DeleteDeliveryDestination$=bRe;p.DeleteDeliveryDestinationCommand=xT;p.DeleteDeliveryDestinationPolicy$=ARe;p.DeleteDeliveryDestinationPolicyCommand=TT;p.DeleteDeliveryDestinationPolicyRequest$=sSe;p.DeleteDeliveryDestinationRequest$=iSe;p.DeleteDeliveryRequest$=aSe;p.DeleteDeliverySource$=xRe;p.DeleteDeliverySourceCommand=vT;p.DeleteDeliverySourceRequest$=cSe;p.DeleteDestination$=TRe;p.DeleteDestinationCommand=DT;p.DeleteDestinationRequest$=uSe;p.DeleteIndexPolicy$=vRe;p.DeleteIndexPolicyCommand=IT;p.DeleteIndexPolicyRequest$=lSe;p.DeleteIndexPolicyResponse$=dSe;p.DeleteIntegration$=DRe;p.DeleteIntegrationCommand=wT;p.DeleteIntegrationRequest$=pSe;p.DeleteIntegrationResponse$=fSe;p.DeleteKeys$=mSe;p.DeleteLogAnomalyDetector$=IRe;p.DeleteLogAnomalyDetectorCommand=PT;p.DeleteLogAnomalyDetectorRequest$=gSe;p.DeleteLogGroup$=wRe;p.DeleteLogGroupCommand=OT;p.DeleteLogGroupRequest$=hSe;p.DeleteLogStream$=PRe;p.DeleteLogStreamCommand=$T;p.DeleteLogStreamRequest$=SSe;p.DeleteLookupTable$=ORe;p.DeleteLookupTableCommand=kT;p.DeleteLookupTableRequest$=ySe;p.DeleteMetricFilter$=$Re;p.DeleteMetricFilterCommand=MT;p.DeleteMetricFilterRequest$=ESe;p.DeleteQueryDefinition$=kRe;p.DeleteQueryDefinitionCommand=LT;p.DeleteQueryDefinitionRequest$=_Se;p.DeleteQueryDefinitionResponse$=RSe;p.DeleteResourcePolicy$=MRe;p.DeleteResourcePolicyCommand=NT;p.DeleteResourcePolicyRequest$=CSe;p.DeleteRetentionPolicy$=LRe;p.DeleteRetentionPolicyCommand=FT;p.DeleteRetentionPolicyRequest$=bSe;p.DeleteScheduledQuery$=NRe;p.DeleteScheduledQueryCommand=BT;p.DeleteScheduledQueryRequest$=ASe;p.DeleteScheduledQueryResponse$=xSe;p.DeleteSubscriptionFilter$=FRe;p.DeleteSubscriptionFilterCommand=UT;p.DeleteSubscriptionFilterRequest$=TSe;p.DeleteSyslogConfiguration$=BRe;p.DeleteSyslogConfigurationCommand=GT;p.DeleteSyslogConfigurationRequest$=vSe;p.DeleteTransformer$=URe;p.DeleteTransformerCommand=qT;p.DeleteTransformerRequest$=DSe;p.Delivery$=kD;p.DeliveryDestination$=MD;p.DeliveryDestinationConfiguration$=x3;p.DeliveryDestinationType=sht;p.DeliverySource$=LD;p.DeliverySourceConfigurationSchema$=ISe;p.DeliverySourceConfigurationSchemaValueType=iht;p.DeliverySourceStatus=dht;p.DeliverySourceStatusReason=pht;p.DescribeAccountPolicies$=GRe;p.DescribeAccountPoliciesCommand=HT;p.DescribeAccountPoliciesRequest$=wSe;p.DescribeAccountPoliciesResponse$=PSe;p.DescribeConfigurationTemplates$=qRe;p.DescribeConfigurationTemplatesCommand=Qg;p.DescribeConfigurationTemplatesRequest$=OSe;p.DescribeConfigurationTemplatesResponse$=$Se;p.DescribeDeliveries$=HRe;p.DescribeDeliveriesCommand=Yg;p.DescribeDeliveriesRequest$=kSe;p.DescribeDeliveriesResponse$=MSe;p.DescribeDeliveryDestinations$=jRe;p.DescribeDeliveryDestinationsCommand=Jg;p.DescribeDeliveryDestinationsRequest$=LSe;p.DescribeDeliveryDestinationsResponse$=NSe;p.DescribeDeliverySources$=zRe;p.DescribeDeliverySourcesCommand=Xg;p.DescribeDeliverySourcesRequest$=FSe;p.DescribeDeliverySourcesResponse$=BSe;p.DescribeDestinations$=VRe;p.DescribeDestinationsCommand=Zg;p.DescribeDestinationsRequest$=USe;p.DescribeDestinationsResponse$=GSe;p.DescribeExportTasks$=WRe;p.DescribeExportTasksCommand=jT;p.DescribeExportTasksRequest$=qSe;p.DescribeExportTasksResponse$=HSe;p.DescribeFieldIndexes$=KRe;p.DescribeFieldIndexesCommand=zT;p.DescribeFieldIndexesRequest$=jSe;p.DescribeFieldIndexesResponse$=zSe;p.DescribeImportTaskBatches$=QRe;p.DescribeImportTaskBatchesCommand=VT;p.DescribeImportTaskBatchesRequest$=VSe;p.DescribeImportTaskBatchesResponse$=WSe;p.DescribeImportTasks$=YRe;p.DescribeImportTasksCommand=WT;p.DescribeImportTasksRequest$=KSe;p.DescribeImportTasksResponse$=QSe;p.DescribeIndexPolicies$=JRe;p.DescribeIndexPoliciesCommand=KT;p.DescribeIndexPoliciesRequest$=YSe;p.DescribeIndexPoliciesResponse$=JSe;p.DescribeLogGroups$=XRe;p.DescribeLogGroupsCommand=eh;p.DescribeLogGroupsRequest$=XSe;p.DescribeLogGroupsResponse$=ZSe;p.DescribeLogStreams$=ZRe;p.DescribeLogStreamsCommand=th;p.DescribeLogStreamsRequest$=e0e;p.DescribeLogStreamsResponse$=t0e;p.DescribeLookupTables$=eCe;p.DescribeLookupTablesCommand=QT;p.DescribeLookupTablesRequest$=r0e;p.DescribeLookupTablesResponse$=n0e;p.DescribeMetricFilters$=tCe;p.DescribeMetricFiltersCommand=rh;p.DescribeMetricFiltersRequest$=o0e;p.DescribeMetricFiltersResponse$=s0e;p.DescribeQueries$=rCe;p.DescribeQueriesCommand=YT;p.DescribeQueriesRequest$=i0e;p.DescribeQueriesResponse$=a0e;p.DescribeQueryDefinitions$=nCe;p.DescribeQueryDefinitionsCommand=JT;p.DescribeQueryDefinitionsRequest$=c0e;p.DescribeQueryDefinitionsResponse$=u0e;p.DescribeResourcePolicies$=oCe;p.DescribeResourcePoliciesCommand=XT;p.DescribeResourcePoliciesRequest$=l0e;p.DescribeResourcePoliciesResponse$=d0e;p.DescribeSubscriptionFilters$=sCe;p.DescribeSubscriptionFiltersCommand=nh;p.DescribeSubscriptionFiltersRequest$=p0e;p.DescribeSubscriptionFiltersResponse$=f0e;p.Destination$=T3;p.DestinationConfiguration$=pp;p.DisassociateKmsKey$=iCe;p.DisassociateKmsKeyCommand=ZT;p.DisassociateKmsKeyRequest$=m0e;p.DisassociateSourceFromS3TableIntegration$=aCe;p.DisassociateSourceFromS3TableIntegrationCommand=ev;p.DisassociateSourceFromS3TableIntegrationRequest$=g0e;p.DisassociateSourceFromS3TableIntegrationResponse$=h0e;p.Distribution=Cht;p.Entity$=S0e;p.EntityRejectionErrorType=bht;p.EvaluationFrequency=rht;p.EventSource=Aht;p.ExecutionStatus=xht;p.ExportTask$=y0e;p.ExportTaskExecutionInfo$=E0e;p.ExportTaskStatus$=_0e;p.ExportTaskStatusCode=fht;p.FieldIndex$=R0e;p.FieldsData$=C0e;p.FilterLogEvents$=cCe;p.FilterLogEventsCommand=oh;p.FilterLogEventsRequest$=A0e;p.FilterLogEventsResponse$=x0e;p.FilteredLogEvent$=b0e;p.FlattenedElement=Tht;p.GetDataProtectionPolicy$=uCe;p.GetDataProtectionPolicyCommand=tv;p.GetDataProtectionPolicyRequest$=T0e;p.GetDataProtectionPolicyResponse$=v0e;p.GetDelivery$=lCe;p.GetDeliveryCommand=rv;p.GetDeliveryDestination$=dCe;p.GetDeliveryDestinationCommand=nv;p.GetDeliveryDestinationPolicy$=pCe;p.GetDeliveryDestinationPolicyCommand=ov;p.GetDeliveryDestinationPolicyRequest$=D0e;p.GetDeliveryDestinationPolicyResponse$=I0e;p.GetDeliveryDestinationRequest$=w0e;p.GetDeliveryDestinationResponse$=P0e;p.GetDeliveryRequest$=O0e;p.GetDeliveryResponse$=$0e;p.GetDeliverySource$=fCe;p.GetDeliverySourceCommand=sv;p.GetDeliverySourceRequest$=k0e;p.GetDeliverySourceResponse$=M0e;p.GetIntegration$=mCe;p.GetIntegrationCommand=iv;p.GetIntegrationRequest$=L0e;p.GetIntegrationResponse$=N0e;p.GetLogAnomalyDetector$=gCe;p.GetLogAnomalyDetectorCommand=av;p.GetLogAnomalyDetectorRequest$=F0e;p.GetLogAnomalyDetectorResponse$=B0e;p.GetLogEvents$=hCe;p.GetLogEventsCommand=sh;p.GetLogEventsRequest$=U0e;p.GetLogEventsResponse$=G0e;p.GetLogFields$=SCe;p.GetLogFieldsCommand=cv;p.GetLogFieldsRequest$=q0e;p.GetLogFieldsResponse$=H0e;p.GetLogGroupFields$=yCe;p.GetLogGroupFieldsCommand=uv;p.GetLogGroupFieldsRequest$=j0e;p.GetLogGroupFieldsResponse$=z0e;p.GetLogObject$=ECe;p.GetLogObjectCommand=lv;p.GetLogObjectRequest$=V0e;p.GetLogObjectResponse$=W0e;p.GetLogObjectResponseStream$=oRe;p.GetLogRecord$=_Ce;p.GetLogRecordCommand=dv;p.GetLogRecordRequest$=K0e;p.GetLogRecordResponse$=Q0e;p.GetLookupTable$=RCe;p.GetLookupTableCommand=pv;p.GetLookupTableRequest$=Y0e;p.GetLookupTableResponse$=J0e;p.GetQueryResults$=CCe;p.GetQueryResultsCommand=fv;p.GetQueryResultsRequest$=X0e;p.GetQueryResultsResponse$=Z0e;p.GetScheduledQuery$=bCe;p.GetScheduledQueryCommand=mv;p.GetScheduledQueryHistory$=ACe;p.GetScheduledQueryHistoryCommand=ih;p.GetScheduledQueryHistoryRequest$=eye;p.GetScheduledQueryHistoryResponse$=tye;p.GetScheduledQueryRequest$=rye;p.GetScheduledQueryResponse$=nye;p.GetStorageTierPolicy$=xCe;p.GetStorageTierPolicyCommand=gv;p.GetStorageTierPolicyRequest$=oye;p.GetStorageTierPolicyResponse$=sye;p.GetTransformer$=TCe;p.GetTransformerCommand=hv;p.GetTransformerRequest$=iye;p.GetTransformerResponse$=aye;p.Grok$=cye;p.GroupingIdentifier$=uye;p.Import$=lye;p.ImportBatch$=dye;p.ImportFilter$=v3;p.ImportStatistics$=D3;p.ImportStatus=nht;p.IndexCategory=mht;p.IndexPolicy$=I3;p.IndexSource=hht;p.IndexType=ght;p.InheritedProperty=Sht;p.InputLogEvent$=pye;p.IntegrationDetails$=sRe;p.IntegrationStatus=Dht;p.IntegrationSummary$=fye;p.IntegrationType=Iht;p.InternalServerException=Kx;p.InternalServerException$=uhe;p.InternalStreamingException=nT;p.InternalStreamingException$=_3;p.InvalidOperationException=Jx;p.InvalidOperationException$=lhe;p.InvalidParameterException=jx;p.InvalidParameterException$=dhe;p.InvalidSequenceTokenException=oT;p.InvalidSequenceTokenException$=phe;p.LimitExceededException=eT;p.LimitExceededException$=fhe;p.ListAggregateLogGroupSummaries$=vCe;p.ListAggregateLogGroupSummariesCommand=ah;p.ListAggregateLogGroupSummariesGroupBy=Mht;p.ListAggregateLogGroupSummariesRequest$=mye;p.ListAggregateLogGroupSummariesResponse$=gye;p.ListAnomalies$=DCe;p.ListAnomaliesCommand=ch;p.ListAnomaliesRequest$=hye;p.ListAnomaliesResponse$=Sye;p.ListIntegrations$=ICe;p.ListIntegrationsCommand=Sv;p.ListIntegrationsRequest$=yye;p.ListIntegrationsResponse$=Eye;p.ListLogAnomalyDetectors$=wCe;p.ListLogAnomalyDetectorsCommand=uh;p.ListLogAnomalyDetectorsRequest$=_ye;p.ListLogAnomalyDetectorsResponse$=Rye;p.ListLogGroups$=PCe;p.ListLogGroupsCommand=yv;p.ListLogGroupsForQuery$=OCe;p.ListLogGroupsForQueryCommand=lh;p.ListLogGroupsForQueryRequest$=Cye;p.ListLogGroupsForQueryResponse$=bye;p.ListLogGroupsRequest$=Aye;p.ListLogGroupsResponse$=xye;p.ListScheduledQueries$=$Ce;p.ListScheduledQueriesCommand=dh;p.ListScheduledQueriesRequest$=Tye;p.ListScheduledQueriesResponse$=vye;p.ListSourcesForS3TableIntegration$=kCe;p.ListSourcesForS3TableIntegrationCommand=ph;p.ListSourcesForS3TableIntegrationRequest$=Dye;p.ListSourcesForS3TableIntegrationResponse$=Iye;p.ListSyslogConfigurations$=MCe;p.ListSyslogConfigurationsCommand=Ev;p.ListSyslogConfigurationsRequest$=wye;p.ListSyslogConfigurationsResponse$=Pye;p.ListTagsForResource$=LCe;p.ListTagsForResourceCommand=_v;p.ListTagsForResourceRequest$=Oye;p.ListTagsForResourceResponse$=$ye;p.ListTagsLogGroup$=NCe;p.ListTagsLogGroupCommand=Rv;p.ListTagsLogGroupRequest$=kye;p.ListTagsLogGroupResponse$=Mye;p.ListToMap$=Lye;p.LiveTailSessionLogEvent$=Nye;p.LiveTailSessionMetadata$=Fye;p.LiveTailSessionStart$=Bye;p.LiveTailSessionUpdate$=Uye;p.LogEvent$=Gye;p.LogFieldType$=w3;p.LogFieldsListItem$=qye;p.LogGroup$=Hye;p.LogGroupClass=aht;p.LogGroupField$=jye;p.LogGroupSummary$=zye;p.LogStream$=Vye;p.LookupTable$=Wye;p.LookupTableConfiguration$=Kye;p.LowerCaseString$=Qye;p.MalformedQueryException=cT;p.MalformedQueryException$=mhe;p.MetricFilter$=Yye;p.MetricFilterMatchRecord$=Jye;p.MetricTransformation$=Xye;p.MoveKeyEntry$=Zye;p.MoveKeys$=eEe;p.OCSFVersion=$ht;p.OpenSearchApplication$=tEe;p.OpenSearchCollection$=rEe;p.OpenSearchDataAccessPolicy$=nEe;p.OpenSearchDataSource$=oEe;p.OpenSearchEncryptionPolicy$=sEe;p.OpenSearchIntegrationDetails$=iEe;p.OpenSearchLifecyclePolicy$=aEe;p.OpenSearchNetworkPolicy$=cEe;p.OpenSearchResourceConfig$=uEe;p.OpenSearchResourceStatus$=Qi;p.OpenSearchResourceStatusType=vht;p.OpenSearchWorkspace$=lEe;p.OperationAbortedException=zx;p.OperationAbortedException$=ghe;p.OrderBy=yht;p.OutputFormat=oht;p.OutputLogEvent$=dEe;p.ParseCloudfront$=pEe;p.ParseJSON$=fEe;p.ParseKeyValue$=mEe;p.ParsePostgres$=gEe;p.ParseRoute53$=hEe;p.ParseToOCSF$=SEe;p.ParseVPC$=yEe;p.ParseWAF$=EEe;p.PatternToken$=_Ee;p.Policy$=P3;p.PolicyScope=Rht;p.PolicyType=Jgt;p.Processor$=REe;p.PutAccountPolicy$=FCe;p.PutAccountPolicyCommand=Cv;p.PutAccountPolicyRequest$=CEe;p.PutAccountPolicyResponse$=bEe;p.PutBearerTokenAuthentication$=BCe;p.PutBearerTokenAuthenticationCommand=bv;p.PutBearerTokenAuthenticationRequest$=AEe;p.PutDataProtectionPolicy$=UCe;p.PutDataProtectionPolicyCommand=Av;p.PutDataProtectionPolicyRequest$=xEe;p.PutDataProtectionPolicyResponse$=TEe;p.PutDeliveryDestination$=GCe;p.PutDeliveryDestinationCommand=xv;p.PutDeliveryDestinationPolicy$=qCe;p.PutDeliveryDestinationPolicyCommand=Tv;p.PutDeliveryDestinationPolicyRequest$=vEe;p.PutDeliveryDestinationPolicyResponse$=DEe;p.PutDeliveryDestinationRequest$=IEe;p.PutDeliveryDestinationResponse$=wEe;p.PutDeliverySource$=HCe;p.PutDeliverySourceCommand=vv;p.PutDeliverySourceRequest$=PEe;p.PutDeliverySourceResponse$=OEe;p.PutDestination$=jCe;p.PutDestinationCommand=Dv;p.PutDestinationPolicy$=zCe;p.PutDestinationPolicyCommand=Iv;p.PutDestinationPolicyRequest$=$Ee;p.PutDestinationRequest$=kEe;p.PutDestinationResponse$=MEe;p.PutIndexPolicy$=VCe;p.PutIndexPolicyCommand=wv;p.PutIndexPolicyRequest$=LEe;p.PutIndexPolicyResponse$=NEe;p.PutIntegration$=WCe;p.PutIntegrationCommand=Pv;p.PutIntegrationRequest$=FEe;p.PutIntegrationResponse$=BEe;p.PutLogEvents$=KCe;p.PutLogEventsCommand=Ov;p.PutLogEventsRequest$=UEe;p.PutLogEventsResponse$=GEe;p.PutLogGroupDeletionProtection$=QCe;p.PutLogGroupDeletionProtectionCommand=$v;p.PutLogGroupDeletionProtectionRequest$=qEe;p.PutMetricFilter$=YCe;p.PutMetricFilterCommand=kv;p.PutMetricFilterRequest$=HEe;p.PutQueryDefinition$=JCe;p.PutQueryDefinitionCommand=Mv;p.PutQueryDefinitionRequest$=jEe;p.PutQueryDefinitionResponse$=zEe;p.PutResourcePolicy$=XCe;p.PutResourcePolicyCommand=Lv;p.PutResourcePolicyRequest$=VEe;p.PutResourcePolicyResponse$=WEe;p.PutRetentionPolicy$=ZCe;p.PutRetentionPolicyCommand=Nv;p.PutRetentionPolicyRequest$=KEe;p.PutStorageTierPolicy$=ebe;p.PutStorageTierPolicyCommand=Fv;p.PutStorageTierPolicyRequest$=QEe;p.PutStorageTierPolicyResponse$=YEe;p.PutSubscriptionFilter$=tbe;p.PutSubscriptionFilterCommand=Bv;p.PutSubscriptionFilterRequest$=JEe;p.PutSyslogConfiguration$=rbe;p.PutSyslogConfigurationCommand=Uv;p.PutSyslogConfigurationRequest$=XEe;p.PutTransformer$=nbe;p.PutTransformerCommand=Gv;p.PutTransformerRequest$=ZEe;p.QueryCompileError$=e_e;p.QueryCompileErrorLocation$=t_e;p.QueryDefinition$=r_e;p.QueryInfo$=n_e;p.QueryLanguage=cht;p.QueryParameter$=o_e;p.QueryStatistics$=s_e;p.QueryStatus=_ht;p.RecordField$=i_e;p.RejectedEntityInfo$=a_e;p.RejectedLogEventsInfo$=c_e;p.RenameKeyEntry$=u_e;p.RenameKeys$=l_e;p.ResourceAlreadyExistsException=tT;p.ResourceAlreadyExistsException$=hhe;p.ResourceConfig$=iRe;p.ResourceNotFoundException=Vx;p.ResourceNotFoundException$=She;p.ResourcePolicy$=O3;p.ResultField$=d_e;p.S3Configuration$=p_e;p.S3DeliveryConfiguration$=Rh;p.S3TableIntegrationSource$=f_e;p.S3TableIntegrationSourceStatus=Nht;p.S3TablesIntegration$=m_e;p.ScheduleType=wht;p.ScheduledQueryDestination$=g_e;p.ScheduledQueryDestinationType=Pht;p.ScheduledQueryState=uht;p.ScheduledQuerySummary$=h_e;p.Scope=Xgt;p.SearchedLogStream$=S_e;p.ServiceQuotaExceededException=Zx;p.ServiceQuotaExceededException$=yhe;p.ServiceUnavailableException=Wx;p.ServiceUnavailableException$=Ehe;p.SessionStreamingException=iT;p.SessionStreamingException$=R3;p.SessionTimeoutException=aT;p.SessionTimeoutException$=C3;p.SplitString$=y_e;p.SplitStringEntry$=E_e;p.StandardUnit=Eht;p.StartLiveTail$=obe;p.StartLiveTailCommand=qv;p.StartLiveTailRequest$=__e;p.StartLiveTailResponse$=R_e;p.StartLiveTailResponseStream$=aRe;p.StartQuery$=sbe;p.StartQueryCommand=Hv;p.StartQueryRequest$=C_e;p.StartQueryResponse$=b_e;p.State=eht;p.StopQuery$=ibe;p.StopQueryCommand=jv;p.StopQueryRequest$=A_e;p.StopQueryResponse$=x_e;p.StorageTier=Oht;p.SubscriptionFilter$=T_e;p.SubstituteString$=v_e;p.SubstituteStringEntry$=D_e;p.SuppressionPeriod$=I_e;p.SuppressionState=Lht;p.SuppressionType=Uht;p.SuppressionUnit=Bht;p.SyslogConfiguration$=w_e;p.SyslogSourceType=Fht;p.TagFilter$=P_e;p.TagLogGroup$=abe;p.TagLogGroupCommand=zv;p.TagLogGroupRequest$=O_e;p.TagResource$=cbe;p.TagResourceCommand=Vv;p.TagResourceRequest$=$_e;p.TestMetricFilter$=ube;p.TestMetricFilterCommand=Wv;p.TestMetricFilterRequest$=k_e;p.TestMetricFilterResponse$=M_e;p.TestTransformer$=lbe;p.TestTransformerCommand=Kv;p.TestTransformerRequest$=L_e;p.TestTransformerResponse$=N_e;p.ThrottlingException=Qx;p.ThrottlingException$=_he;p.TooManyTagsException=uT;p.TooManyTagsException$=Rhe;p.TransformedLogRecord$=F_e;p.TriggerHistoryRecord$=B_e;p.TrimString$=U_e;p.Type=kht;p.TypeConverter$=G_e;p.TypeConverterEntry$=q_e;p.UnrecognizedClientException=sT;p.UnrecognizedClientException$=Che;p.UntagLogGroup$=dbe;p.UntagLogGroupCommand=Qv;p.UntagLogGroupRequest$=H_e;p.UntagResource$=pbe;p.UntagResourceCommand=Yv;p.UntagResourceRequest$=j_e;p.UpdateAnomaly$=fbe;p.UpdateAnomalyCommand=Jv;p.UpdateAnomalyRequest$=z_e;p.UpdateDeliveryConfiguration$=mbe;p.UpdateDeliveryConfigurationCommand=Xv;p.UpdateDeliveryConfigurationRequest$=V_e;p.UpdateDeliveryConfigurationResponse$=W_e;p.UpdateLogAnomalyDetector$=gbe;p.UpdateLogAnomalyDetectorCommand=Zv;p.UpdateLogAnomalyDetectorRequest$=K_e;p.UpdateLookupTable$=hbe;p.UpdateLookupTableCommand=eD;p.UpdateLookupTableRequest$=Q_e;p.UpdateLookupTableResponse$=Y_e;p.UpdateScheduledQuery$=Sbe;p.UpdateScheduledQueryCommand=tD;p.UpdateScheduledQueryRequest$=J_e;p.UpdateScheduledQueryResponse$=X_e;p.UpperCaseString$=Z_e;p.ValidationException=Yx;p.ValidationException$=bhe;p.errorTypeRegistries=Ahe;p.paginateDescribeConfigurationTemplates=ybe;p.paginateDescribeDeliveries=Ebe;p.paginateDescribeDeliveryDestinations=_be;p.paginateDescribeDeliverySources=Rbe;p.paginateDescribeDestinations=Cbe;p.paginateDescribeLogGroups=bbe;p.paginateDescribeLogStreams=Abe;p.paginateDescribeMetricFilters=xbe;p.paginateDescribeSubscriptionFilters=Tbe;p.paginateFilterLogEvents=vbe;p.paginateGetLogEvents=Dbe;p.paginateGetScheduledQueryHistory=Ibe;p.paginateListAggregateLogGroupSummaries=wbe;p.paginateListAnomalies=Pbe;p.paginateListLogAnomalyDetectors=Obe;p.paginateListLogGroupsForQuery=$be;p.paginateListScheduledQueries=kbe;p.paginateListSourcesForS3TableIntegration=Mbe});var zht={};Ct(zht,{handler:()=>jht});module.exports=F(zht);var cd=Ie(bJ()),AJ={delaySeconds:15,attempts:8},xJ=new Map;function TJ(t){let e=xJ.get(t);return e||(e=new cd.CloudWatchClient({region:t}),xJ.set(t,e)),e}async function vJ(t){let e=t.ResourceProperties;if(t.RequestType==="Delete"){let[n,...o]=t.PhysicalResourceId.split(":");return o.length>0&&await TJ(n).send(new cd.DeleteAlarmsCommand({AlarmNames:[o.join(":")]})),{PhysicalResourceId:t.PhysicalResourceId}}let r=new cd.PutMetricAlarmCommand({AlarmName:e.AlarmName,AlarmDescription:e.AlarmDescription,Metrics:JSON.parse(e.Metrics),Threshold:Number(e.Threshold),EvaluationPeriods:Number(e.EvaluationPeriods),ComparisonOperator:e.ComparisonOperator,TreatMissingData:e.TreatMissingData,ActionsEnabled:!1});for(let n=1;;n++)try{await TJ(e.Region).send(r);break}catch(o){if(!/AccessDenied/.test(o.name)||n>=AJ.attempts)throw o;await new Promise(s=>setTimeout(s,AJ.delaySeconds*1e3))}return{PhysicalResourceId:`${e.Region}:${e.AlarmName}`}}var Xd=Ie(IN()),ype=new Xd.S3Client({}),Epe="lambda-web-source";async function _pe(t){let e=t.ResourceProperties,r=`s3://${e.DestinationBucket}/${e.DestinationKey}`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=`${e.SourceBucket}/${e.SourceKey}${e.SourceVersion?`?versionId=${e.SourceVersion}`:""}`,o=await Spe("HeadObject on the code bucket",()=>qQe(e.DestinationBucket,e.DestinationKey));if(o?.source===n&&o.versionId)return{PhysicalResourceId:r,Data:{VersionId:o.versionId}};let s=await Spe(`CopyObject from ${n}`,()=>ype.send(new Xd.CopyObjectCommand({Bucket:e.DestinationBucket,Key:e.DestinationKey,CopySource:encodeURI(n),MetadataDirective:"REPLACE",Metadata:{[Epe]:n}})));if(!s.VersionId)throw new Error(`Code bucket ${e.DestinationBucket} must have versioning enabled: Lambda Web Functions reject unversioned code objects`);return{PhysicalResourceId:r,Data:{VersionId:s.VersionId}}}async function qQe(t,e){try{let r=await ype.send(new Xd.HeadObjectCommand({Bucket:t,Key:e}));return{versionId:r.VersionId,source:r.Metadata?.[Epe]}}catch(r){if(HQe(r))return;throw r}}async function Spe(t,e){try{return await e()}catch(r){let n=r;throw n.message=`${t} failed: ${n.name} (HTTP ${n.$metadata?.httpStatusCode??"?"}): ${n.message}`,n}}function HQe(t){let e=t;return e.name==="NotFound"||e.name==="NoSuchKey"||e.$metadata?.httpStatusCode===404}var Za=Ie(IN());var Rpe="Custom::LambdaWebCode",Cpe="Custom::LambdaWebLogGroup",bpe="Custom::LambdaWebEndpointLookup";function Ape(t){return`Domain.${t}`}var xpe="Custom::LambdaWebRevisionCleanup";var Tpe="Custom::LambdaWebAlarm",vpe="Custom::LambdaWebCodeBucketCleanup",wN={key:"cdk-lambda-web:empty-on-delete",value:"true"};var PN=new Za.S3Client({});async function Dpe(t){let e=t.ResourceProperties;if(t.RequestType!=="Delete")return{PhysicalResourceId:e.BucketName};let r=t.PhysicalResourceId;try{if(!await jQe(r))return console.log(JSON.stringify({msg:"code bucket kept: not tagged for emptying (rollback of an update that added this resource)",bucket:r})),{PhysicalResourceId:t.PhysicalResourceId};let n={};for(;;){let o=await PN.send(new Za.ListObjectVersionsCommand({Bucket:r,...n})),s=[...o.Versions??[],...o.DeleteMarkers??[]].map(i=>({Key:i.Key,VersionId:i.VersionId}));if(s.length>0){let i=await PN.send(new Za.DeleteObjectsCommand({Bucket:r,Delete:{Objects:s,Quiet:!0}}));if(i.Errors?.length)throw new Error(`could not delete ${i.Errors.length} object version(s) from ${r}: ${i.Errors[0].Code} ${i.Errors[0].Message}`)}if(!o.IsTruncated)break;n={KeyMarker:o.NextKeyMarker,VersionIdMarker:o.NextVersionIdMarker}}}catch(n){if(n.name!=="NoSuchBucket")throw n}return{PhysicalResourceId:t.PhysicalResourceId}}async function jQe(t){try{let{TagSet:e}=await PN.send(new Za.GetBucketTaggingCommand({Bucket:t}));return(e??[]).some(r=>r.Key===wN.key&&r.Value===wN.value)}catch(e){if(e.name==="NoSuchTagSet")return!1;throw e}}var Ux=Ie(WN());async function Ome(t){let e=t.ResourceProperties;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let r=e.FunctionArn.split(":")[3],o=await new Ux.LambdaWebClient({region:r}).send(new Ux.GetWebFunctionEndpointCommand({functionName:e.FunctionArn,endpointName:e.EndpointName})),s={};for(let[i,a]of Object.entries(o.regionalEndpoints??{}))a.domainName&&(s[Ape(i)]=a.domainName);return{PhysicalResourceId:e.EndpointArn,Data:s}}var So=Ie(Lbe()),Nbe=new Map;function k3(t){let e=Nbe.get(t);return e||(e=new So.CloudWatchLogsClient({region:t}),Nbe.set(t,e)),e}var Fbe={seconds:t=>new Promise(e=>setTimeout(e,t*1e3))};async function Ube(t){let e=t.ResourceProperties,r=`${e.Region}:${e.LogGroupName}`;return t.RequestType==="Delete"?(e.RemovalPolicy==="destroy"&&await qht(e),{PhysicalResourceId:t.PhysicalResourceId}):(await Ght(e),{PhysicalResourceId:r})}async function Ght(t){let e=k3(t.Region);try{await e.send(new So.CreateLogGroupCommand({logGroupName:t.LogGroupName}))}catch(r){if(r.name!=="ResourceAlreadyExistsException")throw r}t.RetentionInDays==="Infinite"?await e.send(new So.DeleteRetentionPolicyCommand({logGroupName:t.LogGroupName})):await e.send(new So.PutRetentionPolicyCommand({logGroupName:t.LogGroupName,retentionInDays:Number(t.RetentionInDays)}))}async function qht(t){await Fbe.seconds(Number(t.FlushWaitSeconds)),await Bbe(t),await Fbe.seconds(Number(t.RecheckWaitSeconds)),await Hht(t)&&await Bbe(t)}async function Bbe(t){try{await k3(t.Region).send(new So.DeleteLogGroupCommand({logGroupName:t.LogGroupName}))}catch(e){if(e.name!=="ResourceNotFoundException")throw e}}async function Hht(t){return((await k3(t.Region).send(new So.DescribeLogGroupsCommand({logGroupNamePrefix:t.LogGroupName}))).logGroups??[]).some(r=>r.logGroupName===t.LogGroupName)}var fp=Ie(WN());async function Gbe(t){let e=t.ResourceProperties,r=`${e.FunctionArn}/revision-cleanup`;if(t.RequestType==="Delete")return{PhysicalResourceId:t.PhysicalResourceId};let n=t.RequestType==="Update"?t.OldResourceProperties.RevisionIds??[]:[],o=new Set([...e.RevisionIds??[],...n]),s=[],i=[];try{let a=new fp.LambdaWebClient({region:e.FunctionArn.split(":")[3]}),c=[];for await(let u of(0,fp.paginateListWebFunctionRevisions)({client:a},{functionName:e.FunctionArn}))c.push(...u.revisions??[]);c.sort((u,f)=>(f.createdAt?.getTime()??0)-(u.createdAt?.getTime()??0));for(let u of c.slice(Number(e.Keep))){let f=u.revisionId;if(!o.has(f))try{await a.send(new fp.DeleteWebFunctionRevisionCommand({functionName:e.FunctionArn,revisionId:f})),s.push(f)}catch(m){let y=m.name;if(y==="ConflictException")i.push(f);else if(y!=="ResourceNotFoundException")throw m}}console.log(JSON.stringify({msg:"revision cleanup",total:c.length,keep:Number(e.Keep),deleted:s,inUse:i}))}catch(a){console.warn(JSON.stringify({msg:"revision cleanup failed; old revisions are left in place",error:`${a.name}: ${a.message}`,deleted:s}))}return{PhysicalResourceId:r,Data:{Deleted:String(s.length)}}}async function jht(t){switch(t.ResourceType){case Rpe:return _pe(t);case Cpe:return Ube(t);case bpe:return Ome(t);case xpe:return Gbe(t);case Tpe:return vJ(t);case vpe:return Dpe(t);default:if(t.RequestType==="Delete")return console.log(JSON.stringify({msg:"delete of an unknown resource type ignored",resourceType:t.ResourceType})),{PhysicalResourceId:t.PhysicalResourceId};throw new Error(`Unsupported resource type: ${t.ResourceType}`)}}0&&(module.exports={handler});