(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{256:(e,t,r)=>{"use strict";r.d(t,{r:()=>y});var i=r(4823),n=r(2827);let s=async e=>{let t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),l(t)){if(!0===e.ForcePathStyle)throw Error("Path-style addressing cannot be used with ARN buckets")}else u(t)&&(-1===t.indexOf(".")||String(e.Endpoint).startsWith("http:"))&&t.toLowerCase()===t&&!(t.length<3)||(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},o=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,a=/(\d+\.){3}\d+/,c=/\.\./,u=e=>o.test(e)&&!a.test(e)&&!c.test(e),l=e=>{let[t,r,i,,,n]=e.split(":"),s="arn"===t&&e.split(":").length>=6,o=!!(s&&r&&i&&n);if(s&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},d=(e,t,r,i=!1)=>{let n=async()=>{let n;if(i){let i=r.clientContextParams;n=i?.[e]??r[e]??r[t]}else n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{let e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{let e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;let e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){let{protocol:t,hostname:r,port:i,path:n}=e;return`${t}//${r}${i?":"+i:""}${n}`}}return e}:n};var f=r(1808),h=r(7622);let p=async(e,t,r,i)=>{if(!r.isCustomEndpoint){let e;(e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await (0,f.k)(r.serviceId))&&(r.endpoint=()=>Promise.resolve((0,h.a)(e)),r.isCustomEndpoint=!0)}let n=await m(e,t,r);if("function"!=typeof r.endpointProvider)throw Error("config.endpointProvider is not set.");return r.endpointProvider(n,i)},m=async(e,t,r)=>{let i={},n=t?.getEndpointParameterInstructions?.()||{};for(let[t,s]of Object.entries(n))switch(s.type){case"staticContextParams":i[t]=s.value;break;case"contextParams":i[t]=e[s.name];break;case"clientContextParams":case"builtInParams":i[t]=await d(s.name,t,r,"builtInParams"!==s.type)();break;case"operationContextParams":i[t]=s.get(e);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return 0===Object.keys(n).length&&Object.assign(i,r),"s3"===String(r.serviceId).toLowerCase()&&await s(i),i},g={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:i.Ou.name},y=(e,t)=>({applyToStack:r=>{r.addRelativeTo((({config:e,instructions:t})=>(r,i)=>async s=>{e.isCustomEndpoint&&(i.__smithy_context?i.__smithy_context.features||(i.__smithy_context.features={}):i.__smithy_context={features:{}},i.__smithy_context.features.ENDPOINT_OVERRIDE="N");let o=await p(s.input,{getEndpointParameterInstructions:()=>t},{...e},i);i.endpointV2=o,i.authSchemes=o.properties?.authSchemes;let a=i.authSchemes?.[0];if(a){i.signing_region=a.signingRegion,i.signing_service=a.signingName;let e=(0,n.u)(i),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return r({...s})})({config:e,instructions:t}),g)}})},402:(e,t,r)=>{var i=r(6621),n=r(9872),s=r(2547),o=r(2009);function a(e,t,r){if(arguments.length<2&&(r=e,e=null,t=null),this.capacity=r,"number"!=typeof this.capacity||this.capacity<=0)throw Error("mnemonist/lru-cache: capacity should be positive number.");var i=s.getPointerArray(r);this.forward=new i(r),this.backward=new i(r),this.K="function"==typeof e?new e(r):Array(r),this.V="function"==typeof t?new t(r):Array(r),this.size=0,this.head=0,this.tail=0,this.items={}}a.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}},a.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var r=this.backward[e],i=this.forward[e];return this.tail===e?this.tail=r:this.backward[i]=r,this.forward[r]=i,this.backward[t]=e,this.head=e,this.forward[e]=t,this},a.prototype.set=function(e,t){var r=this.items[e];if(void 0!==r){this.splayOnTop(r),this.V[r]=t;return}this.size1?t:this;for(var r=0,i=this.size,n=this.head,s=this.K,o=this.V,a=this.forward;r=t)return{done:!0};var i=n[r];return++e=t)return{done:!0};var i=n[r];return++e=t)return{done:!0};var i=n[r],a=s[r];return++etypeof Symbol&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=function(){for(var e,t=new Map,r=this.entries();!(e=r.next()).done;)t.set(e.value[0],e.value[1]);return Object.defineProperty(t,"constructor",{value:a,enumerable:!1}),t},"u">typeof Symbol&&(a.prototype[Symbol.for("nodejs.util.inspect.custom")]=a.prototype.inspect),a.from=function(e,t,r,i){if(arguments.length<2){if("number"!=typeof(i=o.guessLength(e)))throw Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else 2==arguments.length&&(i=t,t=null,r=null);var s=new a(t,r,i);return n(e,function(e,t){s.set(t,e)}),s},e.exports=a},432:(e,t,r)=>{"use strict";r.d(t,{e:()=>i,j:()=>n});let i=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}),n=e=>({httpHandler:e.httpHandler()})},502:(e,t,r)=>{"use strict";r.d(t,{B4l:()=>ng,WtO:()=>ny,Fd2:()=>nb,PoR:()=>nS,Gxs:()=>nw,NBL:()=>nv,cBn:()=>nE,uOr:()=>nx,Z1L:()=>nA,Rwv:()=>nT,sFO:()=>nC,Nq3:()=>nI,_nS:()=>nR,JUI:()=>nO,q1U:()=>re});var i=r(4786),n=r(1831);class s extends n.T{constructor(e){super(e),Object.setPrototypeOf(this,s.prototype)}}class o extends s{name="BackupInUseException";$fault="client";constructor(e){super({name:"BackupInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,o.prototype)}}class a extends s{name="BackupNotFoundException";$fault="client";constructor(e){super({name:"BackupNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype)}}class c extends s{name="InternalServerError";$fault="server";constructor(e){super({name:"InternalServerError",$fault:"server",...e}),Object.setPrototypeOf(this,c.prototype)}}class u extends s{name="RequestLimitExceeded";$fault="client";ThrottlingReasons;constructor(e){super({name:"RequestLimitExceeded",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype),this.ThrottlingReasons=e.ThrottlingReasons}}class l extends s{name="ThrottlingException";$fault="client";throttlingReasons;constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype),this.throttlingReasons=e.throttlingReasons}}class d extends s{name="InvalidEndpointException";$fault="client";Message;constructor(e){super({name:"InvalidEndpointException",$fault:"client",...e}),Object.setPrototypeOf(this,d.prototype),this.Message=e.Message}}class f extends s{name="ProvisionedThroughputExceededException";$fault="client";ThrottlingReasons;constructor(e){super({name:"ProvisionedThroughputExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,f.prototype),this.ThrottlingReasons=e.ThrottlingReasons}}class h extends s{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,h.prototype)}}class p extends s{name="ItemCollectionSizeLimitExceededException";$fault="client";constructor(e){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,p.prototype)}}class m extends s{name="ReplicatedWriteConflictException";$fault="client";$retryable={};constructor(e){super({name:"ReplicatedWriteConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,m.prototype)}}class g extends s{name="ContinuousBackupsUnavailableException";$fault="client";constructor(e){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...e}),Object.setPrototypeOf(this,g.prototype)}}class y extends s{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,y.prototype)}}class b extends s{name="TableInUseException";$fault="client";constructor(e){super({name:"TableInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,b.prototype)}}class S extends s{name="TableNotFoundException";$fault="client";constructor(e){super({name:"TableNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,S.prototype)}}class w extends s{name="GlobalTableAlreadyExistsException";$fault="client";constructor(e){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,w.prototype)}}class v extends s{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,v.prototype)}}class E extends s{name="TransactionConflictException";$fault="client";constructor(e){super({name:"TransactionConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,E.prototype)}}class x extends s{name="PolicyNotFoundException";$fault="client";constructor(e){super({name:"PolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,x.prototype)}}class A extends s{name="ExportNotFoundException";$fault="client";constructor(e){super({name:"ExportNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,A.prototype)}}class T extends s{name="GlobalTableNotFoundException";$fault="client";constructor(e){super({name:"GlobalTableNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,T.prototype)}}class C extends s{name="ImportNotFoundException";$fault="client";constructor(e){super({name:"ImportNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,C.prototype)}}class I extends s{name="DuplicateItemException";$fault="client";constructor(e){super({name:"DuplicateItemException",$fault:"client",...e}),Object.setPrototypeOf(this,I.prototype)}}class R extends s{name="IdempotentParameterMismatchException";$fault="client";Message;constructor(e){super({name:"IdempotentParameterMismatchException",$fault:"client",...e}),Object.setPrototypeOf(this,R.prototype),this.Message=e.Message}}class O extends s{name="TransactionInProgressException";$fault="client";Message;constructor(e){super({name:"TransactionInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,O.prototype),this.Message=e.Message}}class P extends s{name="ExportConflictException";$fault="client";constructor(e){super({name:"ExportConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,P.prototype)}}class M extends s{name="InvalidExportTimeException";$fault="client";constructor(e){super({name:"InvalidExportTimeException",$fault:"client",...e}),Object.setPrototypeOf(this,M.prototype)}}class $ extends s{name="PointInTimeRecoveryUnavailableException";$fault="client";constructor(e){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...e}),Object.setPrototypeOf(this,$.prototype)}}class N extends s{name="ImportConflictException";$fault="client";constructor(e){super({name:"ImportConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,N.prototype)}}class k extends s{name="TableAlreadyExistsException";$fault="client";constructor(e){super({name:"TableAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,k.prototype)}}class D extends s{name="InvalidRestoreTimeException";$fault="client";constructor(e){super({name:"InvalidRestoreTimeException",$fault:"client",...e}),Object.setPrototypeOf(this,D.prototype)}}class _ extends s{name="ReplicaAlreadyExistsException";$fault="client";constructor(e){super({name:"ReplicaAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,_.prototype)}}class j extends s{name="ReplicaNotFoundException";$fault="client";constructor(e){super({name:"ReplicaNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,j.prototype)}}class U extends s{name="IndexNotFoundException";$fault="client";constructor(e){super({name:"IndexNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,U.prototype)}}class B extends s{name="ConditionalCheckFailedException";$fault="client";Item;constructor(e){super({name:"ConditionalCheckFailedException",$fault:"client",...e}),Object.setPrototypeOf(this,B.prototype),this.Item=e.Item}}class L extends s{name="TransactionCanceledException";$fault="client";Message;CancellationReasons;constructor(e){super({name:"TransactionCanceledException",$fault:"client",...e}),Object.setPrototypeOf(this,L.prototype),this.Message=e.Message,this.CancellationReasons=e.CancellationReasons}}let z="AttributeName",F="AutoScalingDisabled",q="AutoScalingRoleArn",V="AttributesToGet",G="AttributeUpdates",H="AttributeValueList",W="Attributes",K="BillingMode",J="Code",Q="ConsumedCapacity",X="ConditionCheck",Y="ConditionExpression",Z="ComparisonOperator",ee="ConditionalOperator",et="ClientRequestToken",er="ConsistentRead",ei="CapacityUnits",en="Count",es="DeleteRequest",eo="DisableScaleIn",ea="Delete",ec="ExpressionAttributeNames",eu="ExpressionAttributeValues",el="ExclusiveStartKey",ed="Endpoints",ef="Expected",eh="FilterExpression",ep="GlobalSecondaryIndexes",em="Item",eg="IndexArn",ey="ItemCount",eb="ItemCollectionMetrics",eS="IndexName",ew="IndexStatus",ev="IndexSizeBytes",eE="Items",ex="KeyConditions",eA="KMSMasterKeyId",eT="KeySchema",eC="Limit",eI="LastEvaluatedKey",eR="LocalSecondaryIndexes",eO="Message",eP="MaxReadRequestUnits",eM="MinimumUnits",e$="MaximumUnits",eN="NextToken",ek="OnDemandThroughput",eD="OnDemandThroughputOverride",e_="Parameters",ej="ProjectionExpression",eU="PolicyName",eB="PutRequest",eL="ProvisionedReadCapacityAutoScalingSettings",ez="ProvisionedReadCapacityUnits",eF="ProvisionedThroughput",eq="ProvisionedThroughputOverride",eV="ProvisionedWriteCapacityAutoScalingSettings",eG="ProvisionedWriteCapacityUnits",eH="Projection",eW="Responses",eK="ReturnConsumedCapacity",eJ="ReadCapacityUnits",eQ="ReplicaGlobalSecondaryIndexSettingsUpdate",eX="RequestItems",eY="ReturnItemCollectionMetrics",eZ="RegionName",e0="ReplicaProvisionedReadCapacityAutoScalingSettings",e1="ReplicaProvisionedWriteCapacityAutoScalingSettings",e2="ReplicaStatus",e3="ReplicaTableClassSummary",e8="ReadUnitsPerSecond",e5="ReturnValues",e6="ReturnValuesOnConditionCheckFailure",e4="S3BucketSource",e7="ScannedCount",e9="ScaleInCooldown",te="ScaleOutCooldown",tt="SSEDescription",tr="SSESpecification",ti="SSEType",tn="Select",ts="Statement",to="Status",ta="TableClassOverride",tc="TransactItems",tu="TableName",tl="ThrottlingReasons",td="TimeToLiveDescription",tf="TargetTrackingScalingPolicyConfiguration",th="TargetValue",tp="Update",tm="UpdateExpression",tg="Value",ty="WriteCapacityUnits",tb="WarmThroughput",tS="WriteUnitsPerSecond",tw="client",tv="error",tE="httpError",tx="message",tA="smithy.ts.sdk.synthetic.com.amazonaws.dynamodb",tT="com.amazonaws.dynamodb",tC=i.O.for(tA);var tI=[-3,tA,"DynamoDBServiceException",0,[],[]];tC.registerError(tI,s);let tR=i.O.for(tT);var tO=[-3,tT,"BackupInUseException",{[tv]:tw},[tx],[0]];tR.registerError(tO,o);var tP=[-3,tT,"BackupNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tP,a);var tM=[-3,tT,"ConditionalCheckFailedException",{[tv]:tw},[tx,em],[0,()=>ne]];tR.registerError(tM,B);var t$=[-3,tT,"ContinuousBackupsUnavailableException",{[tv]:tw},[tx],[0]];tR.registerError(t$,g);var tN=[-3,tT,"DuplicateItemException",{[tv]:tw},[tx],[0]];tR.registerError(tN,I);var tk=[-3,tT,"ExportConflictException",{[tv]:tw},[tx],[0]];tR.registerError(tk,P);var tD=[-3,tT,"ExportNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tD,A);var t_=[-3,tT,"GlobalTableAlreadyExistsException",{[tv]:tw},[tx],[0]];tR.registerError(t_,w);var tj=[-3,tT,"GlobalTableNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tj,T);var tU=[-3,tT,"IdempotentParameterMismatchException",{[tv]:tw},[eO],[0]];tR.registerError(tU,R);var tB=[-3,tT,"ImportConflictException",{[tv]:tw},[tx],[0]];tR.registerError(tB,N);var tL=[-3,tT,"ImportNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tL,C);var tz=[-3,tT,"IndexNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tz,U);var tF=[-3,tT,"InternalServerError",{[tv]:"server"},[tx],[0]];tR.registerError(tF,c);var tq=[-3,tT,"InvalidEndpointException",{[tv]:tw,[tE]:421},[eO],[0]];tR.registerError(tq,d);var tV=[-3,tT,"InvalidExportTimeException",{[tv]:tw},[tx],[0]];tR.registerError(tV,M);var tG=[-3,tT,"InvalidRestoreTimeException",{[tv]:tw},[tx],[0]];tR.registerError(tG,D);var tH=[-3,tT,"ItemCollectionSizeLimitExceededException",{[tv]:tw},[tx],[0]];tR.registerError(tH,p);var tW=[-3,tT,"LimitExceededException",{[tv]:tw},[tx],[0]];tR.registerError(tW,y);var tK=[-3,tT,"PointInTimeRecoveryUnavailableException",{[tv]:tw},[tx],[0]];tR.registerError(tK,$);var tJ=[-3,tT,"PolicyNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tJ,x);var tQ=[-3,tT,"ProvisionedThroughputExceededException",{[tv]:tw},[tx,tl],[0,()=>i6]];tR.registerError(tQ,f);var tX=[-3,tT,"ReplicaAlreadyExistsException",{[tv]:tw},[tx],[0]];tR.registerError(tX,_);var tY=[-3,tT,"ReplicaNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(tY,j);var tZ=[-3,tT,"ReplicatedWriteConflictException",{[tv]:tw},[tx],[0]];tR.registerError(tZ,m);var t0=[-3,tT,"RequestLimitExceeded",{[tv]:tw},[tx,tl],[0,()=>i6]];tR.registerError(t0,u);var t1=[-3,tT,"ResourceInUseException",{[tv]:tw},[tx],[0]];tR.registerError(t1,v);var t2=[-3,tT,"ResourceNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(t2,h);var t3=[-3,tT,"TableAlreadyExistsException",{[tv]:tw},[tx],[0]];tR.registerError(t3,k);var t8=[-3,tT,"TableInUseException",{[tv]:tw},[tx],[0]];tR.registerError(t8,b);var t5=[-3,tT,"TableNotFoundException",{[tv]:tw},[tx],[0]];tR.registerError(t5,S);var t6=[-3,tT,"ThrottlingException",{awsQueryError:["Throttling",400],[tv]:tw,[tE]:400},[tx,"throttlingReasons"],[0,()=>i6]];tR.registerError(t6,l);var t4=[-3,tT,"TransactionCanceledException",{[tv]:tw},[eO,"CancellationReasons"],[0,()=>iV]];tR.registerError(t4,L);var t7=[-3,tT,"TransactionConflictException",{[tv]:tw},[tx],[0]];tR.registerError(t7,E);var t9=[-3,tT,"TransactionInProgressException",{[tv]:tw},[eO],[0]];tR.registerError(t9,O);let re=[tC,tR];var rt=[3,tT,"AttributeDefinition",0,[z,"AttributeType"],[0,0],2],rr=[3,tT,"AttributeValueUpdate",0,[tg,"Action"],[()=>nm,0]],ri=[3,tT,"AutoScalingPolicyDescription",0,[eU,tf],[0,()=>ra]],rn=[3,tT,"AutoScalingPolicyUpdate",0,[tf,eU],[()=>rc,0],1],rs=[3,tT,"AutoScalingSettingsDescription",0,[eM,e$,F,q,"ScalingPolicies"],[1,1,2,0,()=>iq]],ro=[3,tT,"AutoScalingSettingsUpdate",0,[eM,e$,F,q,"ScalingPolicyUpdate"],[1,1,2,0,()=>rn]],ra=[3,tT,"AutoScalingTargetTrackingScalingPolicyConfigurationDescription",0,[th,eo,e9,te],[1,2,1,1],1],rc=[3,tT,"AutoScalingTargetTrackingScalingPolicyConfigurationUpdate",0,[th,eo,e9,te],[1,2,1,1],1],ru=[3,tT,"BatchExecuteStatementInput",0,["Statements",eK],[()=>i0,0],1],rl=[3,tT,"BatchExecuteStatementOutput",0,[eW,Q],[()=>i1,()=>iG]],rd=[3,tT,"BatchGetItemInput",0,[eX,eK],[()=>nr,0],1],rf=[3,tT,"BatchGetItemOutput",0,[eW,"UnprocessedKeys",Q],[()=>ni,()=>nr,()=>iG]],rh=[3,tT,"BatchStatementError",0,[J,eO,em],[0,0,()=>ne]],rp=[3,tT,"BatchStatementRequest",0,[ts,e_,er,e6],[0,()=>i2,2,0],1],rm=[3,tT,"BatchStatementResponse",0,["Error",tu,em],[()=>rh,0,()=>ne]],rg=[3,tT,"BatchWriteItemInput",0,[eX,eK,eY],[()=>nn,0,0],1],ry=[3,tT,"BatchWriteItemOutput",0,["UnprocessedItems",eb,Q],[()=>nn,()=>nu,()=>iG]],rb=[3,tT,"BillingModeSummary",0,[K,"LastUpdateToPayPerRequestDateTime"],[0,4]],rS=[3,tT,"CancellationReason",0,[em,J,eO],[()=>ne,0,0]],rw=[3,tT,"Capacity",0,[eJ,ty,ei],[1,1,1]],rv=[3,tT,"Condition",0,[Z,H],[0,()=>iF],1],rE=[3,tT,X,0,["Key",tu,Y,ec,eu,e6],[()=>nl,0,0,128,()=>no,0],3],rx=[3,tT,Q,0,[tu,ei,eJ,ty,"Table",eR,ep],[0,1,1,1,()=>rw,()=>np,()=>np]],rA=[3,tT,"CreateGlobalSecondaryIndexAction",0,[eS,eT,eH,eF,ek,tb],[0,()=>iX,()=>r7,()=>r9,()=>r5,()=>iL],3],rT=[3,tT,"CreateGlobalTableWitnessGroupMemberAction",0,[eZ],[0],1],rC=[3,tT,"CreateReplicaAction",0,[eZ],[0],1],rI=[3,tT,"CreateReplicationGroupMemberAction",0,[eZ,eA,eq,eD,ep,ta],[0,0,()=>it,()=>r6,()=>i5,0],1],rR=[3,tT,"CsvOptions",0,["Delimiter","HeaderList"],[0,64]],rO=[3,tT,ea,0,["Key",tu,Y,ec,eu,e6],[()=>nl,0,0,128,()=>no,0],2],rP=[3,tT,"DeleteGlobalSecondaryIndexAction",0,[eS],[0],1],rM=[3,tT,"DeleteGlobalTableWitnessGroupMemberAction",0,[eZ],[0],1],r$=[3,tT,"DeleteItemInput",0,[tu,"Key",ef,ee,e5,eK,eY,Y,ec,eu,e6],[0,()=>nl,()=>ns,0,0,0,0,0,128,()=>no,0],2],rN=[3,tT,"DeleteItemOutput",0,[W,Q,eb],[()=>ne,()=>rx,()=>rZ]],rk=[3,tT,"DeleteReplicaAction",0,[eZ],[0],1],rD=[3,tT,"DeleteReplicationGroupMemberAction",0,[eZ],[0],1],r_=[3,tT,es,0,["Key"],[()=>nl],1],rj=[3,tT,"DescribeEndpointsRequest",0,[],[]],rU=[3,tT,"DescribeEndpointsResponse",0,[ed],[()=>iH],1],rB=[3,tT,"Endpoint",0,["Address","CachePeriodInMinutes"],[0,1],2],rL=[3,tT,"ExecuteStatementInput",0,[ts,e_,er,eN,eK,eC,e6],[0,()=>i2,2,0,0,1,0],1],rz=[3,tT,"ExecuteStatementOutput",0,[eE,eN,Q,eI],[()=>iK,0,()=>rx,()=>nl]],rF=[3,tT,"ExecuteTransactionInput",0,["TransactStatements",et,eK],[()=>iZ,[0,4],0],1],rq=[3,tT,"ExecuteTransactionOutput",0,[eW,Q],[()=>iJ,()=>iG]],rV=[3,tT,"ExpectedAttributeValue",0,[tg,"Exists",Z,H],[()=>nm,2,0,()=>iF]],rG=[3,tT,"Get",0,["Key",tu,ej,ec],[()=>nl,0,0,128],2],rH=[3,tT,"GetItemInput",0,[tu,"Key",V,er,eK,ej,ec],[0,()=>nl,64,2,0,0,128],2],rW=[3,tT,"GetItemOutput",0,[em,Q],[()=>ne,()=>rx]],rK=[3,tT,"GlobalSecondaryIndex",0,[eS,eT,eH,eF,ek,tb],[0,()=>iX,()=>r7,()=>r9,()=>r5,()=>iL],3],rJ=[3,tT,"GlobalSecondaryIndexDescription",0,[eS,eT,eH,ew,"Backfilling",eF,ev,ey,eg,ek,tb],[0,()=>iX,()=>r7,0,2,()=>ie,1,1,0,()=>r5,()=>rX]],rQ=[3,tT,"GlobalSecondaryIndexInfo",0,[eS,eT,eH,eF,ek],[0,()=>iX,()=>r7,()=>r9,()=>r5]],rX=[3,tT,"GlobalSecondaryIndexWarmThroughputDescription",0,[e8,tS,to],[1,1,0]],rY=[3,tT,"GlobalTableWitnessDescription",0,[eZ,"WitnessStatus"],[0,0]],rZ=[3,tT,eb,0,["ItemCollectionKey","SizeEstimateRangeGB"],[()=>nc,65]],r0=[3,tT,"ItemResponse",0,[em],[()=>ne]],r1=[3,tT,"KeysAndAttributes",0,["Keys",V,er,ej,ec],[()=>iQ,64,2,0,128],1],r2=[3,tT,"KeySchemaElement",0,[z,"KeyType"],[0,0],2],r3=[3,tT,"LocalSecondaryIndexDescription",0,[eS,eT,eH,ev,ey,eg],[0,()=>iX,()=>r7,1,1,0]],r8=[3,tT,"LocalSecondaryIndexInfo",0,[eS,eT,eH],[0,()=>iX,()=>r7]],r5=[3,tT,ek,0,[eP,"MaxWriteRequestUnits"],[1,1]],r6=[3,tT,eD,0,[eP],[1]],r4=[3,tT,"ParameterizedStatement",0,[ts,e_,e6],[0,()=>i2,0],1],r7=[3,tT,eH,0,["ProjectionType","NonKeyAttributes"],[0,64]],r9=[3,tT,eF,0,[eJ,ty],[1,1],2],ie=[3,tT,"ProvisionedThroughputDescription",0,["LastIncreaseDateTime","LastDecreaseDateTime","NumberOfDecreasesToday",eJ,ty],[4,4,1,1,1]],it=[3,tT,eq,0,[eJ],[1]],ir=[3,tT,"Put",0,[em,tu,Y,ec,eu,e6],[()=>nh,0,0,128,()=>no,0],2],ii=[3,tT,"PutItemInput",0,[tu,em,ef,e5,eK,eY,ee,Y,ec,eu,e6],[0,()=>nh,()=>ns,0,0,0,0,0,128,()=>no,0],2],is=[3,tT,"PutItemOutput",0,[W,Q,eb],[()=>ne,()=>rx,()=>rZ]],io=[3,tT,eB,0,[em],[()=>nh],1],ia=[3,tT,"QueryInput",0,[tu,eS,tn,V,eC,er,ex,"QueryFilter",ee,"ScanIndexForward",el,eK,ej,eh,"KeyConditionExpression",ec,eu],[0,0,0,64,1,2,()=>nd,()=>na,0,2,()=>nl,0,0,0,0,128,()=>no],1],ic=[3,tT,"QueryOutput",0,[eE,en,e7,eI,Q],[()=>iK,1,1,()=>nl,()=>rx]],iu=[3,tT,"Replica",0,[eZ],[0]],il=[3,tT,"ReplicaAutoScalingDescription",0,[eZ,ep,e0,e1,e2],[0,()=>i3,()=>rs,()=>rs,0]],id=[3,tT,"ReplicaDescription",0,[eZ,e2,"ReplicaStatusDescription","ReplicaStatusPercentProgress",eA,eq,eD,tb,ep,"ReplicaInaccessibleDateTime",e3,"GlobalTableSettingsReplicationMode"],[0,0,0,0,0,()=>it,()=>r6,()=>iC,()=>i8,4,()=>iT,0]],ih=[3,tT,"ReplicaGlobalSecondaryIndex",0,[eS,eq,eD],[0,()=>it,()=>r6],1],ip=[3,tT,"ReplicaGlobalSecondaryIndexAutoScalingDescription",0,[eS,ew,eL,eV],[0,0,()=>rs,()=>rs]],im=[3,tT,"ReplicaGlobalSecondaryIndexAutoScalingUpdate",0,[eS,"ProvisionedReadCapacityAutoScalingUpdate"],[0,()=>ro]],ig=[3,tT,"ReplicaGlobalSecondaryIndexDescription",0,[eS,eq,eD,tb],[0,()=>it,()=>r6,()=>rX]],iy=[3,tT,"ReplicaGlobalSecondaryIndexSettingsDescription",0,[eS,ew,ez,eL,eG,eV],[0,0,1,()=>rs,1,()=>rs],1],ib=[3,tT,eQ,0,[eS,ez,"ProvisionedReadCapacityAutoScalingSettingsUpdate"],[0,1,()=>ro],1],iS=[3,tT,e4,0,["S3Bucket","S3BucketOwner","S3KeyPrefix"],[0,0,0],1],iw=[3,tT,"ScanInput",0,[tu,eS,V,eC,tn,"ScanFilter",ee,el,eK,"TotalSegments","Segment",ej,eh,ec,eu,er],[0,0,64,1,0,()=>na,0,()=>nl,0,1,1,0,0,128,()=>no,2],1],iv=[3,tT,"ScanOutput",0,[eE,en,e7,eI,Q],[()=>iK,1,1,()=>nl,()=>rx]],iE=[3,tT,tt,0,[to,ti,"KMSMasterKeyArn","InaccessibleEncryptionDateTime"],[0,0,0,4]],ix=[3,tT,tr,0,["Enabled",ti,eA],[2,0,0]],iA=[3,tT,"StreamSpecification",0,["StreamEnabled","StreamViewType"],[2,0],1],iT=[3,tT,"TableClassSummary",0,["TableClass","LastUpdateDateTime"],[0,4]],iC=[3,tT,"TableWarmThroughputDescription",0,[e8,tS,to],[1,1,0]],iI=[3,tT,"ThrottlingReason",0,["reason","resource"],[0,0]],iR=[3,tT,td,0,["TimeToLiveStatus",z],[0,0]],iO=[3,tT,"TransactGetItem",0,["Get"],[()=>rG],1],iP=[3,tT,"TransactGetItemsInput",0,[tc,eK],[()=>i4,0],1],iM=[3,tT,"TransactGetItemsOutput",0,[Q,eW],[()=>iG,()=>iJ]],i$=[3,tT,"TransactWriteItem",0,[X,"Put",ea,tp],[()=>rE,()=>ir,()=>rO,()=>iD]],iN=[3,tT,"TransactWriteItemsInput",0,[tc,eK,eY,et],[()=>i7,0,0,[0,4]],1],ik=[3,tT,"TransactWriteItemsOutput",0,[Q,eb],[()=>iG,()=>nu]],iD=[3,tT,tp,0,["Key",tm,tu,Y,ec,eu,e6],[()=>nl,0,0,0,128,()=>no,0],3],i_=[3,tT,"UpdateGlobalSecondaryIndexAction",0,[eS,eF,ek,tb],[0,()=>r9,()=>r5,()=>iL],1],ij=[3,tT,"UpdateItemInput",0,[tu,"Key",G,ef,ee,e5,eK,eY,tm,Y,ec,eu,e6],[0,()=>nl,()=>nt,()=>ns,0,0,0,0,0,0,128,()=>no,0],2],iU=[3,tT,"UpdateItemOutput",0,[W,Q,eb],[()=>ne,()=>rx,()=>rZ]],iB=[3,tT,"UpdateReplicationGroupMemberAction",0,[eZ,eA,eq,eD,ep,ta],[0,0,()=>it,()=>r6,()=>i5,0],1],iL=[3,tT,tb,0,[e8,tS],[1,1]],iz=[3,tT,"WriteRequest",0,[eB,es],[()=>io,()=>r_]],iF=[1,tT,H,0,()=>nm],iq=[1,tT,"AutoScalingPolicyDescriptionList",0,()=>ri],iV=[1,tT,"CancellationReasonList",0,()=>rS],iG=[1,tT,"ConsumedCapacityMultiple",0,()=>rx],iH=[1,tT,ed,0,()=>rB],iW=[1,tT,"ItemCollectionMetricsMultiple",0,()=>rZ],iK=[1,tT,"ItemList",0,()=>ne],iJ=[1,tT,"ItemResponseList",0,()=>r0],iQ=[1,tT,"KeyList",0,()=>nl],iX=[1,tT,eT,0,()=>r2],iY=[1,tT,"ListAttributeValue",0,()=>nm],iZ=[1,tT,"ParameterizedStatements",0,()=>r4],i0=[1,tT,"PartiQLBatchRequest",0,()=>rp],i1=[1,tT,"PartiQLBatchResponse",0,()=>rm],i2=[1,tT,"PreparedStatementParameters",0,()=>nm],i3=[1,tT,"ReplicaGlobalSecondaryIndexAutoScalingDescriptionList",0,()=>ip],i8=[1,tT,"ReplicaGlobalSecondaryIndexDescriptionList",0,()=>ig],i5=[1,tT,"ReplicaGlobalSecondaryIndexList",0,()=>ih],i6=[1,tT,"ThrottlingReasonList",0,()=>iI],i4=[1,tT,"TransactGetItemList",0,()=>iO],i7=[1,tT,"TransactWriteItemList",0,()=>i$],i9=[1,tT,"WriteRequests",0,()=>iz],ne=[2,tT,"AttributeMap",0,0,()=>nm],nt=[2,tT,G,0,0,()=>rr],nr=[2,tT,"BatchGetRequestMap",0,0,()=>r1],ni=[2,tT,"BatchGetResponseMap",0,0,()=>iK],nn=[2,tT,"BatchWriteItemRequestMap",0,0,()=>i9],ns=[2,tT,"ExpectedAttributeMap",0,0,()=>rV],no=[2,tT,"ExpressionAttributeValueMap",0,0,()=>nm],na=[2,tT,"FilterConditionMap",0,0,()=>rv],nc=[2,tT,"ItemCollectionKeyAttributeMap",0,0,()=>nm],nu=[2,tT,"ItemCollectionMetricsPerTable",0,0,()=>iW],nl=[2,tT,"Key",0,0,()=>nm],nd=[2,tT,ex,0,0,()=>rv],nf=[2,tT,"MapAttributeValue",0,0,()=>nm],nh=[2,tT,"PutItemInputAttributeMap",0,0,()=>nm],np=[2,tT,"SecondaryIndexesCapacityMap",0,0,()=>rw],nm=[4,tT,"AttributeValue",0,["S","N","B","SS","NS","BS","M","L","NULL","BOOL"],[0,0,21,64,64,85,()=>nf,()=>iY,2,2]],ng=[9,tT,"BatchExecuteStatement",0,()=>ru,()=>rl],ny=[9,tT,"BatchGetItem",0,()=>rd,()=>rf],nb=[9,tT,"BatchWriteItem",0,()=>rg,()=>ry],nS=[9,tT,"DeleteItem",0,()=>r$,()=>rN],nw=[9,tT,"DescribeEndpoints",0,()=>rj,()=>rU],nv=[9,tT,"ExecuteStatement",0,()=>rL,()=>rz],nE=[9,tT,"ExecuteTransaction",0,()=>rF,()=>rq],nx=[9,tT,"GetItem",0,()=>rH,()=>rW],nA=[9,tT,"PutItem",0,()=>ii,()=>is],nT=[9,tT,"Query",0,()=>ia,()=>ic],nC=[9,tT,"Scan",0,()=>iw,()=>iv],nI=[9,tT,"TransactGetItems",0,()=>iP,()=>iM],nR=[9,tT,"TransactWriteItems",0,()=>iN,()=>ik],nO=[9,tT,"UpdateItem",0,()=>ij,()=>iU]},528:(e,t,r)=>{"use strict";r.d(t,{pf:()=>i});let i=({serviceId:e,clientVersion:t})=>async r=>{let i="u">typeof window?window.navigator:void 0,s=i?.userAgent??"",o=i?.userAgentData?.platform??n.os(s)??"other",a=i?.userAgentData?.brands??[],c=a[a.length-1],u=c?.brand??n.browser(s)??"unknown",l=c?.version??"unknown",d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o}`,void 0],["lang/js"],["md/browser",`${u}_${l}`]];e&&d.push([`api/${e}`,t]);let f=await r?.userAgentAppId?.();return f&&d.push([`app/${f}`]),d},n={os:e=>/iPhone|iPad|iPod/.test(e)?"iOS":/Macintosh|Mac OS X/.test(e)?"macOS":/Windows NT/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":void 0,browser:e=>/EdgiOS|EdgA|Edg\//.test(e)?"Microsoft Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":void 0}},536:(e,t,r)=>{"use strict";r.d(t,{TG:()=>F,Z$:()=>N,sf:()=>D});var i=r(8290);class n{value;constructor(e){"object"==typeof e&&"N"in e?this.value=String(e.N):this.value=String(e);const t="number"==typeof e.valueOf()?e.valueOf():0;if(t>Number.MAX_SAFE_INTEGER||t{if(void 0===e)throw Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(null===e&&"object"==typeof e)return l();if(Array.isArray(e))return o(e,t);if(e?.constructor?.name==="Set")return a(e,t);if(e?.constructor?.name==="Map")return c(e,t);else if(e?.constructor?.name==="Object"||!e.constructor&&"object"==typeof e)return u(e,t);else if(g(e))return 0===e.length&&t?.convertEmptyValues?l():d(e);else if("boolean"==typeof e||e?.constructor?.name==="Boolean")return{BOOL:e.valueOf()};else if("number"==typeof e||e?.constructor?.name==="Number")return m(e,t);else if(e instanceof n)return e.toAttributeValue();else if("bigint"==typeof e)return h(e);else if("string"==typeof e||e?.constructor?.name==="String")return 0===e.length&&t?.convertEmptyValues?l():f(e);else if(t?.convertClassInstanceToMap&&"object"==typeof e)return u(e,t);throw Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)},o=(e,t)=>({L:e.filter(e=>"function"!=typeof e&&(!t?.removeUndefinedValues||t?.removeUndefinedValues&&void 0!==e)).map(e=>s(e,t))}),a=(e,t)=>{let r=t?.removeUndefinedValues?new Set([...e].filter(e=>void 0!==e)):e;if(!t?.removeUndefinedValues&&r.has(void 0))throw Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(0===r.size){if(t?.convertEmptyValues)return l();throw Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let i=r.values().next().value;if(i instanceof n)return{NS:Array.from(r).map(e=>e.toString())};if("number"==typeof i)return{NS:Array.from(r).map(e=>m(e,t)).map(e=>e.N)};if("bigint"==typeof i)return{NS:Array.from(r).map(h).map(e=>e.N)};if("string"==typeof i)return{SS:Array.from(r).map(f).map(e=>e.S)};if(g(i))return{BS:Array.from(r).map(d).map(e=>e.B)};else throw Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},c=(e,t)=>({M:(e=>{let r={};for(let[i,n]of e)"function"==typeof n||void 0===n&&t?.removeUndefinedValues||(r[i]=s(n,t));return r})(e)}),u=(e,t)=>({M:(e=>{let r={};for(let i in e){let n=e[i];"function"==typeof n||void 0===n&&t?.removeUndefinedValues||(r[i]=s(n,t))}return r})(e)}),l=()=>({NULL:!0}),d=e=>({B:e}),f=e=>({S:e.toString()}),h=e=>({N:e.toString()}),p=e=>{throw Error(`${e} Use NumberValue from @aws-sdk/lib-dynamodb.`)},m=(e,t)=>{if([NaN,1/0,-1/0].map(e=>e.toString()).includes(e.toString()))throw Error(`Special numeric value ${e.toString()} is not allowed`);return!t?.allowImpreciseNumbers&&(Number(e)>Number.MAX_SAFE_INTEGER?p(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):Number(e)!!e?.constructor&&["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"].includes(e.constructor.name),y=(e,t)=>{for(let[r,i]of Object.entries(e))if(void 0!==i)switch(r){case"NULL":return null;case"BOOL":return!!i;case"N":return b(i,t);case"B":return w(i);case"S":return S(i);case"L":return v(i,t);case"M":return E(i,t);case"NS":return new Set(i.map(e=>b(e,t)));case"BS":return new Set(i.map(w));case"SS":return new Set(i.map(S));default:throw Error(`Unsupported type passed: ${r}`)}throw Error(`No value defined: ${JSON.stringify(e)}`)},b=(e,t)=>{if("function"==typeof t?.wrapNumbers)return t?.wrapNumbers(e);if(t?.wrapNumbers)return n.from(e);let r=Number(e);if((r>Number.MAX_SAFE_INTEGER||re,w=e=>e,v=(e,t)=>e.map(e=>y(e,t)),E=(e,t)=>Object.entries(e).reduce((e,[r,i])=>(e[r]=y(i,t),e),{}),x={},A=[],T=(e,t,r)=>{if(void 0!==e)if(null==r)return t(e);else{let i=Object.keys(r),n=1===i.length&&"*"===i[0],s=i.length>=1&&!n,o=0===i.length;if(s)return C(e,t,r);if(o)return I(e,t,null);if(n)return Object.entries(e??{}).reduce((e,[i,n])=>("function"!=typeof n&&(e[i]=T(n,t,r["*"])),e),Array.isArray(e)?[]:{})}},C=(e,t,r)=>{let i;if(Array.isArray(e))i=e.filter(e=>"function"!=typeof e);else for(let[t,r]of(i={},Object.entries(e)))"function"!=typeof r&&(i[t]=r);for(let[n,s]of Object.entries(r)){if("function"==typeof e[n])continue;let r=T(e[n],t,s);void 0!==r&&"function"!=typeof r&&(i[n]=r)}return i},I=(e,t,r)=>Array.isArray(e)?e.filter(e=>"function"!=typeof e).map(e=>T(e,t,r)):Object.entries(e).reduce((e,[i,n])=>{if("function"==typeof n)return e;let s=T(n,t,r);return void 0!==s&&"function"!=typeof s&&(e[i]=s),e},{});class R extends i.u{addMarshallingMiddleware(e){let{marshallOptions:t={},unmarshallOptions:r={}}=e.translateConfig||{};t.convertTopLevelContainer=t.convertTopLevelContainer??!0,r.convertWithoutMapWrapper=r.convertWithoutMapWrapper??!0,this.clientCommand.middlewareStack.addRelativeTo((e,r)=>async i=>{var n,o;return r.__aws_sdk_context?r.__aws_sdk_context.features||(r.__aws_sdk_context.features={}):r.__aws_sdk_context={features:{}},r.__aws_sdk_context.features.DDB_MAPPER="d",e({...i,input:(n=i.input,o=this.inputKeyNodes,C(n,e=>(function(e,t){let r=s(e,t),[i,n]=Object.entries(r)[0];switch(i){case"M":case"L":return t?.convertTopLevelContainer?r:n;default:return r}})(e,t),o))})},{name:"DocumentMarshall",relation:"before",toMiddleware:"serializerMiddleware",override:!0}),this.clientCommand.middlewareStack.addRelativeTo((e,t)=>async t=>{var i,n;let s=await e(t);return i=s.output,n=this.outputKeyNodes,s.output=C(i,e=>r?.convertWithoutMapWrapper?y(e,r):y({M:e},r),n),s},{name:"DocumentUnmarshall",relation:"before",toMiddleware:"deserializerMiddleware",override:!0})}}var O=r(256),P=r(9796),M=r(502);i.u.classBuilder().ep(P.S).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchExecuteStatement",{}).n("DynamoDBClient","BatchExecuteStatementCommand").sc(M.B4l).build(),i.u.classBuilder().ep({...P.S,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchGetItem",{}).n("DynamoDBClient","BatchGetItemCommand").sc(M.WtO).build(),i.u.classBuilder().ep({...P.S,ResourceArnList:{type:"operationContextParams",get:e=>Object.keys(e?.RequestItems??{})}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","BatchWriteItem",{}).n("DynamoDBClient","BatchWriteItemCommand").sc(M.Fd2).build(),i.u.classBuilder().ep({...P.S,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DeleteItem",{}).n("DynamoDBClient","DeleteItemCommand").sc(M.PoR).build(),i.u.classBuilder().ep(P.S).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExecuteStatement",{}).n("DynamoDBClient","ExecuteStatementCommand").sc(M.NBL).build(),i.u.classBuilder().ep(P.S).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","ExecuteTransaction",{}).n("DynamoDBClient","ExecuteTransactionCommand").sc(M.cBn).build(),i.u.classBuilder().ep({...P.S,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","GetItem",{}).n("DynamoDBClient","GetItemCommand").sc(M.uOr).build();class $ extends i.u.classBuilder().ep({...P.S,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","PutItem",{}).n("DynamoDBClient","PutItemCommand").sc(M.Z1L).build(){}class N extends R{input;inputKeyNodes={Item:x,Expected:{"*":{Value:null,AttributeValueList:A}},ExpressionAttributeValues:x};outputKeyNodes={Attributes:x,ItemCollectionMetrics:{ItemCollectionKey:x}};clientCommand;middlewareStack;constructor(e){super(),this.input=e,this.clientCommand=new $(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);let i=e.concat(this.middlewareStack),n=this.clientCommand.resolveMiddleware(i,t,r);return async()=>n(this.clientCommand)}}class k extends i.u.classBuilder().ep({...P.S,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","Query",{}).n("DynamoDBClient","QueryCommand").sc(M.Rwv).build(){}class D extends R{input;inputKeyNodes={KeyConditions:{"*":{AttributeValueList:A}},QueryFilter:{"*":{AttributeValueList:A}},ExclusiveStartKey:x,ExpressionAttributeValues:x};outputKeyNodes={Items:{"*":x},LastEvaluatedKey:x};clientCommand;middlewareStack;constructor(e){super(),this.input=e,this.clientCommand=new k(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);let i=e.concat(this.middlewareStack),n=this.clientCommand.resolveMiddleware(i,t,r);return async()=>n(this.clientCommand)}}class _ extends i.u.classBuilder().ep({...P.S,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","Scan",{}).n("DynamoDBClient","ScanCommand").sc(M.sFO).build(){}class j extends R{input;inputKeyNodes={ScanFilter:{"*":{AttributeValueList:A}},ExclusiveStartKey:x,ExpressionAttributeValues:x};outputKeyNodes={Items:{"*":x},LastEvaluatedKey:x};clientCommand;middlewareStack;constructor(e){super(),this.input=e,this.clientCommand=new _(this.input),this.middlewareStack=this.clientCommand.middlewareStack}resolveMiddleware(e,t,r){this.addMarshallingMiddleware(t);let i=e.concat(this.middlewareStack),n=this.clientCommand.resolveMiddleware(i,t,r);return async()=>n(this.clientCommand)}}i.u.classBuilder().ep({...P.S,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map(e=>e?.Get?.TableName)}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TransactGetItems",{}).n("DynamoDBClient","TransactGetItemsCommand").sc(M.Nq3).build(),i.u.classBuilder().ep({...P.S,ResourceArnList:{type:"operationContextParams",get:e=>e?.TransactItems?.map(e=>[e?.ConditionCheck?.TableName,e?.Put?.TableName,e?.Delete?.TableName,e?.Update?.TableName].filter(e=>e)).flat()}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","TransactWriteItems",{}).n("DynamoDBClient","TransactWriteItemsCommand").sc(M._nS).build(),i.u.classBuilder().ep({...P.S,ResourceArn:{type:"contextParams",name:"TableName"}}).m(function(e,t,r,i){return[(0,O.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","UpdateItem",{}).n("DynamoDBClient","UpdateItemCommand").sc(M.JUI).build();let U=async(e,t,r,i=e=>e,...n)=>{let s=new e(r);return s=i(s)??s,await t.send(s,...n)};function B(e,t,r,i,n){return async function*(s,o,...a){let c,u=s.startingToken??o[r],l=!0;for(;l;){if(o[r]=u,n&&(o[n]=o[n]??s.pageSize),s.client instanceof e)c=await U(t,s.client,o,s.withCommand,...a);else throw Error(`Invalid client, expected instance of ${e.name}`);yield c;let d=u;l=!!((u=L(c,i))&&(!s.stopOnSameToken||u!==d))}}}let L=(e,t)=>{let r=e;for(let e of t.split(".")){if(!r||"object"!=typeof r)return;r=r[e]}return r};var z=r(4386);class F extends z.K{config;constructor(e,t){if(super(e.config),this.config=e.config,this.config.translateConfig=t,this.middlewareStack=e.middlewareStack,this.config?.cacheMiddleware)throw Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocumentClient. This option must be set to false.")}static from(e,t){return new F(e,t)}destroy(){}}B(F,D,"ExclusiveStartKey","LastEvaluatedKey","Limit"),B(F,j,"ExclusiveStartKey","LastEvaluatedKey","Limit")},561:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});let i=(e,t,r)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}}},640:(e,t,r)=>{"use strict";r.d(t,{o:()=>s});let i=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let e of t)r.push(e);return r},n=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,s=()=>{let e=[],t=[],r=!1,c=new Set,u=r=>(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r.identifyOnResolve?.(f.identifyOnResolve()),r),l=e=>{let t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...l(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...l(e))}),t},d=(r=!1)=>{let s=[],c=[],u={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of i(t.name,t.aliases))u[e]=t;s.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of i(t.name,t.aliases))u[e]=t;c.push(t)}),c.forEach(e=>{if(e.toMiddleware){let t=u[e.toMiddleware];if(void 0===t){if(r)return;throw Error(`${e.toMiddleware} is not found when adding ${n(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),s.sort((e,t)=>o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"]).map(l).reduce((e,t)=>(e.push(...t),e),[])},f={add:(t,r={})=>{let{name:s,override:o,aliases:a}=r,u={step:"initialize",priority:"normal",middleware:t,...r},l=i(s,a);if(l.length>0){if(l.some(e=>c.has(e))){if(!o)throw Error(`Duplicate middleware name '${n(s,a)}'`);for(let t of l){let r=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===r)continue;let i=e[r];if(i.step!==u.step||u.priority!==i.priority)throw Error(`"${n(i.name,i.aliases)}" middleware with ${i.priority} priority in ${i.step} step cannot be overridden by "${n(s,a)}" middleware with ${u.priority} priority in ${u.step} step.`);e.splice(r,1)}}for(let e of l)c.add(e)}e.push(u)},addRelativeTo:(e,r)=>{let{name:s,override:o,aliases:a}=r,u={middleware:e,...r},l=i(s,a);if(l.length>0){if(l.some(e=>c.has(e))){if(!o)throw Error(`Duplicate middleware name '${n(s,a)}'`);for(let e of l){let r=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===r)continue;let i=t[r];if(i.toMiddleware!==u.toMiddleware||i.relation!==u.relation)throw Error(`"${n(i.name,i.aliases)}" middleware ${i.relation} "${i.toMiddleware}" middleware cannot be overridden by "${n(s,a)}" middleware ${u.relation} "${u.toMiddleware}" middleware.`);t.splice(r,1)}}for(let e of l)c.add(e)}t.push(u)},clone:()=>u(s()),use:e=>{e.applyToStack(f)},remove:r=>{let n,s;if("string"==typeof r){let n,s;return n=!1,s=e=>{let t=i(e.name,e.aliases);if(t.includes(r)){for(let e of(n=!0,t))c.delete(e);return!1}return!0},e=e.filter(s),t=t.filter(s),n}return n=!1,s=e=>{if(e.middleware===r){for(let t of(n=!0,i(e.name,e.aliases)))c.delete(t);return!1}return!0},e=e.filter(s),t=t.filter(s),n},removeByTag:r=>{let n=!1,s=e=>{let{tags:t,name:s,aliases:o}=e;if(t&&t.includes(r)){for(let e of i(s,o))c.delete(e);return n=!0,!1}return!0};return e=e.filter(s),t=t.filter(s),n},concat:e=>{let t=u(s());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:u,identify:()=>d(!0).map(e=>{let t=e.step??e.relation+" "+e.toMiddleware;return n(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(let r of d().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(f.identify()),e}};return f},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1}},703:(e,t,r)=>{"use strict";r.d(t,{r:()=>o});var i=r(1052),n=r(4379);let s=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(n.G8,e),getRetryCost:()=>r});class o{maxAttempts;mode=i.cm.STANDARD;capacity=n.Df;retryBackoffStrategy=(()=>{let e=n.bp;return{computeNextBackoffDelay:t=>Math.floor(Math.min(n.G8,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return s({retryDelay:n.bp,retryCount:0})}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){let r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?n.jh:n.bp);let i=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,i):i,a=this.getCapacityCost(r);return this.capacity-=a,s({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(n.Df,this.capacity+(e.getRetryCost()??n.XP))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${i.Gz}`),i.Gz}}shouldRetry(e,t,r){return e.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?n.Rn:n.XS}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}},713:(e,t,r)=>{"use strict";r.d(t,{I:()=>b});var i=r(2619).Buffer,n=void 0!==i&&i.from?function(e){return i.from(e,"utf8")}:e=>new TextEncoder().encode(e);function s(e){return e instanceof Uint8Array?e:"string"==typeof e?n(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function o(e){return"string"==typeof e?0===e.length:0===e.byteLength}var a={name:"SHA-256"},c={name:"HMAC",hash:a},u=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);let l={};function d(){return"u">typeof window?window:"u">typeof self?self:l}var f=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!o(e)){var t=s(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return d().crypto.subtle.sign(c,t,e.toHash).then(function(e){return new Uint8Array(e)})}):o(this.toHash)?Promise.resolve(u):Promise.resolve().then(function(){return d().crypto.subtle.digest(a,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,r){d().crypto.subtle.importKey("raw",s(e.secret),c,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))},e}(),h=("function"==typeof SuppressedError&&SuppressedError,new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2])),p=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],m=function(){function e(){this.state=Int32Array.from(p),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>0x1fffffffffffff)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var i=this.bufferLength;i<64;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<56;i++)t.setUint8(i,0);t.setUint32(56,Math.floor(e/0x100000000),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var n=new Uint8Array(32),i=0;i<8;i++)n[4*i]=this.state[i]>>>24&255,n[4*i+1]=this.state[i]>>>16&255,n[4*i+2]=this.state[i]>>>8&255,n[4*i+3]=this.state[i]>>>0&255;return n},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],n=t[2],s=t[3],o=t[4],a=t[5],c=t[6],u=t[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&e[4*l])<<24|(255&e[4*l+1])<<16|(255&e[4*l+2])<<8|255&e[4*l+3];else{var d=this.temp[l-2],f=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,p=((d=this.temp[l-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(f+this.temp[l-7]|0)+(p+this.temp[l-16]|0)}var m=(((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&a^~o&c)|0)+(u+(h[l]+this.temp[l]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&n^i&n)|0;u=c,c=a,a=o,o=s+m|0,s=n,n=i,i=r,r=m+g|0}t[0]+=r,t[1]+=i,t[2]+=n,t[3]+=s,t[4]+=o,t[5]+=a,t[6]+=c,t[7]+=u},e}(),g=function(){function e(e){this.secret=e,this.hash=new m,this.reset()}return e.prototype.update=function(e){if(!o(e)&&!this.error)try{this.hash.update(s(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){var e,t,r,i;return e=this,t=void 0,r=void 0,i=function(){return function(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){var u=[a,c];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&u[0]?i.return:u[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,u[1])).done)return n;switch(i=0,n&&(u=[2&u[0],n.value]),u[0]){case 0:case 1:n=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!n||u[1]>n[0]&&u[1]64){var r=new m;r.update(t),t=r.digest()}var i=new Uint8Array(64);return i.set(t),i}(this.secret),t=new Uint8Array(64);t.set(e);for(var r=0;r<64;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return i}});let i=r(3623)._(r(2115)).default.createContext(null)},802:(e,t,r)=>{"use strict";r.d(t,{vK:()=>o});var i=r(7127);let n="content-length",s={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},o=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{let s=t.request;if(i.K.isInstance(s)){let{body:e,headers:t}=s;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(n))try{let t=r(e);s.headers={...s.headers,[n]:String(t)}}catch(e){}}return e({...t,request:s})}),s)}})},852:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});let i=e=>encodeURIComponent(e).replace(/[!'()*]/g,n),n=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},1052:(e,t,r)=>{"use strict";var i,n;r.d(t,{Gz:()=>s,L0:()=>o,cm:()=>i}),(n=i||(i={})).STANDARD="standard",n.ADAPTIVE="adaptive";let s=3,o=i.STANDARD},1172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let i=r(2115);function n(e,t){let r=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,i)),t&&(n.current=s(t,i))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1354:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var i=r(1052),n=r(8659);class s{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){let t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(e=>s.setTimeoutFn(e,t))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),(0,n.Qb)(e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=Math.floor(2*this.getCurrentTimeInSeconds())/2;if(this.requestCount++,e>this.lastTxRateBucket){let t=this.requestCount/(e-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=e}}getPrecise(e){return parseFloat(e.toFixed(8))}}var o=r(703);class a{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=i.cm.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:r}=t??{};this.rateLimiter=r??new s,this.standardRetryStrategy=new o.r(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}},1743:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},n=e=>({applyToStack:e=>{e.add(e=>async t=>e(t),i)}})},1792:(e,t,r)=>{"use strict";var i,n;r.d(t,{dB:()=>i}),(n=i||(i={})).MD5="md5",n.CRC32="crc32",n.CRC32C="crc32c",n.SHA1="sha1",n.SHA256="sha256"},1808:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});let i=async e=>void 0},1831:(e,t,r)=>{"use strict";r.d(t,{M:()=>n,T:()=>i});class i extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){return!!e&&(i.prototype.isPrototypeOf(e)||!!e.$fault&&!!e.$metadata&&("client"===e.$fault||"server"===e.$fault))}static[Symbol.hasInstance](e){return!!e&&(this===i?i.isInstance(e):!!i.isInstance(e)&&(e.name&&this.name?this.prototype.isPrototypeOf(e)||e.name===this.name:this.prototype.isPrototypeOf(e)))}}let n=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{(void 0==e[t]||""===e[t])&&(e[t]=r)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}},1967:(e,t,r)=>{"use strict";r.d(t,{s:()=>I});let i="endpoints";function n(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${n(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(n).join(", ")})`:JSON.stringify(e,null,2)}class s extends Error{constructor(e){super(e),this.name="EndpointError"}}var o,a,c=r(7751);let u=(e,t)=>(e=>{let t=e.split("."),r=[];for(let i of t){let t=i.indexOf("[");if(-1!==t){if(i.indexOf("]")!==i.length-1)throw new s(`Path: '${e}' does not end with ']'`);let n=i.slice(t+1,-1);if(Number.isNaN(parseInt(n)))throw new s(`Invalid array index: '${n}' in path: '${e}'`);0!==t&&r.push(i.slice(0,t)),r.push(n)}else r.push(i)}return r})(t).reduce((r,i)=>{if("object"!=typeof r)throw new s(`Index '${i}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(i)]:r[i]},e);var l=r(6780);(o=a||(a={})).HTTP="http",o.HTTPS="https";var d=r(8493);let f={[a.HTTP]:80,[a.HTTPS]:443},h={booleanEquals:(e,t)=>e===t,getAttr:u,isSet:e=>null!=e,isValidHostLabel:l.X,not:e=>!e,parseURL:e=>{let t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){let{hostname:t,port:r,protocol:i="",path:n="",query:s={}}=e,o=new URL(`${i}//${t}${r?`:${r}`:""}${n}`);return o.search=Object.entries(s).map(([e,t])=>`${e}=${t}`).join("&"),o}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:i,hostname:n,pathname:s,protocol:o,search:c}=t;if(c)return null;let u=o.slice(0,-1);if(!Object.values(a).includes(u))return null;let l=(0,d.o)(n),h=r.includes(`${i}:${f[u]}`)||"string"==typeof e&&e.includes(`${i}:${f[u]}`),p=`${i}${h?`:${f[u]}`:""}`;return{scheme:u,authority:p,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}},stringEquals:(e,t)=>e===t,substring:(e,t,r,i)=>t>=r||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},p=(e,t)=>{let r=[],i={...t.endpointParams,...t.referenceRecord},n=0;for(;n{if("string"==typeof e)return p(e,r);if(e.fn)return y.callFunction(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e])(e,r);throw new s(`'${t}': ${String(e)} is not a string, function or reference.`)},g=({fn:e,argv:t},r)=>{let i=t.map(e=>["boolean","number"].includes(typeof e)?e:y.evaluateExpression(e,"arg",r)),n=e.split(".");return n[0]in c.m&&null!=n[1]?c.m[n[0]][n[1]](...i):h[e](...i)},y={evaluateExpression:m,callFunction:g},b=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new s(`'${e}' is already defined in Reference Record.`);let o=g(t,r);return r.logger?.debug?.(`${i} evaluateCondition: ${n(t)} = ${n(o)}`),{result:""===o||!!o,...null!=e&&{toAssign:{name:e,value:o}}}},S=(e=[],t)=>{let r={};for(let s of e){let{result:e,toAssign:o}=b(s,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(`${i} assign: ${o.name} := ${n(o.value)}`))}return{result:!0,referenceRecord:r}},w=(e,t)=>Object.entries(e).reduce((e,[r,i])=>({...e,[r]:E.getEndpointProperty(i,t)}),{}),v=(e,t)=>{if(Array.isArray(e))return e.map(e=>v(e,t));switch(typeof e){case"string":return p(e,t);case"object":if(null===e)throw new s(`Unexpected endpoint property: ${e}`);return E.getEndpointProperties(e,t);case"boolean":return e;default:throw new s(`Unexpected endpoint property type: ${typeof e}`)}},E={getEndpointProperty:v,getEndpointProperties:w},x=(e,t)=>{let{conditions:r,endpoint:o}=e,{result:a,referenceRecord:c}=S(r,t);if(!a)return;let u={...t,referenceRecord:{...t.referenceRecord,...c}},{url:l,properties:d,headers:f}=o;return t.logger?.debug?.(`${i} Resolving endpoint from template: ${n(o)}`),{...void 0!=f&&{headers:Object.entries(f).reduce((e,[t,r])=>({...e,[t]:r.map(e=>{let r=m(e,"Header value entry",u);if("string"!=typeof r)throw new s(`Header '${t}' value '${r}' is not a string`);return r})}),{})},...void 0!=d&&{properties:w(d,u)},url:((e,t)=>{let r=m(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new s(`Endpoint URL must be a string, got ${typeof r}`)})(l,u)}},A=(e,t)=>{let{conditions:r,error:i}=e,{result:n,referenceRecord:o}=S(r,t);if(n)throw new s(m(i,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},T=(e,t)=>{for(let r of e)if("endpoint"===r.type){let e=x(r,t);if(e)return e}else if("error"===r.type)A(r,t);else if("tree"===r.type){let e=C.evaluateTreeRule(r,t);if(e)return e}else throw new s(`Unknown endpoint rule: ${r}`);throw new s("Rules evaluation failed")},C={evaluateRules:T,evaluateTreeRule:(e,t)=>{let{conditions:r,rules:i}=e,{result:n,referenceRecord:s}=S(r,t);if(n)return C.evaluateRules(i,{...t,referenceRecord:{...t.referenceRecord,...s}})}},I=(e,t)=>{let{endpointParams:r,logger:o}=t,{parameters:a,rules:c}=e;t.logger?.debug?.(`${i} Initial EndpointParams: ${n(r)}`);let u=Object.entries(a).filter(([,e])=>null!=e.default).map(([e,t])=>[e,t.default]);if(u.length>0)for(let[e,t]of u)r[e]=r[e]??t;for(let e of Object.entries(a).filter(([,e])=>e.required).map(([e])=>e))if(null==r[e])throw new s(`Missing required parameter: '${e}'`);let l=T(c,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${i} Resolved endpoint: ${n(l)}`),l}},2009:(e,t,r)=>{var i=r(9872),n=r(2547);function s(e){return"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:void 0}t.isArrayLike=function(e){return Array.isArray(e)||n.isTypedArray(e)},t.guessLength=s,t.toArray=function(e){var t=s(e),r="number"==typeof t?Array(t):[],n=0;return i(e,function(e){r[n++]=e}),r},t.toArrayWithIndices=function(e){var t=s(e),r="number"==typeof t?n.getPointerArray(t):Array,o="number"==typeof t?Array(t):[],a="number"==typeof t?new r(t):[],c=0;return i(e,function(e){o[c]=e,a[c]=c++}),[o,a]}},2547:(e,t)=>{t.getPointerArray=function(e){var t=e-1;return t<=255?Uint8Array:t<=65535?Uint16Array:t<=0xffffffff?Uint32Array:Float64Array},t.getSignedPointerArray=function(e){var t=e-1;return t<=127?Int8Array:t<=32767?Int16Array:t<=0x7fffffff?Int32Array:Float64Array},t.getNumberType=function(e){if(e===(0|e))if(-1===Math.sign(e))return e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array;else return e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array;return Float64Array};var r={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};t.getMinimalRepresentation=function(e,i){var n,s,o,a,c,u=null,l=0;for(a=0,c=e.length;al&&(l=n,u=s);return u},t.isTypedArray=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView(e)},t.concat=function(){var e,t,r,i=0;for(e=0,r=arguments.length;e{"use strict";function r({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:n,objectFit:s}){let o=r?40*r:e,a=i?40*i:t,c=o&&a?`viewBox='0 0 ${o} ${a}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},2619:e=>{var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,s=c(e),o=s[0],a=s[1],u=new n((o+a)*3/4-a),l=0,d=a>0?o-4:o;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],o=0,a=i-n;o>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===n?s.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&s.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),n=r(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);var s=0|h(i,n),c=o(s),u=c.write(i,n);return u!==s&&(c=c.slice(0,u)),c}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return function(e,t,r){var i;if(t<0||e.byteLengthtypeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),o(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=o(t),i=0;itypeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(e).length;default:if(n)return i?-1:T(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n,s,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",s=t;s0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,i,n){var s,o=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,a/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var l=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){for(var d=!0,f=0;fr&&(e+=" ... "),""},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,i,n){if(O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var s=n-i,o=r-t,c=Math.min(s,o),u=this.slice(i,n),l=e.slice(t,r),d=0;d239?4:u>223?3:u>191?2:1;if(n+d<=r)switch(d){case 1:u<128&&(l=u);break;case 2:(192&(s=e[n+1]))==128&&(c=(31&u)<<6|63&s)>127&&(l=c);break;case 3:s=e[n+1],o=e[n+2],(192&s)==128&&(192&o)==128&&(c=(15&u)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:s=e[n+1],o=e[n+2],a=e[n+3],(192&s)==128&&(192&o)==128&&(192&a)==128&&(c=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),n+=d}var f=i,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",m=0;mr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,i,n,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw RangeError("Index out of range")}function v(e,t,r,i,n,s){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,i,s){return t*=1,r>>>=0,s||v(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function x(e,t,r,i,s){return t*=1,r>>>=0,s||v(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}a.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,s,o,a,c,u,l,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var h=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var s=t.length;i>s/2&&(i=s/2);for(var o=0;o>8,n.push(r%256),n.push(i);return n}(e,this.length-l),this,l,d);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||S(e,t,this.length);for(var i=this[e],n=1,s=0;++s>>=0,t>>>=0,r||S(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},a.prototype.readUInt8=function(e,t){return e>>>=0,t||S(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||S(e,t,this.length);for(var i=this[e],n=1,s=0;++s=(n*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||S(e,t,this.length);for(var i=t,n=1,s=this[e+--i];i>0&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||S(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||S(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||S(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||S(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||S(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}var s=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}var s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}var s=0,o=1,a=0;for(this[t]=255&e;++s>>=0,!i){var n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}var s=r-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,i){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},a.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,s=e.charCodeAt(0);("utf8"===i&&s<128||"latin1"===i)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function C(e){for(var t=[],r=0;r=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,i,n){var s,o,a=8*n-i-1,c=(1<>1,l=-7,d=r?n-1:0,f=r?-1:1,h=e[t+d];for(d+=f,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+d],d+=f,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=i;l>0;o=256*o+e[t+d],d+=f,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),s-=u}return(h?-1:1)*o*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var o,a,c,u=8*s-n-1,l=(1<>1,f=5960464477539062e-23*(23===n),h=i?0:s-1,p=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(o++,c/=2),o+d>=l?(a=0,o=l):o+d>=1?(a=(t*c-1)*Math.pow(2,n),o+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&a,h+=p,a/=256,n-=8);for(o=o<0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*m}}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}},o=!0;try{t[e](s,s.exports,i),o=!1}finally{o&&delete r[e]}return s.exports}i.ab="//",e.exports=i(72)},2796:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});let i=e=>()=>Promise.reject(e)},2827:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var i=r(9752);let n=e=>e[i.V]||(e[i.V]={})},3363:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var i=r(8734),n=r(9851),s=r(8782),o=r(5907);class a extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return"base64"===t?a.mutate((0,i.E)(e)):a.mutate((0,s.a)(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,a.prototype),e}transformToString(e="utf-8"){return"base64"===e?(0,n.n)(this):(0,o.P)(this)}}},4097:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});class i{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){return!!e&&"number"==typeof e.statusCode&&"object"==typeof e.headers}}},4142:(e,t,r)=>{"use strict";r.d(t,{n:()=>n});let i="function"==typeof TextEncoder?new TextEncoder:null,n=e=>{if("string"==typeof e){if(i)return i.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){let i=e.charCodeAt(r);i>127&&i<=2047?t++:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw Error(`Body Length computation failed for ${e}`)}},4379:(e,t,r)=>{"use strict";r.d(t,{Df:()=>o,G8:()=>n,Rn:()=>c,XP:()=>u,XS:()=>a,bp:()=>i,jh:()=>s,l5:()=>l,ok:()=>d});let i=100,n=2e4,s=500,o=500,a=5,c=10,u=1,l="amz-sdk-invocation-id",d="amz-sdk-request"},4386:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});var i=r(640);class n{config;middlewareStack=(0,i.o)();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:r}=e;r&&"function"==typeof t&&(e.protocol=new t(r))}send(e,t,r){let i,n="function"!=typeof t?t:void 0,s="function"==typeof t?t:r;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);let t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!s)return i(e).then(e=>e.output);i(e).then(e=>s(null,e.output),e=>s(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},4467:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});let i=e=>{let t;if("string"==typeof e)return i(new URL(e));let{hostname:r,pathname:n,port:s,protocol:o,search:a}=e;return a&&(t=function(e){let t={};if(e=e.replace(/^\?/,""))for(let r of e.split("&")){let[e,i=null]=r.split("=");e=decodeURIComponent(e),i&&(i=decodeURIComponent(i)),e in t?Array.isArray(t[e])?t[e].push(i):t[e]=[t[e],i]:t[e]=i}return t}(a)),{hostname:r,port:s?parseInt(s):void 0,protocol:o,path:n,query:t}}},4548:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var i=r(8734);let n=async e=>"function"==typeof Blob&&e instanceof Blob||e.constructor?.name==="Blob"?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):s(e):o(e);async function s(e){var t;let r=await (t=e,new Promise((e,r)=>{let i=new FileReader;i.onloadend=()=>{if(2!==i.readyState)return r(Error("Reader aborted too early"));let t=i.result??"",n=t.indexOf(","),s=n>-1?n+1:t.length;e(t.substring(s))},i.onabort=()=>r(Error("Read aborted")),i.onerror=()=>r(i.error),i.readAsDataURL(t)}));return new Uint8Array((0,i.E)(r))}async function o(e){let t=[],r=e.getReader(),i=!1,n=0;for(;!i;){let{done:e,value:s}=await r.read();s&&(t.push(s),n+=s.length),i=e}let s=new Uint8Array(n),o=0;for(let e of t)s.set(e,o),o+=e.length;return s}},4635:(e,t,r)=>{"use strict";r.d(t,{B:()=>L});let i={},n={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),i[e]=t,n[t]=e}function s(e){let t="";for(let r=0;r"string"==typeof e?(0,c.a)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),l="X-Amz-Date",d="X-Amz-Signature",f="X-Amz-Security-Token",h="authorization",p=l.toLowerCase(),m=[h,p,"date"],g=d.toLowerCase(),y="x-amz-content-sha256",b=f.toLowerCase(),S={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},w=/^proxy-/,v=/^sec-/,E="AWS4-HMAC-SHA256",x="aws4_request",A={},T=[],C=(e,t,r)=>`${e}/${t}/${r}/${x}`,I=async(e,t,r,i,n)=>{let o=await R(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${i}:${n}:${s(o)}:${t.sessionToken}`;if(a in A)return A[a];for(T.push(a);T.length>50;)delete A[T.shift()];let c=`AWS4${t.secretAccessKey}`;for(let t of[r,i,n,x])c=await R(e,c,t);return A[a]=c},R=(e,t,r)=>{let i=new e(t);return i.update(u(r)),i.digest()},O=({headers:e},t,r)=>{let i={};for(let n of Object.keys(e).sort()){if(void 0==e[n])continue;let s=n.toLowerCase();(!(s in S||t?.has(s)||w.test(s)||v.test(s))||r&&(!r||r.has(s)))&&(i[s]=e[n].trim().replace(/\s+/g," "))}return i},P=async({headers:e,body:t},r)=>{for(let t of Object.keys(e))if(t.toLowerCase()===y)return e[t];if(void 0==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(t)){let e=new r;return e.update(u(t)),s(await e.digest())}return"UNSIGNED-PAYLOAD"};class M{format(e){let t=[];for(let r of Object.keys(e)){let i=(0,c.a)(r);t.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),i=0;for(let e of t)r.set(e,i),i+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([+!e.value]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=(0,c.a)(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(a,3),l;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(N.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!$.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(function(e){if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r0x8000000000000000||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,i=Math.abs(Math.round(e));r>-1&&i>0;r--,i/=256)t[r]=i;return e<0&&k(t),new N(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&k(e),parseInt(s(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function k(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var D=r(7127);let _=e=>{for(let t of Object.keys((e=D.K.clone(e)).headers))m.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};var j=r(6696),U=r(852);class B{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:i,sha256:n,uriEscapePath:s=!0}){this.service=i,this.sha256=n,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,j.t)(r),this.credentialProvider=(0,j.t)(t)}createCanonicalRequest(e,t,r){let i=Object.keys(t).sort();return`${e.method} ${this.getCanonicalPath(e)} ${(({query:e={}})=>{let t=[],r={};for(let i of Object.keys(e)){if(i.toLowerCase()===g)continue;let n=(0,U.o)(i);t.push(n);let s=e[i];"string"==typeof s?r[n]=`${n}=${(0,U.o)(s)}`:Array.isArray(s)&&(r[n]=s.slice(0).reduce((e,t)=>e.concat([`${n}=${(0,U.o)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")})(e)} ${i.map(e=>`${e}:${t[e]}`).join("\n")} ${i.join(";")} ${r}`}async createStringToSign(e,t,r,i){let n=new this.sha256;n.update(u(r));let o=await n.digest();return`${i} ${e} ${t} ${s(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let r of e.split("/"))r?.length!==0&&"."!==r&&(".."===r?t.pop():t.push(r));let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,U.o)(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw Error("Resolved credential object is not valid")}formatDate(e){var t;let r=("number"==typeof(t=e)?new Date(1e3*t):"string"==typeof t?new Date(Number(t)?1e3*Number(t):t):t).toISOString().replace(/\.\d{3}Z$/,"Z").replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class L extends B{headerFormatter=new M;constructor({applyChecksum:e,credentials:t,region:r,service:i,sha256:n,uriEscapePath:s=!0}){super({applyChecksum:e,credentials:t,region:r,service:i,sha256:n,uriEscapePath:s})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:n,unhoistableHeaders:s,signableHeaders:o,hoistableHeaders:a,signingRegion:c,signingService:u}=t,h=await this.credentialProvider();this.validateResolvedCredentials(h);let p=c??await this.regionProvider(),{longDate:m,shortDate:g}=this.formatDate(r);if(i>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let y=C(g,p,u??this.service),b=((e,t={})=>{let{headers:r,query:i={}}=D.K.clone(e);for(let e of Object.keys(r)){let n=e.toLowerCase();("x-amz-"===n.slice(0,6)&&!t.unhoistableHeaders?.has(n)||t.hoistableHeaders?.has(n))&&(i[e]=r[e],delete r[e])}return{...e,headers:r,query:i}})(_(e),{unhoistableHeaders:s,hoistableHeaders:a});h.sessionToken&&(b.query[f]=h.sessionToken),b.query["X-Amz-Algorithm"]=E,b.query["X-Amz-Credential"]=`${h.accessKeyId}/${y}`,b.query[l]=m,b.query["X-Amz-Expires"]=i.toString(10);let S=O(b,n,o);return b.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(S),b.query[d]=await this.getSignature(m,y,this.getSigningKey(h,p,g,u),this.createCanonicalRequest(b,S,await P(e,this.sha256))),b}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:i,signingRegion:n,signingService:o}){let a=n??await this.regionProvider(),{shortDate:c,longDate:u}=this.formatDate(r),l=C(c,a,o??this.service),d=await P({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let h=["AWS4-HMAC-SHA256-PAYLOAD",u,l,i,s(await f.digest()),d].join("\n");return this.signString(h,{signingDate:r,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:i,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:i}={}){let n=await this.credentialProvider();this.validateResolvedCredentials(n);let o=r??await this.regionProvider(),{shortDate:a}=this.formatDate(t),c=new this.sha256(await this.getSigningKey(n,o,a,i));return c.update(u(e)),s(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:n,signingService:s}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let a=n??await this.regionProvider(),c=_(e),{longDate:u,shortDate:l}=this.formatDate(t),d=C(l,a,s??this.service);c.headers[p]=u,o.sessionToken&&(c.headers[b]=o.sessionToken);let f=await P(c,this.sha256);!((e,t)=>{for(let r of(e=e.toLowerCase(),Object.keys(t)))if(e===r.toLowerCase())return!0;return!1})(y,c.headers)&&this.applyChecksum&&(c.headers[y]=f);let m=O(c,i,r),g=await this.getSignature(u,d,this.getSigningKey(o,a,l,s),this.createCanonicalRequest(c,m,f));return c.headers[h]=`${E} Credential=${o.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(m)}, Signature=${g}`,c}async getSignature(e,t,r,i){let n=await this.createStringToSign(e,t,i,E),o=new this.sha256(await r);return o.update(u(n)),s(await o.digest())}getSigningKey(e,t,r,i){return I(this.sha256,e,r,t,i||this.service)}}},4639:(e,t,r)=>{"use strict";r.d(t,{VW:()=>i}),r(561),r(5725);let i=!1},4786:(e,t,r)=>{"use strict";r.d(t,{O:()=>i});class i{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return i.registries.has(e)||i.registries.set(e,new i(e)),i.registries.get(e)}copyFrom(e){let{schemas:t,exceptions:r}=this;for(let[r,i]of e.schemas)t.has(r)||t.set(r,i);for(let[t,i]of e.exceptions)r.has(t)||r.set(t,i)}register(e,t){let r=this.normalizeShapeId(e);for(let e of[this,i.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(e,t){let r=e[1];for(let n of[this,i.for(r)])n.schemas.set(r+"#"+e[2],e),n.exceptions.set(e,t)}getErrorCtor(e){return this.exceptions.has(e)?this.exceptions.get(e):i.for(e[1]).exceptions.get(e)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,t,r]=e,i=t+"#"+r;if(i.startsWith("smithy.ts.sdk.synthetic.")&&i.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}},4823:(e,t,r)=>{"use strict";r.d(t,{Ou:()=>i});let i={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}},5413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return u}}),r(7284);let i=r(3887),n=r(2590),s=r(5762),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function c(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:r=!1,priority:u=!1,preload:l=!1,loading:d,className:f,quality:h,width:p,height:m,fill:g=!1,style:y,overrideSrc:b,onLoad:S,onLoadingComplete:w,placeholder:v="empty",blurDataURL:E,fetchPriority:x,decoding:A="async",layout:T,objectFit:C,objectPosition:I,lazyBoundary:R,lazyRoot:O,...P},M){var $;let N,k,D,{imgConf:_,showAltText:j,blurComplete:U,defaultLoader:B}=M,L=_||s.imageConfigDefault;if("allSizes"in L)N=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t),r=L.qualities?.sort((e,t)=>e-t);N={...L,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=P.loader||B;delete P.loader,delete P.srcSet;let F="__next_img_default"in z;if(F){if("custom"===N.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:r,...i}=t;return e(i)}}if(T){"fill"===T&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(y={...y,...e});let r={responsive:"100vw",fill:"100vw"}[T];r&&!t&&(t=r)}let q="",V=c(p),G=c(m);if(($=e)&&"object"==typeof $&&(a($)||void 0!==$.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(k=t.blurWidth,D=t.blurHeight,E=E||t.blurDataURL,q=t.src,!g)if(V||G){if(V&&!G){let e=V/t.width;G=Math.round(t.height*e)}else if(!V&&G){let e=G/t.height;V=Math.round(t.width*e)}}else V=t.width,G=t.height}let H=!u&&!l&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:q)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,H=!1),N.unoptimized&&(r=!0),F&&!N.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let W=c(h),K=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:I}:{},j?{}:{color:"transparent"},y),J=U||"empty"===v?null:"blur"===v?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:V,heightInt:G,blurWidth:k,blurHeight:D,blurDataURL:E||"",objectFit:K.objectFit})}")`:`url("${v}")`,Q=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,X=J?{backgroundSize:Q,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},Y=function({config:e,src:t,unoptimized:r,width:n,quality:s,sizes:o,loader:a}){if(r){let e=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")&&e){let r=t.includes("?")?"&":"?";t=`${t}${r}dpl=${e}`}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:c,kind:u}=function({deviceSizes:e,allSizes:t},r,i){if(i){let r=/(^|\s)(1?\d?\d)vw/g,n=[];for(let e;e=r.exec(i);)n.push(parseInt(e[2]));if(n.length){let r=.01*Math.min(...n);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,o),l=c.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:c.map((r,i)=>`${a({config:e,src:t,quality:s,width:r})} ${"w"===u?r:i+1}${u}`).join(", "),src:a({config:e,src:t,quality:s,width:c[l]})}}({config:N,src:e,unoptimized:r,width:V,quality:W,sizes:t,loader:z}),Z=H?"lazy":d;return{props:{...P,loading:Z,fetchPriority:x,width:V,height:G,decoding:A,className:f,style:{...K,...X},sizes:Y.sizes,srcSet:Y.srcSet,src:b||Y.src},meta:{unoptimized:r,preload:l||u,placeholder:v,fill:g}}}},5475:(e,t,r)=>{"use strict";r.d(t,{M:()=>r6});var i=r(6696);let n="preferred",s=["disabled","preferred","required"];var o=r(402),a=r.n(o);class c{cache;constructor(e){this.cache=new(a())(e)}getEndpoint(e){let t=this.get(e);if(!t||0===t.length)return;let r=t.map(e=>e.Address);return r[Math.floor(Math.random()*r.length)]}get(e){if(!this.has(e))return;let t=this.cache.get(e);if(!t)return;let r=Date.now(),i=t.filter(e=>r({Address:e,Expires:r+60*t*1e3})))}delete(e){this.cache.set(e,[])}has(e){if(!this.cache.has(e))return!1;let t=this.cache.peek(e);return!!t&&t.length>0}clear(){this.cache.clear()}}var u=r(8296),l=r(7630),d=r(1743);let f=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},h;var p=r(7751),m=r(6780),g=r(8493);let y=(e,t=!1)=>{if(t){for(let t of e.split("."))if(!y(t))return!1;return!0}return!(!(0,m.X)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,g.o)(e))},b=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il|mx)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-east-2":{"description":"Asia Pacific (Taipei)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"ap-southeast-5":{"description":"Asia Pacific (Malaysia)"},"ap-southeast-6":{"description":"Asia Pacific (New Zealand)"},"ap-southeast-7":{"description":"Asia Pacific (Thailand)"},"aws-global":{"description":"aws global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"mx-central-1":{"description":"Mexico (Central)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"aws-cn global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-eusc","outputs":{"dnsSuffix":"amazonaws.eu","dualStackDnsSuffix":"api.amazonwebservices.eu","implicitGlobalRegion":"eusc-de-east-1","name":"aws-eusc","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eusc\\\\-(de)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eusc-de-east-1":{"description":"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":true,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"aws-iso global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"api.aws.scloud","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"aws-iso-b global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"},"us-isob-west-1":{"description":"US ISOB West"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"api.cloud-aws.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-e-global":{"description":"aws-iso-e global region"},"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"api.aws.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-f-global":{"description":"aws-iso-f global region"},"us-isof-east-1":{"description":"US ISOF EAST"},"us-isof-south-1":{"description":"US ISOF SOUTH"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"aws-us-gov global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}}],"version":"1.1"}'),S={isVirtualHostableS3Bucket:y,parseArn:e=>{let t=e.split(":");if(t.length<6)return null;let[r,i,n,s,o,...a]=t;return"arn"!==r||""===i||""===n||""===a.join(":")?null:{partition:i,service:n,region:s,accountId:o,resourceId:a.map(e=>e.split("/")).flat()}},partition:e=>{let{partitions:t}=b;for(let r of t){let{regions:t,outputs:i}=r;for(let[r,n]of Object.entries(t))if(r===e)return{...i,...n}}for(let r of t){let{regionRegex:t,outputs:i}=r;if(new RegExp(t).test(e))return{...i}}let r=t.find(e=>"aws"===e.id);if(!r)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};p.m.aws=S;var w=r(7127);function v(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}let E=/\d{12}\.ddb/;async function x(e,t,r){let i=r.request;if(i?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&v(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){let r=await t.retryStrategy();"function"==typeof r.acquireInitialRetryToken?r.constructor?.name?.includes("Adaptive")?v(e,"RETRY_MODE_ADAPTIVE","F"):v(e,"RETRY_MODE_STANDARD","E"):v(e,"RETRY_MODE_LEGACY","D")}if("function"==typeof t.accountIdEndpointMode){let r=e.endpointV2;switch(String(r?.url?.hostname).match(E)&&v(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":v(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":v(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":v(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}let n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source)for(let[t,r]of(n.accountId&&v(e,"RESOLVED_ACCOUNT_ID","T"),Object.entries(n.$source??{})))v(e,t,r)}let A="user-agent",T="x-amz-user-agent",C=/[^!$%&'*+\-.^_`|~\w]/g,I=/[^!$%&'*+\-.^_`|~\w#]/g,R=e=>{let t=e[0].split("/").map(e=>e.replace(C,"-")).join("/"),r=e[1]?.replace(I,"-"),i=t.indexOf("/"),n=t.substring(0,i),s=t.substring(i+1);return"api"===n&&(s=s.toLowerCase()),[n,s,r].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},O={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var P=r(8588),M=r(2827);let $={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};class N{authSchemes=new Map;constructor(e){for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}let k={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"};var D=r(4097);let _=(e,t,r,i,n)=>({name:t,namespace:e,traits:r,input:i,output:n}),j=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],U={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},B={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var L=r(802),z=r(1808),F=r(7622),q=r(1052),V=r(1354),G=r(703);q.Gz,q.L0;var H=r(8659);class W{trace(){}debug(){}info(){}warn(){}error(){}}var K=r(4379),J=r(6622);let Q=e=>e?.body instanceof ReadableStream,X=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):"string"==typeof e?Error(e):Error(`AWS SDK error wrapper for ${e}`),Y=e=>{let t={error:e,errorType:Z(e)},r=et(e.$response);return r&&(t.retryAfterHint=r),t},Z=e=>(0,H.Qb)(e)?"THROTTLING":(0,H.bV)(e)?"TRANSIENT":(0,H.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",ee={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},et=e=>{if(!D.c.isInstance(e))return;let t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;let r=e.headers[t],i=Number(r);return new Date(Number.isNaN(i)?r:1e3*i)};var er=r(4386);let ei=function(e){return en(e)&&e.expiration.getTime()-Date.now()<3e5},en=e=>void 0!==e.expiration;var es=r(4635);let eo=async(e,t,r)=>({operation:(0,M.u)(t).operation,region:await (0,i.t)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),ea=e=>{let t=[];return e.operation,t.push({schemeId:"aws.auth#sigv4",signingProperties:{name:"dynamodb",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}),t};var ec=r(256),eu=r(8290),el=r(9796),ed=r(502);class ef extends eu.u.classBuilder().ep(el.S).m(function(e,t,r,i){return[(0,ec.r)(r,e.getEndpointParameterInstructions())]}).s("DynamoDB_20120810","DescribeEndpoints",{}).n("DynamoDBClient","DescribeEndpointsCommand").sc(ed.Gxs).build(){}var eh=r(713),ep=r(528),em=r(4639),eg=r(7769),ey=r(8046),eb=r(4548),eS=r(2796);let ew=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};var ev=r(4142),eE=r(7448);let ex=["in-region","cross-region","mobile","standard","legacy"],eA=e=>new Date(Date.now()+e),eT=e=>D.c.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,eC=(e,t)=>{let r=Date.parse(e);return Math.abs(eA(t).getTime()-r)>=3e5?r-Date.now():t},eI=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},eR=async e=>{let t=eI("context",e.context),r=eI("config",e.config),i=t.endpointV2?.properties?.authSchemes?.[0],n=eI("signer",r.signer),s=await n(i),o=e?.signingRegion;return{config:r,signer:s,signingRegion:o,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}};class eO{async sign(e,t,r){if(!w.K.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let i=await eR(r),{config:n,signer:s}=i,{signingRegion:o,signingName:a}=i,c=r.context;if(c?.authSchemes?.length){let[e,t]=c.authSchemes;e?.name==="sigv4a"&&t?.name==="sigv4"&&(o=t?.signingRegion??o,a=t?.signingName??a)}return await s.sign(e,{signingDate:eA(n.systemClockOffset),signingRegion:o,signingService:a})}errorHandler(e){return t=>{let r=t.ServerTime??eT(t.$response);if(r){let i=eI("config",e.config),n=i.systemClockOffset;i.systemClockOffset=eC(r,i.systemClockOffset),i.systemClockOffset!==n&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let r=eT(e);if(r){let e=eI("config",t.config);e.systemClockOffset=eC(r,e.systemClockOffset)}}}let eP=e=>"function"==typeof e?e():e;function eM(e){if("object"==typeof e)return e;e|=0;let t={},r=0;for(let i of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)==1&&(t[i]=1);return t}let e$={it:Symbol.for("@smithy/nor-struct-it")};class eN{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=eN.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let i=e,n=e;for(this._isMemberSchema=!1;eD(i);)r.push(i[1]),n=eP(i=i[0]),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,eM(t))}}else this.memberTraits=0;if(n instanceof eN){const e=this.memberTraits;Object.assign(this,n),this.memberTraits=Object.assign({},e,n.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=t??n.memberName;return}if(this.schema=eP(n),e_(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(n),this.traits=0),this._isMemberSchema&&!t)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}static of(e){let t=eP(e);if(t instanceof eN)return t;if(eD(t)){let[r,i]=t;if(r instanceof eN)return Object.assign(r.getMergedTraits(),eM(i)),r;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new eN(t)}getSchema(){let e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){let e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){let e=this.getSchema();if("object"!=typeof e)return!1;let t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){let e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){let e=this.getSchema();return 21===e||42===e}isTimestampSchema(){let e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return eM(this.memberTraits)}getOwnTraits(){return eM(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema();return ek([e?15:r[4]??0,0],"key")}getValueSchema(){let e=this.getSchema(),[t,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],n="number"==typeof e?63&e:e&&"object"==typeof e&&(r||i)?e[3+e[0]]:t?15:void 0;if(null!=n)return ek([n,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let r=t[4].indexOf(e),i=t[5][r];return ek(eD(i)?i:[i,0],e)}if(this.isDocumentSchema())return ek([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),t=e[4].length,r=e[e$.it];if(r&&t===r.length)return void(yield*r);r=Array(t);for(let i=0;iArray.isArray(e)&&2===e.length,e_=e=>Array.isArray(e)&&e.length>=5;var ej=r(3363);let eU=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return ej.M.mutate(e);if(!e)return ej.M.mutate(new Uint8Array);let r=t.streamCollector(e);return ej.M.mutate(await r)};var eB=r(4786);class eL{serdeContext;setSerdeContext(e){this.serdeContext=e}}class ez extends eL{options;compositeErrorRegistry;constructor(e){for(const t of(super(),this.options=e,this.compositeErrorRegistry=eB.O.for(e.defaultNamespace),e.errorTypeRegistries??[]))this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return w.K}getResponseType(){return D.c}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if(!("url"in t))return e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},e;for(let[r,i]of(e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={}),t.url.searchParams.entries()))e.query[r]=i;return e}setHostPrefix(e,t,r){if(this.serdeContext?.disableHostPrefix)return;let i=eN.of(t.input),n=eM(t.traits??{});if(n.endpoint){let t=n.endpoint?.[0];if("string"==typeof t){for(let[e]of[...i.structIterator()].filter(([,e])=>e.getMergedTraits().hostLabel)){let i=r[e];if("string"!=typeof i)throw Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,i)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r})}async loadEventStreamCapability(){let{EventStreamSerde:e}=await r.e(216).then(r.bind(r,9216));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,r,i,n){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class eF extends ez{async serializeRequest(e,t,r){let i,n=this.serializer,s={},o={},a=await r.endpoint(),c=eN.of(e?.input),u=c.getSchema(),l=new w.K({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:o,body:void 0});a&&(this.updateServiceEndpoint(l,a),this.setHostPrefix(l,e,t));let d={...t};if(t){let e=c.getEventStreamMember();if(e){if(d[e]){let t={};for(let[r,i]of c.structIterator())r!==e&&d[r]&&(n.write(i,d[r]),t[r]=n.flush());i=await this.serializeEventStream({eventStream:d[e],requestSchema:c,initialRequest:t})}}else n.write(u,d),i=n.flush()}return l.headers=o,l.query=s,l.body=i,l.method="POST",l}async deserializeResponse(e,t,r){let i=this.deserializer,n=eN.of(e.output),s={};if(r.statusCode>=300){let n=await eU(r.body,t);throw n.byteLength>0&&Object.assign(s,await i.read(15,n)),await this.handleError(e,t,r,s,this.deserializeMetadata(r)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let e in r.headers){let t=r.headers[e];delete r.headers[e],r.headers[e.toLowerCase()]=t}let o=n.getEventStreamMember();if(o)s[o]=await this.deserializeEventStream({response:r,responseSchema:n,initialResponseContainer:s});else{let e=await eU(r.body,t);e.byteLength>0&&Object.assign(s,await i.read(n,e))}return s.$metadata=this.deserializeMetadata(r),s}}var eq=r(1831);class eV{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let r=t.getMemberSchemas(),i=Object.values(r).find(e=>!!e.getMergedTraits().httpPayload);if(i){let t=i.getMergedTraits().mediaType;return t?t:i.isStringSchema()?"text/plain":i.isBlobSchema()?"application/octet-stream":e}if(!t.isUnitSchema()&&Object.values(r).find(e=>{let{httpQuery:t,httpQueryParams:r,httpHeader:i,httpLabel:n,httpPrefixHeaders:s}=e.getMergedTraits();return!t&&!r&&!i&&!n&&void 0===s}))return e}async getErrorSchemaOrThrowBaseException(e,t,r,i,n,s){let o=t,a=e;e.includes("#")&&([o,a]=e.split("#"));let c={$metadata:n,$fault:r.statusCode<500?"client":"server"},u=eB.O.for(o);try{return{errorSchema:s?.(u,a)??u.getSchema(e),errorMetadata:c}}catch(r){i.message=i.message??i.Message??"UnknownError";let e=eB.O.for("smithy.ts.sdk.synthetic."+o),t=e.getBaseException();if(t){let r=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new r({name:a}),c),i)}throw this.decorateServiceException(Object.assign(Error(a),c),i)}}decorateServiceException(e,t={}){if(this.queryCompat){let r=e.Message??t.Message,i=(0,eq.M)(e,t);r&&(i.message=r),i.Error={...i.Error,Type:i.Error.Type,Code:i.Error.Code,Message:i.Error.message??i.Error.Message??r};let n=i.$metadata.requestId;return n&&(i.RequestId=n),i}return(0,eq.M)(e,t)}setQueryCompatError(e,t){let r=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=r){let[t,i]=r.split(";"),n=Object.entries(e),s={Code:t,Type:i};for(let[t,r]of(Object.assign(e,s),n))s["message"===t?"Message":t]=r;delete s.__type,e.Error=s}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(r){return e.find(e=>eN.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}class eG{serdeContext;setSerdeContext(e){this.serdeContext=e}}function eH(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();let{httpLabel:r,httpPrefixHeaders:i,httpHeader:n,httpQuery:s}=e.getMergedTraits();return(t.httpBindings?"string"==typeof i||n?6:s||r?5:void 0:void 0)??t.timestampFormat.default}let eW=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};eW.from=e=>e&&"object"==typeof e&&(e instanceof eW||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?eW(String(e)):eW(JSON.stringify(e)),eW.fromObject=eW.from;let eK=e=>{if(null!=e){if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&e3.warn(e2(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},eJ=Math.ceil(17014118346046923e22*(2-11920928955078125e-23)),eQ=e=>{let t=eK(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>eJ)throw TypeError(`Expected 32-bit float, got ${e}`);return t},eX=(e,t)=>{let r=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==r&&eY(r,t)!==r)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return r},eY=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},eZ=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e0=e=>{let t=e.match(eZ);if(null===t||t[0].length!==e.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(e)},e1=e=>"string"==typeof e?eX(e0(e),16):eX(e,16),e2=e=>String(TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),e3={warn:console.warn},e8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e6=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),e4=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$/),e7=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$/),e9=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})$/),te=(e,t,r,i)=>{let n=t-1;return ti(e,n,r),new Date(Date.UTC(e,n,r,ts(i.hours,"hour",0,23),ts(i.minutes,"minute",0,59),ts(i.seconds,"seconds",0,60),to(i.fractionalMilliseconds)))},tt=e=>{let t=e5.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},tr=[31,28,31,30,31,30,31,31,30,31,30,31],ti=(e,t,r)=>{let i=tr[t];if(1===t&&tn(e)&&(i=29),r>i)throw TypeError(`Invalid day for ${e5[t]} in ${e}: ${r}`)},tn=e=>e%4==0&&(e%100!=0||e%400==0),ts=(e,t,r,i)=>{var n;let s="string"==typeof(n=ta(e))?eX(e0(n),8):eX(n,8);if(si)throw TypeError(`${t} must be between ${r} and ${i}, inclusive`);return s},to=e=>{var t;return null==e?0:1e3*("string"==typeof(t="0."+e)?eQ(e0(t)):eQ(t))},ta=e=>{let t=0;for(;t"__type"!==e))}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}function tf(e,t,r){if(r?.source){let e=r.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t{if(e instanceof Uint8Array)return ej.M.mutate(e);if(!e)return ej.M.mutate(new Uint8Array);let r=t.streamCollector(e);return ej.M.mutate(await r)};var tp=r(5907);class tm extends eG{settings;constructor(e){super(),this.settings=e}async read(e,t){let r;return this._read(e,"string"==typeof t?JSON.parse(t,tf):await th(t,r=this.serdeContext).then(e=>(r?.utf8Encoder??tp.P)(e)).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name==="SyntaxError"&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}))}readObject(e,t){return this._read(e,t)}_read(e,t){let r=null!==t&&"object"==typeof t,i=eN.of(e);if(r){if(i.isStructSchema()){let e,r,n=i.isUnionSchema(),s={},{jsonName:o}=this.settings;for(let[a,c]of(o&&(r={}),n&&(e=new td(t,s)),i.structIterator())){let i=a;o&&(r[i=c.getMergedTraits().jsonName??i]=a),n&&e.mark(i),null!=t[i]&&(s[a]=this._read(c,t[i]))}if(n)e.writeUnknown();else if("string"==typeof t.__type)for(let[e,i]of Object.entries(t)){let t=o?r[e]??e:e;t in s||(s[t]=i)}return s}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),r=[],n=!!i.getMergedTraits().sparse;for(let i of t)(n||null!=i)&&r.push(this._read(e,i));return r}if(i.isMapSchema()){let e=i.getValueSchema(),r={},n=!!i.getMergedTraits().sparse;for(let[i,s]of Object.entries(t))(n||null!=s)&&(r[i]=this._read(e,s));return r}}if(i.isBlobSchema()&&"string"==typeof t)return(0,tl.E)(t);let n=i.getMergedTraits().mediaType;if(i.isStringSchema()&&"string"==typeof t&&n)return"application/json"===n||n.endsWith("+json")?eW.from(t):t;if(i.isTimestampSchema()&&null!=t)switch(eH(i,this.settings)){case 5:return(e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-3339 date-times must be expressed as strings");let t=e6.exec(e);if(!t)throw TypeError("Invalid RFC-3339 date-time value");let[r,i,n,s,o,a,c,u,l]=t,d=te(e1(ta(i)),ts(n,"month",1,12),ts(s,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u});return"Z"!=l.toUpperCase()&&d.setTime(d.getTime()-(e=>{let t=e[0],r=1;if("+"==t)r=1;else if("-"==t)r=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*6e4})(l)),d})(t);case 6:return(e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-7231 date-times must be expressed as strings");let t=e4.exec(e);if(t){let[e,r,i,n,s,o,a,c]=t;return te(e1(ta(n)),tt(i),ts(r,"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}if(t=e7.exec(e)){var r;let e,i,n,[s,o,a,c,u,l,d,f]=t;return(n=te((r=c,(i=100*Math.floor((e=new Date().getUTCFullYear())/100)+e1(ta(r)))15768e8?new Date(Date.UTC(n.getUTCFullYear()-100,n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())):n}if(t=e9.exec(e)){let[e,r,i,n,s,o,a,c]=t;return te(e1(ta(c)),tt(r),ts(i.trimLeft(),"day",1,31),{hours:n,minutes:s,seconds:o,fractionalMilliseconds:a})}throw TypeError("Invalid RFC-7231 date-time value")})(t);case 7:let s;if(null!=t){if("number"==typeof t)s=t;else if("string"==typeof t)s="string"==typeof t?eK(e0(t)):eK(t);else if("object"==typeof t&&1===t.tag)s=t.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(s)||s===1/0||s===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*s))}return;default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(i.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(i.isBigDecimalSchema()&&void 0!=t)return t instanceof tu?t:"bigDecimal"===t.type&&"string"in t?new tu(t.string,t.type):new tu(String(t),"bigDecimal");if(i.isNumericSchema()&&"string"==typeof t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(i.isDocumentSchema())if(!r)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let[r,n]of Object.entries(t))n instanceof tu?e[r]=n:e[r]=this._read(i,n);return e}return t}}var tg=r(9851);let ty=String.fromCharCode(925);class tb{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof tu){let e=`${ty+"nv"+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){let e=t.toString(),r=`${ty+"b"+this.counter++}_`+e;return this.values.set(`"${r}"`,e),r}return t}}replaceInJson(e){if(0===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(let[t,r]of this.values)e=e.replace(t,r);return e}}class tS extends eG{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=eN.of(e),this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=eN.of(e).getName(!0))}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new tb;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,r){let i=null!==t&&"object"==typeof t,n=eN.of(e);if(i){if(n.isStructSchema()){let e,r={},{jsonName:i}=this.settings;for(let[s,o]of(i&&(e={}),n.structIterator())){let a=this._write(o,t[s],n);if(void 0!==a){let t=s;i&&(t=o.getMergedTraits().jsonName??s,e[s]=t),r[t]=a}}if(n.isUnionSchema()&&0===Object.keys(r).length){let{$unknown:e}=t;if(Array.isArray(e)){let[t,i]=e;r[t]=this._write(15,i)}}else if("string"==typeof t.__type)for(let[n,s]of Object.entries(t)){let t=i?e[n]??n:n;t in r||(r[t]=this._write(15,s))}return r}if(Array.isArray(t)&&n.isListSchema()){let e=n.getValueSchema(),r=[],i=!!n.getMergedTraits().sparse;for(let n of t)(i||null!=n)&&r.push(this._write(e,n));return r}if(n.isMapSchema()){let e=n.getValueSchema(),r={},i=!!n.getMergedTraits().sparse;for(let[n,s]of Object.entries(t))(i||null!=s)&&(r[n]=this._write(e,s));return r}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema()))return n===this.rootSchema?t:(this.serdeContext?.base64Encoder??tg.n)(t);if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema()))switch(eH(n,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:let e,r,i,s,o,a,c,u,l,d,f;return e=t.getUTCFullYear(),r=t.getUTCMonth(),i=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),u=s<10?`0${s}`:`${s}`,l=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,f=c<10?`0${c}`:`${c}`,`${e8[i]}, ${u} ${e5[r]} ${e} ${l}:${d}:${f} GMT`;case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}t instanceof tu&&(this.useReplacer=!0)}if(!(null===t&&r?.isStructSchema())){if(n.isStringSchema()){if(void 0===t&&n.isIdempotencyToken())return(0,J.v4)();let e=n.getMergedTraits().mediaType;return null!=t&&e&&("application/json"===e||e.endsWith("+json"))?eW.from(t):t}if("number"==typeof t&&n.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&n.isBlobSchema())return n===this.rootSchema?t:(this.serdeContext?.base64Encoder??tg.n)(t);if("bigint"==typeof t&&(this.useReplacer=!0),n.isDocumentSchema())if(!i)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let[r,i]of Object.entries(t))i instanceof tu?(this.useReplacer=!0,e[r]=i):e[r]=this._write(n,i);return e}return t}}}class tw extends eG{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new tS(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new tm(this.settings);return e.setSerdeContext(this.serdeContext),e}}class tv extends eF{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e}),this.serviceTarget=t,this.codec=i??new tw({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new eV(this.awsQueryCompatible)}async serializeRequest(e,t,r){let i=await super.serializeRequest(e,t,r);return i.path.endsWith("/")||(i.path+="/"),Object.assign(i.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(i.headers["x-amzn-query-mode"]="true"),"unit"!==eP(e.input)&&i.body||(i.body="{}"),i}getPayloadCodec(){return this.codec}async handleError(e,t,r,i,n){this.awsQueryCompatible&&this.mixin.setQueryCompatError(i,r);let s=((e,t)=>{let r=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),i=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=r(e.headers,"x-amzn-errortype");if(void 0!==n)return i(e.headers[n]);if(t&&"object"==typeof t){let e=r(t,"code");if(e&&void 0!==t[e])return i(t[e]);if(void 0!==t.__type)return i(t.__type)}})(r,i)??"Unknown",{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,r,i,n,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),c=eN.of(o),u=i.message??i.Message??"Unknown",l=new(eB.O.for(o[1]).getErrorCtor(o)??Error)(u),d={};for(let[e,t]of c.structIterator())null!=i[e]&&(d[e]=this.codec.createDeserializer().readObject(t,i[e]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(i,d),this.mixin.decorateServiceException(Object.assign(l,a,{$fault:c.getMergedTraits().error,message:u},d),i)}}class tE extends tv{constructor({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,serviceTarget:t,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class tx{serdeContext;setSerdeContext(e){this.serdeContext=e}}function tA(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();let{httpLabel:r,httpPrefixHeaders:i,httpHeader:n,httpQuery:s}=e.getMergedTraits();return(t.httpBindings?"string"==typeof i||n?6:s||r?5:void 0:void 0)??t.timestampFormat.default}let tT=e=>"function"==typeof e?e():e;function tC(e){if("object"==typeof e)return e;e|=0;let t={},r=0;for(let i of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)==1&&(t[i]=1);return t}let tI={it:Symbol.for("@smithy/nor-struct-it")};class tR{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=tR.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let i=e,n=e;for(this._isMemberSchema=!1;tP(i);)r.push(i[1]),n=tT(i=i[0]),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,tC(t))}}else this.memberTraits=0;if(n instanceof tR){const e=this.memberTraits;Object.assign(this,n),this.memberTraits=Object.assign({},e,n.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=t??n.memberName;return}if(this.schema=tT(n),tM(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(n),this.traits=0),this._isMemberSchema&&!t)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}static of(e){let t=tT(e);if(t instanceof tR)return t;if(tP(t)){let[r,i]=t;if(r instanceof tR)return Object.assign(r.getMergedTraits(),tC(i)),r;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new tR(t)}getSchema(){let e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){let e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){let e=this.getSchema();if("object"!=typeof e)return!1;let t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){let e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){let e=this.getSchema();return 21===e||42===e}isTimestampSchema(){let e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return tC(this.memberTraits)}getOwnTraits(){return tC(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema();return tO([e?15:r[4]??0,0],"key")}getValueSchema(){let e=this.getSchema(),[t,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],n="number"==typeof e?63&e:e&&"object"==typeof e&&(r||i)?e[3+e[0]]:t?15:void 0;if(null!=n)return tO([n,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let r=t[4].indexOf(e),i=t[5][r];return tO(tP(i)?i:[i,0],e)}if(this.isDocumentSchema())return tO([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),t=e[4].length,r=e[tI.it];if(r&&t===r.length)return void(yield*r);r=Array(t);for(let i=0;iArray.isArray(e)&&2===e.length,tM=e=>Array.isArray(e)&&e.length>=5,t$=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};t$.from=e=>e&&"object"==typeof e&&(e instanceof t$||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?t$(String(e)):t$(JSON.stringify(e)),t$.fromObject=t$.from;let tN=e=>{if(null!=e){if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&tF.warn(tz(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},tk=Math.ceil(17014118346046923e22*(2-11920928955078125e-23)),tD=e=>{let t=tN(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>tk)throw TypeError(`Expected 32-bit float, got ${e}`);return t},t_=(e,t)=>{let r=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==r&&tj(r,t)!==r)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return r},tj=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},tU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,tB=e=>{let t=e.match(tU);if(null===t||t[0].length!==e.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(e)},tL=e=>"string"==typeof e?t_(tB(e),16):t_(e,16),tz=e=>String(TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),tF={warn:console.warn},tq=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tV=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tG=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),tH=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$/),tW=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$/),tK=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})$/),tJ=(e,t,r,i)=>{let n=t-1;return tY(e,n,r),new Date(Date.UTC(e,n,r,t0(i.hours,"hour",0,23),t0(i.minutes,"minute",0,59),t0(i.seconds,"seconds",0,60),t1(i.fractionalMilliseconds)))},tQ=e=>{let t=tV.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},tX=[31,28,31,30,31,30,31,31,30,31,30,31],tY=(e,t,r)=>{let i=tX[t];if(1===t&&tZ(e)&&(i=29),r>i)throw TypeError(`Invalid day for ${tV[t]} in ${e}: ${r}`)},tZ=e=>e%4==0&&(e%100!=0||e%400==0),t0=(e,t,r,i)=>{var n;let s="string"==typeof(n=t2(e))?t_(tB(n),8):t_(n,8);if(si)throw TypeError(`${t} must be between ${r} and ${i}, inclusive`);return s},t1=e=>{var t;return null==e?0:1e3*("string"==typeof(t="0."+e)?tD(tB(t)):tD(t))},t2=e=>{let t=0;for(;t"__type"!==e))}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}function t6(e,t,r){if(r?.source){let e=r.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t(r?.utf8Encoder??tp.P)(e)).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name==="SyntaxError"&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}))}readObject(e,t){return this._read(e,t)}_read(e,t){let r=null!==t&&"object"==typeof t,i=tR.of(e);if(r){if(i.isStructSchema()){let e,r,n=i.isUnionSchema(),s={},{jsonName:o}=this.settings;for(let[a,c]of(o&&(r={}),n&&(e=new t5(t,s)),i.structIterator())){let i=a;o&&(r[i=c.getMergedTraits().jsonName??i]=a),n&&e.mark(i),null!=t[i]&&(s[a]=this._read(c,t[i]))}if(n)e.writeUnknown();else if("string"==typeof t.__type)for(let[e,i]of Object.entries(t)){let t=o?r[e]??e:e;t in s||(s[t]=i)}return s}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),r=[],n=!!i.getMergedTraits().sparse;for(let i of t)(n||null!=i)&&r.push(this._read(e,i));return r}if(i.isMapSchema()){let e=i.getValueSchema(),r={},n=!!i.getMergedTraits().sparse;for(let[i,s]of Object.entries(t))(n||null!=s)&&(r[i]=this._read(e,s));return r}}if(i.isBlobSchema()&&"string"==typeof t)return(0,tl.E)(t);let n=i.getMergedTraits().mediaType;if(i.isStringSchema()&&"string"==typeof t&&n)return"application/json"===n||n.endsWith("+json")?t$.from(t):t;if(i.isTimestampSchema()&&null!=t)switch(tA(i,this.settings)){case 5:return(e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-3339 date-times must be expressed as strings");let t=tG.exec(e);if(!t)throw TypeError("Invalid RFC-3339 date-time value");let[r,i,n,s,o,a,c,u,l]=t,d=tJ(tL(t2(i)),t0(n,"month",1,12),t0(s,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u});return"Z"!=l.toUpperCase()&&d.setTime(d.getTime()-(e=>{let t=e[0],r=1;if("+"==t)r=1;else if("-"==t)r=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*6e4})(l)),d})(t);case 6:return(e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-7231 date-times must be expressed as strings");let t=tH.exec(e);if(t){let[e,r,i,n,s,o,a,c]=t;return tJ(tL(t2(n)),tQ(i),t0(r,"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}if(t=tW.exec(e)){var r;let e,i,n,[s,o,a,c,u,l,d,f]=t;return(n=tJ((r=c,(i=100*Math.floor((e=new Date().getUTCFullYear())/100)+tL(t2(r)))15768e8?new Date(Date.UTC(n.getUTCFullYear()-100,n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())):n}if(t=tK.exec(e)){let[e,r,i,n,s,o,a,c]=t;return tJ(tL(t2(c)),tQ(r),t0(i.trimLeft(),"day",1,31),{hours:n,minutes:s,seconds:o,fractionalMilliseconds:a})}throw TypeError("Invalid RFC-7231 date-time value")})(t);case 7:let s;if(null!=t){if("number"==typeof t)s=t;else if("string"==typeof t)s="string"==typeof t?tN(tB(t)):tN(t);else if("object"==typeof t&&1===t.tag)s=t.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(s)||s===1/0||s===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*s))}return;default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(i.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(i.isBigDecimalSchema()&&void 0!=t)return t instanceof t8?t:"bigDecimal"===t.type&&"string"in t?new t8(t.string,t.type):new t8(String(t),"bigDecimal");if(i.isNumericSchema()&&"string"==typeof t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(i.isDocumentSchema())if(!r)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let[r,n]of Object.entries(t))n instanceof t8?e[r]=n:e[r]=this._read(i,n);return e}return t}}let t7=String.fromCharCode(925);class t9{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof t8){let e=`${t7+"nv"+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){let e=t.toString(),r=`${t7+"b"+this.counter++}_`+e;return this.values.set(`"${r}"`,e),r}return t}}replaceInJson(e){if(0===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(let[t,r]of this.values)e=e.replace(t,r);return e}}class re extends tx{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=tR.of(e),this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=tR.of(e).getName(!0))}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new t9;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,r){let i=null!==t&&"object"==typeof t,n=tR.of(e);if(i){if(n.isStructSchema()){let e,r={},{jsonName:i}=this.settings;for(let[s,o]of(i&&(e={}),n.structIterator())){let a=this._write(o,t[s],n);if(void 0!==a){let t=s;i&&(t=o.getMergedTraits().jsonName??s,e[s]=t),r[t]=a}}if(n.isUnionSchema()&&0===Object.keys(r).length){let{$unknown:e}=t;if(Array.isArray(e)){let[t,i]=e;r[t]=this._write(15,i)}}else if("string"==typeof t.__type)for(let[n,s]of Object.entries(t)){let t=i?e[n]??n:n;t in r||(r[t]=this._write(15,s))}return r}if(Array.isArray(t)&&n.isListSchema()){let e=n.getValueSchema(),r=[],i=!!n.getMergedTraits().sparse;for(let n of t)(i||null!=n)&&r.push(this._write(e,n));return r}if(n.isMapSchema()){let e=n.getValueSchema(),r={},i=!!n.getMergedTraits().sparse;for(let[n,s]of Object.entries(t))(i||null!=s)&&(r[n]=this._write(e,s));return r}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema()))return n===this.rootSchema?t:(this.serdeContext?.base64Encoder??tg.n)(t);if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema()))switch(tA(n,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:let e,r,i,s,o,a,c,u,l,d,f;return e=t.getUTCFullYear(),r=t.getUTCMonth(),i=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),u=s<10?`0${s}`:`${s}`,l=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,f=c<10?`0${c}`:`${c}`,`${tq[i]}, ${u} ${tV[r]} ${e} ${l}:${d}:${f} GMT`;case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}t instanceof t8&&(this.useReplacer=!0)}if(!(null===t&&r?.isStructSchema())){if(n.isStringSchema()){if(void 0===t&&n.isIdempotencyToken())return(0,J.v4)();let e=n.getMergedTraits().mediaType;return null!=t&&e&&("application/json"===e||e.endsWith("+json"))?t$.from(t):t}if("number"==typeof t&&n.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&n.isBlobSchema())return n===this.rootSchema?t:(this.serdeContext?.base64Encoder??tg.n)(t);if("bigint"==typeof t&&(this.useReplacer=!0),n.isDocumentSchema())if(!i)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let[r,i]of Object.entries(t))i instanceof t8?(this.useReplacer=!0,e[r]=i):e[r]=this._write(n,i);return e}return t}}}class rt extends tx{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new re(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new t4(this.settings);return e.setSerdeContext(this.serdeContext),e}}let rr=e=>{if(null==e)return{};if(Array.isArray(e))return e.filter(e=>null!=e).map(rr);if("object"==typeof e){let t={};for(let r of Object.keys(e))null!=e[r]&&(t[r]=rr(e[r]));return t}return e};class ri extends rt{constructor(){super({timestampFormat:{useTrait:!0,default:7},jsonName:!1})}createSerializer(){let e=new rs(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ro(this.settings);return e.setSerdeContext(this.serdeContext),e}}let rn="com.amazonaws.dynamodb#AttributeValue";class rs extends re{_write(e,t,r){let i=tR.of(e);if(i.isStructSchema()&&i.getName(!0)===rn&&t&&"object"==typeof t){let e=rr(t),n=this.serdeContext?.base64Encoder??tg.n;if(t.B instanceof Uint8Array&&(e.B=n(t.B)),Array.isArray(t.BS)&&(e.BS=t.BS.map(n)),Array.isArray(t.L)&&(e.L=t.L.filter(e=>null!=e).map(e=>this._write(i,e,r))),t.M&&"object"==typeof t.M)for(let[n,s]of(e.M={},Object.entries(t.M)))null!=s&&(e.M[n]=this._write(i,s,r));return e}return super._write(i,t,r)}}class ro extends t4{_read(e,t){let r=tR.of(e);if(r.isStructSchema()&&r.getName(!0)===rn&&t&&"object"==typeof t){let e=rr(t),i=this.serdeContext?.base64Decoder??tl.E;if("string"==typeof t.B&&(e.B=i(t.B)),Array.isArray(t.BS)&&(e.BS=t.BS.map(i)),Array.isArray(t.L)&&(e.L=t.L.map(e=>this._read(r,e))),t.M&&"object"==typeof t.M)for(let[i,n]of(e.M={},Object.entries(t.M)))e.M[i]=this._read(r,n);return e}return super._read(r,t)}}var ra=r(4467),rc=r(8782),ru=r(6550),rl=r(1967);let rd="required",rf="type",rh="rules",rp="conditions",rm="argv",rg="assign",ry="properties",rb="headers",rS="metricValues",rw="error",rv="stringEquals",rE="https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",rx="endpoint",rA="tree",rT="dynamodb",rC={[rd]:!1,[rf]:"string"},rI={[rd]:!0,default:!1,[rf]:"boolean"},rR={fn:"isSet",[rm]:[{ref:"Endpoint"}]},rO={fn:"isSet",[rm]:[{ref:"Region"}]},rP={ref:"Region"},rM={fn:"aws.partition",[rm]:[rP],[rg]:"PartitionResult"},r$={[rp]:[{fn:"booleanEquals",[rm]:[{ref:"UseFIPS"},!0]}],[rw]:"Invalid Configuration: FIPS and custom endpoint are not supported",[rf]:rw},rN={fn:"booleanEquals",[rm]:[{ref:"UseFIPS"},!0]},rk={[rp]:[{fn:"booleanEquals",[rm]:[{ref:"UseDualStack"},!0]}],[rw]:"Invalid Configuration: Dualstack and custom endpoint are not supported",[rf]:rw},rD={fn:"booleanEquals",[rm]:[{ref:"UseDualStack"},!0]},r_={[rx]:{url:"{Endpoint}",[ry]:{},[rb]:{}},[rf]:rx},rj={},rU={fn:"booleanEquals",[rm]:[{fn:"getAttr",[rm]:[{ref:"PartitionResult"},"supportsFIPS"]},!0]},rB={fn:"booleanEquals",[rm]:[{fn:"getAttr",[rm]:[{ref:"PartitionResult"},"supportsDualStack"]},!0]},rL={[rp]:[{fn:"isSet",[rm]:[{ref:"AccountIdEndpointMode"}]},{fn:rv,[rm]:[{ref:"AccountIdEndpointMode"},"required"]}],[rh]:[{[rw]:"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",[rf]:rw}],[rf]:rA},rz={fn:"getAttr",[rm]:[{ref:"PartitionResult"},"name"]},rF={[rx]:{url:"https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",[ry]:{},[rb]:{}},[rf]:rx},rq={url:"https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",[ry]:{[rS]:["O"]},[rb]:{}},rV={[rS]:["O"]},rG={[rw]:"Credentials-sourced account ID parameter is invalid",[rf]:rw},rH={[rp]:[{fn:"isSet",[rm]:[{ref:"AccountIdEndpointMode"}]},{fn:rv,[rm]:[{ref:"AccountIdEndpointMode"},"required"]}],[rh]:[{[rp]:[{fn:"not",[rm]:[rN]}],[rh]:[{[rp]:[{fn:rv,[rm]:[rz,"aws"]}],[rh]:[{[rw]:"AccountIdEndpointMode is required but no AccountID was provided or able to be loaded",[rf]:rw}],[rf]:rA},{[rw]:"Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition",[rf]:rw}],[rf]:rA},{[rw]:"Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",[rf]:rw}],[rf]:rA},rW={url:"https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",[ry]:rV,[rb]:{}},rK=[rN],rJ=[rD],rQ=[{fn:"isSet",[rm]:[{ref:"AccountIdEndpointMode"}]},{fn:"not",[rm]:[{fn:rv,[rm]:[{ref:"AccountIdEndpointMode"},"disabled"]}]},{fn:rv,[rm]:[rz,"aws"]},{fn:"not",[rm]:[rN]},{fn:"isSet",[rm]:[{ref:"ResourceArn"}]},{fn:"aws.parseArn",[rm]:[{ref:"ResourceArn"}],[rg]:"ParsedArn"},{fn:rv,[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"service"]},rT]},{fn:"isValidHostLabel",[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"region"]},!1]},{fn:rv,[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"region"]},"{Region}"]},{fn:"isValidHostLabel",[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"accountId"]},!1]}],rX=[{fn:"isSet",[rm]:[{ref:"AccountIdEndpointMode"}]},{fn:"not",[rm]:[{fn:rv,[rm]:[{ref:"AccountIdEndpointMode"},"disabled"]}]},{fn:rv,[rm]:[rz,"aws"]},{fn:"not",[rm]:[rN]},{fn:"isSet",[rm]:[{ref:"ResourceArnList"}]},{fn:"getAttr",[rm]:[{ref:"ResourceArnList"},"[0]"],[rg]:"FirstArn"},{fn:"aws.parseArn",[rm]:[{ref:"FirstArn"}],[rg]:"ParsedArn"},{fn:rv,[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"service"]},rT]},{fn:"isValidHostLabel",[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"region"]},!1]},{fn:rv,[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"region"]},"{Region}"]},{fn:"isValidHostLabel",[rm]:[{fn:"getAttr",[rm]:[{ref:"ParsedArn"},"accountId"]},!1]}],rY=[{fn:"isSet",[rm]:[{ref:"AccountIdEndpointMode"}]},{fn:"not",[rm]:[{fn:rv,[rm]:[{ref:"AccountIdEndpointMode"},"disabled"]}]},{fn:rv,[rm]:[rz,"aws"]},{fn:"not",[rm]:[rN]},{fn:"isSet",[rm]:[{ref:"AccountId"}]}],rZ=[{fn:"isValidHostLabel",[rm]:[{ref:"AccountId"},!1]}],r0={version:"1.0",parameters:{Region:rC,UseDualStack:rI,UseFIPS:rI,Endpoint:rC,AccountId:rC,AccountIdEndpointMode:rC,ResourceArn:rC,ResourceArnList:{[rd]:!1,[rf]:"stringArray"}},[rh]:[{[rp]:[rR,rO,rM],[rh]:[r$,rk,{[rp]:[{fn:rv,[rm]:[{ref:"Endpoint"},rE]}],error:"Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html",[rf]:rw},r_],[rf]:rA},{[rp]:[rR],[rh]:[r$,rk,r_],[rf]:rA},{[rp]:[rO],[rh]:[{[rp]:[rM],[rh]:[{[rp]:[{fn:rv,[rm]:[rP,"local"]}],[rh]:[{[rp]:rK,error:"Invalid Configuration: FIPS and local endpoint are not supported",[rf]:rw},{[rp]:rJ,error:"Invalid Configuration: Dualstack and local endpoint are not supported",[rf]:rw},{endpoint:{url:"http://localhost:8000",[ry]:{authSchemes:[{name:"sigv4",signingName:rT,signingRegion:"us-east-1"}]},[rb]:rj},[rf]:rx}],[rf]:rA},{[rp]:[rN,rD],[rh]:[{[rp]:[rU,rB],[rh]:[rL,{endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[ry]:rj,[rb]:rj},[rf]:rx}],[rf]:rA},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[rf]:rw}],[rf]:rA},{[rp]:rK,[rh]:[{[rp]:[rU],[rh]:[{[rp]:[{fn:rv,[rm]:[rz,"aws-us-gov"]}],[rh]:[rL,rF],[rf]:rA},rL,{endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",[ry]:rj,[rb]:rj},[rf]:rx}],[rf]:rA},{error:"FIPS is enabled but this partition does not support FIPS",[rf]:rw}],[rf]:rA},{[rp]:rJ,[rh]:[{[rp]:[rB],[rh]:[{[rp]:rQ,endpoint:rq,[rf]:rx},{[rp]:rX,endpoint:rq,[rf]:rx},{[rp]:rY,[rh]:[{[rp]:rZ,[rh]:[{endpoint:{url:"https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",[ry]:rV,[rb]:rj},[rf]:rx}],[rf]:rA},rG],[rf]:rA},rH,{endpoint:{url:rE,[ry]:rj,[rb]:rj},[rf]:rx}],[rf]:rA},{error:"DualStack is enabled but this partition does not support DualStack",[rf]:rw}],[rf]:rA},{[rp]:rQ,endpoint:rW,[rf]:rx},{[rp]:rX,endpoint:rW,[rf]:rx},{[rp]:rY,[rh]:[{[rp]:rZ,[rh]:[{endpoint:{url:"https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",[ry]:rV,[rb]:rj},[rf]:rx}],[rf]:rA},rG],[rf]:rA},rH,rF],[rf]:rA}],[rf]:rA},{error:"Invalid Configuration: Missing Region",[rf]:rw}]},r1=new ru.k({size:50,params:["AccountId","AccountIdEndpointMode","Endpoint","Region","ResourceArn","ResourceArnList","UseDualStack","UseFIPS"]}),r2=(e,t={})=>r1.get(e,()=>(0,rl.s)(r0,{endpointParams:e,logger:t.logger}));p.m.aws=S;var r3=r(6532),r8=r(432),r5=r(1792);class r6 extends er.K{config;constructor(...[e]){const t=(e=>{let t=(({defaultsMode:e}={})=>(0,eE.B)(async()=>{let t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve((()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:r,downlink:i}=e?.connection;if("string"==typeof t&&"4g"!==t||Number(r)>100||10>Number(i))return!0}return e?.userAgentData?.mobile||"number"==typeof e?.maxTouchPoints&&e?.maxTouchPoints>1})()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${ex.join(", ")}, got ${t}`)}}))(e),r=()=>t().then(ew),i={apiVersion:"2012-08-10",base64Decoder:e?.base64Decoder??tl.E,base64Encoder:e?.base64Encoder??tg.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??r2,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ea,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new eO}],logger:e?.logger??new W,protocol:e?.protocol??tE,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.dynamodb",errorTypeRegistries:ed.q1U,xmlNamespace:"http://dynamodb.amazonaws.com/doc/2012-08-10/",version:"2012-08-10",serviceTarget:"DynamoDB_20120810",jsonCodec:new ri},serviceId:e?.serviceId??"DynamoDB",urlParser:e?.urlParser??ra.D,utf8Decoder:e?.utf8Decoder??rc.a,utf8Encoder:e?.utf8Encoder??tp.P};return{...i,...e,runtime:"browser",defaultsMode:t,accountIdEndpointMode:e?.accountIdEndpointMode??(()=>Promise.resolve(n)),bodyLengthChecker:e?.bodyLengthChecker??ev.n,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ep.pf)({serviceId:i.serviceId,clientVersion:"3.990.0"}),endpointDiscoveryEnabledProvider:e?.endpointDiscoveryEnabledProvider??(()=>Promise.resolve(void 0)),maxAttempts:e?.maxAttempts??q.Gz,region:e?.region??(0,eS.B)("Region is missing"),requestHandler:ey.N.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||q.L0),sha256:e?.sha256??eh.I,streamCollector:e?.streamCollector??eb.k,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(em.VW)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(eg.Hj))}})(e||{});super(t),this.initConfig=t;const r=(e=>{let{retryStrategy:t,retryMode:r,maxAttempts:n}=e,s=(0,i.t)(n??q.Gz);return Object.assign(e,{maxAttempts:s,retryStrategy:async()=>t||(await (0,i.t)(r)()===q.cm.ADAPTIVE?new V.Y(s):new G.r(s))})})(function(e){let t=f(e.userAgentAppId??h),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:"string"==typeof r?[[r]]:r,userAgentAppId:async()=>{let r=await t();if(!(void 0===r||"string"==typeof r&&r.length<=50)){let t=e.logger?.constructor?.name!=="NoOpLogger"&&e.logger?e.logger:console;"string"!=typeof r?t?.warn("userAgentAppId must be a string or undefined."):r.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}((e=>{let{accountIdEndpointMode:t}=e,r=(0,i.t)(t??n);return Object.assign(e,{accountIdEndpointMode:async()=>{let e=await r();if(!s.includes(e))throw Error(`Invalid value for accountIdEndpointMode: ${e}. Valid values are: "required", "preferred", "disabled".`);return e}})})((0,el.v)(t)))),o=(0,P.T)(r),a=((e,t)=>{var r;let i,n,s,o,a,c=Object.assign((0,r3.R)(e),Object.assign((e=>{let t=[];for(let r in r5.dB){let i=r5.dB[r];void 0!==e[i]&&t.push({algorithmId:()=>i,checksumConstructor:()=>e[i]})}return{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}})(e),{setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}),(0,r8.e)(e),(s=e.httpAuthSchemes,o=e.httpAuthSchemeProvider,a=e.credentials,{setHttpAuthScheme(e){let t=s.findIndex(t=>t.schemeId===e.schemeId);-1===t?s.push(e):s.splice(t,1,e)},httpAuthSchemes:()=>s,setHttpAuthSchemeProvider(e){o=e},httpAuthSchemeProvider:()=>o,setCredentials(e){a=e},credentials:()=>a}));t.forEach(e=>e.configure(c));return Object.assign(e,(0,r3.$)(c),Object.assign((i={},(r=c).checksumAlgorithms().forEach(e=>{i[e.algorithmId()]=e.checksumConstructor()}),i),((n={}).retryStrategy=r.retryStrategy(),n)),(0,r8.j)(c),{httpAuthSchemes:c.httpAuthSchemes(),httpAuthSchemeProvider:c.httpAuthSchemeProvider(),credentials:c.credentials()})})(((e,{endpointDiscoveryCommandCtor:t})=>{let{endpointCacheSize:r,endpointDiscoveryEnabled:i,endpointDiscoveryEnabledProvider:n}=e;return Object.assign(e,{endpointDiscoveryCommandCtor:t,endpointCache:new c(r??1e3),endpointDiscoveryEnabled:void 0!==i?()=>Promise.resolve(i):n,isClientEndpointDiscoveryEnabled:void 0!==i})})((e=>Object.assign((e=>{let t,r,i=e.credentials,n=!!e.credentials;Object.defineProperty(e,"credentials",{set(r){r&&r!==i&&r!==t&&(n=!0);let s=function(e,{credentials:t,credentialDefaultProvider:r}){let i;return(i=t?t?.memoized?t:((e,t,r)=>{let i,n,s;if(void 0===e)return;let o="function"!=typeof e?async()=>Promise.resolve(e):e,a=!1,c=async e=>{n||(n=o(e));try{i=await n,s=!0,a=!1}finally{n=void 0}return i};return void 0===t?async e=>((!s||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!s||e?.forceRefresh)&&(i=await c(e)),a||(r(i)?t(i)&&await c(e):a=!0),i)})(t,ei,en):r?f(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}).memoized=!0,i}(e,{credentials:i=r,credentialDefaultProvider:e.credentialDefaultProvider}),o=function(e,t){if(t.configBound)return t;let r=async r=>t({...r,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}(e,s);if(n&&!o.attributed){let e="object"==typeof i&&null!==i;(t=async t=>{let r=await o(t);if(e&&(!r.$source||0===Object.keys(r.$source).length))return r.$source||(r.$source={}),r.$source.CREDENTIALS_CODE="e",r;return r}).memoized=o.memoized,t.configBound=o.configBound,t.attributed=!0}else t=o},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=i;let{signingEscapePath:s=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:a}=e;return r=e.signer?f(e.signer):e.regionInfoProvider?()=>f(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,r])=>{let{signingRegion:i,signingService:n}=t;e.signingRegion=e.signingRegion||i||r,e.signingName=e.signingName||n||e.serviceId;let o={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s};return new(e.signerConstructor||es.B)(o)}):async t=>{let r=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await f(e.region)(),properties:{}},t)).signingRegion,i=t.signingName;e.signingRegion=e.signingRegion||r,e.signingName=e.signingName||i||e.serviceId;let n={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s};return new(e.signerConstructor||es.B)(n)},Object.assign(e,{systemClockOffset:o,signingEscapePath:s,signer:r})})(e),{authSchemePreference:(0,i.t)(e.authSchemePreference??[])}))((e=>{let t,r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=Object.assign(e,{endpoint:null!=n?async()=>(0,F.a)(await (0,i.t)(n)()):void 0,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:(0,i.t)(s??!1),useFipsEndpoint:(0,i.t)(o??!1)});return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!t&&(t=(0,z.k)(e.serviceId)),t),a})((0,u.OV)(o))),{endpointDiscoveryCommandCtor:ef}),e?.extensions||[]);this.config=a,this.middlewareStack.use(function(e){return{applyToStack:t=>{t.add((t,r)=>async i=>{let{operationSchema:n}=(0,M.u)(r),[,s,o,a,c,u]=n??[],l=r.endpointV2?.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint,d=await e.protocol.serializeRequest(_(s,o,a,c,u),i.input,{...e,...r,endpoint:l});return t({...i,request:d})},B),t.add((t,r)=>async i=>{let{response:n}=await t(i),{operationSchema:s}=(0,M.u)(r),[,o,a,c,u,l]=s??[];try{let t=await e.protocol.deserializeResponse(_(o,a,c,u,l),{...e,...r},n);return{response:n,output:t}}catch(e){if(Object.defineProperty(e,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in e)){let t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n "+t}catch(e){r.logger&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(D.c.isInstance(n)){let{headers:t={}}=n,r=Object.entries(t);e.$metadata={httpStatusCode:n.statusCode,requestId:j(/^x-[\w-]+-request-?id$/,r),extendedRequestId:j(/^x-[\w-]+-id-2$/,r),cfId:j(/^x-[\w-]+-cf-id$/,r)}}}catch(e){}}throw e}},U),e.protocol.setSerdeContext(e)}}}(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.add((t,r)=>async i=>{let{request:n}=i;if(!w.K.isInstance(n))return t(i);let{headers:s}=n,o=r?.userAgent?.map(R)||[],a=(await e.defaultUserAgentProvider()).map(R);await x(r,e,i),a.push(`m/${function(e){let t="";for(let r in e){let i=e[r];if(t.length+i.length+1<=1024){t.length?t+=","+i:t+=i;continue}break}return t}(Object.assign({},r.__smithy_context?.features,r.__aws_sdk_context?.features))}`);let c=e?.customUserAgent?.map(R)||[],u=await e.userAgentAppId();u&&a.push(R(["app",`${u}`]));let l=[].concat([...a,...o,...c]).join(" "),d=[...a.filter(e=>e.startsWith("aws-sdk-")),...c].join(" ");return"browser"!==e.runtime?(d&&(s[T]=s[T]?`${s[A]} ${d}`:d),s[A]=l):s[T]=l,t({...i,request:n})},O)}}))(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.add((t,r)=>async i=>{let n,s=await e.retryStrategy(),o=await e.maxAttempts();if(void 0===(n=s).acquireInitialRetryToken||void 0===n.refreshRetryTokenForRetry||void 0===n.recordSuccess)return s?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,i);{let e=await s.acquireInitialRetryToken(r.partition_id),n=Error(),a=0,c=0,{request:u}=i,l=w.K.isInstance(u);for(l&&(u.headers[K.l5]=(0,J.v4)());;)try{l&&(u.headers[K.ok]=`attempt=${a+1}; max=${o}`);let{response:r,output:n}=await t(i);return s.recordSuccess(e),n.$metadata.attempts=a+1,n.$metadata.totalRetryDelay=c,{response:r,output:n}}catch(o){let t=Y(o);if(n=X(o),l&&Q(u))throw(r.logger instanceof W?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),n;try{e=await s.refreshRetryTokenForRetry(e,t)}catch(e){throw n.$metadata||(n.$metadata={}),n.$metadata.attempts=a+1,n.$metadata.totalRetryDelay=c,n}a=e.getRetryCount();let i=e.getRetryDelay();c+=i,await new Promise(e=>setTimeout(e,i))}}},ee)}}))(this.config)),this.middlewareStack.use((0,L.vK)(this.config)),this.middlewareStack.use((0,u.TC)(this.config)),this.middlewareStack.use((0,l.Y7)(this.config)),this.middlewareStack.use((0,d.n)(this.config)),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:i=>{let n;i.addRelativeTo((n={httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r},(t,r)=>async i=>{let s=((e,t)=>{if(!t||0===t.length)return e;let r=[];for(let i of t)for(let t of e)t.schemeId.split("#")[1]===i&&r.push(t);for(let t of e)r.find(({schemeId:e})=>e===t.schemeId)||r.push(t);return r})(e.httpAuthSchemeProvider(await n.httpAuthSchemeParametersProvider(e,r,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=function(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),a=(0,M.u)(r),c=[];for(let t of s){let i=o.get(t.schemeId);if(!i){c.push(`HttpAuthScheme \`${t.schemeId}\` was not enabled for this service.`);continue}let s=i.identityProvider(await n.identityProviderConfigProvider(e));if(!s){c.push(`HttpAuthScheme \`${t.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:u={},signingProperties:l={}}=t.propertiesExtractor?.(e,r)||{};t.identityProperties=Object.assign(t.identityProperties||{},u),t.signingProperties=Object.assign(t.signingProperties||{},l),a.selectedHttpAuthScheme={httpAuthOption:t,identity:await s(t.identityProperties),signer:i.signer};break}if(!a.selectedHttpAuthScheme)throw Error(c.join("\n"));return t(i)}),$)}}))(this.config,{httpAuthSchemeParametersProvider:eo,identityProviderConfigProvider:async e=>new N({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((e=>({applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{if(!w.K.isInstance(r.request))return e(r);let i=(0,M.u)(t).selectedHttpAuthScheme;if(!i)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:n={}},identity:s,signer:o}=i,a=await e({...r,request:await o.sign(r.request,s,n)}).catch((o.errorHandler||(e=>e=>{throw e}))(n));return(o.successHandler||((e,t)=>{}))(a.response,n),a},k)}}))(this.config))}destroy(){super.destroy()}}},5725:(e,t,r)=>{"use strict";var i,n;r.d(t,{c:()=>i}),(n=i||(i={})).ENV="env",n.CONFIG="shared config entry"},5762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return s}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let n=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},5772:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var i=r(7651),n=r.n(i)},5907:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});let i=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},6095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let i=r(8857),n=r(3887);function s({config:e,src:t,width:r,quality:s}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,i.findClosestQuality)(s,e),a=(0,n.getDeploymentId)();return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${o}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},6462:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});class i extends Error{name="ProviderError";tryNextLink;constructor(e,t=!0){let r,n=!0;"boolean"==typeof t?(r=void 0,n=t):null!=t&&"object"==typeof t&&(r=t.logger,n=t.tryNextLink??!0),super(e),this.tryNextLink=n,Object.setPrototypeOf(this,i.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${e}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}class n extends i{name="CredentialsProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,n.prototype)}}function s(e){return Promise.all(Object.keys(e).reduce((t,r)=>{let i=e[r];return"string"==typeof i?t.push([r,i]):t.push(i().then(e=>[r,e])),t},[])).then(e=>e.reduce((e,[t,r])=>(e[t]=r,e),{}))}let o="IdentityIds";class a{dbName;constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",t=>{let r=t.get(e);return new Promise(e=>{r.onerror=()=>e(null),r.onsuccess=()=>e(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",t=>{let r=t.delete(e);return new Promise((e,t)=>{r.onerror=()=>t(r.error),r.onsuccess=()=>e()})})}setItem(e,t){return this.withObjectStore("readwrite",r=>{let i=r.put({id:e,value:t});return new Promise((e,t)=>{i.onerror=()=>t(i.error),i.onsuccess=()=>e()})})}getDb(){let e=self.indexedDB.open(this.dbName,1);return new Promise((t,r)=>{e.onsuccess=()=>{t(e.result)},e.onerror=()=>{r(e.error)},e.onblocked=()=>{r(Error("Unable to access DB"))},e.onupgradeneeded=()=>{let t=e.result;t.onerror=()=>{r(Error("Failed to create object store"))},t.createObjectStore(o,{keyPath:"id"})}})}withObjectStore(e,t){return this.getDb().then(r=>{let i=r.transaction(o,e);return i.oncomplete=()=>r.close(),new Promise((e,r)=>{i.onerror=()=>r(i.error),e(t(i.objectStore(o)))}).catch(e=>{throw r.close(),e})})}}class c{store;constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,t){this.store[e]=t}}let u=new c,l=e=>(function({accountId:e,cache:t="object"==typeof self&&self.indexedDB?new a:"object"==typeof window&&window.localStorage?window.localStorage:u,client:i,clientConfig:o,customRoleArn:c,identityPoolId:l,logins:d,userIdentifier:f=!d||0===Object.keys(d).length?"ANONYMOUS":void 0,logger:h,parentClientConfig:p}){h?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");let m=f?`aws:cognito-identity-credentials:${l}:${f}`:void 0,g=async a=>{var u;let{GetIdCommand:f,CognitoIdentityClient:y}=await r.e(73).then(r.bind(r,1073)),b=e=>o?.[e]??p?.[e]??a?.callerClientConfig?.[e],S=i??new y(Object.assign({},o??{},{region:b("region"),profile:b("profile"),userAgentAppId:b("userAgentAppId")})),w=m&&await t.getItem(m);if(!w){let{IdentityId:r=function(e){throw new n("Response from Amazon Cognito contained no identity ID",{logger:e})}(h)}=await S.send(new f({AccountId:e,IdentityPoolId:l,Logins:d?await s(d):void 0}));w=r,m&&Promise.resolve(t.setItem(m,w)).catch(()=>{})}return u={client:S,customRoleArn:c,logins:d,identityId:w},(g=async e=>{u.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");let{GetCredentialsForIdentityCommand:t,CognitoIdentityClient:i}=await r.e(73).then(r.bind(r,1073)),o=t=>u.clientConfig?.[t]??u.parentClientConfig?.[t]??e?.callerClientConfig?.[t],{Credentials:{AccessKeyId:a=function(e){throw new n("Response from Amazon Cognito contained no access key ID",{logger:e})}(u.logger),Expiration:c,SecretKey:l=function(e){throw new n("Response from Amazon Cognito contained no secret key",{logger:e})}(u.logger),SessionToken:d}=function(e){throw new n("Response from Amazon Cognito contained no credentials",{logger:e})}(u.logger)}=await (u.client??new i(Object.assign({},u.clientConfig??{},{region:o("region"),profile:o("profile"),userAgentAppId:o("userAgentAppId")}))).send(new t({CustomRoleArn:u.customRoleArn,IdentityId:u.identityId,Logins:u.logins?await s(u.logins):void 0}));return{identityId:u.identityId,accessKeyId:a,secretAccessKey:l,sessionToken:d,expiration:c}})(a)};return e=>g(e).catch(async e=>{throw m&&Promise.resolve(t.removeItem(m)).catch(()=>{}),e})})({...e})},6532:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,R:()=>i});let i=e=>({setRegion(t){e.region=t},region:()=>e.region}),n=e=>({region:e.region()})},6550:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});class i{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:r,done:i}=e.next();if(this.data.delete(r),i||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="",{parameters:r}=this;if(0===r.length)return!1;for(let i of r){let r=String(e[i]??"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}},6621:e=>{function t(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}t.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e},"u">typeof Symbol&&(t.prototype[Symbol.iterator]=function(){return this}),t.of=function(){var e=arguments,r=e.length,i=0;return new t(function(){return i>=r?{done:!0}:{done:!1,value:e[i++]}})},t.empty=function(){var e=new t(null);return e.done=!0,e},t.is=function(e){return e instanceof t||"object"==typeof e&&null!==e&&"function"==typeof e.next},e.exports=t},6622:(e,t,r)=>{"use strict";r.d(t,{v4:()=>s});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),n=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),s=()=>{if(i)return i();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,n[e[0]]+n[e[1]]+n[e[2]]+n[e[3]]+"-"+n[e[4]]+n[e[5]]+"-"+n[e[6]]+n[e[7]]+"-"+n[e[8]]+n[e[9]]+"-"+n[e[10]]+n[e[11]]+n[e[12]]+n[e[13]]+n[e[14]]+n[e[15]]}},6686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return m},defaultHead:function(){return d}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(3623),o=r(6388),a=r(5155),c=o._(r(2115)),u=s._(r(6899)),l=r(5368);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===c.default.Fragment?e.concat(c.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(7284);let h=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,i,n;return e.reduce(f,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,i=new Set,n={},e=>{let s=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=h.length;t{let r=e.key||t;return c.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,c.useContext)(l.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6696:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});let i=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t}},6780:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});let i=RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),n=(e,t=!1)=>{if(!t)return i.test(e);for(let t of e.split("."))if(!n(t))return!1;return!0}},6899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let i=r(2115),n=i.useLayoutEffect,s=i.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return n(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),n(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},7127:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});class i{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){var t;let r=new i({...e,headers:{...e.headers}});return r.query&&(r.query=Object.keys(t=r.query).reduce((e,r)=>{let i=t[r];return{...e,[r]:Array.isArray(i)?[...i]:i}},{})),r}static isInstance(e){return!!e&&"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers}clone(){return i.clone(this)}}},7150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let i=r(3623)._(r(2115)),n=r(5762),s=i.default.createContext(n.imageConfigDefault)},7448:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});let i=(e,t,r)=>{let i,n,s,o=!1,a=async()=>{n||(n=e());try{i=await n,s=!0,o=!1}finally{n=void 0}return i};return void 0===t?async e=>((!s||e?.forceRefresh)&&(i=await a()),i):async e=>((!s||e?.forceRefresh)&&(i=await a()),o||(r&&!r(i)?o=!0:t(i)&&await a()),i)}},7622:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var i=r(4467);let n=e=>"object"==typeof e?"url"in e?(0,i.D)(e.url):e:(0,i.D)(e)},7630:(e,t,r)=>{"use strict";r.d(t,{Y7:()=>n});let i={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},n=e=>({applyToStack:e=>{e.add((e,t)=>async r=>{try{let i=await e(r),{clientName:n,commandName:s,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:f,...h}=i.output;return o?.info?.({clientName:n,commandName:s,input:l(r.input),output:d(h),metadata:f}),i}catch(c){let{clientName:e,commandName:i,logger:n,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:o}=s,a=o??t.inputFilterSensitiveLog;throw n?.error?.({clientName:e,commandName:i,input:a(r.input),error:c,metadata:c.$metadata}),c}},i)}})},7651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return l},getImageProps:function(){return u}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(3623),o=r(5413),a=r(8437),c=s._(r(6095));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:c.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},7751:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});let i={}},7769:(e,t,r)=>{"use strict";r.d(t,{Hj:()=>i}),r(561),r(5725);let i=!1},8046:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var i=r(4097),n=r(852);function s(e,t){return new Request(e,t)}let o={supported:void 0};class a{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new a(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===o.supported&&(o.supported=!!("u">typeof Request&&"keepalive"in s("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);let a=r??this.config.requestTimeout,c=!0===this.config.keepAlive,u=this.config.credentials;if(t?.aborted){let e=Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let l=e.path,d=function(e){let t=[];for(let r of Object.keys(e).sort()){let i=e[r];if(r=(0,n.o)(r),Array.isArray(i))for(let e=0,s=i.length;etypeof AbortController&&(y.signal=t),o.supported&&(y.keepalive=c),"function"==typeof this.config.requestInit&&Object.assign(y,this.config.requestInit(e));let b=()=>{},S=[fetch(s(m,y)).then(e=>{let t=e.headers,r={};for(let e of t.entries())r[e[0]]=e[1];return void 0==e.body?e.blob().then(t=>({response:new i.c({headers:r,reason:e.statusText,statusCode:e.status,body:t})})):{response:new i.c({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}}),function(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}(a)];return t&&S.push(new Promise((e,r)=>{let i=()=>{let e=Error("Request aborted");e.name="AbortError",r(e)};"function"==typeof t.addEventListener?(t.addEventListener("abort",i,{once:!0}),b=()=>t.removeEventListener("abort",i)):t.onabort=i})),Promise.race(S).finally(b)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}},8290:(e,t,r)=>{"use strict";r.d(t,{u:()=>p});var i=r(640),n=r(9752);let s=e=>"function"==typeof e?e():e;function o(e){if("object"==typeof e)return e;e|=0;let t={},r=0;for(let i of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)==1&&(t[i]=1);return t}let a={it:Symbol.for("@smithy/nor-struct-it")};class c{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=c.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let i=e,n=e;for(this._isMemberSchema=!1;l(i);)r.push(i[1]),n=s(i=i[0]),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,o(t))}}else this.memberTraits=0;if(n instanceof c){const e=this.memberTraits;Object.assign(this,n),this.memberTraits=Object.assign({},e,n.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=t??n.memberName;return}if(this.schema=s(n),d(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(n),this.traits=0),this._isMemberSchema&&!t)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}static of(e){let t=s(e);if(t instanceof c)return t;if(l(t)){let[r,i]=t;if(r instanceof c)return Object.assign(r.getMergedTraits(),o(i)),r;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new c(t)}getSchema(){let e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){let e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){let e=this.getSchema();if("object"!=typeof e)return!1;let t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){let e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){let e=this.getSchema();return 21===e||42===e}isTimestampSchema(){let e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return o(this.memberTraits)}getOwnTraits(){return o(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema();return u([e?15:r[4]??0,0],"key")}getValueSchema(){let e=this.getSchema(),[t,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],n="number"==typeof e?63&e:e&&"object"==typeof e&&(r||i)?e[3+e[0]]:t?15:void 0;if(null!=n)return u([n,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){let r=t[4].indexOf(e),i=t[5][r];return u(l(i)?i:[i,0],e)}if(this.isDocumentSchema())return u([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),t=e[4].length,r=e[a.it];if(r&&t===r.length)return void(yield*r);r=Array(t);for(let i=0;iArray.isArray(e)&&2===e.length,d=e=>Array.isArray(e)&&e.length>=5,f="***SensitiveInformation***";function h(e,t){if(null==t)return t;let r=c.of(e);if(r.getMergedTraits().sensitive)return f;if(r.isListSchema()){if(r.getValueSchema().getMergedTraits().sensitive)return f}else if(r.isMapSchema()){if(r.getKeySchema().getMergedTraits().sensitive||r.getValueSchema().getMergedTraits().sensitive)return f}else if(r.isStructSchema()&&"object"==typeof t){let e={};for(let[i,n]of r.structIterator())null!=t[i]&&(e[i]=h(n,t[i]));return e}return t}class p{middlewareStack=(0,i.o)();schema;static classBuilder(){return new m}resolveMiddlewareWithContext(e,t,r,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:u,additionalContext:l,CommandCtor:d}){for(let n of i.bind(this)(d,e,t,r))this.middlewareStack.use(n);let f=e.concat(this.middlewareStack),{logger:h}=t,p={logger:h,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,[n.V]:{commandInstance:this,...u},...l},{requestHandler:m}=t;return f.resolve(e=>m.handle(e.request,r||{}),p)}}class m{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e,t=this;return e=class extends p{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super(),this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,n){let s=t._operationSchema,o=s?.[4]??s?.input,a=s?.[5]??s?.output;return this.resolveMiddlewareWithContext(r,i,n,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(s?h.bind(null,o):e=>e),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(s?h.bind(null,a):e=>e),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}},8296:(e,t,r)=>{"use strict";r.d(t,{OV:()=>n,TC:()=>o});var i=r(7127);function n(e){return e}let s={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},o=e=>({applyToStack:t=>{t.add(t=>async r=>{if(!i.K.isInstance(r.request))return t(r);let{request:n}=r,{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.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 e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)},s)}})},8437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let i=r(3623),n=r(6388),s=r(5155),o=n._(r(2115)),a=i._(r(7650)),c=i._(r(6686)),u=r(5413),l=r(5762),d=r(7150);r(7284);let f=r(751),h=i._(r(6095)),p=r(1172),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,i,n,s,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}i?.current&&i.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let b=(0,o.forwardRef)(({src:e,srcSet:t,sizes:r,height:i,width:n,decoding:a,className:c,style:u,fetchPriority:l,placeholder:d,loading:f,unoptimized:h,fill:m,onLoadRef:b,onLoadingCompleteRef:S,setBlurComplete:w,setShowAltText:v,sizesInput:E,onLoad:x,onError:A,...T},C)=>{let I=(0,o.useCallback)(e=>{e&&(A&&(e.src=e.src),e.complete&&g(e,d,b,S,w,h,E))},[e,d,b,S,w,A,h,E]),R=(0,p.useMergedRef)(C,I);return(0,s.jsx)("img",{...T,...y(l),loading:f,width:n,height:i,decoding:a,"data-nimg":m?"fill":"1",className:c,style:u,sizes:r,srcSet:t,src:e,ref:R,onLoad:e=>{g(e.currentTarget,d,b,S,w,h,E)},onError:e=>{v(!0),"empty"!==d&&w(!0),A&&A(e)}})});function S({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,s.jsx)(c.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),i=(0,o.useContext)(d.ImageConfigContext),n=(0,o.useMemo)(()=>{let e=m||i||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),n=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:n,localPatterns:e.localPatterns}},[i]),{onLoad:a,onLoadingComplete:c}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let g=(0,o.useRef)(c);(0,o.useEffect)(()=>{g.current=c},[c]);let[y,w]=(0,o.useState)(!1),[v,E]=(0,o.useState)(!1),{props:x,meta:A}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:n,blurComplete:y,showAltText:v});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{...x,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:E,sizesInput:e.sizes,ref:t}),A.preload?(0,s.jsx)(S,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8493:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});let i=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}$"),n=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]")},8588:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var i=r(6780);let n=new Set,s=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),o=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw Error("Region is missing");return Object.assign(e,{region:async()=>{let e,r=s(e="function"==typeof t?await t():t)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;return((e,t=i.X)=>{if(n.has(e)||t(e))n.add(e);else if("*"===e)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 Error(`Region not accepted: region="${e}" is not a valid hostname component.`)})(r),r},useFipsEndpoint:async()=>!!s("string"==typeof t?t:await t())||("function"!=typeof r?Promise.resolve(!!r):r())})}},8659:(e,t,r)=>{"use strict";r.d(t,{GQ:()=>l,Qb:()=>c,bV:()=>u});let i=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],n=["TimeoutError","RequestTimeout","RequestTimeoutException"],s=[500,502,503,504],o=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],a=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],c=e=>e.$metadata?.httpStatusCode===429||i.includes(e.name)||e.$retryable?.throttling==!0,u=(e,t=0)=>{let r;return e?.$retryable!==void 0||e.$metadata?.clockSkewCorrected||n.includes(e.name)||o.includes(e?.code||"")||a.includes(e?.code||"")||s.includes(e.$metadata?.httpStatusCode||0)||(r=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]),!!(e&&e instanceof TypeError)&&r.has(e.message))||void 0!==e.cause&&t<=10&&u(e.cause,t+1)},l=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!u(e))return!0}return!1}},8734:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var i=r(9206);let n=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;let r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t>=i._w;let o=t/4*3;r>>=s%i.kQ;let a=Math.floor(s/i.kQ);for(let e=0;e>t)}}return new Uint8Array(r)}},8782:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});let i=e=>new TextEncoder().encode(e)},8857:(e,t)=>{"use strict";function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r){"use strict";r.d(t,{Kc:()=>s,OF:()=>c,_w:()=>o,kQ:()=>a,mh:()=>n});let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=Object.entries(i).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),s=i.split(""),o=6,a=8,c=63},9752:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});let i="__smithy_context"},9796:(e,t,r)=>{"use strict";r.d(t,{S:()=>n,v:()=>i});let i=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"dynamodb"}),n={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},AccountId:{type:"builtInParams",name:"accountId"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"},AccountIdEndpointMode:{type:"builtInParams",name:"accountIdEndpointMode"}}},9851:(e,t,r)=>{"use strict";r.d(t,{n:()=>s});var i=r(8782),n=r(9206);function s(e){let t,r="object"==typeof(t="string"==typeof e?(0,i.a)(e):e)&&"number"==typeof t.length,s="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!s)throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let e=0;e>t]}o+="==".slice(0,4-s)}return o}},9872:e=>{var t="u">typeof ArrayBuffer,r="u">typeof Symbol;function i(e,i){var n,s,o,a,c;if(!e)throw Error("obliterator/forEach: invalid iterable.");if("function"!=typeof i)throw Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||t&&ArrayBuffer.isView(e)||"string"==typeof e||"[object Arguments]"===e.toString()){for(o=0,a=e.length;o