@agentlang/lstudio 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{index-DlZFTbUB.js → index-BBXzNa7W.js} +1 -1
- package/assets/{index-Cn4B33_-.js → index-BEh0NIIG.js} +1 -1
- package/assets/{index-Doo87e5X.js → index-DfUQvyyO.js} +264 -264
- package/assets/{index-fkBiak1w.js → index-WGtSo5ft.js} +1 -1
- package/assets/{index.browser-BO5G3NbX.js → index.browser-B8Per59S.js} +3 -3
- package/assets/{loadCognitoIdentity-7ZPodCIQ.js → loadCognitoIdentity-C2GOiLkR.js} +1 -1
- package/assets/{loadSts-CsI2lH7u.js → loadSts-BBpsBHOE.js} +1 -1
- package/assets/{replService-CStUCo8F.js → replService-DKzhZ54t.js} +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BoNKy6Ic.js","assets/normalizeProvider-BrOPyH3l.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{f as K,d as ht,a as ft,t as pt,c as ye,H as I,b as O,j as mt,k as W}from"./normalizeProvider-BrOPyH3l.js";import{_ as gt}from"./preload-helper-BlTxHScW.js";import{_ as yt,a as wt}from"./index-
|
|
2
|
+
import{f as K,d as ht,a as ft,t as pt,c as ye,H as I,b as O,j as mt,k as W}from"./normalizeProvider-BrOPyH3l.js";import{_ as gt}from"./preload-helper-BlTxHScW.js";import{_ as yt,a as wt}from"./index-DfUQvyyO.js";const St=(t,e,r)=>{let s,n,i,a=!1;const u=async()=>{n||(n=t());try{s=await n,i=!0,a=!1}finally{n=void 0}return s};return async o=>((!i||o?.forceRefresh)&&(s=await u()),s)},sn=t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),nn=t=>({httpHandler:t.httpHandler()});var U;(function(t){t.HTTP="http",t.HTTPS="https"})(U||(U={}));var X;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(X||(X={}));const ue="__smithy_context",z=t=>typeof t=="string"?K(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),M=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const s of e)r.push(s);return r},A=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,J=()=>{let t=[],e=[],r=!1;const s=new Set,n=c=>c.sort((d,h)=>Ee[h.step]-Ee[d.step]||ve[h.priority||"normal"]-ve[d.priority||"normal"]),i=c=>{let d=!1;const h=m=>{const g=M(m.name,m.aliases);if(g.includes(c)){d=!0;for(const f of g)s.delete(f);return!1}return!0};return t=t.filter(h),e=e.filter(h),d},a=c=>{let d=!1;const h=m=>{if(m.middleware===c){d=!0;for(const g of M(m.name,m.aliases))s.delete(g);return!1}return!0};return t=t.filter(h),e=e.filter(h),d},u=c=>(t.forEach(d=>{c.add(d.middleware,{...d})}),e.forEach(d=>{c.addRelativeTo(d.middleware,{...d})}),c.identifyOnResolve?.(p.identifyOnResolve()),c),o=c=>{const d=[];return c.before.forEach(h=>{h.before.length===0&&h.after.length===0?d.push(h):d.push(...o(h))}),d.push(c),c.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?d.push(h):d.push(...o(h))}),d},l=(c=!1)=>{const d=[],h=[],m={};return t.forEach(f=>{const y={...f,before:[],after:[]};for(const w of M(y.name,y.aliases))m[w]=y;d.push(y)}),e.forEach(f=>{const y={...f,before:[],after:[]};for(const w of M(y.name,y.aliases))m[w]=y;h.push(y)}),h.forEach(f=>{if(f.toMiddleware){const y=m[f.toMiddleware];if(y===void 0){if(c)return;throw new Error(`${f.toMiddleware} is not found when adding ${A(f.name,f.aliases)} middleware ${f.relation} ${f.toMiddleware}`)}f.relation==="after"&&y.after.push(f),f.relation==="before"&&y.before.push(f)}}),n(d).map(o).reduce((f,y)=>(f.push(...y),f),[])},p={add:(c,d={})=>{const{name:h,override:m,aliases:g}=d,f={step:"initialize",priority:"normal",middleware:c,...d},y=M(h,g);if(y.length>0){if(y.some(w=>s.has(w))){if(!m)throw new Error(`Duplicate middleware name '${A(h,g)}'`);for(const w of y){const T=t.findIndex(k=>k.name===w||k.aliases?.some(Z=>Z===w));if(T===-1)continue;const b=t[T];if(b.step!==f.step||f.priority!==b.priority)throw new Error(`"${A(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${A(h,g)}" middleware with ${f.priority} priority in ${f.step} step.`);t.splice(T,1)}}for(const w of y)s.add(w)}t.push(f)},addRelativeTo:(c,d)=>{const{name:h,override:m,aliases:g}=d,f={middleware:c,...d},y=M(h,g);if(y.length>0){if(y.some(w=>s.has(w))){if(!m)throw new Error(`Duplicate middleware name '${A(h,g)}'`);for(const w of y){const T=e.findIndex(k=>k.name===w||k.aliases?.some(Z=>Z===w));if(T===-1)continue;const b=e[T];if(b.toMiddleware!==f.toMiddleware||b.relation!==f.relation)throw new Error(`"${A(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${A(h,g)}" middleware ${f.relation} "${f.toMiddleware}" middleware.`);e.splice(T,1)}}for(const w of y)s.add(w)}e.push(f)},clone:()=>u(J()),use:c=>{c.applyToStack(p)},remove:c=>typeof c=="string"?i(c):a(c),removeByTag:c=>{let d=!1;const h=m=>{const{tags:g,name:f,aliases:y}=m;if(g&&g.includes(c)){const w=M(f,y);for(const T of w)s.delete(T);return d=!0,!1}return!0};return t=t.filter(h),e=e.filter(h),d},concat:c=>{const d=u(J());return d.use(c),d.identifyOnResolve(r||d.identifyOnResolve()||(c.identifyOnResolve?.()??!1)),d},applyToStack:u,identify:()=>l(!0).map(c=>{const d=c.step??c.relation+" "+c.toMiddleware;return A(c.name,c.aliases)+" - "+d}),identifyOnResolve(c){return typeof c=="boolean"&&(r=c),r},resolve:(c,d)=>{for(const h of l().map(m=>m.middleware).reverse())c=h(c,d);return r&&console.log(p.identify()),c}};return p},Ee={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ve={high:3,normal:2,low:1};class an{config;middlewareStack=J();initConfig;handlers;constructor(e){this.config=e}send(e,r,s){const n=typeof r!="function"?r:void 0,i=typeof r=="function"?r:s,a=n===void 0&&this.config.cacheMiddleware===!0;let u;if(a){this.handlers||(this.handlers=new WeakMap);const o=this.handlers;o.has(e.constructor)?u=o.get(e.constructor):(u=e.resolveMiddleware(this.middlewareStack,this.config,n),o.set(e.constructor,u))}else delete this.handlers,u=e.resolveMiddleware(this.middlewareStack,this.config,n);if(i)u(e).then(o=>i(null,o.output),o=>i(o)).catch(()=>{});else return u(e).then(o=>o.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class P extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?P.mutate(ht(e)):P.mutate(K(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,P.prototype),e}transformToString(e="utf-8"){return e==="base64"?ft(this):pt(this)}}const Te=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return P.mutate(t);if(!t)return P.mutate(new Uint8Array);const r=e.streamCollector(t);return P.mutate(await r)},ee=t=>typeof t=="function"?t():t,j=t=>t[ue]||(t[ue]={}),$=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},ze=(t,e,r,s,n)=>({name:e,namespace:t,traits:r,input:s,output:n}),bt=t=>(e,r)=>async s=>{const{response:n}=await e(s),{operationSchema:i}=j(r),[,a,u,o,l,p]=i??[];try{const c=await t.protocol.deserializeResponse(ze(a,u,o,l,p),{...t,...r},n);return{response:n,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in c)){const d="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{c.message+=`
|
|
3
3
|
`+d}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(d):r.logger?.warn?.(d)}typeof c.$responseBodyText<"u"&&c.$response&&(c.$response.body=c.$responseBodyText);try{if(ye.isInstance(n)){const{headers:h={}}=n,m=Object.entries(h);c.$metadata={httpStatusCode:n.statusCode,requestId:te(/^x-[\w-]+-request-?id$/,m),extendedRequestId:te(/^x-[\w-]+-id-2$/,m),cfId:te(/^x-[\w-]+-cf-id$/,m)}}}catch{}}throw c}},te=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],Rt=t=>(e,r)=>async s=>{const{operationSchema:n}=j(r),[,i,a,u,o,l]=n??[],p=r.endpointV2?.url&&t.urlParser?async()=>t.urlParser(r.endpointV2.url):t.endpoint,c=await t.protocol.serializeRequest(ze(i,a,u,o,l),s.input,{...t,...r,endpoint:p});return e({...s,request:c})},Et={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},vt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function on(t){return{applyToStack:e=>{e.add(Rt(t),vt),e.add(bt(t),Et),t.protocol.setSerdeContext(t)}}}function L(t){if(typeof t=="object")return t;t=t|0;const e={};let r=0;for(const s of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[s]=1);return e}class v{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=v.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;const s=[];let n=e,i=e;for(this._isMemberSchema=!1;re(n);)s.push(n[1]),n=n[0],i=ee(n),this._isMemberSchema=!0;if(s.length>0){this.memberTraits={};for(let a=s.length-1;a>=0;--a){const u=s[a];Object.assign(this.memberTraits,L(u))}}else this.memberTraits=0;if(i instanceof v){const a=this.memberTraits;Object.assign(this,i),this.memberTraits=Object.assign({},a,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??i.memberName;return}if(this.schema=ee(i),Tt(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){const r=ee(e);if(r instanceof v)return r;if(re(r)){const[s,n]=r;if(s instanceof v)return Object.assign(s.getMergedTraits(),L(n)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new v(r)}getSchema(){const e=this.schema;return e[0]===0?e[4]:e}getName(e=!1){const{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();return e[0]===3||e[0]===-3}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){const e=i=>(i&4)===4||!!i?.idempotencyToken,{normalizedTraits:r,traits:s,memberTraits:n}=this;return e(r)||e(s)||e(n)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return L(this.memberTraits)}getOwnTraits(){return L(this.traits)}getKeySchema(){const[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const s=this.getSchema(),n=e?15:s[4]??0;return _([n,0],"key")}getValueSchema(){const e=this.getSchema(),[r,s,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e=="number"?63&e:e&&typeof e=="object"&&(s||n)?e[3+e[0]]:r?15:void 0;if(i!=null)return _([i,0],s?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){const s=r[4].indexOf(e),n=r[5][s];return _(re(n)?n:[n,0],e)}if(this.isDocumentSchema())return _([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[r,s]of this.structIterator())e[r]=s}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema();for(let r=0;r<e[4].length;++r)yield[e[4][r],_([e[5][r],0],e[4][r])]}}function _(t,e){if(t instanceof v)return Object.assign(t,{memberName:e,_isMemberSchema:!0});const r=v;return new r(t,e)}const re=t=>Array.isArray(t)&&t.length===2,Tt=t=>Array.isArray(t)&&t.length>=5;class x{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,s=new Map){this.namespace=e,this.schemas=r,this.exceptions=s}static for(e){return x.registries.has(e)||x.registries.set(e,new x(e)),x.registries.get(e)}register(e,r){const s=this.normalizeShapeId(e);x.for(s.split("#")[0]).schemas.set(s,r)}getSchema(e){const r=this.normalizeShapeId(e);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(e,r){const s=e,n=x.for(s[1]);n.schemas.set(s[1]+"#"+s[2],s),n.exceptions.set(s,r)}getErrorCtor(e){const r=e;return x.for(r[1]).exceptions.get(r)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,r,s]=e,n=r+"#"+s;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}const Ae=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),At=()=>{if(Ae)return Ae();const t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,S[t[0]]+S[t[1]]+S[t[2]]+S[t[3]]+"-"+S[t[4]]+S[t[5]]+"-"+S[t[6]]+S[t[7]]+"-"+S[t[8]]+S[t[9]]+"-"+S[t[10]]+S[t[11]]+S[t[12]]+S[t[13]]+S[t[14]]+S[t[15]]},N=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};N.from=t=>t&&typeof t=="object"&&(t instanceof N||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?N(String(t)):N(JSON.stringify(t));N.fromObject=N.from;const xe=/^-?\d*(\.\d+)?$/;class Be{string;type;constructor(e,r){if(this.string=e,this.type=r,!xe.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;const r=e;return Be.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&xe.test(r.string)}}class xt{serdeContext;setSerdeContext(e){this.serdeContext=e}}class Ct extends xt{options;constructor(e){super(),this.options=e}getRequestType(){return I}getResponseType(){return ye}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(const[s,n]of r.url.searchParams.entries())e.query[s]=n;return e}else return e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},e}setHostPrefix(e,r,s){const n=v.of(r.input),i=L(r.traits??{});if(i.endpoint){let a=i.endpoint?.[0];if(typeof a=="string"){const u=[...n.structIterator()].filter(([,o])=>o.getMergedTraits().hostLabel);for(const[o]of u){const l=s[o];if(typeof l!="string")throw new Error(`@smithy/core/schema - ${o} in input must be a string as hostLabel.`);a=a.replace(`{${o}}`,l)}e.hostname=a+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await gt(async()=>{const{EventStreamSerde:r}=await import("./index-BoNKy6Ic.js");return{EventStreamSerde:r}},__vite__mapDeps([0,1]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,s,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class cn extends Ct{async serializeRequest(e,r,s){const n=this.serializer,i={},a={},u=await s.endpoint(),o=v.of(e?.input),l=o.getSchema();let p;const c=new I({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:i,headers:a,body:void 0});u&&(this.updateServiceEndpoint(c,u),this.setHostPrefix(c,e,r));const d={...r};if(r){const h=o.getEventStreamMember();if(h){if(d[h]){const m={};for(const[g,f]of o.structIterator())g!==h&&d[g]&&(n.write(f,d[g]),m[g]=n.flush());p=await this.serializeEventStream({eventStream:d[h],requestSchema:o,initialRequest:m})}}else n.write(l,d),p=n.flush()}return c.headers=a,c.query=i,c.body=p,c.method="POST",c}async deserializeResponse(e,r,s){const n=this.deserializer,i=v.of(e.output),a={};if(s.statusCode>=300){const o=await Te(s.body,r);throw o.byteLength>0&&Object.assign(a,await n.read(15,o)),await this.handleError(e,r,s,a,this.deserializeMetadata(s)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const o in s.headers){const l=s.headers[o];delete s.headers[o],s.headers[o.toLowerCase()]=l}const u=i.getEventStreamMember();if(u)a[u]=await this.deserializeEventStream({response:s,responseSchema:i,initialResponseContainer:a});else{const o=await Te(s.body,r);o.byteLength>0&&Object.assign(a,await n.read(i,o))}return a.$metadata=this.deserializeMetadata(s),a}}function un(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();const{httpLabel:r,httpPrefixHeaders:s,httpHeader:n,httpQuery:i}=t.getMergedTraits();return(e.httpBindings?typeof s=="string"||n?6:i||r?5:void 0:void 0)??e.timestampFormat.default}const se="***SensitiveInformation***";function de(t,e){if(e==null)return e;const r=v.of(t);if(r.getMergedTraits().sensitive)return se;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return se}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return se}else if(r.isStructSchema()&&typeof e=="object"){const s=e,n={};for(const[i,a]of r.structIterator())s[i]!=null&&(n[i]=de(a,s[i]));return n}return e}class It{middlewareStack=J();schema;static classBuilder(){return new Mt}resolveMiddlewareWithContext(e,r,s,{middlewareFn:n,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:o,smithyContext:l,additionalContext:p,CommandCtor:c}){for(const f of n.bind(this)(c,e,r,s))this.middlewareStack.use(f);const d=e.concat(this.middlewareStack),{logger:h}=r,m={logger:h,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:o,[ue]:{commandInstance:this,...l},...p},{requestHandler:g}=r;return d.resolve(f=>g.handle(f.request,s||{}),m)}}class Mt{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,s={}){return this._smithyContext={service:e,operation:r,...s},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=s=>s,r=s=>s){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let r;return r=class extends It{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[s]){super(),this.input=s??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(s,n,i){const a=e._operationSchema,u=a?.[4]??a?.input,o=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(s,n,i,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?de.bind(null,u):l=>l),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?de.bind(null,o):l=>l),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}class H extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const r=e;return H.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;const r=e;return this===H?H.isInstance(e):H.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}}const dn=(t,e={})=>{Object.entries(e).filter(([,s])=>s!==void 0).forEach(([s,n])=>{(t[s]==null||t[s]==="")&&(t[s]=n)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},ln=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Ot=t=>{const e=[];for(const r in X){const s=X[r];t[s]!==void 0&&e.push({algorithmId:()=>s,checksumConstructor:()=>t[s]})}return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},Pt=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},$t=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Nt=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},hn=t=>Object.assign(Ot(t),$t(t)),fn=t=>Object.assign(Pt(t),Nt(t));class Dt{trace(){}debug(){}info(){}warn(){}error(){}}const kt=(t,e)=>{if(!e||e.length===0)return t;const r=[];for(const s of e)for(const n of t)n.schemeId.split("#")[1]===s&&r.push(n);for(const s of t)r.find(({schemeId:n})=>n===s.schemeId)||r.push(s);return r};function _t(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const Lt=(t,e)=>(r,s)=>async n=>{const i=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,s,n.input)),a=t.authSchemePreference?await t.authSchemePreference():[],u=kt(i,a),o=_t(t.httpAuthSchemes),l=j(s),p=[];for(const c of u){const d=o.get(c.schemeId);if(!d){p.push(`HttpAuthScheme \`${c.schemeId}\` was not enabled for this service.`);continue}const h=d.identityProvider(await e.identityProviderConfigProvider(t));if(!h){p.push(`HttpAuthScheme \`${c.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:m={},signingProperties:g={}}=c.propertiesExtractor?.(t,s)||{};c.identityProperties=Object.assign(c.identityProperties||{},m),c.signingProperties=Object.assign(c.signingProperties||{},g),l.selectedHttpAuthScheme={httpAuthOption:c,identity:await h(c.identityProperties),signer:d.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(p.join(`
|
|
4
4
|
`));return r(n)},Ht={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},pn=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:s=>{s.addRelativeTo(Lt(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Ht)}}),Ut={name:"serializerMiddleware"},zt=t=>e=>{throw e},Bt=(t,e)=>{},Ft=t=>(e,r)=>async s=>{if(!I.isInstance(s.request))return e(s);const i=j(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:u,signer:o}=i,l=await e({...s,request:await o.sign(s.request,u,a)}).catch((o.errorHandler||zt)(a));return(o.successHandler||Bt)(l.response,a),l},jt={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},mn=t=>({applyToStack:e=>{e.addRelativeTo(Ft(),jt)}});function qt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}class gn{authSchemes=new Map;constructor(e){for(const[r,s]of Object.entries(e))s!==void 0&&this.authSchemes.set(r,s)}getIdentityProvider(e){return this.authSchemes.get(e)}}class yn{async sign(e,r,s){return e}}const Wt=t=>function(r){return Vt(r)&&r.expiration.getTime()-Date.now()<t},Gt=3e5,wn=Wt(Gt),Vt=t=>t.expiration!==void 0,Sn=(t,e,r)=>{if(t===void 0)return;const s=typeof t!="function"?async()=>Promise.resolve(t):t;let n,i,a,u=!1;const o=async l=>{i||(i=s(l));try{n=await i,a=!0,u=!1}finally{i=void 0}return n};return e===void 0?async l=>((!a||l?.forceRefresh)&&(n=await o(l)),n):async l=>((!a||l?.forceRefresh)&&(n=await o(l)),u?n:r(n)?(e(n)&&await o(l),n):(u=!0,n))};function bn(t){return t}const Kt=t=>e=>async r=>{if(!I.isInstance(r.request))return e(r);const{request:s}=r,{handlerProtocol:n=""}=t.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let i=s.hostname;s.port!=null&&(i+=`:${s.port}`),s.headers.host=i}return e(r)},Xt={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Rn=t=>({applyToStack:e=>{e.add(Kt(t),Xt)}}),Jt=()=>(t,e)=>async r=>{try{const s=await t(r),{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:u={}}=e,{overrideInputFilterSensitiveLog:o,overrideOutputFilterSensitiveLog:l}=u,p=o??e.inputFilterSensitiveLog,c=l??e.outputFilterSensitiveLog,{$metadata:d,...h}=s.output;return a?.info?.({clientName:n,commandName:i,input:p(r.input),output:c(h),metadata:d}),s}catch(s){const{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:u={}}=e,{overrideInputFilterSensitiveLog:o}=u,l=o??e.inputFilterSensitiveLog;throw a?.error?.({clientName:n,commandName:i,input:l(r.input),error:s,metadata:s.$metadata}),s}},Qt={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},En=t=>({applyToStack:e=>{e.add(Jt(),Qt)}}),Yt={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Zt=()=>t=>async e=>t(e),vn=t=>({applyToStack:e=>{e.add(Zt(),Yt)}});class Tn{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){const s=this.hash(e);if(s===!1)return r();if(!this.data.has(s)){if(this.data.size>this.capacity+10){const n=this.data.keys();let i=0;for(;;){const{value:a,done:u}=n.next();if(this.data.delete(a),u||++i>10)break}}this.data.set(s,r())}return this.data.get(s)}size(){return this.data.size}hash(e){let r="";const{parameters:s}=this;if(s.length===0)return!1;for(const n of s){const i=String(e[n]??"");if(i.includes("|;"))return!1;r+=i+"|;"}return r}}const er=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Fe=t=>er.test(t)||t.startsWith("[")&&t.endsWith("]"),tr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Q=(t,e=!1)=>{if(!e)return tr.test(t);const r=t.split(".");for(const s of r)if(!Q(s))return!1;return!0},le={},B="endpoints";function C(t){return typeof t!="object"||t==null?t:"ref"in t?`$${C(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(C).join(", ")})`:JSON.stringify(t,null,2)}class R extends Error{constructor(e){super(e),this.name="EndpointError"}}const rr=(t,e)=>t===e,sr=t=>{const e=t.split("."),r=[];for(const s of e){const n=s.indexOf("[");if(n!==-1){if(s.indexOf("]")!==s.length-1)throw new R(`Path: '${t}' does not end with ']'`);const i=s.slice(n+1,-1);if(Number.isNaN(parseInt(i)))throw new R(`Invalid array index: '${i}' in path: '${t}'`);n!==0&&r.push(s.slice(0,n)),r.push(i)}else r.push(s)}return r},je=(t,e)=>sr(e).reduce((r,s)=>{if(typeof r!="object")throw new R(`Index '${s}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(s)]:r[s]},t),nr=t=>t!=null,ir=t=>!t,ne={[U.HTTP]:80,[U.HTTPS]:443},ar=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:h,protocol:m="",path:g="",query:f={}}=t,y=new URL(`${m}//${d}${h?`:${h}`:""}${g}`);return y.search=Object.entries(f).map(([w,T])=>`${w}=${T}`).join("&"),y}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:s,hostname:n,pathname:i,protocol:a,search:u}=e;if(u)return null;const o=a.slice(0,-1);if(!Object.values(U).includes(o))return null;const l=Fe(n),p=r.includes(`${s}:${ne[o]}`)||typeof t=="string"&&t.includes(`${s}:${ne[o]}`),c=`${s}${p?`:${ne[o]}`:""}`;return{scheme:o,authority:c,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:l}},or=(t,e)=>t===e,cr=(t,e,r,s)=>e>=r||t.length<r?null:s?t.substring(t.length-r,t.length-e):t.substring(e,r),ur=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),dr={booleanEquals:rr,getAttr:je,isSet:nr,isValidHostLabel:Q,not:ir,parseURL:ar,stringEquals:or,substring:cr,uriEncode:ur},qe=(t,e)=>{const r=[],s={...e.endpointParams,...e.referenceRecord};let n=0;for(;n<t.length;){const i=t.indexOf("{",n);if(i===-1){r.push(t.slice(n));break}r.push(t.slice(n,i));const a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),n=a+2);const u=t.substring(i+1,a);if(u.includes("#")){const[o,l]=u.split("#");r.push(je(s[o],l))}else r.push(s[u]);n=a+1}return r.join("")},lr=({ref:t},e)=>({...e.endpointParams,...e.referenceRecord})[t],Y=(t,e,r)=>{if(typeof t=="string")return qe(t,r);if(t.fn)return Ge.callFunction(t,r);if(t.ref)return lr(t,r);throw new R(`'${e}': ${String(t)} is not a string, function or reference.`)},We=({fn:t,argv:e},r)=>{const s=e.map(i=>["boolean","number"].includes(typeof i)?i:Ge.evaluateExpression(i,"arg",r)),n=t.split(".");return n[0]in le&&n[1]!=null?le[n[0]][n[1]](...s):dr[t](...s)},Ge={evaluateExpression:Y,callFunction:We},hr=({assign:t,...e},r)=>{if(t&&t in r.referenceRecord)throw new R(`'${t}' is already defined in Reference Record.`);const s=We(e,r);return r.logger?.debug?.(`${B} evaluateCondition: ${C(e)} = ${C(s)}`),{result:s===""?!0:!!s,...t!=null&&{toAssign:{name:t,value:s}}}},we=(t=[],e)=>{const r={};for(const s of t){const{result:n,toAssign:i}=hr(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!n)return{result:n};i&&(r[i.name]=i.value,e.logger?.debug?.(`${B} assign: ${i.name} := ${C(i.value)}`))}return{result:!0,referenceRecord:r}},fr=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:n.map(i=>{const a=Y(i,"Header value entry",e);if(typeof a!="string")throw new R(`Header '${s}' value '${a}' is not a string`);return a})}),{}),Ve=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:Xe.getEndpointProperty(n,e)}),{}),Ke=(t,e)=>{if(Array.isArray(t))return t.map(r=>Ke(r,e));switch(typeof t){case"string":return qe(t,e);case"object":if(t===null)throw new R(`Unexpected endpoint property: ${t}`);return Xe.getEndpointProperties(t,e);case"boolean":return t;default:throw new R(`Unexpected endpoint property type: ${typeof t}`)}},Xe={getEndpointProperty:Ke,getEndpointProperties:Ve},pr=(t,e)=>{const r=Y(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(s){throw console.error(`Failed to construct URL with ${r}`,s),s}throw new R(`Endpoint URL must be a string, got ${typeof r}`)},mr=(t,e)=>{const{conditions:r,endpoint:s}=t,{result:n,referenceRecord:i}=we(r,e);if(!n)return;const a={...e,referenceRecord:{...e.referenceRecord,...i}},{url:u,properties:o,headers:l}=s;return e.logger?.debug?.(`${B} Resolving endpoint from template: ${C(s)}`),{...l!=null&&{headers:fr(l,a)},...o!=null&&{properties:Ve(o,a)},url:pr(u,a)}},gr=(t,e)=>{const{conditions:r,error:s}=t,{result:n,referenceRecord:i}=we(r,e);if(n)throw new R(Y(s,"Error",{...e,referenceRecord:{...e.referenceRecord,...i}}))},Je=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const s=mr(r,e);if(s)return s}else if(r.type==="error")gr(r,e);else if(r.type==="tree"){const s=Qe.evaluateTreeRule(r,e);if(s)return s}else throw new R(`Unknown endpoint rule: ${r}`);throw new R("Rules evaluation failed")},yr=(t,e)=>{const{conditions:r,rules:s}=t,{result:n,referenceRecord:i}=we(r,e);if(n)return Qe.evaluateRules(s,{...e,referenceRecord:{...e.referenceRecord,...i}})},Qe={evaluateRules:Je,evaluateTreeRule:yr},An=(t,e)=>{const{endpointParams:r,logger:s}=e,{parameters:n,rules:i}=t;e.logger?.debug?.(`${B} Initial EndpointParams: ${C(r)}`);const a=Object.entries(n).filter(([,l])=>l.default!=null).map(([l,p])=>[l,p.default]);if(a.length>0)for(const[l,p]of a)r[l]=r[l]??p;const u=Object.entries(n).filter(([,l])=>l.required).map(([l])=>l);for(const l of u)if(r[l]==null)throw new R(`Missing required parameter: '${l}'`);const o=Je(i,{endpointParams:r,logger:s,referenceRecord:{}});return e.logger?.debug?.(`${B} Resolved endpoint: ${C(o)}`),o},Ye=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!Ye(r))return!1;return!0}return!(!Q(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Fe(t))},Ce=":",wr="/",Sr=t=>{const e=t.split(Ce);if(e.length<6)return null;const[r,s,n,i,a,...u]=e;if(r!=="arn"||s===""||n===""||u.join(Ce)==="")return null;const o=u.map(l=>l.split(wr)).flat();return{partition:s,service:n,region:i,accountId:a,resourceId:o}},br=[{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:"EU (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)"}}}],Rr={partitions:br};let Er=Rr;const vr=t=>{const{partitions:e}=Er;for(const s of e){const{regions:n,outputs:i}=s;for(const[a,u]of Object.entries(n))if(a===t)return{...i,...u}}for(const s of e){const{regionRegex:n,outputs:i}=s;if(new RegExp(n).test(t))return{...i}}const r=e.find(s=>s.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},Tr={isVirtualHostableS3Bucket:Ye,parseArn:Sr,partition:vr};le.aws=Tr;function Ar(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[s,n=null]=r.split("=");s=decodeURIComponent(s),n&&(n=decodeURIComponent(n)),s in e?Array.isArray(e[s])?e[s].push(n):e[s]=[e[s],n]:e[s]=n}return e}const he=t=>{if(typeof t=="string")return he(new URL(t));const{hostname:e,pathname:r,port:s,protocol:n,search:i}=t;let a;return i&&(a=Ar(i)),{hostname:e,port:s?parseInt(s):void 0,protocol:n,path:r,query:a}},xr="X-Amz-Algorithm",Cr="X-Amz-Credential",Ze="X-Amz-Date",Ir="X-Amz-SignedHeaders",Mr="X-Amz-Expires",et="X-Amz-Signature",tt="X-Amz-Security-Token",rt="authorization",st=Ze.toLowerCase(),Or="date",Pr=[rt,st,Or],$r=et.toLowerCase(),fe="x-amz-content-sha256",Nr=tt.toLowerCase(),Dr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},kr=/^proxy-/,_r=/^sec-/,ie="AWS4-HMAC-SHA256",Lr="AWS4-HMAC-SHA256-PAYLOAD",Hr="UNSIGNED-PAYLOAD",Ur=50,nt="aws4_request",zr=3600*24*7,q={},ae=[],oe=(t,e,r)=>`${t}/${e}/${r}/${nt}`,Br=async(t,e,r,s,n)=>{const i=await Ie(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${s}:${n}:${O(i)}:${e.sessionToken}`;if(a in q)return q[a];for(ae.push(a);ae.length>Ur;)delete q[ae.shift()];let u=`AWS4${e.secretAccessKey}`;for(const o of[r,s,n,nt])u=await Ie(t,u,o);return q[a]=u},Ie=(t,e,r)=>{const s=new t(e);return s.update(z(r)),s.digest()},Me=({headers:t},e,r)=>{const s={};for(const n of Object.keys(t).sort()){if(t[n]==null)continue;const i=n.toLowerCase();(i in Dr||e?.has(i)||kr.test(i)||_r.test(i))&&(!r||r&&!r.has(i))||(s[i]=t[n].trim().replace(/\s+/g," "))}return s},Fr=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",ce=async({headers:t,body:e},r)=>{for(const s of Object.keys(t))if(s.toLowerCase()===fe)return t[s];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||Fr(e)){const s=new r;return s.update(z(e)),O(await s.digest())}return Hr};class jr{format(e){const r=[];for(const i of Object.keys(e)){const a=K(i);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[i]))}const s=new Uint8Array(r.reduce((i,a)=>i+a.byteLength,0));let n=0;for(const i of r)s.set(i,n),n+=i.byteLength;return s}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,e.value,!1),new Uint8Array(s.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case"string":const u=K(e.value),o=new DataView(new ArrayBuffer(3+u.byteLength));o.setUint8(0,7),o.setUint16(1,u.byteLength,!1);const l=new Uint8Array(o.buffer);return l.set(u,3),l;case"timestamp":const p=new Uint8Array(9);return p[0]=8,p.set(Se.fromNumber(e.value.valueOf()).bytes,1),p;case"uuid":if(!qr.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const c=new Uint8Array(17);return c[0]=9,c.set(mt(e.value.replace(/\-/g,"")),1),c}}}var Oe;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(Oe||(Oe={}));const qr=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Se{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let s=7,n=Math.abs(Math.round(e));s>-1&&n>0;s--,n/=256)r[s]=n;return e<0&&Pe(r),new Se(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&Pe(e),parseInt(O(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function Pe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const Wr=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},Gr=(t,e={})=>{const{headers:r,query:s={}}=I.clone(t);for(const n of Object.keys(r)){const i=n.toLowerCase();(i.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(i)||e.hoistableHeaders?.has(i))&&(s[n]=r[n],delete r[n])}return{...t,headers:r,query:s}},$e=t=>{t=I.clone(t);for(const e of Object.keys(t.headers))Pr.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},Vr=({query:t={}})=>{const e=[],r={};for(const s of Object.keys(t)){if(s.toLowerCase()===$r)continue;const n=W(s);e.push(n);const i=t[s];typeof i=="string"?r[n]=`${n}=${W(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((a,u)=>a.concat([`${n}=${W(u)}`]),[]).sort().join("&"))}return e.sort().map(s=>r[s]).filter(s=>s).join("&")},Kr=t=>Xr(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Xr=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class Jr{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:s,service:n,sha256:i,uriEscapePath:a=!0}){this.service=n,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=$(s),this.credentialProvider=$(r)}createCanonicalRequest(e,r,s){const n=Object.keys(r).sort();return`${e.method}
|
|
5
5
|
${this.getCanonicalPath(e)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-
|
|
2
|
-
import{_ as I}from"./preload-helper-BlTxHScW.js";import{a as O,b as N,t as x,s as D,H as K,p as H,F as j,n as q}from"./normalizeProvider-BrOPyH3l.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let r,n=!0;typeof o=="boolean"?(r=void 0,n=o):o!=null&&typeof o=="object"&&(r=o.logger,n=o.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,A.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}}class l extends A{name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,l.prototype)}}function _(e){return Promise.all(Object.keys(e).reduce((t,o)=>{const r=e[o];return typeof r=="string"?t.push([o,r]):t.push(r().then(n=>[o,n])),t},[])).then(t=>t.reduce((o,[r,n])=>(o[r]=n,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:r}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-C2GOiLkR.js","assets/index-WGtSo5ft.js","assets/normalizeProvider-BrOPyH3l.js","assets/preload-helper-BlTxHScW.js","assets/index-DfUQvyyO.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js","assets/index-VamKv2HZ--hbiLl7B.js","assets/index-ChvoNxcO.js","assets/__vite-browser-external-DJy8wZt7.js","assets/index-xuotMAFm-B-PTrwYx.js","assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js","assets/index-6mKfgpcs-DsgiI2lM.js","assets/inherits_browser-BPb0V7-q-C7Z2MfVc.js","assets/index-DsIu-45t-Bejjlpz4.js","assets/index-DSosZ5sh-Ceejs_jv.js","assets/index-69shuAsh-DF18H7zf.js","assets/index-BJBOx-Z---hbiLl7B.js","assets/index-D5v913EJ-CsbEilVn.js","assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js","assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js","assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js","assets/index-D1jV2j2Y.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/index-DIt05veo.js","assets/inherits_browser-5Fj3Mjxs.js","assets/index-ddRsp7-o.css","assets/loadSts-BBpsBHOE.js","assets/index-BBXzNa7W.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as I}from"./preload-helper-BlTxHScW.js";import{a as O,b as N,t as x,s as D,H as K,p as H,F as j,n as q}from"./normalizeProvider-BrOPyH3l.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let r,n=!0;typeof o=="boolean"?(r=void 0,n=o):o!=null&&typeof o=="object"&&(r=o.logger,n=o.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,A.prototype),r?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,o=!0){return Object.assign(new this(t.message,o),t)}}class l extends A{name="CredentialsProviderError";constructor(t,o=!0){super(t,o),Object.setPrototypeOf(this,l.prototype)}}function _(e){return Promise.all(Object.keys(e).reduce((t,o)=>{const r=e[o];return typeof r=="string"?t.push([o,r]):t.push(r().then(n=>[o,n])),t},[])).then(t=>t.reduce((o,[r,n])=>(o[r]=n,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:r}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-C2GOiLkR.js");return{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])),n=c=>e.clientConfig?.[c]??e.parentClientConfig?.[c]??t?.callerClientConfig?.[c],{Credentials:{AccessKeyId:s=L(e.logger),Expiration:i,SecretKey:d=M(e.logger),SessionToken:u}=$(e.logger)}=await(e.client??new r(Object.assign({},e.clientConfig??{},{region:n("region"),profile:n("profile"),userAgentAppId:n("userAgentAppId")}))).send(new o({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await _(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:s,secretAccessKey:d,sessionToken:u,expiration:i}}}function L(e){throw new l("Response from Amazon Cognito contained no access key ID",{logger:e})}function $(e){throw new l("Response from Amazon Cognito contained no credentials",{logger:e})}function M(e){throw new l("Response from Amazon Cognito contained no secret key",{logger:e})}const b="IdentityIds";class B{dbName;constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",o=>{const r=o.get(t);return new Promise(n=>{r.onerror=()=>n(null),r.onsuccess=()=>n(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",o=>{const r=o.delete(t);return new Promise((n,s)=>{r.onerror=()=>s(r.error),r.onsuccess=()=>n()})})}setItem(t,o){return this.withObjectStore("readwrite",r=>{const n=r.put({id:t,value:o});return new Promise((s,i)=>{n.onerror=()=>i(n.error),n.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((o,r)=>{t.onsuccess=()=>{o(t.result)},t.onerror=()=>{r(t.error)},t.onblocked=()=>{r(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const n=t.result;n.onerror=()=>{r(new Error("Failed to create object store"))},n.createObjectStore(b,{keyPath:"id"})}})}withObjectStore(t,o){return this.getDb().then(r=>{const n=r.transaction(b,t);return n.oncomplete=()=>r.close(),new Promise((s,i)=>{n.onerror=()=>i(n.error),s(o(n.objectStore(b)))}).catch(s=>{throw r.close(),s})})}}class W{store;constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,o){this.store[t]=o}}const U=new W;function F(){return typeof self=="object"&&self.indexedDB?new B:typeof window=="object"&&window.localStorage?window.localStorage:U}function z({accountId:e,cache:t=F(),client:o,clientConfig:r,customRoleArn:n,identityPoolId:s,logins:i,userIdentifier:d=!i||Object.keys(i).length===0?"ANONYMOUS":void 0,logger:u,parentClientConfig:c}){u?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const f=d?`aws:cognito-identity-credentials:${s}:${d}`:void 0;let a=async w=>{const{GetIdCommand:m,CognitoIdentityClient:y}=await I(async()=>{const{GetIdCommand:g,CognitoIdentityClient:P}=await import("./loadCognitoIdentity-C2GOiLkR.js");return{GetIdCommand:g,CognitoIdentityClient:P}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])),h=g=>r?.[g]??c?.[g]??w?.callerClientConfig?.[g],C=o??new y(Object.assign({},r??{},{region:h("region"),profile:h("profile"),userAgentAppId:h("userAgentAppId")}));let p=f&&await t.getItem(f);if(!p){const{IdentityId:g=G(u)}=await C.send(new m({AccountId:e,IdentityPoolId:s,Logins:i?await _(i):void 0}));p=g,f&&Promise.resolve(t.setItem(f,p)).catch(()=>{})}return a=k({client:C,customRoleArn:n,logins:i,identityId:p}),a(w)};return w=>a(w).catch(async m=>{throw f&&Promise.resolve(t.removeItem(f)).catch(()=>{}),m})}function G(e){throw new l("Response from Amazon Cognito contained no identity ID",{logger:e})}const ie=e=>k({...e}),ae=e=>z({...e}),V="169.254.170.2",J="169.254.170.23",Y="[fd00:ec2::23]",Q=(e,t)=>{if(e.protocol!=="https:"&&!(e.hostname===V||e.hostname===J||e.hostname===Y)){if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const o=e.hostname.split("."),r=n=>{const s=parseInt(n,10);return 0<=s&&s<=255};if(o[0]==="127"&&r(o[1])&&r(o[2])&&r(o[3])&&o.length===4)return}throw new l(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
3
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
4
|
- ECS container host 169.254.170.2
|
|
5
5
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}},T=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),R="The stream has already been transformed.",X=e=>{if(!E(e)&&!T(e)){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let t=!1;const o=async()=>{if(t)throw new Error(R);return t=!0,await D(e)},r=n=>{if(typeof n.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
6
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async n=>{const s=await o();if(n==="base64")return O(s);if(n==="hex")return N(s);if(n===void 0||n==="utf8"||n==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(R);if(t=!0,E(e))return r(e);if(T(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},E=e=>typeof Blob=="function"&&e instanceof Blob;function Z(e){return new K({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[o,r])=>(t[o]=r,t),{}),fragment:e.hash})}async function ee(e,t){const r=await X(e.body).transformToString();if(e.statusCode===200){const n=JSON.parse(r);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new l("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:H(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(r)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(s=>setTimeout(s,o))}return await e()},ce=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const o=e.credentialsFullUri;if(o)t=o;else throw new l("No HTTP credential provider host provided.",{logger:e.logger});const r=new URL(t);Q(r,e.logger);const n=new j;return te(async()=>{const s=Z(r);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await n.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},ne="us-east-1",le=(e,t,o)=>{let r;return async(n={})=>{const{callerClientConfig:s}=n,i=e.clientConfig?.profile??s?.profile,d=e.logger??s?.logger;d?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const u={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(u?.SerialNumber){if(!e.mfaCodeProvider)throw new l("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:d});u.TokenCode=await e.mfaCodeProvider(u?.SerialNumber)}const{AssumeRoleCommand:c,STSClient:f}=await I(async()=>{const{AssumeRoleCommand:w,STSClient:m}=await import("./loadSts-
|
|
6
|
+
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async n=>{const s=await o();if(n==="base64")return O(s);if(n==="hex")return N(s);if(n===void 0||n==="utf8"||n==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(R);if(t=!0,E(e))return r(e);if(T(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},E=e=>typeof Blob=="function"&&e instanceof Blob;function Z(e){return new K({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[o,r])=>(t[o]=r,t),{}),fragment:e.hash})}async function ee(e,t){const r=await X(e.body).transformToString();if(e.statusCode===200){const n=JSON.parse(r);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new l("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:H(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(r)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(s=>setTimeout(s,o))}return await e()},ce=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t;const o=e.credentialsFullUri;if(o)t=o;else throw new l("No HTTP credential provider host provided.",{logger:e.logger});const r=new URL(t);Q(r,e.logger);const n=new j;return te(async()=>{const s=Z(r);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await n.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},ne="us-east-1",le=(e,t,o)=>{let r;return async(n={})=>{const{callerClientConfig:s}=n,i=e.clientConfig?.profile??s?.profile,d=e.logger??s?.logger;d?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");const u={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(u?.SerialNumber){if(!e.mfaCodeProvider)throw new l("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:d});u.TokenCode=await e.mfaCodeProvider(u?.SerialNumber)}const{AssumeRoleCommand:c,STSClient:f}=await I(async()=>{const{AssumeRoleCommand:w,STSClient:m}=await import("./loadSts-BBpsBHOE.js").then(y=>y.l);return{AssumeRoleCommand:w,STSClient:m}},__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]));if(!r){const w=typeof t=="function"?t():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void s?.credentials,s?.credentialDefaultProvider?.(),w];let y="STS client default credentials";if(m[0])y="options.masterCredentials";else if(m[1])y="options.clientConfig.credentials";else{if(m[2])throw y="caller client's credentials",new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");m[3]?y="caller client's credentialDefaultProvider":m[4]&&(y="AWS SDK default credentials")}const h=[e.clientConfig?.region,s?.region,await o?.({profile:i}),ne];let C="default partition's default region";h[0]?C="options.clientConfig.region":h[1]?C="caller client's region":h[2]&&(C="file or env region");const p=[v(e.clientConfig?.requestHandler),v(s?.requestHandler)];let g="STS default requestHandler";p[0]?g="options.clientConfig.requestHandler":p[1]&&(g="caller client's requestHandler"),d?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${C}=${await q(S(h))()}, ${y}, ${g}.`),r=new f({userAgentAppId:s?.userAgentAppId,...e.clientConfig,credentials:S(m),logger:d,profile:i,region:S(h),requestHandler:S(p)})}if(e.clientPlugins)for(const w of e.clientPlugins)r.middlewareStack.use(w);const{Credentials:a}=await r.send(new c(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new l(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`,{logger:d});return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,credentialScope:a.CredentialScope}}},v=e=>e?.metadata?.handlerProtocol==="h2"?void 0:e,S=e=>{for(const t of e)if(t!==void 0)return t},re=e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:s,policyArns:i,policy:d,durationSeconds:u}=e;let{roleAssumerWithWebIdentity:c}=e;if(!c){const{getDefaultRoleAssumerWithWebIdentity:f}=await I(async()=>{const{getDefaultRoleAssumerWithWebIdentity:a}=await import("./index-BBXzNa7W.js");return{getDefaultRoleAssumerWithWebIdentity:a}},__vite__mapDeps([28,27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]));c=f({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:i,Policy:d,DurationSeconds:u})},de=e=>re({...e});export{ie as fromCognitoIdentity,ae as fromCognitoIdentityPool,ce as fromHttp,le as fromTemporaryCredentials,de as fromWebToken};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as V,m as Le,d as Ge,i as qe,T as y,b as J,N as b,c as R,e as Be,L as ue,f as pe,v as Ve,R as Je,h as Ke,n as le,j as Qe,E as We,r as Xe,k as Ye,l as Ze,p as et,o as tt,q as nt,s as st,t as rt,D as it,u as ot,w as at,x as ct,y as dt,z as ut,A as pt,B as lt,F as gt,G as mt,H as ft,I as ht,J as yt,K as Et,a as St,M as Ct,O as It,P as xt,Q as _t,U as wt,V as At,W as Pt,X as Rt,Y as bt,Z as vt,_ as kt,$ as Tt,a0 as Dt,a1 as Ot,C as ge,g as me}from"./index-fkBiak1w.js";import{n as N,c as Nt,H as fe,t as he,d as ye,e as Mt,g as Ut,h as $t,a as Ee,i as Ft,f as zt,s as jt,F as Ht}from"./normalizeProvider-BrOPyH3l.js";import"./preload-helper-BlTxHScW.js";import"./index-Doo87e5X.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import"./index-VamKv2HZ--hbiLl7B.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index-D5v913EJ-CsbEilVn.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import"./index-VamKv2HZ-CaraMydH-D75zmpPt.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";const Lt=void 0;function Gt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function qt(t){const e=N(t.userAgentAppId??Lt),{customUserAgent:n}=t;return Object.assign(t,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const s=await e();if(!Gt(s)){const r=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof s!="string"?r?.warn("userAgentAppId must be a string or undefined."):s.length>50&&r?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}function Bt(t,e,n){return t.$source||(t.$source={}),t.$source[e]=n,t}function x(t,e,n){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=n}const K=t=>Nt.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,Se=t=>new Date(Date.now()+t),Vt=(t,e)=>Math.abs(Se(e).getTime()-t)>=3e5,Q=(t,e)=>{const n=Date.parse(t);return Vt(n,e)?n-Date.now():e},M=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},Jt=async t=>{const e=M("context",t.context),n=M("config",t.config),s=e.endpointV2?.properties?.authSchemes?.[0],o=await M("signer",n.signer)(s),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:n,signer:o,signingRegion:i,signingRegionSet:a,signingName:c}};class Kt{async sign(e,n,s){if(!fe.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const r=await Jt(s),{config:o,signer:i}=r;let{signingRegion:a,signingName:c}=r;const d=s.context;if(d?.authSchemes?.length??!1){const[l,m]=d.authSchemes;l?.name==="sigv4a"&&m?.name==="sigv4"&&(a=m?.signingRegion??a,c=m?.signingName??c)}return await i.sign(e,{signingDate:Se(o.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return n=>{const s=n.ServerTime??K(n.$response);if(s){const r=M("config",e.config),o=r.systemClockOffset;r.systemClockOffset=Q(s,r.systemClockOffset),r.systemClockOffset!==o&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(e,n){const s=K(e);if(s){const r=M("config",n.config);r.systemClockOffset=Q(s,r.systemClockOffset)}}}const Qt=t=>{let e=t.credentials,n=!!t.credentials,s;Object.defineProperty(t,"credentials",{set(d){d&&d!==e&&d!==s&&(n=!0),e=d;const p=Wt(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),l=Xt(t,p);n&&!l.attributed?(s=async m=>l(m).then(E=>Bt(E,"CREDENTIALS_CODE","e")),s.memoized=l.memoized,s.configBound=l.configBound,s.attributed=!0):s=l},get(){return s},enumerable:!0,configurable:!0}),t.credentials=e;const{signingEscapePath:r=!0,systemClockOffset:o=t.systemClockOffset||0,sha256:i}=t;let a;return t.signer?a=N(t.signer):t.regionInfoProvider?a=()=>N(t.region)().then(async d=>[await t.regionInfoProvider(d,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},d]).then(([d,p])=>{const{signingRegion:l,signingService:m}=d;t.signingRegion=t.signingRegion||l||p,t.signingName=t.signingName||m||t.serviceId;const E={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},v=t.signerConstructor||V;return new v(E)}):a=async d=>{d=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await N(t.region)(),properties:{}},d);const p=d.signingRegion,l=d.signingName;t.signingRegion=t.signingRegion||p,t.signingName=t.signingName||l||t.serviceId;const m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},E=t.signerConstructor||V;return new E(m)},Object.assign(t,{systemClockOffset:o,signingEscapePath:r,signer:a})};function Wt(t,{credentials:e,credentialDefaultProvider:n}){let s;return e?e?.memoized?s=e:s=Le(e,qe,Ge):n?s=N(n(Object.assign({},t,{parentClientConfig:t}))):s=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},s.memoized=!0,s}function Xt(t,e){if(e.configBound)return e;const n=async s=>e({...s,callerClientConfig:t});return n.memoized=e.memoized,n.configBound=!0,n}class Yt{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,n){const s=n.getMemberSchemas(),r=Object.values(s).find(o=>!!o.getMergedTraits().httpPayload);if(r){const o=r.getMergedTraits().mediaType;return o||(r.isStringSchema()?"text/plain":r.isBlobSchema()?"application/octet-stream":e)}else if(!n.isUnitSchema()&&Object.values(s).find(i=>{const{httpQuery:a,httpQueryParams:c,httpHeader:d,httpLabel:p,httpPrefixHeaders:l}=i.getMergedTraits();return!a&&!c&&!d&&!p&&l===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,n,s,r,o,i){let a=n,c=e;e.includes("#")&&([a,c]=e.split("#"));const d={$metadata:o,$fault:s.statusCode<500?"client":"server"},p=y.for(a);try{return{errorSchema:i?.(p,c)??p.getSchema(e),errorMetadata:d}}catch{r.message=r.message??r.Message??"UnknownError";const m=y.for("smithy.ts.sdk.synthetic."+a),E=m.getBaseException();if(E){const v=m.getErrorCtor(E)??Error;throw this.decorateServiceException(Object.assign(new v({name:c}),d),r)}throw this.decorateServiceException(Object.assign(new Error(c),d),r)}}decorateServiceException(e,n={}){if(this.queryCompat){const s=e.Message??n.Message,r=J(e,n);return s&&(r.Message=s,r.message=s),r}return J(e,n)}setQueryCompatError(e,n){const s=n.headers?.["x-amzn-query-error"];if(e!==void 0&&s!=null){const[r,o]=s.split(";"),i=Object.entries(e),a={Code:r,Type:o};Object.assign(e,a);for(const[c,d]of i)a[c]=d;delete a.__type,e.Error=a}}queryCompatOutput(e,n){e.Error&&(n.Error=e.Error),e.Type&&(n.Type=e.Type),e.Code&&(n.Code=e.Code)}}class H{serdeContext;setSerdeContext(e){this.serdeContext=e}}function*Zt(t,e){if(t.isUnitSchema())return;const n=t.getSchema();for(let s=0;s<n[4].length;++s){const r=n[4][s],o=new b([n[5][s],0],r);!(r in e)&&!o.isIdempotencyToken()||(yield[r,o])}}function*en(t,e,n){if(t.isUnitSchema())return;const s=t.getSchema();let r=Object.keys(e).length;for(let o=0;o<s[4].length&&r!==0;++o){const i=s[4][o],a=new b([s[5][o],0],i);let c=i;n&&(c=a.getMergedTraits()[n]??i),c in e&&(yield[i,a],r-=1)}}function tn(t,e,n){if(n?.source){const s=n.source;if(typeof e=="number"&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER||s!==String(e)))return s.includes(".")?new R(s,"bigDecimal"):BigInt(s)}return e}const nn=(t,e)=>Be(t,e).then(n=>(e?.utf8Encoder??he)(n)),sn=(t,e)=>nn(t,e).then(n=>{if(n.length)try{return JSON.parse(n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:n}),s}return{}}),rn=(t,e)=>{const n=(o,i)=>Object.keys(o).find(a=>a.toLowerCase()===i.toLowerCase()),s=o=>{let i=o;return typeof i=="number"&&(i=i.toString()),i.indexOf(",")>=0&&(i=i.split(",")[0]),i.indexOf(":")>=0&&(i=i.split(":")[0]),i.indexOf("#")>=0&&(i=i.split("#")[1]),i},r=n(t.headers,"x-amzn-errortype");if(r!==void 0)return s(t.headers[r]);if(e&&typeof e=="object"){const o=n(e,"code");if(o&&e[o]!==void 0)return s(e[o]);if(e.__type!==void 0)return s(e.__type)}};class on extends H{settings;constructor(e){super(),this.settings=e}async read(e,n){return this._read(e,typeof n=="string"?JSON.parse(n,tn):await sn(n,this.serdeContext))}readObject(e,n){return this._read(e,n)}_read(e,n){const s=n!==null&&typeof n=="object",r=b.of(e);if(r.isListSchema()&&Array.isArray(n)){const i=r.getValueSchema(),a=[],c=!!r.getMergedTraits().sparse;for(const d of n)(c||d!=null)&&a.push(this._read(i,d));return a}else if(r.isMapSchema()&&s){const i=r.getValueSchema(),a={},c=!!r.getMergedTraits().sparse;for(const[d,p]of Object.entries(n))(c||p!=null)&&(a[d]=this._read(i,p));return a}else if(r.isStructSchema()&&s){const i={};for(const[a,c]of en(r,n,this.settings.jsonName?"jsonName":!1)){const d=this.settings.jsonName?c.getMergedTraits().jsonName??a:a,p=this._read(c,n[d]);p!=null&&(i[a]=p)}return i}if(r.isBlobSchema()&&typeof n=="string")return ye(n);const o=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof n=="string"&&o&&(o==="application/json"||o.endsWith("+json")))return ue.from(n);if(r.isTimestampSchema()&&n!=null)switch(pe(r,this.settings)){case 5:return $t(n);case 6:return Ut(n);case 7:return Mt(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isBigIntegerSchema()&&(typeof n=="number"||typeof n=="string"))return BigInt(n);if(r.isBigDecimalSchema()&&n!=null){if(n instanceof R)return n;const i=n;return i.type==="bigDecimal"&&"string"in i?new R(i.string,i.type):new R(String(n),"bigDecimal")}if(r.isNumericSchema()&&typeof n=="string")switch(n){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(r.isDocumentSchema())if(s){const i=Array.isArray(n)?[]:{};for(const[a,c]of Object.entries(n))c instanceof R?i[a]=c:i[a]=this._read(r,c);return i}else return structuredClone(n);return n}}const W="Ν";class an{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,n)=>{if(n instanceof R){const s=`${W+"nv"+this.counter++}_`+n.string;return this.values.set(`"${s}"`,n.string),s}if(typeof n=="bigint"){const s=n.toString(),r=`${W+"b"+this.counter++}_`+s;return this.values.set(`"${r}"`,s),r}return n}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(const[n,s]of this.values)e=e.replace(n,s);return e}}class cn extends H{settings;buffer;rootSchema;constructor(e){super(),this.settings=e}write(e,n){this.rootSchema=b.of(e),this.buffer=this._write(this.rootSchema,n)}writeDiscriminatedDocument(e,n){this.write(e,n),typeof this.buffer=="object"&&(this.buffer.__type=b.of(e).getName(!0))}flush(){const{rootSchema:e}=this;if(this.rootSchema=void 0,e?.isStructSchema()||e?.isDocumentSchema()){const n=new an;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}_write(e,n,s){const r=n!==null&&typeof n=="object",o=b.of(e);if(o.isListSchema()&&Array.isArray(n)){const i=o.getValueSchema(),a=[],c=!!o.getMergedTraits().sparse;for(const d of n)(c||d!=null)&&a.push(this._write(i,d));return a}else if(o.isMapSchema()&&r){const i=o.getValueSchema(),a={},c=!!o.getMergedTraits().sparse;for(const[d,p]of Object.entries(n))(c||p!=null)&&(a[d]=this._write(i,p));return a}else if(o.isStructSchema()&&r){const i={};for(const[a,c]of Zt(o,n)){const d=this._write(c,n[a],o);if(d!==void 0){const p=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;i[p]=d}}return i}if(!(n===null&&s?.isStructSchema())){if(o.isBlobSchema()&&(n instanceof Uint8Array||typeof n=="string")||o.isDocumentSchema()&&n instanceof Uint8Array)return o===this.rootSchema?n:(this.serdeContext?.base64Encoder??Ee)(n);if((o.isTimestampSchema()||o.isDocumentSchema())&&n instanceof Date)switch(pe(o,this.settings)){case 5:return n.toISOString().replace(".000Z","Z");case 6:return Ft(n);case 7:return n.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",n),n.getTime()/1e3}if(o.isNumericSchema()&&typeof n=="number"&&(Math.abs(n)===1/0||isNaN(n)))return String(n);if(o.isStringSchema()){if(typeof n>"u"&&o.isIdempotencyToken())return Ve();const i=o.getMergedTraits().mediaType;if(n!=null&&i&&(i==="application/json"||i.endsWith("+json")))return ue.from(n)}if(o.isDocumentSchema())if(r){const i=Array.isArray(n)?[]:{};for(const[a,c]of Object.entries(n))c instanceof R?i[a]=c:i[a]=this._write(o,c);return i}else return structuredClone(n);return n}}}class dn extends H{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new cn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new on(this.settings);return e.setSerdeContext(this.serdeContext),e}}class un extends Je{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s}){super({defaultNamespace:e}),this.serviceTarget=n,this.codec=new dn({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Yt(this.awsQueryCompatible)}async serializeRequest(e,n,s){const r=await super.serializeRequest(e,n,s);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),(Ke(e.input)==="unit"||!r.body)&&(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(e,n,s,r,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,s);const i=rn(s,r)??"Unknown",{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,r,o),d=b.of(a),p=r.message??r.Message??"Unknown",l=y.for(a[1]).getErrorCtor(a)??Error,m=new l(p),E={};for(const[v,B]of d.structIterator()){const He=B.getMergedTraits().jsonName??v;E[v]=this.codec.createDeserializer().readObject(B,r[He])}throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,E),this.mixin.decorateServiceException(Object.assign(m,c,{$fault:d.getMergedTraits().error,message:p},E),r)}}class pn extends un{constructor({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s}){super({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const ln=/\d{12}\.ddb/;async function gn(t,e,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&x(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){const o=await e.retryStrategy();typeof o.acquireInitialRetryToken=="function"?o.constructor?.name?.includes("Adaptive")?x(t,"RETRY_MODE_ADAPTIVE","F"):x(t,"RETRY_MODE_STANDARD","E"):x(t,"RETRY_MODE_LEGACY","D")}if(typeof e.accountIdEndpointMode=="function"){const o=t.endpointV2;switch(String(o?.url?.hostname).match(ln)&&x(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":x(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":x(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":x(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const r=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){const o=r;o.accountId&&x(t,"RESOLVED_ACCOUNT_ID","T");for(const[i,a]of Object.entries(o.$source??{}))x(t,i,a)}}const X="user-agent",z="x-amz-user-agent",Y=" ",j="/",mn=/[^!$%&'*+\-.^_`|~\w]/g,fn=/[^!$%&'*+\-.^_`|~\w#]/g,Z="-",hn=1024;function yn(t){let e="";for(const n in t){const s=t[n];if(e.length+s.length+1<=hn){e.length?e+=","+s:e+=s;continue}break}return e}const En=t=>(e,n)=>async s=>{const{request:r}=s;if(!fe.isInstance(r))return e(s);const{headers:o}=r,i=n?.userAgent?.map($)||[],a=(await t.defaultUserAgentProvider()).map($);await gn(n,t,s);const c=n;a.push(`m/${yn(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const d=t?.customUserAgent?.map($)||[],p=await t.userAgentAppId();p&&a.push($(["app",`${p}`]));const l=[].concat([...a,...i,...d]).join(Y),m=[...a.filter(E=>E.startsWith("aws-sdk-")),...d].join(Y);return t.runtime!=="browser"?(m&&(o[z]=o[z]?`${o[X]} ${m}`:m),o[X]=l):o[z]=l,e({...s,request:r})},$=t=>{const e=t[0].split(j).map(i=>i.replace(mn,Z)).join(j),n=t[1]?.replace(fn,Z),s=e.indexOf(j),r=e.substring(0,s);let o=e.substring(s+1);return r==="api"&&(o=o.toLowerCase()),[r,o,n].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},Sn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Cn=t=>({applyToStack:e=>{e.add(En(t),Sn)}}),In=async(t,e,n)=>({operation:Qe(e).operation,region:await le(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function xn(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:t.region},propertiesExtractor:(e,n)=>({signingProperties:{config:e,context:n}})}}function F(t){return{schemeId:"smithy.api#noAuth"}}const _n=t=>{const e=[];switch(t.operation){case"GetCredentialsForIdentity":{e.push(F());break}case"GetId":{e.push(F());break}case"GetOpenIdToken":{e.push(F());break}case"UnlinkIdentity":{e.push(F());break}default:e.push(xn(t))}return e},wn=t=>{const e=Qt(t);return Object.assign(e,{authSchemePreference:le(t.authSchemePreference??[])})},An=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Pn="3.940.0",Rn={version:Pn},Ie="required",f="fn",h="argv",T="ref",ee=!0,te="isSet",U="booleanEquals",k="error",_="endpoint",P="tree",L="PartitionResult",G="getAttr",D="stringEquals",ne={[Ie]:!1,type:"string"},se={[Ie]:!0,default:!1,type:"boolean"},re={[T]:"Endpoint"},xe={[f]:U,[h]:[{[T]:"UseFIPS"},!0]},_e={[f]:U,[h]:[{[T]:"UseDualStack"},!0]},g={},O={[T]:"Region"},ie={[f]:G,[h]:[{[T]:L},"supportsFIPS"]},we={[T]:L},oe={[f]:U,[h]:[!0,{[f]:G,[h]:[we,"supportsDualStack"]}]},ae=[xe],ce=[_e],de=[O],bn={parameters:{Region:ne,UseDualStack:se,UseFIPS:se,Endpoint:ne},rules:[{conditions:[{[f]:te,[h]:[re]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:k},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:k},{endpoint:{url:re,properties:g,headers:g},type:_}],type:P},{conditions:[{[f]:te,[h]:de}],rules:[{conditions:[{[f]:"aws.partition",[h]:de,assign:L}],rules:[{conditions:[xe,_e],rules:[{conditions:[{[f]:U,[h]:[ee,ie]},oe],rules:[{conditions:[{[f]:D,[h]:[O,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:g,headers:g},type:_},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:k}],type:P},{conditions:ae,rules:[{conditions:[{[f]:U,[h]:[ie,ee]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:k}],type:P},{conditions:ce,rules:[{conditions:[oe],rules:[{conditions:[{[f]:D,[h]:["aws",{[f]:G,[h]:[we,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:g,headers:g},type:_},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:k}],type:P},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:_}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:k}]},vn=bn,kn=new We({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Tn=(t,e={})=>kn.get(t,()=>Xe(vn,{endpointParams:t,logger:e.logger}));Ze.aws=Ye;const Dn=t=>({apiVersion:"2014-06-30",base64Decoder:t?.base64Decoder??ye,base64Encoder:t?.base64Encoder??Ee,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Tn,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??_n,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Kt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new nt}],logger:t?.logger??new tt,protocol:t?.protocol??new pn({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:t?.serviceId??"Cognito Identity",urlParser:t?.urlParser??et,utf8Decoder:t?.utf8Decoder??zt,utf8Encoder:t?.utf8Encoder??he}),On=t=>{const e=st(t),n=()=>e().then(lt),s=Dn(t);return{...s,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??dt,credentialDefaultProvider:t?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:t?.defaultUserAgentProvider??ct({serviceId:s.serviceId,clientVersion:Rn.version}),maxAttempts:t?.maxAttempts??at,region:t?.region??ot("Region is missing"),requestHandler:Ht.create(t?.requestHandler??n),retryMode:t?.retryMode??(async()=>(await n()).retryMode||it),sha256:t?.sha256??rt,streamCollector:t?.streamCollector??jt,useDualstackEndpoint:t?.useDualstackEndpoint??(()=>Promise.resolve(pt)),useFipsEndpoint:t?.useFipsEndpoint??(()=>Promise.resolve(ut))}},Nn=t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(r){const o=e.findIndex(i=>i.schemeId===r.schemeId);o===-1?e.push(r):e.splice(o,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){n=r},httpAuthSchemeProvider(){return n},setCredentials(r){s=r},credentials(){return s}}},Mn=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Un=(t,e)=>{const n=Object.assign(gt(t),mt(t),ft(t),Nn(t));return e.forEach(s=>s.configure(n)),Object.assign(t,ht(n),yt(n),Et(n),Mn(n))};class mr extends St{config;constructor(...[e]){const n=On(e||{});super(n),this.initConfig=n;const s=An(n),r=qt(s),o=Ct(r),i=It(o),a=Tt(i),c=xt(a),d=wn(c),p=Un(d,e?.extensions||[]);this.config=p,this.middlewareStack.use(_t(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(At(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(Rt(this.config)),this.middlewareStack.use(bt(this.config)),this.middlewareStack.use(vt(this.config,{httpAuthSchemeParametersProvider:In,identityProviderConfigProvider:async l=>new Dt({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}let S=class Ae extends Ot{constructor(e){super(e),Object.setPrototypeOf(this,Ae.prototype)}},$n=class Pe extends S{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),Object.setPrototypeOf(this,Pe.prototype)}},Fn=class Re extends S{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,Re.prototype)}},zn=class be extends S{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,be.prototype)}},jn=class ve extends S{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},Hn=class ke extends S{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},Ln=class Te extends S{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,Te.prototype)}},Gn=class De extends S{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,De.prototype)}},qn=class Oe extends S{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}},Bn=class Ne extends S{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Vn=class Me extends S{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(e){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Jn=class Ue extends S{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,Ue.prototype)}};const Kn="AccountId",Qn="AccessKeyId",$e="Credentials",Wn="ConcurrentModificationException",Xn="CustomRoleArn",Yn="DeveloperUserAlreadyRegisteredException",Zn="Expiration",es="ExternalServiceException",ts="GetCredentialsForIdentity",ns="GetCredentialsForIdentityInput",ss="GetCredentialsForIdentityResponse",rs="GetId",is="GetIdInput",os="GetIdResponse",as="InternalErrorException",q="IdentityId",cs="InvalidIdentityPoolConfigurationException",ds="InvalidParameterException",us="IdentityPoolId",ps="IdentityProviderToken",Fe="Logins",ls="LimitExceededException",gs="LoginsMap",ms="NotAuthorizedException",fs="ResourceConflictException",hs="ResourceNotFoundException",ys="SecretKey",Es="SecretKeyString",Ss="SessionToken",Cs="TooManyRequestsException",w="client",C="error",A="httpError",I="message",Is="server",ze="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",u="com.amazonaws.cognitoidentity";var xs=[0,u,ps,8,0],_s=[0,u,Es,8,0],ws=[-3,u,Wn,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(ws,Jn);var As=[3,u,$e,0,[Qn,ys,Ss,Zn],[0,[()=>_s,0],0,4]],Ps=[-3,u,Yn,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ps,Vn);var Rs=[-3,u,es,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Rs,qn);var bs=[3,u,ns,0,[q,Fe,Xn],[0,[()=>je,0],0]],vs=[3,u,ss,0,[q,$e],[0,[()=>As,0]]],ks=[3,u,is,0,[Kn,us,Fe],[0,0,[()=>je,0]]],Ts=[3,u,os,0,[q],[0]],Ds=[-3,u,as,{[C]:Is},[I],[0]];y.for(u).registerError(Ds,$n);var Os=[-3,u,cs,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Os,Bn);var Ns=[-3,u,ds,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ns,Fn);var Ms=[-3,u,ls,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ms,zn);var Us=[-3,u,ms,{[C]:w,[A]:403},[I],[0]];y.for(u).registerError(Us,jn);var $s=[-3,u,fs,{[C]:w,[A]:409},[I],[0]];y.for(u).registerError($s,Hn);var Fs=[-3,u,hs,{[C]:w,[A]:404},[I],[0]];y.for(u).registerError(Fs,Gn);var zs=[-3,u,Cs,{[C]:w,[A]:429},[I],[0]];y.for(u).registerError(zs,Ln);var js=[-3,ze,"CognitoIdentityServiceException",0,[],[]];y.for(ze).registerError(js,S);var je=[2,u,gs,0,[0,0],[()=>xs,0]],Hs=[9,u,ts,0,()=>bs,()=>vs],Ls=[9,u,rs,0,()=>ks,()=>Ts];class fr extends ge.classBuilder().ep(Ce).m(function(e,n,s,r){return[me(s,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Hs).build(){}class hr extends ge.classBuilder().ep(Ce).m(function(e,n,s,r){return[me(s,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Ls).build(){}export{mr as CognitoIdentityClient,fr as GetCredentialsForIdentityCommand,hr as GetIdCommand};
|
|
1
|
+
import{S as V,m as Le,d as Ge,i as qe,T as y,b as J,N as b,c as R,e as Be,L as ue,f as pe,v as Ve,R as Je,h as Ke,n as le,j as Qe,E as We,r as Xe,k as Ye,l as Ze,p as et,o as tt,q as nt,s as st,t as rt,D as it,u as ot,w as at,x as ct,y as dt,z as ut,A as pt,B as lt,F as gt,G as mt,H as ft,I as ht,J as yt,K as Et,a as St,M as Ct,O as It,P as xt,Q as _t,U as wt,V as At,W as Pt,X as Rt,Y as bt,Z as vt,_ as kt,$ as Tt,a0 as Dt,a1 as Ot,C as ge,g as me}from"./index-WGtSo5ft.js";import{n as N,c as Nt,H as fe,t as he,d as ye,e as Mt,g as Ut,h as $t,a as Ee,i as Ft,f as zt,s as jt,F as Ht}from"./normalizeProvider-BrOPyH3l.js";import"./preload-helper-BlTxHScW.js";import"./index-DfUQvyyO.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import"./index-VamKv2HZ--hbiLl7B.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index-D5v913EJ-CsbEilVn.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import"./index-VamKv2HZ-CaraMydH-D75zmpPt.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";const Lt=void 0;function Gt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function qt(t){const e=N(t.userAgentAppId??Lt),{customUserAgent:n}=t;return Object.assign(t,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const s=await e();if(!Gt(s)){const r=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof s!="string"?r?.warn("userAgentAppId must be a string or undefined."):s.length>50&&r?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}function Bt(t,e,n){return t.$source||(t.$source={}),t.$source[e]=n,t}function x(t,e,n){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=n}const K=t=>Nt.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,Se=t=>new Date(Date.now()+t),Vt=(t,e)=>Math.abs(Se(e).getTime()-t)>=3e5,Q=(t,e)=>{const n=Date.parse(t);return Vt(n,e)?n-Date.now():e},M=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},Jt=async t=>{const e=M("context",t.context),n=M("config",t.config),s=e.endpointV2?.properties?.authSchemes?.[0],o=await M("signer",n.signer)(s),i=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:n,signer:o,signingRegion:i,signingRegionSet:a,signingName:c}};class Kt{async sign(e,n,s){if(!fe.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const r=await Jt(s),{config:o,signer:i}=r;let{signingRegion:a,signingName:c}=r;const d=s.context;if(d?.authSchemes?.length??!1){const[l,m]=d.authSchemes;l?.name==="sigv4a"&&m?.name==="sigv4"&&(a=m?.signingRegion??a,c=m?.signingName??c)}return await i.sign(e,{signingDate:Se(o.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return n=>{const s=n.ServerTime??K(n.$response);if(s){const r=M("config",e.config),o=r.systemClockOffset;r.systemClockOffset=Q(s,r.systemClockOffset),r.systemClockOffset!==o&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(e,n){const s=K(e);if(s){const r=M("config",n.config);r.systemClockOffset=Q(s,r.systemClockOffset)}}}const Qt=t=>{let e=t.credentials,n=!!t.credentials,s;Object.defineProperty(t,"credentials",{set(d){d&&d!==e&&d!==s&&(n=!0),e=d;const p=Wt(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),l=Xt(t,p);n&&!l.attributed?(s=async m=>l(m).then(E=>Bt(E,"CREDENTIALS_CODE","e")),s.memoized=l.memoized,s.configBound=l.configBound,s.attributed=!0):s=l},get(){return s},enumerable:!0,configurable:!0}),t.credentials=e;const{signingEscapePath:r=!0,systemClockOffset:o=t.systemClockOffset||0,sha256:i}=t;let a;return t.signer?a=N(t.signer):t.regionInfoProvider?a=()=>N(t.region)().then(async d=>[await t.regionInfoProvider(d,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},d]).then(([d,p])=>{const{signingRegion:l,signingService:m}=d;t.signingRegion=t.signingRegion||l||p,t.signingName=t.signingName||m||t.serviceId;const E={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},v=t.signerConstructor||V;return new v(E)}):a=async d=>{d=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await N(t.region)(),properties:{}},d);const p=d.signingRegion,l=d.signingName;t.signingRegion=t.signingRegion||p,t.signingName=t.signingName||l||t.serviceId;const m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},E=t.signerConstructor||V;return new E(m)},Object.assign(t,{systemClockOffset:o,signingEscapePath:r,signer:a})};function Wt(t,{credentials:e,credentialDefaultProvider:n}){let s;return e?e?.memoized?s=e:s=Le(e,qe,Ge):n?s=N(n(Object.assign({},t,{parentClientConfig:t}))):s=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},s.memoized=!0,s}function Xt(t,e){if(e.configBound)return e;const n=async s=>e({...s,callerClientConfig:t});return n.memoized=e.memoized,n.configBound=!0,n}class Yt{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,n){const s=n.getMemberSchemas(),r=Object.values(s).find(o=>!!o.getMergedTraits().httpPayload);if(r){const o=r.getMergedTraits().mediaType;return o||(r.isStringSchema()?"text/plain":r.isBlobSchema()?"application/octet-stream":e)}else if(!n.isUnitSchema()&&Object.values(s).find(i=>{const{httpQuery:a,httpQueryParams:c,httpHeader:d,httpLabel:p,httpPrefixHeaders:l}=i.getMergedTraits();return!a&&!c&&!d&&!p&&l===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,n,s,r,o,i){let a=n,c=e;e.includes("#")&&([a,c]=e.split("#"));const d={$metadata:o,$fault:s.statusCode<500?"client":"server"},p=y.for(a);try{return{errorSchema:i?.(p,c)??p.getSchema(e),errorMetadata:d}}catch{r.message=r.message??r.Message??"UnknownError";const m=y.for("smithy.ts.sdk.synthetic."+a),E=m.getBaseException();if(E){const v=m.getErrorCtor(E)??Error;throw this.decorateServiceException(Object.assign(new v({name:c}),d),r)}throw this.decorateServiceException(Object.assign(new Error(c),d),r)}}decorateServiceException(e,n={}){if(this.queryCompat){const s=e.Message??n.Message,r=J(e,n);return s&&(r.Message=s,r.message=s),r}return J(e,n)}setQueryCompatError(e,n){const s=n.headers?.["x-amzn-query-error"];if(e!==void 0&&s!=null){const[r,o]=s.split(";"),i=Object.entries(e),a={Code:r,Type:o};Object.assign(e,a);for(const[c,d]of i)a[c]=d;delete a.__type,e.Error=a}}queryCompatOutput(e,n){e.Error&&(n.Error=e.Error),e.Type&&(n.Type=e.Type),e.Code&&(n.Code=e.Code)}}class H{serdeContext;setSerdeContext(e){this.serdeContext=e}}function*Zt(t,e){if(t.isUnitSchema())return;const n=t.getSchema();for(let s=0;s<n[4].length;++s){const r=n[4][s],o=new b([n[5][s],0],r);!(r in e)&&!o.isIdempotencyToken()||(yield[r,o])}}function*en(t,e,n){if(t.isUnitSchema())return;const s=t.getSchema();let r=Object.keys(e).length;for(let o=0;o<s[4].length&&r!==0;++o){const i=s[4][o],a=new b([s[5][o],0],i);let c=i;n&&(c=a.getMergedTraits()[n]??i),c in e&&(yield[i,a],r-=1)}}function tn(t,e,n){if(n?.source){const s=n.source;if(typeof e=="number"&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER||s!==String(e)))return s.includes(".")?new R(s,"bigDecimal"):BigInt(s)}return e}const nn=(t,e)=>Be(t,e).then(n=>(e?.utf8Encoder??he)(n)),sn=(t,e)=>nn(t,e).then(n=>{if(n.length)try{return JSON.parse(n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:n}),s}return{}}),rn=(t,e)=>{const n=(o,i)=>Object.keys(o).find(a=>a.toLowerCase()===i.toLowerCase()),s=o=>{let i=o;return typeof i=="number"&&(i=i.toString()),i.indexOf(",")>=0&&(i=i.split(",")[0]),i.indexOf(":")>=0&&(i=i.split(":")[0]),i.indexOf("#")>=0&&(i=i.split("#")[1]),i},r=n(t.headers,"x-amzn-errortype");if(r!==void 0)return s(t.headers[r]);if(e&&typeof e=="object"){const o=n(e,"code");if(o&&e[o]!==void 0)return s(e[o]);if(e.__type!==void 0)return s(e.__type)}};class on extends H{settings;constructor(e){super(),this.settings=e}async read(e,n){return this._read(e,typeof n=="string"?JSON.parse(n,tn):await sn(n,this.serdeContext))}readObject(e,n){return this._read(e,n)}_read(e,n){const s=n!==null&&typeof n=="object",r=b.of(e);if(r.isListSchema()&&Array.isArray(n)){const i=r.getValueSchema(),a=[],c=!!r.getMergedTraits().sparse;for(const d of n)(c||d!=null)&&a.push(this._read(i,d));return a}else if(r.isMapSchema()&&s){const i=r.getValueSchema(),a={},c=!!r.getMergedTraits().sparse;for(const[d,p]of Object.entries(n))(c||p!=null)&&(a[d]=this._read(i,p));return a}else if(r.isStructSchema()&&s){const i={};for(const[a,c]of en(r,n,this.settings.jsonName?"jsonName":!1)){const d=this.settings.jsonName?c.getMergedTraits().jsonName??a:a,p=this._read(c,n[d]);p!=null&&(i[a]=p)}return i}if(r.isBlobSchema()&&typeof n=="string")return ye(n);const o=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof n=="string"&&o&&(o==="application/json"||o.endsWith("+json")))return ue.from(n);if(r.isTimestampSchema()&&n!=null)switch(pe(r,this.settings)){case 5:return $t(n);case 6:return Ut(n);case 7:return Mt(n);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",n),new Date(n)}if(r.isBigIntegerSchema()&&(typeof n=="number"||typeof n=="string"))return BigInt(n);if(r.isBigDecimalSchema()&&n!=null){if(n instanceof R)return n;const i=n;return i.type==="bigDecimal"&&"string"in i?new R(i.string,i.type):new R(String(n),"bigDecimal")}if(r.isNumericSchema()&&typeof n=="string")switch(n){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(r.isDocumentSchema())if(s){const i=Array.isArray(n)?[]:{};for(const[a,c]of Object.entries(n))c instanceof R?i[a]=c:i[a]=this._read(r,c);return i}else return structuredClone(n);return n}}const W="Ν";class an{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,n)=>{if(n instanceof R){const s=`${W+"nv"+this.counter++}_`+n.string;return this.values.set(`"${s}"`,n.string),s}if(typeof n=="bigint"){const s=n.toString(),r=`${W+"b"+this.counter++}_`+s;return this.values.set(`"${r}"`,s),r}return n}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(const[n,s]of this.values)e=e.replace(n,s);return e}}class cn extends H{settings;buffer;rootSchema;constructor(e){super(),this.settings=e}write(e,n){this.rootSchema=b.of(e),this.buffer=this._write(this.rootSchema,n)}writeDiscriminatedDocument(e,n){this.write(e,n),typeof this.buffer=="object"&&(this.buffer.__type=b.of(e).getName(!0))}flush(){const{rootSchema:e}=this;if(this.rootSchema=void 0,e?.isStructSchema()||e?.isDocumentSchema()){const n=new an;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}_write(e,n,s){const r=n!==null&&typeof n=="object",o=b.of(e);if(o.isListSchema()&&Array.isArray(n)){const i=o.getValueSchema(),a=[],c=!!o.getMergedTraits().sparse;for(const d of n)(c||d!=null)&&a.push(this._write(i,d));return a}else if(o.isMapSchema()&&r){const i=o.getValueSchema(),a={},c=!!o.getMergedTraits().sparse;for(const[d,p]of Object.entries(n))(c||p!=null)&&(a[d]=this._write(i,p));return a}else if(o.isStructSchema()&&r){const i={};for(const[a,c]of Zt(o,n)){const d=this._write(c,n[a],o);if(d!==void 0){const p=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;i[p]=d}}return i}if(!(n===null&&s?.isStructSchema())){if(o.isBlobSchema()&&(n instanceof Uint8Array||typeof n=="string")||o.isDocumentSchema()&&n instanceof Uint8Array)return o===this.rootSchema?n:(this.serdeContext?.base64Encoder??Ee)(n);if((o.isTimestampSchema()||o.isDocumentSchema())&&n instanceof Date)switch(pe(o,this.settings)){case 5:return n.toISOString().replace(".000Z","Z");case 6:return Ft(n);case 7:return n.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",n),n.getTime()/1e3}if(o.isNumericSchema()&&typeof n=="number"&&(Math.abs(n)===1/0||isNaN(n)))return String(n);if(o.isStringSchema()){if(typeof n>"u"&&o.isIdempotencyToken())return Ve();const i=o.getMergedTraits().mediaType;if(n!=null&&i&&(i==="application/json"||i.endsWith("+json")))return ue.from(n)}if(o.isDocumentSchema())if(r){const i=Array.isArray(n)?[]:{};for(const[a,c]of Object.entries(n))c instanceof R?i[a]=c:i[a]=this._write(o,c);return i}else return structuredClone(n);return n}}}class dn extends H{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new cn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new on(this.settings);return e.setSerdeContext(this.serdeContext),e}}class un extends Je{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s}){super({defaultNamespace:e}),this.serviceTarget=n,this.codec=new dn({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Yt(this.awsQueryCompatible)}async serializeRequest(e,n,s){const r=await super.serializeRequest(e,n,s);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),(Ke(e.input)==="unit"||!r.body)&&(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(e,n,s,r,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,s);const i=rn(s,r)??"Unknown",{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,s,r,o),d=b.of(a),p=r.message??r.Message??"Unknown",l=y.for(a[1]).getErrorCtor(a)??Error,m=new l(p),E={};for(const[v,B]of d.structIterator()){const He=B.getMergedTraits().jsonName??v;E[v]=this.codec.createDeserializer().readObject(B,r[He])}throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,E),this.mixin.decorateServiceException(Object.assign(m,c,{$fault:d.getMergedTraits().error,message:p},E),r)}}class pn extends un{constructor({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s}){super({defaultNamespace:e,serviceTarget:n,awsQueryCompatible:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const ln=/\d{12}\.ddb/;async function gn(t,e,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&x(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){const o=await e.retryStrategy();typeof o.acquireInitialRetryToken=="function"?o.constructor?.name?.includes("Adaptive")?x(t,"RETRY_MODE_ADAPTIVE","F"):x(t,"RETRY_MODE_STANDARD","E"):x(t,"RETRY_MODE_LEGACY","D")}if(typeof e.accountIdEndpointMode=="function"){const o=t.endpointV2;switch(String(o?.url?.hostname).match(ln)&&x(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":x(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":x(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":x(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const r=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){const o=r;o.accountId&&x(t,"RESOLVED_ACCOUNT_ID","T");for(const[i,a]of Object.entries(o.$source??{}))x(t,i,a)}}const X="user-agent",z="x-amz-user-agent",Y=" ",j="/",mn=/[^!$%&'*+\-.^_`|~\w]/g,fn=/[^!$%&'*+\-.^_`|~\w#]/g,Z="-",hn=1024;function yn(t){let e="";for(const n in t){const s=t[n];if(e.length+s.length+1<=hn){e.length?e+=","+s:e+=s;continue}break}return e}const En=t=>(e,n)=>async s=>{const{request:r}=s;if(!fe.isInstance(r))return e(s);const{headers:o}=r,i=n?.userAgent?.map($)||[],a=(await t.defaultUserAgentProvider()).map($);await gn(n,t,s);const c=n;a.push(`m/${yn(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const d=t?.customUserAgent?.map($)||[],p=await t.userAgentAppId();p&&a.push($(["app",`${p}`]));const l=[].concat([...a,...i,...d]).join(Y),m=[...a.filter(E=>E.startsWith("aws-sdk-")),...d].join(Y);return t.runtime!=="browser"?(m&&(o[z]=o[z]?`${o[X]} ${m}`:m),o[X]=l):o[z]=l,e({...s,request:r})},$=t=>{const e=t[0].split(j).map(i=>i.replace(mn,Z)).join(j),n=t[1]?.replace(fn,Z),s=e.indexOf(j),r=e.substring(0,s);let o=e.substring(s+1);return r==="api"&&(o=o.toLowerCase()),[r,o,n].filter(i=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},Sn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Cn=t=>({applyToStack:e=>{e.add(En(t),Sn)}}),In=async(t,e,n)=>({operation:Qe(e).operation,region:await le(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function xn(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:t.region},propertiesExtractor:(e,n)=>({signingProperties:{config:e,context:n}})}}function F(t){return{schemeId:"smithy.api#noAuth"}}const _n=t=>{const e=[];switch(t.operation){case"GetCredentialsForIdentity":{e.push(F());break}case"GetId":{e.push(F());break}case"GetOpenIdToken":{e.push(F());break}case"UnlinkIdentity":{e.push(F());break}default:e.push(xn(t))}return e},wn=t=>{const e=Qt(t);return Object.assign(e,{authSchemePreference:le(t.authSchemePreference??[])})},An=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),Ce={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Pn="3.940.0",Rn={version:Pn},Ie="required",f="fn",h="argv",T="ref",ee=!0,te="isSet",U="booleanEquals",k="error",_="endpoint",P="tree",L="PartitionResult",G="getAttr",D="stringEquals",ne={[Ie]:!1,type:"string"},se={[Ie]:!0,default:!1,type:"boolean"},re={[T]:"Endpoint"},xe={[f]:U,[h]:[{[T]:"UseFIPS"},!0]},_e={[f]:U,[h]:[{[T]:"UseDualStack"},!0]},g={},O={[T]:"Region"},ie={[f]:G,[h]:[{[T]:L},"supportsFIPS"]},we={[T]:L},oe={[f]:U,[h]:[!0,{[f]:G,[h]:[we,"supportsDualStack"]}]},ae=[xe],ce=[_e],de=[O],bn={parameters:{Region:ne,UseDualStack:se,UseFIPS:se,Endpoint:ne},rules:[{conditions:[{[f]:te,[h]:[re]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:k},{conditions:ce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:k},{endpoint:{url:re,properties:g,headers:g},type:_}],type:P},{conditions:[{[f]:te,[h]:de}],rules:[{conditions:[{[f]:"aws.partition",[h]:de,assign:L}],rules:[{conditions:[xe,_e],rules:[{conditions:[{[f]:U,[h]:[ee,ie]},oe],rules:[{conditions:[{[f]:D,[h]:[O,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:g,headers:g},type:_},{conditions:[{[f]:D,[h]:[O,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:g,headers:g},type:_},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:k}],type:P},{conditions:ae,rules:[{conditions:[{[f]:U,[h]:[ie,ee]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:k}],type:P},{conditions:ce,rules:[{conditions:[oe],rules:[{conditions:[{[f]:D,[h]:["aws",{[f]:G,[h]:[we,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:g,headers:g},type:_},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:_}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:k}],type:P},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:_}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:k}]},vn=bn,kn=new We({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Tn=(t,e={})=>kn.get(t,()=>Xe(vn,{endpointParams:t,logger:e.logger}));Ze.aws=Ye;const Dn=t=>({apiVersion:"2014-06-30",base64Decoder:t?.base64Decoder??ye,base64Encoder:t?.base64Encoder??Ee,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Tn,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??_n,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Kt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new nt}],logger:t?.logger??new tt,protocol:t?.protocol??new pn({defaultNamespace:"com.amazonaws.cognitoidentity",serviceTarget:"AWSCognitoIdentityService",awsQueryCompatible:!1}),serviceId:t?.serviceId??"Cognito Identity",urlParser:t?.urlParser??et,utf8Decoder:t?.utf8Decoder??zt,utf8Encoder:t?.utf8Encoder??he}),On=t=>{const e=st(t),n=()=>e().then(lt),s=Dn(t);return{...s,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??dt,credentialDefaultProvider:t?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:t?.defaultUserAgentProvider??ct({serviceId:s.serviceId,clientVersion:Rn.version}),maxAttempts:t?.maxAttempts??at,region:t?.region??ot("Region is missing"),requestHandler:Ht.create(t?.requestHandler??n),retryMode:t?.retryMode??(async()=>(await n()).retryMode||it),sha256:t?.sha256??rt,streamCollector:t?.streamCollector??jt,useDualstackEndpoint:t?.useDualstackEndpoint??(()=>Promise.resolve(pt)),useFipsEndpoint:t?.useFipsEndpoint??(()=>Promise.resolve(ut))}},Nn=t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,s=t.credentials;return{setHttpAuthScheme(r){const o=e.findIndex(i=>i.schemeId===r.schemeId);o===-1?e.push(r):e.splice(o,1,r)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(r){n=r},httpAuthSchemeProvider(){return n},setCredentials(r){s=r},credentials(){return s}}},Mn=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Un=(t,e)=>{const n=Object.assign(gt(t),mt(t),ft(t),Nn(t));return e.forEach(s=>s.configure(n)),Object.assign(t,ht(n),yt(n),Et(n),Mn(n))};class mr extends St{config;constructor(...[e]){const n=On(e||{});super(n),this.initConfig=n;const s=An(n),r=qt(s),o=Ct(r),i=It(o),a=Tt(i),c=xt(a),d=wn(c),p=Un(d,e?.extensions||[]);this.config=p,this.middlewareStack.use(_t(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(At(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(Rt(this.config)),this.middlewareStack.use(bt(this.config)),this.middlewareStack.use(vt(this.config,{httpAuthSchemeParametersProvider:In,identityProviderConfigProvider:async l=>new Dt({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(kt(this.config))}destroy(){super.destroy()}}let S=class Ae extends Ot{constructor(e){super(e),Object.setPrototypeOf(this,Ae.prototype)}},$n=class Pe extends S{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),Object.setPrototypeOf(this,Pe.prototype)}},Fn=class Re extends S{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,Re.prototype)}},zn=class be extends S{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,be.prototype)}},jn=class ve extends S{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,ve.prototype)}},Hn=class ke extends S{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,ke.prototype)}},Ln=class Te extends S{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,Te.prototype)}},Gn=class De extends S{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,De.prototype)}},qn=class Oe extends S{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),Object.setPrototypeOf(this,Oe.prototype)}},Bn=class Ne extends S{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),Object.setPrototypeOf(this,Ne.prototype)}},Vn=class Me extends S{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(e){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...e}),Object.setPrototypeOf(this,Me.prototype)}},Jn=class Ue extends S{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,Ue.prototype)}};const Kn="AccountId",Qn="AccessKeyId",$e="Credentials",Wn="ConcurrentModificationException",Xn="CustomRoleArn",Yn="DeveloperUserAlreadyRegisteredException",Zn="Expiration",es="ExternalServiceException",ts="GetCredentialsForIdentity",ns="GetCredentialsForIdentityInput",ss="GetCredentialsForIdentityResponse",rs="GetId",is="GetIdInput",os="GetIdResponse",as="InternalErrorException",q="IdentityId",cs="InvalidIdentityPoolConfigurationException",ds="InvalidParameterException",us="IdentityPoolId",ps="IdentityProviderToken",Fe="Logins",ls="LimitExceededException",gs="LoginsMap",ms="NotAuthorizedException",fs="ResourceConflictException",hs="ResourceNotFoundException",ys="SecretKey",Es="SecretKeyString",Ss="SessionToken",Cs="TooManyRequestsException",w="client",C="error",A="httpError",I="message",Is="server",ze="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",u="com.amazonaws.cognitoidentity";var xs=[0,u,ps,8,0],_s=[0,u,Es,8,0],ws=[-3,u,Wn,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(ws,Jn);var As=[3,u,$e,0,[Qn,ys,Ss,Zn],[0,[()=>_s,0],0,4]],Ps=[-3,u,Yn,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ps,Vn);var Rs=[-3,u,es,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Rs,qn);var bs=[3,u,ns,0,[q,Fe,Xn],[0,[()=>je,0],0]],vs=[3,u,ss,0,[q,$e],[0,[()=>As,0]]],ks=[3,u,is,0,[Kn,us,Fe],[0,0,[()=>je,0]]],Ts=[3,u,os,0,[q],[0]],Ds=[-3,u,as,{[C]:Is},[I],[0]];y.for(u).registerError(Ds,$n);var Os=[-3,u,cs,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Os,Bn);var Ns=[-3,u,ds,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ns,Fn);var Ms=[-3,u,ls,{[C]:w,[A]:400},[I],[0]];y.for(u).registerError(Ms,zn);var Us=[-3,u,ms,{[C]:w,[A]:403},[I],[0]];y.for(u).registerError(Us,jn);var $s=[-3,u,fs,{[C]:w,[A]:409},[I],[0]];y.for(u).registerError($s,Hn);var Fs=[-3,u,hs,{[C]:w,[A]:404},[I],[0]];y.for(u).registerError(Fs,Gn);var zs=[-3,u,Cs,{[C]:w,[A]:429},[I],[0]];y.for(u).registerError(zs,Ln);var js=[-3,ze,"CognitoIdentityServiceException",0,[],[]];y.for(ze).registerError(js,S);var je=[2,u,gs,0,[0,0],[()=>xs,0]],Hs=[9,u,ts,0,()=>bs,()=>vs],Ls=[9,u,rs,0,()=>ks,()=>Ts];class fr extends ge.classBuilder().ep(Ce).m(function(e,n,s,r){return[me(s,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Hs).build(){}class hr extends ge.classBuilder().ep(Ce).m(function(e,n,s,r){return[me(s,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Ls).build(){}export{mr as CognitoIdentityClient,fr as GetCredentialsForIdentityCommand,hr as GetIdCommand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as ut,N as D,f as Ce,L as lt,c as _e,S as oe,m as mt,d as pt,i as gt,T as A,b as ie,v as ht,R as ft,h as yt,e as ae,n as Re,j as Et,E as St,r as wt,k as bt,l as Tt,p as Pt,o as At,q as Ct,s as _t,t as Rt,D as xt,u as It,w as Dt,x as kt,y as vt,z as Nt,A as Mt,B as $t,F as Ot,G as Ut,H as Ft,I as zt,J as Lt,K as jt,a as Ht,M as Vt,O as Wt,P as Kt,Q as Bt,U as qt,V as Qt,W as Gt,X as Xt,Y as Jt,Z as Yt,_ as Zt,$ as es,a0 as ts,a1 as ss,C as rs,g as ns}from"./index-fkBiak1w.js";import{d as X,t as J,n as L,c as os,H as xe,a as Ie,i as is,f as as,s as cs,F as ds}from"./normalizeProvider-BrOPyH3l.js";function ce(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const Y="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Z="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",ee="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",De="(\\d?\\d)",ke="(\\d{4})",us=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),ls=new RegExp(`^${Y}, ${De} ${Z} ${ke} ${ee} GMT$`),ms=new RegExp(`^${Y}, ${De}-${Z}-(\\d\\d) ${ee} GMT$`),ps=new RegExp(`^${Y} ${Z} ( [1-9]|\\d\\d) ${ee} ${ke}$`),gs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hs=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},fs=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=us.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,s,r,n,o,i,a,,d,c]=t;R(r,1,12),R(n,1,31),R(o,0,23),R(i,0,59),R(a,0,60);const u=new Date(Date.UTC(Number(s),Number(r)-1,Number(n),Number(o),Number(i),Number(a),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(u.setUTCFullYear(Number(s)),c.toUpperCase()!="Z"){const[,l,f,E]=/([+-])(\d\d):(\d\d)/.exec(c)||[void 0,"+",0,0],P=l==="-"?1:-1;u.setTime(u.getTime()+P*(Number(f)*60*60*1e3+Number(E)*60*1e3))}return u},ys=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,s,r,n,o,i,a,d;if((d=ls.exec(e))?[,t,s,r,n,o,i,a]=d:(d=ms.exec(e))?([,t,s,r,n,o,i,a]=d,r=(Number(r)+1900).toString()):(d=ps.exec(e))&&([,s,t,n,o,i,a,r]=d),r&&i){const c=Date.UTC(Number(r),gs.indexOf(s),Number(t),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);R(t,1,31),R(n,0,23),R(o,0,59),R(i,0,60);const u=new Date(c);return u.setUTCFullYear(Number(r)),u}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function R(e,t,s){const r=Number(e);if(r<t||r>s)throw new Error(`Value ${r} out of range [${t}, ${s}]`)}const Es=e=>{const t=e.length,s=[];let r=!1,n,o=0;for(let i=0;i<t;++i){const a=e[i];switch(a){case'"':n!=="\\"&&(r=!r);break;case",":r||(s.push(e.slice(o,i)),o=i+1);break}n=a}return s.push(e.slice(o)),s.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class Ss extends ut{settings;constructor(t){super(),this.settings=t}read(t,s){const r=D.of(t);if(r.isListSchema())return Es(s).map(n=>this.read(r.getValueSchema(),n));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??X)(s);if(r.isTimestampSchema())switch(Ce(r,this.settings)){case 5:return fs(s);case 6:return ys(s);case 7:return hs(s);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",s),new Date(s)}if(r.isStringSchema()){const n=r.getMergedTraits().mediaType;let o=s;if(n)return r.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=lt.from(o)),o}return r.isNumericSchema()?Number(s):r.isBigIntegerSchema()?BigInt(s):r.isBigDecimalSchema()?new _e(s,"bigDecimal"):r.isBooleanSchema()?String(s).toLowerCase()==="true":s}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??J)((this.serdeContext?.base64Decoder??X)(t))}}const ve=e=>{const t="#text";for(const s in e)e.hasOwnProperty(s)&&e[s][t]!==void 0?e[s]=e[s][t]:typeof e[s]=="object"&&e[s]!==null&&(e[s]=ve(e[s]));return e};let K;function ws(e){K||(K=new DOMParser);const t=K.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const s=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const n=r;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const d of i)o[`${d.name}`]=d.value;const a=Array.from(n.childNodes);for(const d of a){const c=s(d);if(c!=null){const u=d.nodeName;if(a.length===1&&i.length===0&&u==="#text")return c;o[u]?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[t.documentElement.nodeName]:s(t.documentElement)}}const bs=void 0;function Ts(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function Ps(e){const t=L(e.userAgentAppId??bs),{customUserAgent:s}=e;return Object.assign(e,{customUserAgent:typeof s=="string"?[[s]]:s,userAgentAppId:async()=>{const r=await t();if(!Ts(r)){const n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?n?.warn("userAgentAppId must be a string or undefined."):r.length>50&&n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}function As(e,t,s){return e.$source||(e.$source={}),e.$source[t]=s,e}function C(e,t,s){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]=s}const de=e=>os.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ne=e=>new Date(Date.now()+e),Cs=(e,t)=>Math.abs(Ne(t).getTime()-e)>=3e5,ue=(e,t)=>{const s=Date.parse(e);return Cs(s,t)?s-Date.now():t},j=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},_s=async e=>{const t=j("context",e.context),s=j("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],o=await j("signer",s.signer)(r),i=e?.signingRegion,a=e?.signingRegionSet,d=e?.signingName;return{config:s,signer:o,signingRegion:i,signingRegionSet:a,signingName:d}};class Rs{async sign(t,s,r){if(!xe.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const n=await _s(r),{config:o,signer:i}=n;let{signingRegion:a,signingName:d}=n;const c=r.context;if(c?.authSchemes?.length??!1){const[l,f]=c.authSchemes;l?.name==="sigv4a"&&f?.name==="sigv4"&&(a=f?.signingRegion??a,d=f?.signingName??d)}return await i.sign(t,{signingDate:Ne(o.systemClockOffset),signingRegion:a,signingService:d})}errorHandler(t){return s=>{const r=s.ServerTime??de(s.$response);if(r){const n=j("config",t.config),o=n.systemClockOffset;n.systemClockOffset=ue(r,n.systemClockOffset),n.systemClockOffset!==o&&s.$metadata&&(s.$metadata.clockSkewCorrected=!0)}throw s}}successHandler(t,s){const r=de(t);if(r){const n=j("config",s.config);n.systemClockOffset=ue(r,n.systemClockOffset)}}}const xs=e=>{let t=e.credentials,s=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(c){c&&c!==t&&c!==r&&(s=!0),t=c;const u=Is(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),l=Ds(e,u);s&&!l.attributed?(r=async f=>l(f).then(E=>As(E,"CREDENTIALS_CODE","e")),r.memoized=l.memoized,r.configBound=l.configBound,r.attributed=!0):r=l},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:n=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let a;return e.signer?a=L(e.signer):e.regionInfoProvider?a=()=>L(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,u])=>{const{signingRegion:l,signingService:f}=c;e.signingRegion=e.signingRegion||l||u,e.signingName=e.signingName||f||e.serviceId;const E={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},P=e.signerConstructor||oe;return new P(E)}):a=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await L(e.region)(),properties:{}},c);const u=c.signingRegion,l=c.signingName;e.signingRegion=e.signingRegion||u,e.signingName=e.signingName||l||e.serviceId;const f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},E=e.signerConstructor||oe;return new E(f)},Object.assign(e,{systemClockOffset:o,signingEscapePath:n,signer:a})};function Is(e,{credentials:t,credentialDefaultProvider:s}){let r;return t?t?.memoized?r=t:r=mt(t,gt,pt):s?r=L(s(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Ds(e,t){if(t.configBound)return t;const s=async r=>t({...r,callerClientConfig:e});return s.memoized=t.memoized,s.configBound=!0,s}class ks{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,s){const r=s.getMemberSchemas(),n=Object.values(r).find(o=>!!o.getMergedTraits().httpPayload);if(n){const o=n.getMergedTraits().mediaType;return o||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":t)}else if(!s.isUnitSchema()&&Object.values(r).find(i=>{const{httpQuery:a,httpQueryParams:d,httpHeader:c,httpLabel:u,httpPrefixHeaders:l}=i.getMergedTraits();return!a&&!d&&!c&&!u&&l===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,s,r,n,o,i){let a=s,d=t;t.includes("#")&&([a,d]=t.split("#"));const c={$metadata:o,$fault:r.statusCode<500?"client":"server"},u=A.for(a);try{return{errorSchema:i?.(u,d)??u.getSchema(t),errorMetadata:c}}catch{n.message=n.message??n.Message??"UnknownError";const f=A.for("smithy.ts.sdk.synthetic."+a),E=f.getBaseException();if(E){const P=f.getErrorCtor(E)??Error;throw this.decorateServiceException(Object.assign(new P({name:d}),c),n)}throw this.decorateServiceException(Object.assign(new Error(d),c),n)}}decorateServiceException(t,s={}){if(this.queryCompat){const r=t.Message??s.Message,n=ie(t,s);return r&&(n.Message=r,n.message=r),n}return ie(t,s)}setQueryCompatError(t,s){const r=s.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[n,o]=r.split(";"),i=Object.entries(t),a={Code:n,Type:o};Object.assign(t,a);for(const[d,c]of i)a[d]=c;delete a.__type,t.Error=a}}queryCompatOutput(t,s){t.Error&&(s.Error=t.Error),t.Type&&(s.Type=t.Type),t.Code&&(s.Code=t.Code)}}class Me{serdeContext;setSerdeContext(t){this.serdeContext=t}}function*vs(e,t){if(e.isUnitSchema())return;const s=e.getSchema();for(let r=0;r<s[4].length;++r){const n=s[4][r],o=new D([s[5][r],0],n);!(n in t)&&!o.isIdempotencyToken()||(yield[n,o])}}class Ns extends Me{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new Ss(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,s,r){const n=D.of(t),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(c=>!!c.getMemberTraits().eventPayload)){const c={},u=Object.keys(o)[0];return o[u].isBlobSchema()?c[u]=s:c[u]=this.read(o[u],s),c}const a=(this.serdeContext?.utf8Encoder??J)(s),d=this.parseXml(a);return this.readSchema(t,r?d[r]:d)}readSchema(t,s){const r=D.of(t);if(r.isUnitSchema())return;const n=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(s))return this.readSchema(r,[s]);if(s==null)return s;if(typeof s=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),c=[],u=d.getMergedTraits().xmlName??"member",l=i?s:(s[0]??s)[u],f=Array.isArray(l)?l:[l];for(const E of f)(E!=null||o)&&c.push(this.readSchema(d,E));return c}const a={};if(r.isMapSchema()){const d=r.getKeySchema(),c=r.getValueSchema();let u;i?u=Array.isArray(s)?s:[s]:u=Array.isArray(s.entry)?s.entry:[s.entry];const l=d.getMergedTraits().xmlName??"key",f=c.getMergedTraits().xmlName??"value";for(const E of u){const P=E[l],x=E[f];(x!=null||o)&&(a[P]=this.readSchema(c,x))}return a}if(r.isStructSchema()){for(const[d,c]of r.structIterator()){const u=c.getMergedTraits(),l=u.httpPayload?u.xmlName??c.getName():c.getMemberTraits().xmlName??d;s[l]!=null&&(a[d]=this.readSchema(c,s[l]))}return a}if(r.isDocumentSchema())return s;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,s)}parseXml(t){if(t.length){let s;try{s=ws(t)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:t}),i}const r="#text",n=Object.keys(s)[0],o=s[n];return o[r]&&(o[n]=o[r],delete o[r]),ve(o)}return{}}}class Ms extends Me{settings;buffer;constructor(t){super(),this.settings=t}write(t,s,r=""){this.buffer===void 0&&(this.buffer="");const n=D.of(t);if(r&&!r.endsWith(".")&&(r+="."),n.isBlobSchema())(typeof s=="string"||s instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??Ie)(s)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())s!=null?(this.writeKey(r),this.writeValue(String(s))):n.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(ht()));else if(n.isBigIntegerSchema())s!=null&&(this.writeKey(r),this.writeValue(String(s)));else if(n.isBigDecimalSchema())s!=null&&(this.writeKey(r),this.writeValue(s instanceof _e?s.string:String(s)));else if(n.isTimestampSchema()){if(s instanceof Date)switch(this.writeKey(r),Ce(n,this.settings)){case 5:this.writeValue(s.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(is(s));break;case 7:this.writeValue(String(s.getTime()/1e3));break}}else{if(n.isDocumentSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${n.getName(!0)}`);if(n.isListSchema()){if(Array.isArray(s))if(s.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const d of s){if(d==null)continue;const c=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${r}${a}`:`${r}${c}.${a}`;this.write(o,d,u),++a}}}else if(n.isMapSchema()){if(s&&typeof s=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let d=1;for(const[c,u]of Object.entries(s)){if(u==null)continue;const l=this.getKey("key",o.getMergedTraits().xmlName),f=a?`${r}${d}.${l}`:`${r}entry.${d}.${l}`,E=this.getKey("value",i.getMergedTraits().xmlName),P=a?`${r}${d}.${E}`:`${r}entry.${d}.${E}`;this.write(o,c,f),this.write(i,u,P),++d}}}else if(n.isStructSchema()){if(s&&typeof s=="object")for(const[o,i]of vs(n,s)){if(s[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),d=`${r}${a}`;this.write(i,s[o],d)}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,s){const r=s??t;return this.settings.capitalizeKeys?r[0].toUpperCase()+r.slice(1):r}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${ce(t)}=`}writeValue(t){this.buffer+=ce(t)}}class $s extends ft{options;serializer;deserializer;mixin=new ks;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const s={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Ms(s),this.deserializer=new Ns(s)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,s,r){const n=await super.serializeRequest(t,s,r);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(yt(t.input)==="unit"||!n.body)&&(n.body="");const o=t.name.split("#")[1]??t.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(t,s,r){const n=this.deserializer,o=D.of(t.output),i={};if(r.statusCode>=300){const l=await ae(r.body,s);l.byteLength>0&&Object.assign(i,await n.read(15,l)),await this.handleError(t,s,r,i,this.deserializeMetadata(r))}for(const l in r.headers){const f=r.headers[l];delete r.headers[l],r.headers[l.toLowerCase()]=f}const a=t.name.split("#")[1]??t.name,d=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,c=await ae(r.body,s);return c.byteLength>0&&Object.assign(i,await n.read(o,c,d)),{$metadata:this.deserializeMetadata(r),...i}}useNestedResult(){return!0}async handleError(t,s,r,n,o){const i=this.loadQueryErrorCode(r,n)??"Unknown",a=this.loadQueryError(n),d=this.loadQueryErrorMessage(n);a.message=d,a.Error={Type:a.Type,Code:a.Code,Message:d};const{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,r,a,o,(x,z)=>{try{return x.getSchema(z)}catch{return x.find(W=>D.of(W).getMergedTraits().awsQueryError?.[0]===z)}}),l=D.of(c),f=A.for(c[1]).getErrorCtor(c)??Error,E=new f(d),P={Error:a.Error};for(const[x,z]of l.structIterator()){const V=z.getMergedTraits().xmlName??x,W=a[V]??n[V];P[x]=this.deserializer.readSchema(z,W)}throw this.mixin.decorateServiceException(Object.assign(E,u,{$fault:l.getMergedTraits().error,message:d},P),n)}loadQueryErrorCode(t,s){const r=(s.Errors?.[0]?.Error??s.Errors?.Error??s.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const s=this.loadQueryError(t);return s?.message??s?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const Os=/\d{12}\.ddb/;async function Us(e,t,s){if(s.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&C(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const o=await t.retryStrategy();typeof o.acquireInitialRetryToken=="function"?o.constructor?.name?.includes("Adaptive")?C(e,"RETRY_MODE_ADAPTIVE","F"):C(e,"RETRY_MODE_STANDARD","E"):C(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const o=e.endpointV2;switch(String(o?.url?.hostname).match(Os)&&C(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":C(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":C(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":C(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){const o=n;o.accountId&&C(e,"RESOLVED_ACCOUNT_ID","T");for(const[i,a]of Object.entries(o.$source??{}))C(e,i,a)}}const le="user-agent",B="x-amz-user-agent",me=" ",q="/",Fs=/[^!$%&'*+\-.^_`|~\w]/g,zs=/[^!$%&'*+\-.^_`|~\w#]/g,pe="-",Ls=1024;function js(e){let t="";for(const s in e){const r=e[s];if(t.length+r.length+1<=Ls){t.length?t+=","+r:t+=r;continue}break}return t}const Hs=e=>(t,s)=>async r=>{const{request:n}=r;if(!xe.isInstance(n))return t(r);const{headers:o}=n,i=s?.userAgent?.map(H)||[],a=(await e.defaultUserAgentProvider()).map(H);await Us(s,e,r);const d=s;a.push(`m/${js(Object.assign({},s.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const c=e?.customUserAgent?.map(H)||[],u=await e.userAgentAppId();u&&a.push(H(["app",`${u}`]));const l=[].concat([...a,...i,...c]).join(me),f=[...a.filter(E=>E.startsWith("aws-sdk-")),...c].join(me);return e.runtime!=="browser"?(f&&(o[B]=o[B]?`${o[le]} ${f}`:f),o[le]=l):o[B]=l,t({...r,request:n})},H=e=>{const t=e[0].split(q).map(i=>i.replace(Fs,pe)).join(q),s=e[1]?.replace(zs,pe),r=t.indexOf(q),n=t.substring(0,r);let o=t.substring(r+1);return n==="api"&&(o=o.toLowerCase()),[n,o,s].filter(i=>i&&i.length>0).reduce((i,a,d)=>{switch(d){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},Vs={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ws=e=>({applyToStack:t=>{t.add(Hs(e),Vs)}}),Ks=async(e,t,s)=>({operation:Et(t).operation,region:await Re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Bs(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function qs(e){return{schemeId:"smithy.api#noAuth"}}const Qs=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(qs());break}default:t.push(Bs(e))}return t},Gs=e=>Object.assign(e,{stsClientCtor:Ke}),Xs=e=>{const t=Gs(e),s=xs(t);return Object.assign(s,{authSchemePreference:Re(e.authSchemePreference??[])})},Js=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ys={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Zs="3.940.0",er={version:Zs},$e="required",m="type",p="fn",g="argv",k="ref",ge=!1,Q=!0,I="booleanEquals",S="stringEquals",Oe="sigv4",Ue="sts",Fe="us-east-1",y="endpoint",he="https://sts.{Region}.{PartitionResult#dnsSuffix}",_="tree",F="error",te="getAttr",fe={[$e]:!1,[m]:"string"},G={[$e]:!0,default:!1,[m]:"boolean"},ze={[k]:"Endpoint"},ye={[p]:"isSet",[g]:[{[k]:"Region"}]},w={[k]:"Region"},Ee={[p]:"aws.partition",[g]:[w],assign:"PartitionResult"},Le={[k]:"UseFIPS"},je={[k]:"UseDualStack"},b={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Oe,signingName:Ue,signingRegion:Fe}]},headers:{}},T={},Se={conditions:[{[p]:S,[g]:[w,"aws-global"]}],[y]:b,[m]:y},He={[p]:I,[g]:[Le,!0]},Ve={[p]:I,[g]:[je,!0]},we={[p]:te,[g]:[{[k]:"PartitionResult"},"supportsFIPS"]},We={[k]:"PartitionResult"},be={[p]:I,[g]:[!0,{[p]:te,[g]:[We,"supportsDualStack"]}]},Te=[{[p]:"isSet",[g]:[ze]}],Pe=[He],Ae=[Ve],tr={parameters:{Region:fe,UseDualStack:G,UseFIPS:G,Endpoint:fe,UseGlobalEndpoint:G},rules:[{conditions:[{[p]:I,[g]:[{[k]:"UseGlobalEndpoint"},Q]},{[p]:"not",[g]:Te},ye,Ee,{[p]:I,[g]:[Le,ge]},{[p]:I,[g]:[je,ge]}],rules:[{conditions:[{[p]:S,[g]:[w,"ap-northeast-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-south-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-southeast-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-southeast-2"]}],endpoint:b,[m]:y},Se,{conditions:[{[p]:S,[g]:[w,"ca-central-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-central-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-north-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-2"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-3"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"sa-east-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,Fe]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-east-2"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-west-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-west-2"]}],endpoint:b,[m]:y},{endpoint:{url:he,properties:{authSchemes:[{name:Oe,signingName:Ue,signingRegion:"{Region}"}]},headers:T},[m]:y}],[m]:_},{conditions:Te,rules:[{conditions:Pe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[m]:F},{conditions:Ae,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[m]:F},{endpoint:{url:ze,properties:T,headers:T},[m]:y}],[m]:_},{conditions:[ye],rules:[{conditions:[Ee],rules:[{conditions:[He,Ve],rules:[{conditions:[{[p]:I,[g]:[Q,we]},be],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[m]:F}],[m]:_},{conditions:Pe,rules:[{conditions:[{[p]:I,[g]:[we,Q]}],rules:[{conditions:[{[p]:S,[g]:[{[p]:te,[g]:[We,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:T,headers:T},[m]:y},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"FIPS is enabled but this partition does not support FIPS",[m]:F}],[m]:_},{conditions:Ae,rules:[{conditions:[be],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"DualStack is enabled but this partition does not support DualStack",[m]:F}],[m]:_},Se,{endpoint:{url:he,properties:T,headers:T},[m]:y}],[m]:_}],[m]:_},{error:"Invalid Configuration: Missing Region",[m]:F}]},sr=tr,rr=new St({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),nr=(e,t={})=>rr.get(e,()=>wt(sr,{endpointParams:e,logger:t.logger}));Tt.aws=bt;const or=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??X,base64Encoder:e?.base64Encoder??Ie,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??nr,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Rs},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ct}],logger:e?.logger??new At,protocol:e?.protocol??new $s({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Pt,utf8Decoder:e?.utf8Decoder??as,utf8Encoder:e?.utf8Encoder??J}),ir=e=>{const t=_t(e),s=()=>t().then($t),r=or(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vt,credentialDefaultProvider:e?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??kt({serviceId:r.serviceId,clientVersion:er.version}),maxAttempts:e?.maxAttempts??Dt,region:e?.region??It("Region is missing"),requestHandler:ds.create(e?.requestHandler??s),retryMode:e?.retryMode??(async()=>(await s()).retryMode||xt),sha256:e?.sha256??Rt,streamCollector:e?.streamCollector??cs,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Mt)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Nt))}},ar=e=>{const t=e.httpAuthSchemes;let s=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(n){const o=t.findIndex(i=>i.schemeId===n.schemeId);o===-1?t.push(n):t.splice(o,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){r=n},credentials(){return r}}},cr=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),dr=(e,t)=>{const s=Object.assign(Ot(e),Ut(e),Ft(e),ar(e));return t.forEach(r=>r.configure(s)),Object.assign(e,zt(s),Lt(s),jt(s),cr(s))};class Ke extends Ht{config;constructor(...[t]){const s=ir(t||{});super(s),this.initConfig=s;const r=Js(s),n=Ps(r),o=Vt(n),i=Wt(o),a=es(i),d=Kt(a),c=Xs(d),u=dr(c,t?.extensions||[]);this.config=u,this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(qt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Xt(this.config)),this.middlewareStack.use(Jt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Ks,identityProviderConfigProvider:async l=>new ts({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(Zt(this.config))}destroy(){super.destroy()}}let v=class Be extends ss{constructor(t){super(t),Object.setPrototypeOf(this,Be.prototype)}},ur=class qe extends v{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,qe.prototype)}},lr=class Qe extends v{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,Qe.prototype)}},mr=class Ge extends v{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,Ge.prototype)}},pr=class Xe extends v{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Xe.prototype)}},gr=class Je extends v{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,Je.prototype)}},hr=class Ye extends v{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,Ye.prototype)}},fr=class Ze extends v{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,Ze.prototype)}};const yr="Arn",Er="AccessKeyId",Sr="AssumeRole",wr="AssumedRoleId",br="AssumeRoleRequest",Tr="AssumeRoleResponse",se="AssumedRoleUser",Pr="AssumeRoleWithWebIdentity",Ar="AssumeRoleWithWebIdentityRequest",Cr="AssumeRoleWithWebIdentityResponse",_r="Audience",re="Credentials",Rr="ContextAssertion",et="DurationSeconds",xr="Expiration",Ir="ExternalId",Dr="ExpiredTokenException",kr="IDPCommunicationErrorException",vr="IDPRejectedClaimException",Nr="InvalidIdentityTokenException",Mr="Key",$r="MalformedPolicyDocumentException",tt="Policy",st="PolicyArns",Or="ProviderArn",Ur="ProvidedContexts",Fr="ProvidedContextsListType",zr="ProvidedContext",Lr="PolicyDescriptorType",jr="ProviderId",rt="PackedPolicySize",Hr="PackedPolicyTooLargeException",Vr="Provider",nt="RoleArn",Wr="RegionDisabledException",ot="RoleSessionName",Kr="SecretAccessKey",Br="SubjectFromWebIdentityToken",ne="SourceIdentity",qr="SerialNumber",Qr="SessionToken",Gr="Tags",Xr="TokenCode",Jr="TransitiveTagKeys",Yr="Tag",Zr="Value",en="WebIdentityToken",tn="arn",sn="accessKeySecretType",N="awsQueryError",M="client",rn="clientTokenType",$="error",O="httpError",U="message",nn="policyDescriptorListType",it="smithy.ts.sdk.synthetic.com.amazonaws.sts",on="tagListType",h="com.amazonaws.sts";var an=[0,h,sn,8,0],cn=[0,h,rn,8,0],at=[3,h,se,0,[wr,yr],[0,0]],dn=[3,h,br,0,[nt,ot,st,tt,et,Gr,Jr,Ir,qr,Xr,ne,Ur],[0,0,()=>dt,0,1,()=>Cn,64,0,0,0,0,()=>An]],un=[3,h,Tr,0,[re,se,rt,ne],[[()=>ct,0],()=>at,1,0]],ln=[3,h,Ar,0,[nt,ot,en,jr,st,tt,et],[0,0,[()=>cn,0],0,()=>dt,0,1]],mn=[3,h,Cr,0,[re,Br,se,rt,Vr,_r,ne],[[()=>ct,0],0,()=>at,1,0,0,0]],ct=[3,h,re,0,[Er,Kr,Qr,xr],[0,[()=>an,0],0,4]],pn=[-3,h,Dr,{[$]:M,[O]:400,[N]:["ExpiredTokenException",400]},[U],[0]];A.for(h).registerError(pn,ur);var gn=[-3,h,kr,{[$]:M,[O]:400,[N]:["IDPCommunicationError",400]},[U],[0]];A.for(h).registerError(gn,fr);var hn=[-3,h,vr,{[$]:M,[O]:403,[N]:["IDPRejectedClaim",403]},[U],[0]];A.for(h).registerError(hn,gr);var fn=[-3,h,Nr,{[$]:M,[O]:400,[N]:["InvalidIdentityToken",400]},[U],[0]];A.for(h).registerError(fn,hr);var yn=[-3,h,$r,{[$]:M,[O]:400,[N]:["MalformedPolicyDocument",400]},[U],[0]];A.for(h).registerError(yn,lr);var En=[-3,h,Hr,{[$]:M,[O]:400,[N]:["PackedPolicyTooLarge",400]},[U],[0]];A.for(h).registerError(En,mr);var Sn=[3,h,Lr,0,[tn],[0]],wn=[3,h,zr,0,[Or,Rr],[0,0]],bn=[-3,h,Wr,{[$]:M,[O]:403,[N]:["RegionDisabledException",403]},[U],[0]];A.for(h).registerError(bn,pr);var Tn=[3,h,Yr,0,[Mr,Zr],[0,0]],Pn=[-3,it,"STSServiceException",0,[],[]];A.for(it).registerError(Pn,v);var dt=[1,h,nn,0,()=>Sn],An=[1,h,Fr,0,()=>wn],Cn=[1,h,on,0,()=>Tn],_n=[9,h,Sr,0,()=>dn,()=>un],Dn=[9,h,Pr,0,()=>ln,()=>mn];class Rn extends rs.classBuilder().ep(Ys).m(function(t,s,r,n){return[ns(r,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(_n).build(){}const kn=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Rn,STSClient:Ke},Symbol.toStringTag,{value:"Module"}));export{Dn as A,ur as E,gr as I,lr as M,mr as P,pr as R,Ke as S,v as a,Rn as b,Ys as c,hr as d,fr as e,kn as l,As as s};
|
|
1
|
+
import{a2 as ut,N as D,f as Ce,L as lt,c as _e,S as oe,m as mt,d as pt,i as gt,T as A,b as ie,v as ht,R as ft,h as yt,e as ae,n as Re,j as Et,E as St,r as wt,k as bt,l as Tt,p as Pt,o as At,q as Ct,s as _t,t as Rt,D as xt,u as It,w as Dt,x as kt,y as vt,z as Nt,A as Mt,B as $t,F as Ot,G as Ut,H as Ft,I as zt,J as Lt,K as jt,a as Ht,M as Vt,O as Wt,P as Kt,Q as Bt,U as qt,V as Qt,W as Gt,X as Xt,Y as Jt,Z as Yt,_ as Zt,$ as es,a0 as ts,a1 as ss,C as rs,g as ns}from"./index-WGtSo5ft.js";import{d as X,t as J,n as L,c as os,H as xe,a as Ie,i as is,f as as,s as cs,F as ds}from"./normalizeProvider-BrOPyH3l.js";function ce(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const Y="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Z="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",ee="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",De="(\\d?\\d)",ke="(\\d{4})",us=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),ls=new RegExp(`^${Y}, ${De} ${Z} ${ke} ${ee} GMT$`),ms=new RegExp(`^${Y}, ${De}-${Z}-(\\d\\d) ${ee} GMT$`),ps=new RegExp(`^${Y} ${Z} ( [1-9]|\\d\\d) ${ee} ${ke}$`),gs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hs=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},fs=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");const t=us.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,s,r,n,o,i,a,,d,c]=t;R(r,1,12),R(n,1,31),R(o,0,23),R(i,0,59),R(a,0,60);const u=new Date(Date.UTC(Number(s),Number(r)-1,Number(n),Number(o),Number(i),Number(a),Number(d)?Math.round(parseFloat(`0.${d}`)*1e3):0));if(u.setUTCFullYear(Number(s)),c.toUpperCase()!="Z"){const[,l,f,E]=/([+-])(\d\d):(\d\d)/.exec(c)||[void 0,"+",0,0],P=l==="-"?1:-1;u.setTime(u.getTime()+P*(Number(f)*60*60*1e3+Number(E)*60*1e3))}return u},ys=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,s,r,n,o,i,a,d;if((d=ls.exec(e))?[,t,s,r,n,o,i,a]=d:(d=ms.exec(e))?([,t,s,r,n,o,i,a]=d,r=(Number(r)+1900).toString()):(d=ps.exec(e))&&([,s,t,n,o,i,a,r]=d),r&&i){const c=Date.UTC(Number(r),gs.indexOf(s),Number(t),Number(n),Number(o),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);R(t,1,31),R(n,0,23),R(o,0,59),R(i,0,60);const u=new Date(c);return u.setUTCFullYear(Number(r)),u}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function R(e,t,s){const r=Number(e);if(r<t||r>s)throw new Error(`Value ${r} out of range [${t}, ${s}]`)}const Es=e=>{const t=e.length,s=[];let r=!1,n,o=0;for(let i=0;i<t;++i){const a=e[i];switch(a){case'"':n!=="\\"&&(r=!r);break;case",":r||(s.push(e.slice(o,i)),o=i+1);break}n=a}return s.push(e.slice(o)),s.map(i=>{i=i.trim();const a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})};class Ss extends ut{settings;constructor(t){super(),this.settings=t}read(t,s){const r=D.of(t);if(r.isListSchema())return Es(s).map(n=>this.read(r.getValueSchema(),n));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??X)(s);if(r.isTimestampSchema())switch(Ce(r,this.settings)){case 5:return fs(s);case 6:return ys(s);case 7:return hs(s);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",s),new Date(s)}if(r.isStringSchema()){const n=r.getMergedTraits().mediaType;let o=s;if(n)return r.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(n==="application/json"||n.endsWith("+json"))&&(o=lt.from(o)),o}return r.isNumericSchema()?Number(s):r.isBigIntegerSchema()?BigInt(s):r.isBigDecimalSchema()?new _e(s,"bigDecimal"):r.isBooleanSchema()?String(s).toLowerCase()==="true":s}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??J)((this.serdeContext?.base64Decoder??X)(t))}}const ve=e=>{const t="#text";for(const s in e)e.hasOwnProperty(s)&&e[s][t]!==void 0?e[s]=e[s][t]:typeof e[s]=="object"&&e[s]!==null&&(e[s]=ve(e[s]));return e};let K;function ws(e){K||(K=new DOMParser);const t=K.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const s=r=>{if(r.nodeType===Node.TEXT_NODE&&r.textContent?.trim())return r.textContent;if(r.nodeType===Node.ELEMENT_NODE){const n=r;if(n.attributes.length===0&&n.childNodes.length===0)return"";const o={},i=Array.from(n.attributes);for(const d of i)o[`${d.name}`]=d.value;const a=Array.from(n.childNodes);for(const d of a){const c=s(d);if(c!=null){const u=d.nodeName;if(a.length===1&&i.length===0&&u==="#text")return c;o[u]?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}else if(a.length===1&&i.length===0)return n.textContent}return o}return null};return{[t.documentElement.nodeName]:s(t.documentElement)}}const bs=void 0;function Ts(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function Ps(e){const t=L(e.userAgentAppId??bs),{customUserAgent:s}=e;return Object.assign(e,{customUserAgent:typeof s=="string"?[[s]]:s,userAgentAppId:async()=>{const r=await t();if(!Ts(r)){const n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?n?.warn("userAgentAppId must be a string or undefined."):r.length>50&&n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}function As(e,t,s){return e.$source||(e.$source={}),e.$source[t]=s,e}function C(e,t,s){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]=s}const de=e=>os.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ne=e=>new Date(Date.now()+e),Cs=(e,t)=>Math.abs(Ne(t).getTime()-e)>=3e5,ue=(e,t)=>{const s=Date.parse(e);return Cs(s,t)?s-Date.now():t},j=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},_s=async e=>{const t=j("context",e.context),s=j("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],o=await j("signer",s.signer)(r),i=e?.signingRegion,a=e?.signingRegionSet,d=e?.signingName;return{config:s,signer:o,signingRegion:i,signingRegionSet:a,signingName:d}};class Rs{async sign(t,s,r){if(!xe.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const n=await _s(r),{config:o,signer:i}=n;let{signingRegion:a,signingName:d}=n;const c=r.context;if(c?.authSchemes?.length??!1){const[l,f]=c.authSchemes;l?.name==="sigv4a"&&f?.name==="sigv4"&&(a=f?.signingRegion??a,d=f?.signingName??d)}return await i.sign(t,{signingDate:Ne(o.systemClockOffset),signingRegion:a,signingService:d})}errorHandler(t){return s=>{const r=s.ServerTime??de(s.$response);if(r){const n=j("config",t.config),o=n.systemClockOffset;n.systemClockOffset=ue(r,n.systemClockOffset),n.systemClockOffset!==o&&s.$metadata&&(s.$metadata.clockSkewCorrected=!0)}throw s}}successHandler(t,s){const r=de(t);if(r){const n=j("config",s.config);n.systemClockOffset=ue(r,n.systemClockOffset)}}}const xs=e=>{let t=e.credentials,s=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(c){c&&c!==t&&c!==r&&(s=!0),t=c;const u=Is(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),l=Ds(e,u);s&&!l.attributed?(r=async f=>l(f).then(E=>As(E,"CREDENTIALS_CODE","e")),r.memoized=l.memoized,r.configBound=l.configBound,r.attributed=!0):r=l},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:n=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:i}=e;let a;return e.signer?a=L(e.signer):e.regionInfoProvider?a=()=>L(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,u])=>{const{signingRegion:l,signingService:f}=c;e.signingRegion=e.signingRegion||l||u,e.signingName=e.signingName||f||e.serviceId;const E={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},P=e.signerConstructor||oe;return new P(E)}):a=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await L(e.region)(),properties:{}},c);const u=c.signingRegion,l=c.signingName;e.signingRegion=e.signingRegion||u,e.signingName=e.signingName||l||e.serviceId;const f={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},E=e.signerConstructor||oe;return new E(f)},Object.assign(e,{systemClockOffset:o,signingEscapePath:n,signer:a})};function Is(e,{credentials:t,credentialDefaultProvider:s}){let r;return t?t?.memoized?r=t:r=mt(t,gt,pt):s?r=L(s(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function Ds(e,t){if(t.configBound)return t;const s=async r=>t({...r,callerClientConfig:e});return s.memoized=t.memoized,s.configBound=!0,s}class ks{queryCompat;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,s){const r=s.getMemberSchemas(),n=Object.values(r).find(o=>!!o.getMergedTraits().httpPayload);if(n){const o=n.getMergedTraits().mediaType;return o||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":t)}else if(!s.isUnitSchema()&&Object.values(r).find(i=>{const{httpQuery:a,httpQueryParams:d,httpHeader:c,httpLabel:u,httpPrefixHeaders:l}=i.getMergedTraits();return!a&&!d&&!c&&!u&&l===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,s,r,n,o,i){let a=s,d=t;t.includes("#")&&([a,d]=t.split("#"));const c={$metadata:o,$fault:r.statusCode<500?"client":"server"},u=A.for(a);try{return{errorSchema:i?.(u,d)??u.getSchema(t),errorMetadata:c}}catch{n.message=n.message??n.Message??"UnknownError";const f=A.for("smithy.ts.sdk.synthetic."+a),E=f.getBaseException();if(E){const P=f.getErrorCtor(E)??Error;throw this.decorateServiceException(Object.assign(new P({name:d}),c),n)}throw this.decorateServiceException(Object.assign(new Error(d),c),n)}}decorateServiceException(t,s={}){if(this.queryCompat){const r=t.Message??s.Message,n=ie(t,s);return r&&(n.Message=r,n.message=r),n}return ie(t,s)}setQueryCompatError(t,s){const r=s.headers?.["x-amzn-query-error"];if(t!==void 0&&r!=null){const[n,o]=r.split(";"),i=Object.entries(t),a={Code:n,Type:o};Object.assign(t,a);for(const[d,c]of i)a[d]=c;delete a.__type,t.Error=a}}queryCompatOutput(t,s){t.Error&&(s.Error=t.Error),t.Type&&(s.Type=t.Type),t.Code&&(s.Code=t.Code)}}class Me{serdeContext;setSerdeContext(t){this.serdeContext=t}}function*vs(e,t){if(e.isUnitSchema())return;const s=e.getSchema();for(let r=0;r<s[4].length;++r){const n=s[4][r],o=new D([s[5][r],0],n);!(n in t)&&!o.isIdempotencyToken()||(yield[n,o])}}class Ns extends Me{settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new Ss(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,s,r){const n=D.of(t),o=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(o).find(c=>!!c.getMemberTraits().eventPayload)){const c={},u=Object.keys(o)[0];return o[u].isBlobSchema()?c[u]=s:c[u]=this.read(o[u],s),c}const a=(this.serdeContext?.utf8Encoder??J)(s),d=this.parseXml(a);return this.readSchema(t,r?d[r]:d)}readSchema(t,s){const r=D.of(t);if(r.isUnitSchema())return;const n=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(s))return this.readSchema(r,[s]);if(s==null)return s;if(typeof s=="object"){const o=!!n.sparse,i=!!n.xmlFlattened;if(r.isListSchema()){const d=r.getValueSchema(),c=[],u=d.getMergedTraits().xmlName??"member",l=i?s:(s[0]??s)[u],f=Array.isArray(l)?l:[l];for(const E of f)(E!=null||o)&&c.push(this.readSchema(d,E));return c}const a={};if(r.isMapSchema()){const d=r.getKeySchema(),c=r.getValueSchema();let u;i?u=Array.isArray(s)?s:[s]:u=Array.isArray(s.entry)?s.entry:[s.entry];const l=d.getMergedTraits().xmlName??"key",f=c.getMergedTraits().xmlName??"value";for(const E of u){const P=E[l],x=E[f];(x!=null||o)&&(a[P]=this.readSchema(c,x))}return a}if(r.isStructSchema()){for(const[d,c]of r.structIterator()){const u=c.getMergedTraits(),l=u.httpPayload?u.xmlName??c.getName():c.getMemberTraits().xmlName??d;s[l]!=null&&(a[d]=this.readSchema(c,s[l]))}return a}if(r.isDocumentSchema())return s;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,s)}parseXml(t){if(t.length){let s;try{s=ws(t)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:t}),i}const r="#text",n=Object.keys(s)[0],o=s[n];return o[r]&&(o[n]=o[r],delete o[r]),ve(o)}return{}}}class Ms extends Me{settings;buffer;constructor(t){super(),this.settings=t}write(t,s,r=""){this.buffer===void 0&&(this.buffer="");const n=D.of(t);if(r&&!r.endsWith(".")&&(r+="."),n.isBlobSchema())(typeof s=="string"||s instanceof Uint8Array)&&(this.writeKey(r),this.writeValue((this.serdeContext?.base64Encoder??Ie)(s)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())s!=null?(this.writeKey(r),this.writeValue(String(s))):n.isIdempotencyToken()&&(this.writeKey(r),this.writeValue(ht()));else if(n.isBigIntegerSchema())s!=null&&(this.writeKey(r),this.writeValue(String(s)));else if(n.isBigDecimalSchema())s!=null&&(this.writeKey(r),this.writeValue(s instanceof _e?s.string:String(s)));else if(n.isTimestampSchema()){if(s instanceof Date)switch(this.writeKey(r),Ce(n,this.settings)){case 5:this.writeValue(s.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(is(s));break;case 7:this.writeValue(String(s.getTime()/1e3));break}}else{if(n.isDocumentSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${n.getName(!0)}`);if(n.isListSchema()){if(Array.isArray(s))if(s.length===0)this.settings.serializeEmptyLists&&(this.writeKey(r),this.writeValue(""));else{const o=n.getValueSchema(),i=this.settings.flattenLists||n.getMergedTraits().xmlFlattened;let a=1;for(const d of s){if(d==null)continue;const c=this.getKey("member",o.getMergedTraits().xmlName),u=i?`${r}${a}`:`${r}${c}.${a}`;this.write(o,d,u),++a}}}else if(n.isMapSchema()){if(s&&typeof s=="object"){const o=n.getKeySchema(),i=n.getValueSchema(),a=n.getMergedTraits().xmlFlattened;let d=1;for(const[c,u]of Object.entries(s)){if(u==null)continue;const l=this.getKey("key",o.getMergedTraits().xmlName),f=a?`${r}${d}.${l}`:`${r}entry.${d}.${l}`,E=this.getKey("value",i.getMergedTraits().xmlName),P=a?`${r}${d}.${E}`:`${r}entry.${d}.${E}`;this.write(o,c,f),this.write(i,u,P),++d}}}else if(n.isStructSchema()){if(s&&typeof s=="object")for(const[o,i]of vs(n,s)){if(s[o]==null&&!i.isIdempotencyToken())continue;const a=this.getKey(o,i.getMergedTraits().xmlName),d=`${r}${a}`;this.write(i,s[o],d)}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");const t=this.buffer;return delete this.buffer,t}getKey(t,s){const r=s??t;return this.settings.capitalizeKeys?r[0].toUpperCase()+r.slice(1):r}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${ce(t)}=`}writeValue(t){this.buffer+=ce(t)}}class $s extends ft{options;serializer;deserializer;mixin=new ks;constructor(t){super({defaultNamespace:t.defaultNamespace}),this.options=t;const s={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Ms(s),this.deserializer=new Ns(s)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,s,r){const n=await super.serializeRequest(t,s,r);n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":"application/x-www-form-urlencoded"}),(yt(t.input)==="unit"||!n.body)&&(n.body="");const o=t.name.split("#")[1]??t.name;return n.body=`Action=${o}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(t,s,r){const n=this.deserializer,o=D.of(t.output),i={};if(r.statusCode>=300){const l=await ae(r.body,s);l.byteLength>0&&Object.assign(i,await n.read(15,l)),await this.handleError(t,s,r,i,this.deserializeMetadata(r))}for(const l in r.headers){const f=r.headers[l];delete r.headers[l],r.headers[l.toLowerCase()]=f}const a=t.name.split("#")[1]??t.name,d=o.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,c=await ae(r.body,s);return c.byteLength>0&&Object.assign(i,await n.read(o,c,d)),{$metadata:this.deserializeMetadata(r),...i}}useNestedResult(){return!0}async handleError(t,s,r,n,o){const i=this.loadQueryErrorCode(r,n)??"Unknown",a=this.loadQueryError(n),d=this.loadQueryErrorMessage(n);a.message=d,a.Error={Type:a.Type,Code:a.Code,Message:d};const{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(i,this.options.defaultNamespace,r,a,o,(x,z)=>{try{return x.getSchema(z)}catch{return x.find(W=>D.of(W).getMergedTraits().awsQueryError?.[0]===z)}}),l=D.of(c),f=A.for(c[1]).getErrorCtor(c)??Error,E=new f(d),P={Error:a.Error};for(const[x,z]of l.structIterator()){const V=z.getMergedTraits().xmlName??x,W=a[V]??n[V];P[x]=this.deserializer.readSchema(z,W)}throw this.mixin.decorateServiceException(Object.assign(E,u,{$fault:l.getMergedTraits().error,message:d},P),n)}loadQueryErrorCode(t,s){const r=(s.Errors?.[0]?.Error??s.Errors?.Error??s.Error)?.Code;if(r!==void 0)return r;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){const s=this.loadQueryError(t);return s?.message??s?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}const Os=/\d{12}\.ddb/;async function Us(e,t,s){if(s.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&C(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const o=await t.retryStrategy();typeof o.acquireInitialRetryToken=="function"?o.constructor?.name?.includes("Adaptive")?C(e,"RETRY_MODE_ADAPTIVE","F"):C(e,"RETRY_MODE_STANDARD","E"):C(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const o=e.endpointV2;switch(String(o?.url?.hostname).match(Os)&&C(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":C(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":C(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":C(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){const o=n;o.accountId&&C(e,"RESOLVED_ACCOUNT_ID","T");for(const[i,a]of Object.entries(o.$source??{}))C(e,i,a)}}const le="user-agent",B="x-amz-user-agent",me=" ",q="/",Fs=/[^!$%&'*+\-.^_`|~\w]/g,zs=/[^!$%&'*+\-.^_`|~\w#]/g,pe="-",Ls=1024;function js(e){let t="";for(const s in e){const r=e[s];if(t.length+r.length+1<=Ls){t.length?t+=","+r:t+=r;continue}break}return t}const Hs=e=>(t,s)=>async r=>{const{request:n}=r;if(!xe.isInstance(n))return t(r);const{headers:o}=n,i=s?.userAgent?.map(H)||[],a=(await e.defaultUserAgentProvider()).map(H);await Us(s,e,r);const d=s;a.push(`m/${js(Object.assign({},s.__smithy_context?.features,d.__aws_sdk_context?.features))}`);const c=e?.customUserAgent?.map(H)||[],u=await e.userAgentAppId();u&&a.push(H(["app",`${u}`]));const l=[].concat([...a,...i,...c]).join(me),f=[...a.filter(E=>E.startsWith("aws-sdk-")),...c].join(me);return e.runtime!=="browser"?(f&&(o[B]=o[B]?`${o[le]} ${f}`:f),o[le]=l):o[B]=l,t({...r,request:n})},H=e=>{const t=e[0].split(q).map(i=>i.replace(Fs,pe)).join(q),s=e[1]?.replace(zs,pe),r=t.indexOf(q),n=t.substring(0,r);let o=t.substring(r+1);return n==="api"&&(o=o.toLowerCase()),[n,o,s].filter(i=>i&&i.length>0).reduce((i,a,d)=>{switch(d){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},Vs={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Ws=e=>({applyToStack:t=>{t.add(Hs(e),Vs)}}),Ks=async(e,t,s)=>({operation:Et(t).operation,region:await Re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Bs(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function qs(e){return{schemeId:"smithy.api#noAuth"}}const Qs=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(qs());break}default:t.push(Bs(e))}return t},Gs=e=>Object.assign(e,{stsClientCtor:Ke}),Xs=e=>{const t=Gs(e),s=xs(t);return Object.assign(s,{authSchemePreference:Re(e.authSchemePreference??[])})},Js=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ys={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Zs="3.940.0",er={version:Zs},$e="required",m="type",p="fn",g="argv",k="ref",ge=!1,Q=!0,I="booleanEquals",S="stringEquals",Oe="sigv4",Ue="sts",Fe="us-east-1",y="endpoint",he="https://sts.{Region}.{PartitionResult#dnsSuffix}",_="tree",F="error",te="getAttr",fe={[$e]:!1,[m]:"string"},G={[$e]:!0,default:!1,[m]:"boolean"},ze={[k]:"Endpoint"},ye={[p]:"isSet",[g]:[{[k]:"Region"}]},w={[k]:"Region"},Ee={[p]:"aws.partition",[g]:[w],assign:"PartitionResult"},Le={[k]:"UseFIPS"},je={[k]:"UseDualStack"},b={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Oe,signingName:Ue,signingRegion:Fe}]},headers:{}},T={},Se={conditions:[{[p]:S,[g]:[w,"aws-global"]}],[y]:b,[m]:y},He={[p]:I,[g]:[Le,!0]},Ve={[p]:I,[g]:[je,!0]},we={[p]:te,[g]:[{[k]:"PartitionResult"},"supportsFIPS"]},We={[k]:"PartitionResult"},be={[p]:I,[g]:[!0,{[p]:te,[g]:[We,"supportsDualStack"]}]},Te=[{[p]:"isSet",[g]:[ze]}],Pe=[He],Ae=[Ve],tr={parameters:{Region:fe,UseDualStack:G,UseFIPS:G,Endpoint:fe,UseGlobalEndpoint:G},rules:[{conditions:[{[p]:I,[g]:[{[k]:"UseGlobalEndpoint"},Q]},{[p]:"not",[g]:Te},ye,Ee,{[p]:I,[g]:[Le,ge]},{[p]:I,[g]:[je,ge]}],rules:[{conditions:[{[p]:S,[g]:[w,"ap-northeast-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-south-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-southeast-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"ap-southeast-2"]}],endpoint:b,[m]:y},Se,{conditions:[{[p]:S,[g]:[w,"ca-central-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-central-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-north-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-2"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"eu-west-3"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"sa-east-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,Fe]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-east-2"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-west-1"]}],endpoint:b,[m]:y},{conditions:[{[p]:S,[g]:[w,"us-west-2"]}],endpoint:b,[m]:y},{endpoint:{url:he,properties:{authSchemes:[{name:Oe,signingName:Ue,signingRegion:"{Region}"}]},headers:T},[m]:y}],[m]:_},{conditions:Te,rules:[{conditions:Pe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[m]:F},{conditions:Ae,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[m]:F},{endpoint:{url:ze,properties:T,headers:T},[m]:y}],[m]:_},{conditions:[ye],rules:[{conditions:[Ee],rules:[{conditions:[He,Ve],rules:[{conditions:[{[p]:I,[g]:[Q,we]},be],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[m]:F}],[m]:_},{conditions:Pe,rules:[{conditions:[{[p]:I,[g]:[we,Q]}],rules:[{conditions:[{[p]:S,[g]:[{[p]:te,[g]:[We,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:T,headers:T},[m]:y},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"FIPS is enabled but this partition does not support FIPS",[m]:F}],[m]:_},{conditions:Ae,rules:[{conditions:[be],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:T,headers:T},[m]:y}],[m]:_},{error:"DualStack is enabled but this partition does not support DualStack",[m]:F}],[m]:_},Se,{endpoint:{url:he,properties:T,headers:T},[m]:y}],[m]:_}],[m]:_},{error:"Invalid Configuration: Missing Region",[m]:F}]},sr=tr,rr=new St({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),nr=(e,t={})=>rr.get(e,()=>wt(sr,{endpointParams:e,logger:t.logger}));Tt.aws=bt;const or=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??X,base64Encoder:e?.base64Encoder??Ie,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??nr,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Rs},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ct}],logger:e?.logger??new At,protocol:e?.protocol??new $s({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Pt,utf8Decoder:e?.utf8Decoder??as,utf8Encoder:e?.utf8Encoder??J}),ir=e=>{const t=_t(e),s=()=>t().then($t),r=or(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vt,credentialDefaultProvider:e?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??kt({serviceId:r.serviceId,clientVersion:er.version}),maxAttempts:e?.maxAttempts??Dt,region:e?.region??It("Region is missing"),requestHandler:ds.create(e?.requestHandler??s),retryMode:e?.retryMode??(async()=>(await s()).retryMode||xt),sha256:e?.sha256??Rt,streamCollector:e?.streamCollector??cs,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Mt)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(Nt))}},ar=e=>{const t=e.httpAuthSchemes;let s=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(n){const o=t.findIndex(i=>i.schemeId===n.schemeId);o===-1?t.push(n):t.splice(o,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){r=n},credentials(){return r}}},cr=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),dr=(e,t)=>{const s=Object.assign(Ot(e),Ut(e),Ft(e),ar(e));return t.forEach(r=>r.configure(s)),Object.assign(e,zt(s),Lt(s),jt(s),cr(s))};class Ke extends Ht{config;constructor(...[t]){const s=ir(t||{});super(s),this.initConfig=s;const r=Js(s),n=Ps(r),o=Vt(n),i=Wt(o),a=es(i),d=Kt(a),c=Xs(d),u=dr(c,t?.extensions||[]);this.config=u,this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(Ws(this.config)),this.middlewareStack.use(qt(this.config)),this.middlewareStack.use(Qt(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Xt(this.config)),this.middlewareStack.use(Jt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Ks,identityProviderConfigProvider:async l=>new ts({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(Zt(this.config))}destroy(){super.destroy()}}let v=class Be extends ss{constructor(t){super(t),Object.setPrototypeOf(this,Be.prototype)}},ur=class qe extends v{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,qe.prototype)}},lr=class Qe extends v{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,Qe.prototype)}},mr=class Ge extends v{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,Ge.prototype)}},pr=class Xe extends v{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,Xe.prototype)}},gr=class Je extends v{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,Je.prototype)}},hr=class Ye extends v{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,Ye.prototype)}},fr=class Ze extends v{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,Ze.prototype)}};const yr="Arn",Er="AccessKeyId",Sr="AssumeRole",wr="AssumedRoleId",br="AssumeRoleRequest",Tr="AssumeRoleResponse",se="AssumedRoleUser",Pr="AssumeRoleWithWebIdentity",Ar="AssumeRoleWithWebIdentityRequest",Cr="AssumeRoleWithWebIdentityResponse",_r="Audience",re="Credentials",Rr="ContextAssertion",et="DurationSeconds",xr="Expiration",Ir="ExternalId",Dr="ExpiredTokenException",kr="IDPCommunicationErrorException",vr="IDPRejectedClaimException",Nr="InvalidIdentityTokenException",Mr="Key",$r="MalformedPolicyDocumentException",tt="Policy",st="PolicyArns",Or="ProviderArn",Ur="ProvidedContexts",Fr="ProvidedContextsListType",zr="ProvidedContext",Lr="PolicyDescriptorType",jr="ProviderId",rt="PackedPolicySize",Hr="PackedPolicyTooLargeException",Vr="Provider",nt="RoleArn",Wr="RegionDisabledException",ot="RoleSessionName",Kr="SecretAccessKey",Br="SubjectFromWebIdentityToken",ne="SourceIdentity",qr="SerialNumber",Qr="SessionToken",Gr="Tags",Xr="TokenCode",Jr="TransitiveTagKeys",Yr="Tag",Zr="Value",en="WebIdentityToken",tn="arn",sn="accessKeySecretType",N="awsQueryError",M="client",rn="clientTokenType",$="error",O="httpError",U="message",nn="policyDescriptorListType",it="smithy.ts.sdk.synthetic.com.amazonaws.sts",on="tagListType",h="com.amazonaws.sts";var an=[0,h,sn,8,0],cn=[0,h,rn,8,0],at=[3,h,se,0,[wr,yr],[0,0]],dn=[3,h,br,0,[nt,ot,st,tt,et,Gr,Jr,Ir,qr,Xr,ne,Ur],[0,0,()=>dt,0,1,()=>Cn,64,0,0,0,0,()=>An]],un=[3,h,Tr,0,[re,se,rt,ne],[[()=>ct,0],()=>at,1,0]],ln=[3,h,Ar,0,[nt,ot,en,jr,st,tt,et],[0,0,[()=>cn,0],0,()=>dt,0,1]],mn=[3,h,Cr,0,[re,Br,se,rt,Vr,_r,ne],[[()=>ct,0],0,()=>at,1,0,0,0]],ct=[3,h,re,0,[Er,Kr,Qr,xr],[0,[()=>an,0],0,4]],pn=[-3,h,Dr,{[$]:M,[O]:400,[N]:["ExpiredTokenException",400]},[U],[0]];A.for(h).registerError(pn,ur);var gn=[-3,h,kr,{[$]:M,[O]:400,[N]:["IDPCommunicationError",400]},[U],[0]];A.for(h).registerError(gn,fr);var hn=[-3,h,vr,{[$]:M,[O]:403,[N]:["IDPRejectedClaim",403]},[U],[0]];A.for(h).registerError(hn,gr);var fn=[-3,h,Nr,{[$]:M,[O]:400,[N]:["InvalidIdentityToken",400]},[U],[0]];A.for(h).registerError(fn,hr);var yn=[-3,h,$r,{[$]:M,[O]:400,[N]:["MalformedPolicyDocument",400]},[U],[0]];A.for(h).registerError(yn,lr);var En=[-3,h,Hr,{[$]:M,[O]:400,[N]:["PackedPolicyTooLarge",400]},[U],[0]];A.for(h).registerError(En,mr);var Sn=[3,h,Lr,0,[tn],[0]],wn=[3,h,zr,0,[Or,Rr],[0,0]],bn=[-3,h,Wr,{[$]:M,[O]:403,[N]:["RegionDisabledException",403]},[U],[0]];A.for(h).registerError(bn,pr);var Tn=[3,h,Yr,0,[Mr,Zr],[0,0]],Pn=[-3,it,"STSServiceException",0,[],[]];A.for(it).registerError(Pn,v);var dt=[1,h,nn,0,()=>Sn],An=[1,h,Fr,0,()=>wn],Cn=[1,h,on,0,()=>Tn],_n=[9,h,Sr,0,()=>dn,()=>un],Dn=[9,h,Pr,0,()=>ln,()=>mn];class Rn extends rs.classBuilder().ep(Ys).m(function(t,s,r,n){return[ns(r,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(_n).build(){}const kn=Object.freeze(Object.defineProperty({__proto__:null,AssumeRoleCommand:Rn,STSClient:Ke},Symbol.toStringTag,{value:"Module"}));export{Dn as A,ur as E,gr as I,lr as M,mr as P,pr as R,Ke as S,v as a,Rn as b,Ys as c,hr as d,fr as e,kn as l,As as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./index-
|
|
1
|
+
import{r as o}from"./index-DfUQvyyO.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./preload-helper-BlTxHScW.js";import"./_commonjsHelpers-38a7CZ6X-W3E8ocG7.js";import"./index-VamKv2HZ--hbiLl7B.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index-D5v913EJ-CsbEilVn.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js";import"./index-VamKv2HZ-CaraMydH-D75zmpPt.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";export{o as default};
|
package/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
11
11
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
12
12
|
<link href="https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap" rel="stylesheet">
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-DfUQvyyO.js"></script>
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-D6-XlEtG.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-BlTxHScW.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js">
|