PageSourceSearch

https://www.ncoa.org/_next/static/chunks/2960.a1d6ebb5d2527ce1.js

js ncoa.org collected 2026-09-24 08:37:18 UTC 102,819 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2960],{3744:(e,t,r)=>{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)}},32960:(e,t,r)=>{r.d(t,{CognitoIdentityClient:()=>iL,GetCredentialsForIdentityCommand:()=>iG,GetIdCommand:()=>iW});let i=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},s=void 0;var n,a,o,c,l=r(70538);let u={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},d={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(a||(a={}));let h=a.STANDARD;var f=r(87358);
1class p{static v2026=void 0!==f&&f.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return p.v2026?50:100}static throttlingDelay(){return p.v2026?1e3:500}static cost(){return p.v2026?14:5}static throttlingCost(){return p.v2026?5:10}static modifiedCostType(){return p.v2026?"THROTTLING":"TRANSIENT"}}var m=r(87358);function g(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}p.v2026||="object"==typeof m&&m.env?.AWS_NEW_RETRIES_2026==="true";let y=/\d{12}\.ddb/;async function w(e,t,r){let i=r.request;if(i?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&g(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){let r=await t.retryStrategy();if("string"==typeof r.mode)switch(r.mode){case a.ADAPTIVE:g(e,"RETRY_MODE_ADAPTIVE","F");break;case a.STANDARD:g(e,"RETRY_MODE_STANDARD","E")}}if("function"==typeof t.accountIdEndpointMode){let r=e.endpointV2;switch(String(r?.url?.hostname).match(y)&&g(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":g(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":g(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":g(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}let s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source)for(let[t,r]of(s.accountId&&g(e,"RESOLVED_ACCOUNT_ID","T"),Object.entries(s.$source??{})))g(e,t,r)}let b="user-agent",S="x-amz-user-agent",v=/[^!$%&'*+\-.^_`|~\w]/g,x=/[^!$%&'*+\-.^_`|~\w#]/g,E=e=>{let t=e[0].split("/").map(e=>e.replace(v,"-")).join("/"),r=e[1]?.replace(x,"-"),i=t.indexOf("/"),s=t.substring(0,i),n=t.substring(i+1);return"api"===s&&(n=n.toLowerCase()),[s,n,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}`}},"")},T={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},C={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},R="__smithy_context",A=e=>e[R]||(e[R]={}),I={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};class P{authSchemes=new Map;constructor(e){for(let t in e){let r=e[t];void 0!==r&&this.authSchemes.set(t,r)}}getIdentityProvider(e){return this.authSchemes.get(e)}}let $={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},k=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let e of t)r.push(e);return r},O=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,M=()=>{let e=[],t=[],r=!1,i=new Set,s=r=>(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r.identifyOnResolve?.(o.identifyOnResolve()),r),n=e=>{let t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...n(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...n(e))}),t},a=(r=!1)=>{let i=[],s=[],a={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of k(t.name,t.aliases))a[e]=t;i.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of k(t.name,t.aliases))a[e]=t;s.push(t)}),s.forEach(e=>{if(e.toMiddleware){let t=a[e.toMiddleware];if(void 0===t){if(r)return;throw Error(`${e.toMiddleware} is not found when adding ${O(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),i.sort((e,t)=>N[t.step]-N[e.step]||_[t.priority||"normal"]-_[e.priority||"normal"]).map(n).reduce((e,t)=>(e.push(...t),e),[])},o={add:(t,r={})=>{let{name:s,override:n,aliases:a}=r,o={step:"initialize",priority:"normal",middleware:t,...r},c=k(s,a);if(c.length>0){if(c.some(e=>i.has(e))){if(!n)throw Error(`Duplicate middleware name '${O(s,a)}'`);for(let t of c){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!==o.step||o.priority!==i.priority)throw Error(`"${O(i.name,i.aliases)}" middleware with ${i.priority} priority in ${i.step} step cannot be overridden by "${O(s,a)}" middleware with ${o.priority} priority in ${o.step} step.`);e.splice(r,1)}}for(let e of c)i.add(e)}e.push(o)},addRelativeTo:(e,r)=>{let{name:s,override:n,aliases:a}=r,o={middleware:e,...r},c=k(s,a);if(c.length>0){if(c.some(e=>i.has(e))){if(!n)throw Error(`Duplicate middleware name '${O(s,a)}'`);for(let e of c){let r=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===r)continue;let i=t[r];
1if(i.toMiddleware!==o.toMiddleware||i.relation!==o.relation)throw Error(`"${O(i.name,i.aliases)}" middleware ${i.relation} "${i.toMiddleware}" middleware cannot be overridden by "${O(s,a)}" middleware ${o.relation} "${o.toMiddleware}" middleware.`);t.splice(r,1)}}for(let e of c)i.add(e)}t.push(o)},clone:()=>s(M()),use:e=>{e.applyToStack(o)},remove:r=>"string"==typeof r?(r=>{let s=!1,n=e=>{let t=k(e.name,e.aliases);if(t.includes(r)){for(let e of(s=!0,t))i.delete(e);return!1}return!0};return e=e.filter(n),t=t.filter(n),s})(r):(r=>{let s=!1,n=e=>{if(e.middleware===r){for(let t of(s=!0,k(e.name,e.aliases)))i.delete(t);return!1}return!0};return e=e.filter(n),t=t.filter(n),s})(r),removeByTag:r=>{let s=!1,n=e=>{let{tags:t,name:n,aliases:a}=e;if(t&&t.includes(r)){for(let e of k(n,a))i.delete(e);return s=!0,!1}return!0};return e=e.filter(n),t=t.filter(n),s},concat:e=>{let t=s(M());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:s,identify:()=>a(!0).map(e=>{let t=e.step??e.relation+" "+e.toMiddleware;return O(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(let r of a().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(o.identify()),e}};return o},N={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},_={high:3,normal:2,low:1};class D{config;middlewareStack=M();initConfig;handlers;constructor(e){this.config=e;let{protocol:t,protocolSettings:r}=e;r&&"function"==typeof t&&(e.protocol=new t(r))}send(e,t,r){let i,s="function"!=typeof t?t:void 0,n="function"==typeof t?t:r;if(void 0===s&&!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,s),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,s);if(!n)return i(e).then(e=>e.output);i(e).then(e=>n(null,e.output),e=>n(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}let j=RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),U=(e,t=!1)=>{if(!t)return j.test(e);for(let t of e.split("."))if(!U(t))return!1;return!0},z=new Set,L=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),F=async e=>void 0,H=async e=>{let t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),V(t)){if(!0===e.ForcePathStyle)throw Error("Path-style addressing cannot be used with ARN buckets")}else W(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},q=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,B=/(\d+\.){3}\d+/,G=/\.\./,W=e=>q.test(e)&&!B.test(e)&&!G.test(e),V=e=>{let[t,r,i,,,s]=e.split(":"),n="arn"===t&&e.split(":").length>=6,a=!!(n&&r&&i&&s);if(n&&!a)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},J=(e,t,r,i=!1)=>{let s=async()=>{let s;if(i){let i=r.clientContextParams;s=i?.[e]??r[e]??r[t]}else s=r[e]??r[t];return"function"==typeof s?s():s};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 s();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:s}=e;return`${t}//${r}${i?":"+i:""}${s}`}}return e}:s},K=e=>{let t;if("string"==typeof e)return K(new URL(e));let{hostname:r,pathname:i,port:s,protocol:n,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:n,path:i,query:t}},Q=e=>{if("object"==typeof e){if("url"in e){let t=K(e.url);if(e.headers)for(let r in t.headers={},e.headers)t.headers[r.toLowerCase()]=e.headers[r].join(", ");return t}return e}return K(e)};function Y(e){return async(t,r,i,s)=>
1{if(!i.isCustomEndpoint){let t;(t=i.serviceConfiguredEndpoint?await i.serviceConfiguredEndpoint():await e(i.serviceId))&&(i.endpoint=()=>Promise.resolve(Q(t)),i.isCustomEndpoint=!0)}let n=await Z(t,r,i);if("function"!=typeof i.endpointProvider)throw Error("config.endpointProvider is not set.");let a=i.endpointProvider(n,s);if(i.isCustomEndpoint&&i.endpoint){let e=await i.endpoint();if(e?.headers)for(let[t,r]of(a.headers??={},Object.entries(e.headers)))a.headers[t]=Array.isArray(r)?r:[r]}return a}}let Z=async(e,t,r)=>{let i={},s=t?.getEndpointParameterInstructions?.()||{};for(let[t,n]of Object.entries(s))switch(n.type){case"staticContextParams":i[t]=n.value;break;case"contextParams":i[t]=e[n.name];break;case"clientContextParams":case"builtInParams":i[t]=await J(n.name,t,r,"builtInParams"!==n.type)();break;case"operationContextParams":i[t]=n.get(e);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(n))}return 0===Object.keys(s).length&&Object.assign(i,r),"s3"===String(r.serviceId).toLowerCase()&&await H(i),i};function X(e){let t=Y(e);return({config:e,instructions:r})=>(i,s)=>async n=>{e.isCustomEndpoint&&(s.__smithy_context?s.__smithy_context.features||(s.__smithy_context.features={}):s.__smithy_context={features:{}},s.__smithy_context.features.ENDPOINT_OVERRIDE="N");let a=await t(n.input,{getEndpointParameterInstructions:()=>r},{...e},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let o=s.authSchemes?.[0];if(o){s.signing_region=o.signingRegion,s.signing_service=o.signingName;let e=A(s),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return i({...n})}}let ee={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"};var et=r(6329);Y(F);let er=e=>{let t,r=e.tls??!0,{endpoint:i,useDualstackEndpoint:s,useFipsEndpoint:n}=e,a=Object.assign(e,{endpoint:null!=i?async()=>Q(await (0,et.t)(i)()):void 0,tls:r,isCustomEndpoint:!!i,useDualstackEndpoint:(0,et.t)(s??!1),useFipsEndpoint:(0,et.t)(n??!1)});return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!t&&(t=F(e.serviceId)),t),a};X(F);let ei=function(e){let t=X(e);return(e,r)=>({applyToStack:i=>{i.addRelativeTo(t({config:e,instructions:r}),ee)}})}(F),es="content-length",en={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},ea=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],eo=["TimeoutError","RequestTimeout","RequestTimeoutException"],ec=[500,502,503,504],el=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],eu=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],ed=e=>e.$metadata?.httpStatusCode===429||ea.includes(e.name)||e.$retryable?.throttling==!0,eh=(e,t=0)=>e?.$retryable!==void 0||e.$metadata?.clockSkewCorrected||"InvalidSignatureException"===e.name&&e.message?.includes("Signature expired")||eo.includes(e.name)||el.includes(e?.code||"")||eu.includes(e?.code||"")||ec.includes(e.$metadata?.httpStatusCode||0)||(e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)})(e)||function(e){return"ERR_HTTP2_STREAM_ERROR"===e.code&&e.message.includes("NGHTTP2_REFUSED_STREAM")}(e)||void 0!==e.cause&&t<=10&&eh(e.cause,t+1);class ef{static setTimeoutFn=(e,t)=>setTimeout(e,t);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;
1if(this.updateMeasuredRate(),e?.errorType==="THROTTLING"||ed(e?.error??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)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let t=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(e=>ef.setTimeoutFn(e,t)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}
1cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=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))}}class ep{x=p.delay();computeNextBackoffDelay(e){return Math.floor(Math.random()*Math.min(this.x*2**e,2e4))}setDelayBase(e){this.x=e}}class em{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,r,i){this.delay=e,this.count=t,this.cost=r,this.longPoll=i}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}let eg={incompatible:1,attempts:2,capacity:3};class ey{mode=a.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){"number"==typeof e?this.maxAttemptsProvider=async()=>e:"function"==typeof e?this.maxAttemptsProvider=e:e&&"object"==typeof e&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>3,this.baseDelay??=p.delay(),this.retryBackoffStrategy??=new ep}async acquireInitialRetryToken(e){return new em(p.delay(),0,void 0,p.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts(),i=this.retryCode(e,t,r),s=0===i,n=e.isLongPoll?.();if(s||n){let r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?p.throttlingDelay():this.baseDelay);let a=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=a;if(t.retryAfterHint instanceof Date&&(o=Math.max(a,Math.min(t.retryAfterHint.getTime()-Date.now(),a+5e3))),s){let t=this.getCapacityCost(r);this.capacity-=t;let i=new em(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,o)),i.$retryLog.acquisitionDelay=o,i}{let e=p.v2026&&i===eg.capacity&&n?o:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}retryCode(e,t,r){let i=e.getRetryCount()+1,s=this.isRetryableError(t.errorType)?0:eg.incompatible,n=i<r?0:eg.attempts,a=this.capacity>=this.getCapacityCost(t.errorType)?0:eg.capacity;return s||n||a}getCapacityCost(e){return e===p.modifiedCostType()?p.throttlingCost():p.cost()}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class ew{mode=a.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){let{rateLimiter:r}=t??{};this.rateLimiter=r??new ef,this.standardRetryStrategy=new ey(t?{maxAttempts:"number"==typeof e?e:3,...t}:e)}async acquireInitialRetryToken(e){let t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);let r=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),r}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}let eb=e=>e?.body instanceof ReadableStream;class eS{trace(){}debug(){}info(){}warn(){}error(){}}let ev="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",ex=Object.entries(ev).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),eE=ev.split(""),eT=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;let r=new ArrayBuffer(t),i=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,s=0;for(let i=t,n=t+3;i<=n;i++)if("="!==e[i]){if(!(e[i]in ex))throw TypeError(`Invalid character ${e[i]} in base64 string.`);r|=ex[e[i]]<<(n-i)*6,s+=6}else r>>=6;let n=t/4*3;r>>=s%8;let a=Math.floor(s/8);for(let e=0;e<a;e++){let t=(a-e-1)*8;i.setUint8(n+e,(r&255<<t)>>t)}}return new Uint8Array(r)};var eC=r(88869);function eR(e){let t,r="object"==typeof(t="string"==typeof e?(0,eC.a)(e):e)&&"number"==typeof t.length,i="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!i)throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let e=0;e<t.length;e+=3){let r=0,i=0;for(let s=e,n=Math.min(e+3,t.length);s<n;s++)r|=t[s]<<(n-s-1)*8,i+=8;let n=Math.ceil(i/6);r<<=6*n-i;for(let e=1;e<=n;e++){let t=(n-e)*6;s+=eE[(r&63<<t)>>t]}s+="==".slice(0,4-n)}return s}function eA(e,t,r,i){return class s extends Uint8Array{static fromString(e,r="utf-8"){if("string"==typeof e)return"base64"===r?s.mutate(i(e)):s.mutate(t(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,s.prototype),e}transformToString(t="utf-8"){return"base64"===t?r(this):e(this)}}}var eI=r(3744);let eP=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));Symbol.for("node-only");class e$ extends eA(eI.P,eC.a,eR,eT){}let ek=(n=e=>crypto.getRandomValues(e),"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return n(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,eP[e[0]]+eP[e[1]]+eP[e[2]]+eP[e[3]]+"-"+eP[e[4]]+eP[e[5]]+"-"+eP[e[6]]+eP[e[7]]+"-"+eP[e[8]]+eP[e[9]]+"-"+eP[e[10]]+eP[e[11]]+eP[e[12]]+eP[e[13]]+eP[e[14]]+eP[e[15]]});class eO{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}}let eM=e=>{if(null!=e){if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&eB.warn(eq(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}},eN=Math.ceil(17014118346046923e22*(2-11920928955078125e-23)),e_=e=>{let t=eM(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>eN)throw TypeError(`Expected 32-bit float, got ${e}`);return t},eD=e=>eU(e,16),ej=e=>eU(e,8),eU=(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&&ez(r,t)!==r)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return r},ez=(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]}},eL=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,eF=e=>{let t=e.match(eL);if(null===t||t[0].length!==e.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(e)},eH=e=>"string"==typeof e?eD(eF(e)):eD(e),eq=e=>String(TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),eB={warn:console.warn},eG=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],eV=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),eJ=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$/),eK=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$/),eQ=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})$/),eY=e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-7231 date-times must be expressed as strings");let t=eJ.exec(e);if(t){let[e,r,i,s,n,a,o,c]=t;return eZ(eH(e8(s)),e1(i),e4(r,"day",1,31),{hours:n,minutes:a,seconds:o,fractionalMilliseconds:c})}if(t=eK.exec(e)){let[e,r,i,s,n,a,o,c]=t;return e0(eZ(eX(s),e1(i),e4(r,"day",1,31),{hours:n,minutes:a,seconds:o,fractionalMilliseconds:c}))}if(t=eQ.exec(e)){let[e,r,i,s,n,a,o,c]=t;return eZ(eH(e8(c)),e1(r),e4(i.trimLeft(),"day",1,31),{hours:s,minutes:n,seconds:a,fractionalMilliseconds:o})}throw TypeError("Invalid RFC-7231 date-time value")},eZ=(e,t,r,i)=>{let s=t-1;return e5(e,s,r),new Date(Date.UTC(e,s,r,e4(i.hours,"hour",0,23),e4(i.minutes,"minute",0,59),e4(i.seconds,"seconds",0,60),e6(i.fractionalMilliseconds)))},eX=e=>{let t=new Date().getUTCFullYear(),r=100*Math.floor(t/100)+eH(e8(e));return r<t?r+100:r},e0=e=>e.getTime()-new Date().getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,e1=e=>{let t=eW.indexOf(e);if(t<0)throw TypeError(`Invalid month: ${e}`);return t+1},e2=[31,28,31,30,31,30,31,31,30,31,30,31],e5=(e,t,r)=>{let i=e2[t];if(1===t&&e3(e)&&(i=29),r>i)throw TypeError(`Invalid day for ${eW[t]} in ${e}: ${r}`)},e3=e=>e%4==0&&(e%100!=0||e%400==0),e4=(e,t,r,i)=>{let s=(e=>"string"==typeof e?ej(eF(e)):ej(e))(e8(e));if(s<r||s>i)throw TypeError(`${t} must be between ${r} and ${i}, inclusive`);return s},e6=e=>null==e?0:1e3*(e=>"string"==typeof e?e_(eF(e)):e_(e))("0."+e),e8=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)},e9=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):"string"==typeof e?Error(e):Error(`AWS SDK error wrapper for ${e}`);function e7(e){return t=>(r,i)=>async s=>{let n=await t.retryStrategy(),a=await t.maxAttempts();if(!tt(n))return n?.mode&&(i.userAgent=[...i.userAgent||[],["cfg/retry-mode",n.mode]]),n.retry(r,s);{let o=await n.acquireInitialRetryToken((i.partition_id??"")+(i.__retryLongPoll?":longpoll":"")),c=Error(),u=0,d=0,{request:h}=s,f=l.K.isInstance(h);for(f&&(h.headers["amz-sdk-invocation-id"]=ek());;)try{f&&(h.headers["amz-sdk-request"]=`attempt=${u+1}; max=${a}`);let{response:e,output:t}=await r(s);return n.recordSuccess(o),t.$metadata.attempts=u+1,t.$metadata.totalRetryDelay=d,{response:e,output:t}}catch(a){let r=tr(a,t.logger);if(c=e9(a),f&&e(h))throw(i.logger instanceof eS?console:i.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{o=await n.refreshRetryTokenForRetry(o,r)}catch(e){throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=d,c}u=o.getRetryCount();let s=o.getRetryDelay();d+=(o?.$retryLog?.acquisitionDelay??0)+s,s>0&&await te(s)}}}}let te=e=>new Promise(t=>setTimeout(t,e)),tt=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,tr=(e,t)=>{let r={error:e,errorType:ti(e)},i=function(e,t){if(eO.isInstance(e))for(let r of Object.keys(e.headers)){let i=r.toLowerCase();if("retry-after"===i){let i=e.headers[r],s=NaN;if(i.endsWith("GMT"))try{s=(eY(i).getTime()-Date.now())/1e3}catch(e){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(e)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(i):Date.parse(i)>=Date.now()&&(s=(Date.parse(i)-Date.now())/1e3);if(isNaN(s))return;return new Date(Date.now()+1e3*s)}if("x-amz-retry-after"===i){let i=e.headers[r],s=Number(i);if(isNaN(s))return void t?.trace?.(`Failed to parse x-amz-retry-after=${i}`);return new Date(Date.now()+s)}}}(e.$response,t);return i&&(r.retryAfterHint=i),r},ti=e=>ed(e)?"THROTTLING":eh(e)?"TRANSIENT":(e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!eh(e))return!0}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",ts={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};Symbol.for("node-only"),e7(eb);let tn=function(e){let t=e7(e);return e=>({applyToStack:r=>{r.add(t(e),ts)}})}(eb),ta=(e,t,r,i,s)=>({name:t,namespace:e,traits:r,input:i,output:s}),to=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],tc={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tl={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},tu=function(e){return td(e)&&e.expiration.getTime()-Date.now()<3e5},td=e=>void 0!==e.expiration;var th=r(4819);let tf=async(e,t,r)=>({operation:A(t).operation,region:await (0,et.t)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),tp=e=>{let t=[];switch(e.operation){case"GetCredentialsForIdentity":case"GetId":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push({schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(e,t)=>
1({signingProperties:{config:e,context:t}})})}return t},tm={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},tg={rE:"3.997.16"};var ty=r(81029).Buffer,tw=void 0!==ty&&ty.from?function(e){return ty.from(e,"utf8")}:e=>new TextEncoder().encode(e);function tb(e){return e instanceof Uint8Array?e:"string"==typeof e?tw(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function tS(e){return"string"==typeof e?0===e.length:0===e.byteLength}var tv={name:"SHA-256"},tx={name:"HMAC",hash:tv},tE=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 tT={};function tC(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:tT}var tR=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!tS(e)){var t=tb(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 tC().crypto.subtle.sign(tx,t,e.toHash).then(function(e){return new Uint8Array(e)})}):tS(this.toHash)?Promise.resolve(tE):Promise.resolve().then(function(){return tC().crypto.subtle.digest(tv,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){tC().crypto.subtle.importKey("raw",tb(e.secret),tx,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))},e}(),tA=r(71450),tI=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]),tP=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],t$=function(){function e(){this.state=Int32Array.from(tP),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 s=new Uint8Array(32),i=0;i<8;i++)s[4*i]=this.state[i]>>>24&255,s[4*i+1]=this.state[i]>>>16&255,s[4*i+2]=this.state[i]>>>8&255,s[4*i+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],s=t[2],n=t[3],a=t[4],o=t[5],c=t[6],l=t[7],u=0;u<64;u++){if(u<16)this.temp[u]=(255&e[4*u])<<24|(255&e[4*u+1])<<16|(255&e[4*u+2])<<8|255&e[4*u+3];else{var d=this.temp[u-2],h=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,f=((d=this.temp[u-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[u]=(h+this.temp[u-7]|0)+(f+this.temp[u-16]|0)}var p=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&o^~a&c)|0)+(l+(tI[u]+this.temp[u]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;l=c,c=o,o=a,a=n+p|0,n=s,s=i,i=r,r=p+m|0}t[0]+=r,t[1]+=i,t[2]+=s,t[3]+=n,t[4]+=a,t[5]+=o,t[6]+=c,t[7]+=l},e}(),tk=function(){function e(e){this.secret=e,this.hash=new t$,this.reset()}return e.prototype.update=function(e){if(!tS(e)&&!this.error)try{this.hash.update(tb(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(){return(0,tA.sH)(this,void 0,void 0,function(){return(0,tA.YH)(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new t$,this.secret){this.outer=new t$;var e=function(e){var t=tb(e);if(t.byteLength>64){var r=new t$;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<e.byteLength;r++)e[r]=0}},e}(),tO=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"],tM=function(){function e(e){var t,r,i;if("object"==typeof(r=t=tC())&&"object"==typeof r.crypto&&"function"==typeof r.crypto.getRandomValues&&"object"==typeof t.crypto.subtle&&(i=t.crypto.subtle)&&tO.every(function(e){return"function"==typeof i[e]}))this.hash=new tR(e);else this.hash=new tk(e)}return e.prototype.update=function(e,t){this.hash.update(tb(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();let tN={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},t_=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{}}},tD=["in-region","cross-region","mobile","standard","legacy"];Symbol.for("node-only");let tj="function"==typeof TextEncoder?new TextEncoder:null,tU=e=>{if("string"==typeof e){if(tj)return tj.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}`)};var tz=r(7347);
1function tL(e,t){return new Request(e,t)}let tF={supported:void 0};class tH{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new tH(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===tF.supported&&(tF.supported=!!("undefined"!=typeof Request&&"keepalive"in tL("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);let i=r??this.config.requestTimeout,s=!0===this.config.keepAlive,n=this.config.credentials;if(t?.aborted)return Promise.reject(tq(t));let a=e.path,o=function(e){let t=[];for(let r of Object.keys(e).sort()){let i=e[r];if(r=(0,tz.o)(r),Array.isArray(i))for(let e=0,s=i.length;e<s;e++)t.push(`${r}=${(0,tz.o)(i[e])}`);else{let e=r;(i||"string"==typeof i)&&(e+=`=${(0,tz.o)(i)}`),t.push(e)}}return t.join("&")}(e.query||{});o&&(a+=`?${o}`),e.fragment&&(a+=`#${e.fragment}`);let c="";if(null!=e.username||null!=e.password){let t=e.username??"",r=e.password??"";c=`${t}:${r}@`}let{port:l,method:u}=e,d=`${e.protocol}//${c}${e.hostname}${l?`:${l}`:""}${a}`,h="GET"===u||"HEAD"===u?void 0:e.body,f={body:h,headers:new Headers(e.headers),method:u,credentials:n};this.config?.cache&&(f.cache=this.config.cache),h&&(f.duplex="half"),"undefined"!=typeof AbortController&&(f.signal=t),tF.supported&&(f.keepalive=s),"function"==typeof this.config.requestInit&&Object.assign(f,this.config.requestInit(e));let p=()=>{},m=[fetch(tL(d,f)).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 eO({headers:r,reason:e.statusText,statusCode:e.status,body:t})})):{response:new eO({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)})}(i)];return t&&m.push(new Promise((e,r)=>{let i=()=>{r(tq(t))};"function"==typeof t.addEventListener?(t.addEventListener("abort",i,{once:!0}),p=()=>t.removeEventListener("abort",i)):t.onabort=i})),Promise.race(m).finally(p)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}function tq(e){let t=e&&"object"==typeof e&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error("Request aborted");return e.name="AbortError",e.cause=t,e}let e=Error(String(t));return e.name="AbortError",e}let r=Error("Request aborted");return r.name="AbortError",r}let tB=async e=>"function"==typeof Blob&&e instanceof Blob||e.constructor?.name==="Blob"?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):tG(e):tW(e);async function tG(e){var t;return new Uint8Array(eT(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??"",s=t.indexOf(","),n=s>-1?s+1:t.length;e(t.substring(n))},i.onabort=()=>r(Error("Read aborted")),i.onerror=()=>r(i.error),i.readAsDataURL(t)}))))}async function tW(e){let t=[],r=e.getReader(),i=!1,s=0;for(;!i;){let{done:e,value:n}=await r.read();n&&(t.push(n),s+=n.length),i=e}let n=new Uint8Array(s),a=0;for(let e of t)n.set(e,a),a+=e.length;return n}let tV=e=>new Date(Date.now()+e),tJ=e=>eO.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,tK=(e,t)=>{let r=Date.parse(e);return Math.abs(tV(t).getTime()-r)>=3e5?r-Date.now():t},tQ=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},tY=async e=>{let t=tQ("context",e.context),r=tQ("config",e.config),i=t.endpointV2?.properties?.authSchemes?.[0],s=tQ("signer",r.signer),n=await s(i),a=e?.signingRegion;return{config:r,signer:n,signingRegion:a,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}};class tZ{async sign(e,t,r){if(!l.K.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let i=await tY(r),{config:s,signer:n}=i,{signingRegion:a,signingName:o}=i,c=r.context;if(c?.authSchemes?.length){let[e,t]=c.authSchemes;e?.name==="sigv4a"&&t?.name==="sigv4"&&(a=t?.signingRegion??a,o=t?.signingName??o)}return r._preRequestSystemClockOffset=s.systemClockOffset,await n.sign(e,{signingDate:t
1V(s.systemClockOffset),signingRegion:a,signingService:o})}errorHandler(e){return t=>{let r=t.ServerTime??tJ(t.$response);if(r){let i=tQ("config",e.config),s=e._preRequestSystemClockOffset,n=tK(r,i.systemClockOffset);(n!==i.systemClockOffset||void 0!==s&&s!==n)&&t.$metadata&&(i.systemClockOffset=n,t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let r=tJ(e);if(r){let e=tQ("config",t.config);e.systemClockOffset=tK(r,e.systemClockOffset)}}}let tX=e=>"function"==typeof e?e():e,t0=[];function t1(e){if("object"==typeof e)return e;if(t0[e|=0])return t0[e];let t={},r=0;for(let i of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)==1&&(t[i]=1);return t0[e]=t}let t2={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},t5=[],t3={};class t4{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t4.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;let r=[],i=e,s=e;for(this._isMemberSchema=!1;t8(i);)r.push(i[1]),s=tX(i=i[0]),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,t1(t))}}else this.memberTraits=0;if(s instanceof t4){let e=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},e,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=t??s.memberName;return}if(this.schema=tX(s),t9(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!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="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(t5[e])return t5[e]}else if("string"==typeof e){if(t3[e])return t3[e]}else if(t&&e[t2.ns])return e[t2.ns];let r=tX(e);if(r instanceof t4)return r;if(t8(r)){let[t,i]=r;if(t instanceof t4)return Object.assign(t.getMergedTraits(),t1(i)),t;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let i=new t4(r);return t?e[t2.ns]=i:"string"==typeof r?t3[r]=i:"number"==typeof r?t5[r]=i:i}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 t1(this.memberTraits)}getOwnTraits(){return t1(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 t6([e?15:r[4]??0,0],"key")}getValueSchema(){let e=this.getSchema(),[t,r,i]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s="number"==typeof e?63&e:e&&"object"==typeof e&&(r||i)?e[3+e[0]]:t?15:void 0;if(null!=s)return t6([s,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();
1if(this.isStructSchema()&&t[4].includes(e)){let r=t[4].indexOf(e),i=t[5][r];return t6(t8(i)?i:[i,0],e)}if(this.isDocumentSchema())return t6([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has 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[t2.it];if(r&&t===r.length)return void(yield*r);r=Array(t);for(let i=0;i<t;++i){let t=e[4][i],s=t6([e[5][i],0],t);yield r[i]=[t,s]}e[t2.it]=r}}function t6(e,t){return e instanceof t4?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new t4(e,t)}let t8=e=>Array.isArray(e)&&2===e.length,t9=e=>Array.isArray(e)&&e.length>=5;class t7{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 t7.registries.has(e)||t7.registries.set(e,new t7(e)),t7.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,t7.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){let t="#"+e,r=[];for(let[e,i]of this.schemas.entries())e.endsWith(t)&&r.push(i);if(1===r.length)return r[0]}throw Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){let r=e[1];for(let i of[this,t7.for(r)])i.schemas.set(r+"#"+e[2],e),i.exceptions.set(e,t)}getErrorCtor(e){return this.exceptions.has(e)?this.exceptions.get(e):t7.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){for(let t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}class re{serdeContext;setSerdeContext(e){this.serdeContext=e}}class rt extends re{options;compositeErrorRegistry;constructor(e){for(let t of(super(),this.options=e,this.compositeErrorRegistry=t7.for(e.defaultNamespace),e.errorTypeRegistries??[]))this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return l.K}getResponseType(){return eO}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){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;if(t.headers)for(let r in t.headers)e.headers[r]=t.headers[r].join(", ");return e}if(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},t.headers)for(let r in t.headers)e.headers[r]=t.headers[r];return e}setHostPrefix(e,t,r){if(this.serdeContext?.disableHostPrefix)return;let i=t4.of(t.input),s=t1(t.traits??{});if(s.endpoint){let t=s.endpoint?.[0];if("string"==typeof t){var n;for(let[e,s]of i.structIterator()){if(!s.getMergedTraits().hostLabel)continue;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)}if(e.hostname=t+e.hostname,n=e.hostname,!/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(n))throw Error(`[${e.hostname}] is not a valid hostname.`)}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}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,eventStreamSerdeProvider:t}=await r.e(9945).then(r.bind(r,29945));return new e({marshaller:this.resolveEventStreamMarshaller(t),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}resolveEventStreamMarshaller(e){let t=this.serdeContext;return t.eventStreamMarshaller?t.eventStreamMarshaller:e(this.serdeContext)}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,r,i,s){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}let rr=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return e$.mutate(e);if(!e)return e$.mutate(new Uint8Array);let r=t.streamCollector(e);return e$.mutate(await r)};class ri extends rt{async serializeRequest(e,t,r){let i,s=this.serializer,n={},a={},o=await r.endpoint(),c=t4.of(e?.input),u=c.getSchema(),d=t&&"object"==typeof t?t:{},h=new l.K({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:n,headers:a,body:void 0});if(o&&(this.updateServiceEndpoint(h,o),this.setHostPrefix(h,e,d)),d){let e=c.getEventStreamMember();if(e){if(d[e]){let t={};for(let[r,i]of c.structIterator())r!==e&&d[r]&&(s.write(i,d[r]),t[r]=s.flush());i=await this.serializeEventStream({eventStream:d[e],requestSchema:c,initialRequest:t})}}else s.write(u,d),i=s.flush()}return h.headers=Object.assign(h.headers,a),h.query=n,h.body=i,h.method="POST",h}async deserializeResponse(e,t,r){let i=this.deserializer,s=t4.of(e.output),n={};if(r.statusCode>=300){let s=await rr(r.body,t);throw s.byteLength>0&&Object.assign(n,await i.read(15,s)),await this.handleError(e,t,r,n,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 a=s.getEventStreamMember();if(a)n[a]=await this.deserializeEventStream({response:r,responseSchema:s,initialResponseContainer:n});else{let e=await rr(r.body,t);e.byteLength>0&&Object.assign(n,await i.read(s,e))}return n.$metadata=this.deserializeMetadata(r),n}}
1class rs 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&&(rs.prototype.isPrototypeOf(e)||!!e.$fault&&!!e.$metadata&&("client"===e.$fault||"server"===e.$fault))}static[Symbol.hasInstance](e){return!!e&&(this===rs?rs.isInstance(e):!!rs.isInstance(e)&&(e.name&&this.name?this.prototype.isPrototypeOf(e)||e.name===this.name:this.prototype.isPrototypeOf(e)))}}let rn=(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};class ra{queryCompat;errorRegistry;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:s,httpPrefixHeaders:n}=e.getMergedTraits();return!t&&!r&&!i&&!s&&void 0===n}))return e}async getErrorSchemaOrThrowBaseException(e,t,r,i,s,n){let a=e;e.includes("#")&&([,a]=e.split("#"));let o={$metadata:s,$fault:r.statusCode<500?"client":"server"};if(!this.errorRegistry)throw Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:n?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:o}}catch(s){i.message=i.message??i.Message??"UnknownError";let e=this.errorRegistry,t=e.getBaseException();if(t){let r=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new r({name:a}),o),i)}let r=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(Error(r),{name:a},o),i)}}compose(e,t,r){let i=r;t.includes("#")&&([i]=t.split("#"));let s=t7.for(i),n=t7.for("smithy.ts.sdk.synthetic."+r);e.copyFrom(s),e.copyFrom(n),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let r=e.Message??t.Message,i=rn(e,t);r&&(i.message=r);let s=i.Error??{};s.Type=i.Error?.Type,s.Code=i.Error?.Code,s.Message=i.Error?.message??i.Error?.Message??r,i.Error=s;let n=i.$metadata.requestId;return n&&(i.RequestId=n),i}return rn(e,t)}setQueryCompatError(e,t){let r=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=r){let[t,i]=r.split(";"),s=Object.keys(e),n={Code:t,Type:i};e.Code=t,e.Type=i;for(let t=0;t<s.length;t++){let r=s[t];n["message"===r?"Message":r]=e[r]}delete n.__type,e.Error=n}}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=>t4.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}class ro{serdeContext;setSerdeContext(e){this.serdeContext=e}}function rc(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:s,httpQuery:n}=e.getMergedTraits();return(t.httpBindings?"string"==typeof i||s?6:n||r?5:void 0:void 0)??t.timestampFormat.default}let rl=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};rl.from=e=>e&&"object"==typeof e&&(e instanceof rl||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?rl(String(e)):rl(JSON.stringify(e)),rl.fromObject=rl.from;let ru=/^-?\d*(\.\d+)?$/;class rd{string;type;constructor(e,t){if(this.string=e,this.type=t,!ru.test(e))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){return!!e&&"object"==typeof e&&(rd.prototype.isPrototypeOf(e)||"bigDecimal"===e.type&&ru.test(e.string))}}class rh{from;to;keys;constructor(e,t){this.from=e,this.to=t;let r=new Set(Object.keys(this.from));r.delete("__type"),this.keys=r}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 rf(e,t,r){if(r?.source){let e=r.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)))return e.includes(".")?new rd(e,"bigDecimal"):BigInt(e)}return t}let rp=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),rm=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>
1=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t};class rg extends ro{settings;constructor(e){super(),this.settings=e}async read(e,t){let r;return this._read(e,"string"==typeof t?JSON.parse(t,rf):await rr(t,r=this.serdeContext).then(e=>(r?.utf8Encoder??eI.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=t4.of(e);if(r){if(i.isStructSchema()){let e,r,s=i.isUnionSchema(),n={},{jsonName:a}=this.settings;for(let[o,c]of(a&&(r={}),s&&(e=new rh(t,n)),i.structIterator())){let i=o;a&&(r[i=c.getMergedTraits().jsonName??i]=o),s&&e.mark(i),null!=t[i]&&(n[o]=this._read(c,t[i]))}if(s)e.writeUnknown();else if("string"==typeof t.__type)for(let e in t){let i=t[e],s=a?r[e]??e:e;s in n||(n[s]=i)}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),r=[];for(let i of t)r.push(this._read(e,i));return r}if(i.isMapSchema()){let e=i.getValueSchema(),r={};for(let i in t)r[i]=this._read(e,t[i]);return r}}if(i.isBlobSchema()&&"string"==typeof t)return eT(t);let s=i.getMergedTraits().mediaType;if(i.isStringSchema()&&"string"==typeof t&&s)return"application/json"===s||s.endsWith("+json")?rl.from(t):t;if(i.isTimestampSchema()&&null!=t)switch(rc(i,this.settings)){case 5:var n=t;if(null==n)return;if("string"!=typeof n)throw TypeError("RFC-3339 date-times must be expressed as strings");let a=eV.exec(n);if(!a)throw TypeError("Invalid RFC-3339 date-time value");let[o,c,l,u,d,h,f,p,m]=a,g=eZ(eH(e8(c)),e4(l,"month",1,12),e4(u,"day",1,31),{hours:d,minutes:h,seconds:f,fractionalMilliseconds:p});return"Z"!=m.toUpperCase()&&g.setTime(g.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})(m)),g;case 6:return eY(t);case 7:let y;if(null!=t){if("number"==typeof t)y=t;else if("string"==typeof t){let e;y="string"==typeof(e=t)?eM(eF(e)):eM(e)}else if("object"==typeof t&&1===t.tag)y=t.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(y)||y===1/0||y===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*y))}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 rd?t:"bigDecimal"===t.type&&"string"in t?new rd(t.string,t.type):new rd(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 in t){let s=t[r];s instanceof rd?e[r]=s:e[r]=this._read(i,s)}return e}return t}}let ry=String.fromCharCode(925);class rw{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 rd){let e=`${ry+"nv"+this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){let e=t.toString(),r=`${ry+"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 rb extends ro{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=t4.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if
1(!t)return JSON.stringify(this.buffer);let e=new rw;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=t4.of(e).getName(!0))}_write(e,t,r){let i=null!==t&&"object"==typeof t,s=t4.of(e);if(i){if(s.isStructSchema()){let e,r={},{jsonName:i}=this.settings;i&&(e={});let n=0;for(let[a,o]of s.structIterator()){let c=this._write(o,t[a],s);if(void 0!==c){let t=a;i&&(t=o.getMergedTraits().jsonName??a,e[a]=t),r[t]=c,n++}}if(s.isUnionSchema()&&0===n){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 s in t){let n=t[s],a=i?e[s]??s:s;a in r||(r[a]=this._write(15,n))}return r}if(Array.isArray(t)&&s.isListSchema()){let e=s.getValueSchema(),r=[],i=!!s.getMergedTraits().sparse;for(let s of t)(i||null!=s)&&r.push(this._write(e,s));return r}if(s.isMapSchema()){let e=s.getValueSchema(),r={},i=!!s.getMergedTraits().sparse;for(let s in t){let n=t[s];(i||null!=n)&&(r[s]=this._write(e,n))}return r}if(t instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema()))return s===this.rootSchema?t:(this.serdeContext?.base64Encoder??eR)(t);if(t instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(rc(s,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return function(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDay(),s=e.getUTCDate(),n=e.getUTCHours(),a=e.getUTCMinutes(),o=e.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,l=n<10?`0${n}`:`${n}`,u=a<10?`0${a}`:`${a}`,d=o<10?`0${o}`:`${o}`;return`${eG[i]}, ${c} ${eW[r]} ${t} ${l}:${u}:${d} GMT`}(t);case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}t instanceof rd&&(this.useReplacer=!0)}
1if(!(null===t&&r?.isStructSchema())){if(s.isStringSchema()){if(void 0===t&&s.isIdempotencyToken())return ek();let e=s.getMergedTraits().mediaType;return null!=t&&e&&("application/json"===e||e.endsWith("+json"))?rl.from(t):t}if("number"==typeof t&&s.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&s.isBlobSchema())return s===this.rootSchema?t:(this.serdeContext?.base64Encoder??eR)(t);if("bigint"==typeof t&&(this.useReplacer=!0),s.isDocumentSchema())if(!i)return structuredClone(t);else{let e=Array.isArray(t)?[]:{};for(let r in t){let i=t[r];i instanceof rd?(this.useReplacer=!0,e[r]=i):e[r]=this._write(s,i)}return e}return t}}}class rS extends ro{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new rb(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new rg(this.settings);return e.setSerdeContext(this.serdeContext),e}}class rv extends ri{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:t}
1),this.serviceTarget=r,this.codec=s??new rS({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!i,this.mixin=new ra(this.awsQueryCompatible)}async serializeRequest(e,t,r){let i=await super.serializeRequest(e,t,r);return i.path.endsWith("/")||(i.path+="/"),i.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,i.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(i.headers["x-amzn-query-mode"]="true"),"unit"!==tX(e.input)&&i.body||(i.body="{}"),i}getPayloadCodec(){return this.codec}async handleError(e,t,r,i,s){let{awsQueryCompatible:n}=this;n&&this.mixin.setQueryCompatError(i,r);let a=((e,t,r=!1)=>(({headers:e},t,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let i=rp(e??{},"x-amzn-errortype");if(void 0!==i)return rm(e[i]);break;case"code":let s=rp(t??{},"code");if(s&&void 0!==t[s])return rm(t[s]);break;case"type":if(t?.__type!==void 0)return rm(t.__type)}})(e,t,r?["code","header","type"]:["type","code","header"]))(r,i,n)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,r,i,s,n?this.mixin.findQueryCompatibleError:void 0),l=t4.of(o),u=i.message??i.Message??"UnknownError",d=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({}),h={},f=this.codec.createDeserializer();for(let[e,t]of l.structIterator())null!=i[e]&&(h[e]=f.readObject(t,i[e]));throw n&&this.mixin.queryCompatOutput(i,h),this.mixin.decorateServiceException(Object.assign(d,c,{$fault:l.getMergedTraits().error,message:u},h),i)}}class rx extends rv{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:i,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class rE{async sign(e,t,r){return e}}let rT={},rC=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}$"),rR=e=>rC.test(e)||e.startsWith("[")&&e.endsWith("]"),rA=(e,t=!1)=>{if(t){for(let t of e.split("."))if(!rA(t))return!1;return!0}return!(!U(e)||e.length<3||e.length>63||e!==e.toLowerCase()||rR(e))},rI={isVirtualHostableS3Bucket:rA,parseArn:e=>{let t=e.split(":");if(t.length<6)return null;let[r,i,s,n,a,...o]=t;return"arn"!==r||""===i||""===s||""===o.join(":")?null:{partition:i,service:s,region:n,accountId:a,resourceId:o.map(e=>e.split("/")).flat()}},partition:e=>{let{partitions:t}=d;for(let r of t){let{regions:t,outputs:i}=r;for(let[r,s]of Object.entries(t))if(r===e)return{...i,...s}}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}}};rT.aws=rI;class rP{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}}class r$ extends Error{constructor(e){super(e),this.name="EndpointError"}}function rk(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${rk(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(rk).join(", ")})`:JSON.stringify(e,null,2)}let rO=(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 r$(`Path: '${e}' does not end with ']'`);let s=i.slice(t+1,-1);if(Number.isNaN(parseInt(s)))throw new r$(`Invalid array index: '${s}' in path: '${e}'`);0!==t&&r.push(i.slice(0,t)),r.push(s)}else r.push(i)}return r})(t).reduce((r,i)=>{if("object"!=typeof r)throw new r$(`Index '${i}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){let e=parseInt(i);return r[e<0?r.length+e:e]}return r[i]},e);!function(e){e.HTTP="http",e.HTTPS="https"}(o||(o={}));let rM={[o.HTTP]:80,[o.HTTPS]:443},rN={booleanEquals:(e,t)=>e===t,coalesce:function(...e){for(let t of e)if(null!=t)return t},getAttr:rO,isSet:e=>null!=e,isValidHostLabel:U,ite:function(e,t,r){return e?t:r},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:s="",query:n={}}=e,a=new URL(`${i}//${t}${r?`:${r}`:""}${s}`);return a.search=Object.entries(n).map(([e,t])=>`${e}=${t}`).join("&"),a}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:s,pathname:n,protocol:a,search:c}=t;if(c)return null;let l=a.slice(0,-1);if(!Object.values(o).includes(l))return null;let u=rR(s),d=r.includes(`${i}:${rM[l]}`)||"string"==typeof e&&e.includes(`${i}:${rM[l]}`),h=`${i}${d?`:${rM[l]}`:""}`;return{scheme:l,authority:h,path:n,normalizedPath:n.endsWith("/")?n:`${n}/`,isIp:u}},split:function(e,t,r){if(1===r)return[e];if(""===e)return[""];let i=e.split(t);return 0===r?i:i.slice(0,r-1).concat(i.slice(1).join(t))},stringEquals:(e,t)=>e===t,substring:(e,t,r,i)=>null==e||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:i?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},r_=(e,t)=>
1{let r=[],{referenceRecord:i,endpointParams:s}=t,n=0;for(;n<e.length;){let t=e.indexOf("{",n);if(-1===t){r.push(e.slice(n));break}r.push(e.slice(n,t));let a=e.indexOf("}",t);if(-1===a){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[a+1]&&(r.push(e.slice(t+1,a)),n=a+2);let o=e.substring(t+1,a);if(o.includes("#")){let[e,t]=o.split("#");r.push(rO(i[e]??s[e],t))}else r.push(i[o]??s[o]);n=a+1}return r.join("")},rD=(e,t,r)=>{if("string"==typeof e)return r_(e,r);if(e.fn)return rU.callFunction(e,r);if(e.ref)return(({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e])(e,r);throw new r$(`'${t}': ${String(e)} is not a string, function or reference.`)},rj=({fn:e,argv:t},r)=>{let i=Array(t.length);for(let e=0;e<i.length;++e){let s=t[e];"boolean"==typeof s||"number"==typeof s?i[e]=s:i[e]=rU.evaluateExpression(s,"arg",r)}let s=e.indexOf(".");if(-1!==s){let t=rT[e.slice(0,s)],r=t?.[e.slice(s+1)];if("function"==typeof r)return r(...i)}let n=rN[e];if("function"==typeof n)return n(...i);throw Error(`function ${e} not loaded in endpointFunctions.`)},rU={evaluateExpression:rD,callFunction:rj},rz=(e,t)=>{let{assign:r}=e;if(r&&r in t.referenceRecord)throw new r$(`'${r}' is already defined in Reference Record.`);let i=rj(e,t);t.logger?.debug?.(`endpoints evaluateCondition: ${rk(e)} = ${rk(i)}`);let s=""===i||!!i;return null!=r?{result:s,toAssign:{name:r,value:i}}:{result:s}},rL=(e,t)=>Object.entries(e).reduce((e,[r,i])=>(e[r]=rH.getEndpointProperty(i,t),e),{}),rF=(e,t)=>{if(Array.isArray(e))return e.map(e=>rF(e,t));switch(typeof e){case"string":return r_(e,t);case"object":if(null===e)throw new r$(`Unexpected endpoint property: ${e}`);return rH.getEndpointProperties(e,t);case"boolean":return e;default:throw new r$(`Unexpected endpoint property type: ${typeof e}`)}},rH={getEndpointProperty:rF,getEndpointProperties:rL};class rq{nodes;root;conditions;results;
1constructor(e,t,r,i){this.nodes=e,this.root=t,this.conditions=r,this.results=i}static from(e,t,r,i){return new rq(e,t,r,i)}}let rB="isSet",rG="PartitionResult",rW="booleanEquals",rV="getAttr",rJ="stringEquals",rK={ref:"Endpoint"},rQ={ref:rG},rY={ref:"Region"},rZ={},rX=[rY],r0={conditions:[[rB,[rK]],[rB,rX],["aws.partition",rX,rG],[rW,[{ref:"UseFIPS"},!0]],[rW,[{fn:rV,argv:[rQ,"supportsFIPS"]},!0]],[rW,[{ref:"UseDualStack"},!0]],[rW,[{fn:rV,argv:[rQ,"supportsDualStack"]},!0]],[rJ,[{fn:rV,argv:[rQ,"name"]},"aws"]],[rJ,[rY,"us-east-1"]],[rJ,[rY,"us-east-2"]],[rJ,[rY,"us-west-1"]],[rJ,[rY,"us-west-2"]]],results:[[-1],[-1,"Invalid Configuration: FIPS and custom endpoint are not supported"],[-1,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[rK,rZ],["https://cognito-identity-fips.us-east-1.amazonaws.com",rZ],["https://cognito-identity-fips.us-east-2.amazonaws.com",rZ],["https://cognito-identity-fips.us-west-1.amazonaws.com",rZ],["https://cognito-identity-fips.us-west-2.amazonaws.com",rZ],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",rZ],[-1,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",rZ],[-1,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",rZ],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",rZ],[-1,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",rZ],[-1,"Invalid Configuration: Missing Region"]]},r1=new Int32Array([-1,1,-1,0,17,3,1,4,0x5f5e110,2,5,0x5f5e110,3,9,6,5,7,0x5f5e10f,6,8,0x5f5e10e,7,0x5f5e10c,0x5f5e10d,4,11,10,5,0x5f5e109,0x5f5e10b,5,12,0x5f5e10a,6,13,0x5f5e109,8,0x5f5e104,14,9,0x5f5e105,15,10,0x5f5e106,16,11,0x5f5e107,0x5f5e108,3,0x5f5e101,18,5,0x5f5e102,0x5f5e103]),r2=rq.from(r1,2,r0.conditions,r0.results),r5=new rP({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),r3=(e,t={})=>r5.get(e,()=>((e,t)=>{let{nodes:r,root:i,results:s,conditions:n}=e,a=i,o={},c={referenceRecord:o,endpointParams:t.endpointParams,logger:t.logger};for(;1!==a&&-1!==a&&a<1e8;){let e=3*(Math.abs(a)-1),[t,i,s]=[r[e],r[e+1],r[e+2]],[l,u,d]=n[t],h=rz({fn:l,assign:d,argv:u},c);if(h.toAssign){let{name:e,value:t}=h.toAssign;o[e]=t}a=a>=0===h.result?i:s}if(a>=1e8){let e=s[a-1e8];if(-1===e[0]){let[,t]=e;throw new r$(rD(t,"Error",c))}let[t,r,i]=e;return{url:((e,t)=>{let r=rD(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 r$(`Endpoint URL must be a string, got ${typeof r}`)})(t,c),properties:rL(r,c),headers:Object.entries(i??{}??{}).reduce((e,[t,r])=>(e[t]=r.map(e=>{let r=rD(e,"Header value entry",c);if("string"!=typeof r)throw new r$(`Header '${t}' value '${r}' is not a string`);return r}),e),{})}}throw new r$("No matching endpoint.")})(r2,{endpointParams:e,logger:t.logger}));rT.aws=rI;class r4 extends rs{constructor(e){super(e),Object.setPrototypeOf(this,r4.prototype)}}class r6 extends r4{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),Object.setPrototypeOf(this,r6.prototype)}}class r8 extends r4{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),Object.setPrototypeOf(this,r8.prototype)}}class r9 extends r4{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),Object.setPrototypeOf(this,r9.prototype)}}class r7 extends r4{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,r7.prototype)}}class ie extends r4{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,ie.prototype)}}class it extends r4{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,it.prototype)}}class ir extends r4{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,ir.prototype)}}class ii extends r4{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,ii.prototype)}}class is extends r4{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,is.prototype)}}let ia="Credentials",io="IdentityId",ic="Logins",il="client",iu="error",id="httpError",ih="message",ip="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",im="com.amazonaws.cognitoidentity",ig=t7.for(ip);var iy=[-3,ip,"CognitoIdentityServiceException",0,[],[]];ig.registerError(iy,r4);let iw=t7.for(im);
1var ib=[-3,im,"ExternalServiceException",{[iu]:il,[id]:400},[ih],[0]];iw.registerError(ib,r6);var iS=[-3,im,"InternalErrorException",{[iu]:"server"},[ih],[0]];iw.registerError(iS,r8);var iv=[-3,im,"InvalidIdentityPoolConfigurationException",{[iu]:il,[id]:400},[ih],[0]];iw.registerError(iv,r9);var ix=[-3,im,"InvalidParameterException",{[iu]:il,[id]:400},[ih],[0]];iw.registerError(ix,r7);var iE=[-3,im,"LimitExceededException",{[iu]:il,[id]:400},[ih],[0]];iw.registerError(iE,is);var iT=[-3,im,"NotAuthorizedException",{[iu]:il,[id]:403},[ih],[0]];iw.registerError(iT,ie);var iC=[-3,im,"ResourceConflictException",{[iu]:il,[id]:409},[ih],[0]];iw.registerError(iC,it);var iR=[-3,im,"ResourceNotFoundException",{[iu]:il,[id]:404},[ih],[0]];iw.registerError(iR,ir);var iA=[-3,im,"TooManyRequestsException",{[iu]:il,[id]:429},[ih],[0]];iw.registerError(iA,ii);let iI=[ig,iw];var iP=[0,im,"IdentityProviderToken",8,0],i$=[0,im,"SecretKeyString",8,0],ik=[3,im,ia,0,["AccessKeyId","SecretKey","SessionToken","Expiration"],[0,[()=>i$,0],0,4]],iO=[3,im,"GetCredentialsForIdentityInput",0,[io,ic,"CustomRoleArn"],[0,[()=>iD,0],0],1],iM=[3,im,"GetCredentialsForIdentityResponse",0,[io,ia],[0,[()=>ik,0]]],iN=[3,im,"GetIdInput",0,["IdentityPoolId","AccountId",ic],[0,0,[()=>iD,0]],1],i_=[3,im,"GetIdResponse",0,[io],[0]],iD=[2,im,"LoginsMap",0,[0,0],[()=>iP,0]],ij=[9,im,"GetCredentialsForIdentity",0,()=>iO,()=>iM],iU=[9,im,"GetId",0,()=>iN,()=>i_];!function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(c||(c={}));let iz=Object.values(c);class iL extends D{config;constructor(...[e]){let t,r,n,o=(e=>{let t=(({defaultsMode:e}={})=>((e,t,r)=>{let i,s,n,a=!1,o=async()=>{s||(s=e());try{i=await s,n=!0,a=!1}finally{s=void 0}return i};return void 0===t?async e=>((!n||e?.forceRefresh)&&(i=await o()),i):async e=>((!n||e?.forceRefresh)&&(i=await o()),a||(r&&!r(i)?a=!0:t(i)&&await o()),i)})(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 ${tD.join(", ")}, got ${t}`)}}))(e),r=()=>t().then(t_),i=(e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??eT,base64Encoder:e?.base64Encoder??eR,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??r3,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??tp,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tZ},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new rE}],logger:e?.logger??new eS,protocol:e?.protocol??rx,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:iI,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??K,utf8Decoder:e?.utf8Decoder??eC.a,utf8Encoder:e?.utf8Encoder??eI.P}))(e);return{...i,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??tU,defaultUserAgentProvider:e?.defaultUserAgentProvider??(({serviceId:e,clientVersion:t})=>async r=>{let i="undefined"!=typeof window?window.navigator:void 0,s=i?.userAgent??"",n=i?.userAgentData?.platform??tN.os(s)??"other",a=i?.userAgentData?.brands??[],o=a[a.length-1],c=o?.brand??tN.browser(s)??"unknown",l=o?.version??"unknown",u=[["aws-sdk-js",t],["ua","2.1"],[`os/${n}`,void 0],["lang/js"],["md/browser",`${c}_${l}`]];e&&u.push([`api/${e}`,t]);let d=await r?.userAgentAppId?.();return d&&u.push([`app/${d}`]),u})({serviceId:i.serviceId,clientVersion:tg.rE}),maxAttempts:e?.maxAttempts??3,region:e?.region??(()=>Promise.reject("Region is missing")),requestHandler:tH.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||h),sha256:e?.sha256??tM,streamCollector:e?.streamCollector??tB,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}})(e||{});super(o),this.initConfig=o;let d=((e,t)=>{let r=Object.assign((e=>({setRegion(t){e.region=t},region:()=>e.region}))(e),(e=>Object.assign((e=>{let t=[];for(let r in c){let i=c[r];void 0!==e[i]&&t.push({algorithmId:()=>i,checksumConstructor:()=>e[i]})}for(let[r,i]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>i});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};let i=r.algorithmId(),s=r.checksumConstructor();iz.includes(i)?e.checksumAlgorithms[i.toUpperCase()]=s:e.checksumAlgorithms[i]=s,t.pu
1sh(r)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)))(e),(e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}))(e),(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,i=e.credentials;return{setHttpAuthScheme(e){let r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){i=e},credentials:()=>i}})(e));return t.forEach(e=>e.configure(r)),Object.assign(e,{region:r.region()},(e=>Object.assign((e=>{let t={};return e.checksumAlgorithms().forEach(e=>{let r=e.algorithmId();iz.includes(r)&&(t[r]=e.checksumConstructor())}),t})(e),(e=>{let t={};return t.retryStrategy=e.retryStrategy(),t})(e)))(r),{httpHandler:r.httpHandler()},(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}))(r))})((e=>Object.assign((e=>{let t,r,s=e.credentials,n=!!e.credentials;Object.defineProperty(e,"credentials",{set(r){r&&r!==s&&r!==t&&(n=!0);let a=function(e,{credentials:t,credentialDefaultProvider:r}){let s;return(s=t?t?.memoized?t:((e,t,r)=>{let i,s,n;if(void 0===e)return;let a="function"!=typeof e?async()=>Promise.resolve(e):e,o=!1,c=async e=>{s||(s=a(e));try{i=await s,n=!0,o=!1}finally{s=void 0}return i};return void 0===t?async e=>((!n||e?.forceRefresh)&&(i=await c(e)),i):async e=>((!n||e?.forceRefresh)&&(i=await c(e)),o||(r(i)?t(i)&&await c(e):o=!0),i)})(t,tu,td):r?i(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}).memoized=!0,s}(e,{credentials:s=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,a);if(n&&!o.attributed){let e="object"==typeof s&&null!==s;(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=s;let{signingEscapePath:a=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:c}=e;return r=e.signer?i(e.signer):e.regionInfoProvider?()=>i(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:s}=t;e.signingRegion=e.signingRegion||i||r,e.signingName=e.signingName||s||e.serviceId;let n={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:a};return new(e.signerConstructor||th.B)(n)}):async t=>{let r=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i(e.region)(),properties:{}},t)).signingRegion,s=t.signingName;e.signingRegion=e.signingRegion||r,e.signingName=e.signingName||s||e.serviceId;let n={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:a};return new(e.signerConstructor||th.B)(n)},Object.assign(e,{systemClockOffset:o,signingEscapePath:a,signer:r})})(e),{authSchemePreference:(0,et.t)(e.authSchemePreference??[])}))(er((e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw Error("Region is missing");return Object.assign(e,{region:async()=>{let e=(e=>L(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e)("function"==typeof t?await t():t);return((e,t=U)=>{if(z.has(e)||t(e))z.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.`)})(e),e},useFipsEndpoint:async()=>!!L("string"==typeof t?t:await t())||("function"!=typeof r?Promise.resolve(!!r):r())})})(((e,t)=>{let{retryStrategy:r,retryMode:i}
1=e,{defaultMaxAttempts:s=3,defaultBaseDelay:n=p.delay()}=t??{},o=(0,et.t)(e.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=async()=>{let e=await o();return await (0,et.t)(i)()===a.ADAPTIVE?new ew(o,{maxAttempts:e,baseDelay:n}):new ey({maxAttempts:e,baseDelay:n})};return Object.assign(e,{maxAttempts:o,retryStrategy:()=>c??=l()})})(function(e){let t=i(e.userAgentAppId??s),{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=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}))(o)))))),e?.extensions||[]);this.config=d,this.middlewareStack.use(function(e){return{applyToStack:t=>{t.add((t,r)=>async i=>{let{operationSchema:s}=A(r),[,n,a,o,c,l]=s??[],u=r.endpointV2?async()=>Q(r.endpointV2):e.endpoint,d=await e.protocol.serializeRequest(ta(n,a,o,c,l),i.input,{...e,...r,endpoint:u});return t({...i,request:d})},tl),t.add((t,r)=>async i=>{let{response:s}=await t(i),{operationSchema:n}=A(r),[,a,o,c,l,u]=n??[];try{let t=await e.protocol.deserializeResponse(ta(a,o,c,l,u),{...e,...r},s);return{response:s,output:t}}catch(e){if(Object.defineProperty(e,"$response",{value:s,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(eO.isInstance(s)){let{headers:t={},statusCode:r}=s,i=Object.entries(t);e.$metadata={httpStatusCode:r,requestId:to(/^x-[\w-]+-request-?id$/,i),extendedRequestId:to(/^x-[\w-]+-id-2$/,i),cfId:to(/^x-[\w-]+-cf-id$/,i)}}}catch(e){}}throw e}},tc),e.protocol.setSerdeContext(e)}}}(this.config)),this.middlewareStack.use((t=this.config,{applyToStack:e=>{e.add((e=>(t,r)=>async i=>{let{request:s}=i;if(!l.K.isInstance(s))return t(i);let{headers:n}=s,a=r?.userAgent?.map(E)||[],o=(await e.defaultUserAgentProvider()).map(E);await w(r,e,i),o.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(E)||[],u=await e.userAgentAppId();u&&o.push(E(["app",`${u}`]));let d=[].concat([...o,...a,...c]).join(" "),h=[...o.filter(e=>e.startsWith("aws-sdk-")),...c].join(" ");return"browser"!==e.runtime?(h&&(n[S]=n[S]?`${n[b]} ${h}`:h),n[b]=d):n[S]=d,t({...i,request:s})})(t),T)}})),this.middlewareStack.use(tn(this.config)),this.middlewareStack.use((r=this.config,{applyToStack:e=>{var t;e.add((t=r.bodyLengthChecker,e=>async r=>{let i=r.request;if(l.K.isInstance(i)){let{body:e,headers:r}=i;if(e&&-1===Object.keys(r).map(e=>e.toLowerCase()).indexOf(es))try{let r=t(e);i.headers={...i.headers,[es]:String(r)}}catch(e){}}return e({...r,request:i})}),en)}})),this.middlewareStack.use((n=this.config,{applyToStack:e=>{e.add(e=>async t=>{if(!l.K.isInstance(t.request))return e(t);let{request:r}=t,{handlerProtocol:i=""}=n.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let e=r.hostname;null!=r.port&&(e+=`:${r.port}`),r.headers.host=e}return e(t)},u)}})),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add((e,t)=>async r=>{try{let i=await e(r),{clientName:s,commandName:n,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=o,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:h,...f}=i.output;return a?.info?.({clientName:s,commandName:n,input:u(r.input),output:
1d(f),metadata:h}),i}catch(c){let{clientName:e,commandName:i,logger:s,dynamoDbDocumentClientOptions:n={}}=t,{overrideInputFilterSensitiveLog:a}=n,o=a??t.inputFilterSensitiveLog;throw s?.error?.({clientName:e,commandName:i,input:o(r.input),error:c,metadata:c.$metadata}),c}},C)}})),this.middlewareStack.use((this.config,{applyToStack:e=>{}})),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:i=>{i.addRelativeTo(((e,t)=>(r,i)=>async s=>{let n=((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 t.httpAuthSchemeParametersProvider(e,i,s.input)),e.authSchemePreference?await e.authSchemePreference():[]),a=function(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),o=A(i),c=[];for(let r of n){let s=a.get(r.schemeId);if(!s){c.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}let n=s.identityProvider(await t.identityProviderConfigProvider(e));if(!n){c.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:l={},signingProperties:u={}}=r.propertiesExtractor?.(e,i)||{};r.identityProperties=Object.assign(r.identityProperties||{},l),r.signingProperties=Object.assign(r.signingProperties||{},u),o.selectedHttpAuthScheme={httpAuthOption:r,identity:await n(r.identityProperties),signer:s.signer};break}if(!o.selectedHttpAuthScheme)throw Error(c.join("\n"));return r(s)})(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),I)}}))(this.config,{httpAuthSchemeParametersProvider:tf,identityProviderConfigProvider:async e=>new P({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((this.config,{applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{if(!l.K.isInstance(r.request))return e(r);let i=A(t).selectedHttpAuthScheme;if(!i)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:s={}},identity:n,signer:a}=i,o=await e({...r,request:await a.sign(r.request,n,s)}).catch((a.errorHandler||(e=>e=>{throw e}))(s));return(a.successHandler||((e,t)=>{}))(o.response,s),o},$)}}))}destroy(){super.destroy()}}let iF="***SensitiveInformation***";function iH(e,t){if(null==t)return t;let r=t4.of(e);if(r.getMergedTraits().sensitive)return iF;
1if(r.isListSchema()){if(r.getValueSchema().getMergedTraits().sensitive)return iF}else if(r.isMapSchema()){if(r.getKeySchema().getMergedTraits().sensitive||r.getValueSchema().getMergedTraits().sensitive)return iF}else if(r.isStructSchema()&&"object"==typeof t){let e={};for(let[i,s]of r.structIterator())null!=t[i]&&(e[i]=iH(s,t[i]));return e}return t}class iq{middlewareStack=M();schema;static classBuilder(){return new iB}resolveMiddlewareWithContext(e,t,r,{middlewareFn:i,clientName:s,commandName:n,inputFilterSensitiveLog:a,outputFilterSensitiveLog:o,smithyContext:c,additionalContext:l,CommandCtor:u}){for(let s of i.bind(this)(u,e,t,r))this.middlewareStack.use(s);let d=e.concat(this.middlewareStack),{logger:h}=t,f={logger:h,clientName:s,commandName:n,inputFilterSensitiveLog:a,outputFilterSensitiveLog:o,[R]:{commandInstance:this,...c},...l},{requestHandler:p}=t,m=r??{};return c.eventStream&&(m={isEventStream:!0,...m}),d.resolve(e=>p.handle(e.request,m),f)}}class iB{_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 iq{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super(),this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,i,s){let n=t._operationSchema,a=n?.[4]??n?.input,o=n?.[5]??n?.output;return this.resolveMiddlewareWithContext(r,i,s,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(n?iH.bind(null,a):e=>e),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(n?iH.bind(null,o):e=>e),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}class iG extends iq.classBuilder().ep(tm).m(function(e,t,r,i){return[ei(r,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(ij).build(){}class iW extends iq.classBuilder().ep(tm).m(function(e,t,r,i){return[ei(r,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(iU).build(){}},71450:(e,t,r)=>{r.d(t,{Cl:()=>i,Tt:()=>s,YH:()=>a,fX:()=>o,sH:()=>n});var i=function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>t.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function n(e,t,r,i){return new(r||(r=Promise))(function(s,n){function a(e){try{c(i.next(e))}catch(e){n(e)}}function o(e){try{c(i.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,o)}c((i=i.apply(e,t||[])).next())})}function a(e,t){var r,i,s,n,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(o){return function(c){var l=[o,c];if(r)throw TypeError("Generator is already executing.");for(;n&&(n=0,l[0]&&(a=0)),a;)try{if(r=1,i&&(s=2&l[0]?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[2&l[0],s.value]),l[0]){case 0:case 1:s=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,i=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(s=(s=a.trys).length>0&&s[s.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!s||l[1]>s[0]&&l[1]<s[3])){a.label=l[1];break}if(6===l[0]&&a.label<s[1]){a.label=s[1],s=l;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(l);break}s[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],i=0}finally{r=s=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}Object.create;function o(e,t,r){if(r||2==arguments.length)for(var i,s=0,n=t.length;s<n;s++)!i&&s in t||(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.