@agentlang/lstudio 0.1.4 → 0.1.5

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.
Files changed (44) hide show
  1. package/assets/{index-BTT5ny1x.js → index-BVDalg8J.js} +1 -1
  2. package/assets/index-Bto-kj6R-C0A_3Pwb.js +1 -0
  3. package/assets/index-CRBN_oZa.js +1 -0
  4. package/assets/{index-CZyH7rAI-yNipxqK_.js → index-Cgd01XOu-DZ3EXoBB.js} +2 -2
  5. package/assets/{index-Co3vdAJe.js → index-CzztApPS.js} +1660 -16027
  6. package/assets/index-KGBiLwKE-Doz2tX9S.js +58 -0
  7. package/assets/index-cBigiEzZ.js +1 -0
  8. package/assets/index.browser-BHPvGrwi-6Mh8eUw-.js +1 -0
  9. package/assets/index.browser-DJzU6L_M.js +6 -0
  10. package/assets/inherits_browser-nmOknR35-Bp0mvRSL.js +1 -0
  11. package/assets/loadCognitoIdentity-CJ88jpa8.js +1 -0
  12. package/assets/{loadSts-DMCb081s.js → loadSts-C3D0kgNq.js} +1 -1
  13. package/assets/replService-zmzywhSy.js +1 -0
  14. package/assets/util-CNqBjtt6-GUXK7Yxz.js +10 -0
  15. package/assets/util-DZRIOW0Z-CproX86h.js +1 -0
  16. package/assets/winston-D0VJZ3P8-x1CFZMA0.js +1 -0
  17. package/assets/{winston-CtcDki1r-tmxR7nDg.js → winston-D1zwHYTY-CkaOApIk.js} +27 -27
  18. package/index.html +4 -9
  19. package/package.json +1 -1
  20. package/assets/__vite-browser-external-CoxO8HJt-D7Ct-6yo.js +0 -1
  21. package/assets/__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js +0 -1
  22. package/assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js +0 -1
  23. package/assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js +0 -1
  24. package/assets/index-B1NQshiH.js +0 -1
  25. package/assets/index-CNLtnwcG-CT9Tl0QI.js +0 -20
  26. package/assets/index-CNLtnwcG-HJoxiQBn-DSWPwCKS.js +0 -20
  27. package/assets/index-CUtIwvTY-Dla_hTy0.js +0 -58
  28. package/assets/index-Cgq2oNtK.js +0 -1
  29. package/assets/index-D5v913EJ-CsbEilVn.js +0 -1
  30. package/assets/index-DGQM-tVy-4NRC-u1U.js +0 -1
  31. package/assets/index-VamKv2HZ--hbiLl7B.js +0 -5
  32. package/assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js +0 -5
  33. package/assets/index-xuotMAFm-B-PTrwYx.js +0 -1
  34. package/assets/index.browser-B70rfuZo.js +0 -6
  35. package/assets/inherits_browser-BPb0V7-q-C7Z2MfVc.js +0 -1
  36. package/assets/loadCognitoIdentity-BJn2-7kg.js +0 -1
  37. package/assets/replService-Cb5nIeeC.js +0 -1
  38. package/assets/util-ByC4ZISM-BeKX2g97.js +0 -1
  39. package/assets/util-Di1GNq-L-D-kgTTr0.js +0 -10
  40. package/assets/winston-Bb5ONwX_-B86ttl8E.js +0 -1
  41. package/assets/winston-Bb5ONwX_-ziOUC-cl-v-kyB29h.js +0 -1
  42. package/assets/winston-BvKfy0iJ-CwnGwJ9X.js +0 -51
  43. package/assets/winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js +0 -51
  44. package/assets/winston-CLh__iui-Dz2dJhwh.js +0 -1
@@ -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-BTT5ny1x.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-BVDalg8J.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};
@@ -0,0 +1 @@
1
+ import{r as o}from"./index-CzztApPS.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DJy8wZt7.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-6mKfgpcs-DsgiI2lM.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.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./index-D1jV2j2Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-DIt05veo.js";import"./inherits_browser-5Fj3Mjxs.js";export{o as default};
@@ -0,0 +1,10 @@
1
+ import{E as O,L as St}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{G as Ot,U as it,Y as At,F as Z,N as xt,J as Bt,D as Et,w as kt}from"./index-69shuAsh-DF18H7zf.js";var at={},ct={},et,st;function Dt(){if(st)return et;st=1;var n=it()(),v=Z(),m=v("Object.prototype.toString"),p=function(f){return n&&f&&typeof f=="object"&&Symbol.toStringTag in f?!1:m(f)==="[object Arguments]"},g=function(f){return p(f)?!0:f!==null&&typeof f=="object"&&"length"in f&&typeof f.length=="number"&&f.length>=0&&m(f)!=="[object Array]"&&"callee"in f&&m(f.callee)==="[object Function]"},b=(function(){return p(arguments)})();return p.isLegacyArguments=g,et=b?p:g,et}var rt,pt;function Pt(){if(pt)return rt;pt=1;var n=Z(),v=it()(),m=kt(),p=Et(),g;if(v){var b=n("RegExp.prototype.exec"),f={},j=function(){throw f},y={toString:j,valueOf:j};typeof Symbol.toPrimitive=="symbol"&&(y[Symbol.toPrimitive]=j),g=function(d){if(!d||typeof d!="object")return!1;var E=p(d,"lastIndex"),G=E&&m(E,"value");if(!G)return!1;try{b(d,y)}catch(h){return h===f}}}else{var P=n("Object.prototype.toString"),w="[object RegExp]";g=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:P(d)===w}}return rt=g,rt}var nt,lt;function Ut(){if(lt)return nt;lt=1;var n=Z(),v=Pt(),m=n("RegExp.prototype.exec"),p=Bt();return nt=function(g){if(!v(g))throw new p("`regex` must be a RegExp");return function(b){return m(g,b)!==null}},nt}var ot,yt;function Ft(){if(yt)return ot;yt=1;const n=function*(){}.constructor;return ot=()=>n,ot}var ut,gt;function Mt(){if(gt)return ut;gt=1;var n=Z(),v=Ut(),m=v(/^\s*(?:function)?\*/),p=it()(),g=At(),b=n("Object.prototype.toString"),f=n("Function.prototype.toString"),j=Ft();return ut=function(y){if(typeof y!="function")return!1;if(m(f(y)))return!0;if(!p){var P=b(y);return P==="[object GeneratorFunction]"}if(!g)return!1;var w=j();return w&&g(y)===w.prototype},ut}var bt;function zt(){return bt||(bt=1,(function(n){var v=Dt(),m=Mt(),p=xt(),g=Ot();function b(r){return r.call.bind(r)}var f=typeof BigInt<"u",j=typeof Symbol<"u",y=b(Object.prototype.toString),P=b(Number.prototype.valueOf),w=b(String.prototype.valueOf),d=b(Boolean.prototype.valueOf);if(f)var E=b(BigInt.prototype.valueOf);if(j)var G=b(Symbol.prototype.valueOf);function h(r,jt){if(typeof r!="object")return!1;try{return jt(r),!0}catch{return!1}}n.isArgumentsObject=v,n.isGeneratorFunction=m,n.isTypedArray=g;function q(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}n.isPromise=q;function J(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):g(r)||e(r)}n.isArrayBufferView=J;function V(r){return p(r)==="Uint8Array"}n.isUint8Array=V;function z(r){return p(r)==="Uint8ClampedArray"}n.isUint8ClampedArray=z;function K(r){return p(r)==="Uint16Array"}n.isUint16Array=K;function _(r){return p(r)==="Uint32Array"}n.isUint32Array=_;function I(r){return p(r)==="Int8Array"}n.isInt8Array=I;function Q(r){return p(r)==="Int16Array"}n.isInt16Array=Q;function A(r){return p(r)==="Int32Array"}n.isInt32Array=A;function U(r){return p(r)==="Float32Array"}n.isFloat32Array=U;function k(r){return p(r)==="Float64Array"}n.isFloat64Array=k;function N(r){return p(r)==="BigInt64Array"}n.isBigInt64Array=N;function F(r){return p(r)==="BigUint64Array"}n.isBigUint64Array=F;function x(r){return y(r)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function X(r){return typeof Map>"u"?!1:x.working?x(r):r instanceof Map}n.isMap=X;function D(r){return y(r)==="[object Set]"}D.working=typeof Set<"u"&&D(new Set);function C(r){return typeof Set>"u"?!1:D.working?D(r):r instanceof Set}n.isSet=C;function T(r){return y(r)==="[object WeakMap]"}T.working=typeof WeakMap<"u"&&T(new WeakMap);function tt(r){return typeof WeakMap>"u"?!1:T.working?T(r):r instanceof WeakMap}n.isWeakMap=tt;function R(r){return y(r)==="[object WeakSet]"}R.working=typeof WeakSet<"u"&&R(new WeakSet);function B(r){return R(r)}n.isWeakSet=B;function W(r){return y(r)==="[object ArrayBuffer]"}W.working=typeof ArrayBuffer<"u"&&W(new ArrayBuffer);function H(r){return typeof ArrayBuffer>"u"?!1:W.working?W(r):r instanceof ArrayBuffer}n.isArrayBuffer=H;function t(r){return y(r)==="[object DataView]"}t.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&t(new DataView(new ArrayBuffer(1),0,1));function e(r){return typeof DataView>"u"?!1:t.working?t(r):r instanceof DataView}n.isDataView=e;var o=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function u(r){return y(r)==="[object SharedArrayBuffer]"}function l(r){return typeof o>"u"?!1:(typeof u.working>"u"&&(u.working=u(new o)),u.working?u(r):r instanceof o)}n.isSharedArrayBuffer=l;function a(r){return y(r)==="[object AsyncFunction]"}n.isAsyncFunction=a;function i(r){return y(r)==="[object Map Iterator]"}n.isMapIterator=i;function c(r){return y(r)==="[object Set Iterator]"}n.isSetIterator=c;function s(r){return y(r)==="[object Generator]"}n.isGeneratorObject=s;function S(r){return y(r)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=S;function M(r){return h(r,P)}n.isNumberObject=M;function L(r){return h(r,w)}n.isStringObject=L;function $(r){return h(r,d)}n.isBooleanObject=$;function Y(r){return f&&h(r,E)}n.isBigIntObject=Y;function ft(r){return j&&h(r,G)}n.isSymbolObject=ft;function wt(r){return M(r)||L(r)||$(r)||Y(r)||ft(r)}n.isBoxedPrimitive=wt;function ht(r){return typeof Uint8Array<"u"&&(H(r)||l(r))}n.isAnyArrayBuffer=ht,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(n,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})})(ct)),ct}var mt,dt;function It(){return dt||(dt=1,mt=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}),mt}var vt;function Rt(){return vt||(vt=1,(function(n){var v=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),o={},u=0;u<e.length;u++)o[e[u]]=Object.getOwnPropertyDescriptor(t,e[u]);return o},m=/%[sdj%]/g;n.format=function(t){if(!I(t)){for(var e=[],o=0;o<arguments.length;o++)e.push(f(arguments[o]));return e.join(" ")}for(var o=1,u=arguments,l=u.length,a=String(t).replace(m,function(s){if(s==="%%")return"%";if(o>=l)return s;switch(s){case"%s":return String(u[o++]);case"%d":return Number(u[o++]);case"%j":try{return JSON.stringify(u[o++])}catch{return"[Circular]"}default:return s}}),i=u[o];o<l;i=u[++o])z(i)||!k(i)?a+=" "+i:a+=" "+f(i);return a},n.deprecate=function(t,e){if(typeof O<"u"&&O.noDeprecation===!0)return t;if(typeof O>"u")return function(){return n.deprecate(t,e).apply(this,arguments)};var o=!1;function u(){if(!o){if(O.throwDeprecation)throw new Error(e);O.traceDeprecation?console.trace(e):console.error(e),o=!0}return t.apply(this,arguments)}return u};var p={},g=/^$/;if(O.env.NODE_DEBUG){var b=O.env.NODE_DEBUG;b=b.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),g=new RegExp("^"+b+"$","i")}n.debuglog=function(t){if(t=t.toUpperCase(),!p[t])if(g.test(t)){var e=O.pid;p[t]=function(){var o=n.format.apply(n,arguments);console.error("%s %d: %s",t,e,o)}}else p[t]=function(){};return p[t]};function f(t,e){var o={seen:[],stylize:y};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),V(e)?o.showHidden=e:e&&n._extend(o,e),A(o.showHidden)&&(o.showHidden=!1),A(o.depth)&&(o.depth=2),A(o.colors)&&(o.colors=!1),A(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=j),w(o,t,o.depth)}n.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(t,e){var o=f.styles[e];return o?"\x1B["+f.colors[o][0]+"m"+t+"\x1B["+f.colors[o][1]+"m":t}function y(t,e){return t}function P(t){var e={};return t.forEach(function(o,u){e[o]=!0}),e}function w(t,e,o){if(t.customInspect&&e&&x(e.inspect)&&e.inspect!==n.inspect&&!(e.constructor&&e.constructor.prototype===e)){var u=e.inspect(o,t);return I(u)||(u=w(t,u,o)),u}var l=d(t,e);if(l)return l;var a=Object.keys(e),i=P(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),F(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return E(e);if(a.length===0){if(x(e)){var c=e.name?": "+e.name:"";return t.stylize("[Function"+c+"]","special")}if(U(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(N(e))return t.stylize(Date.prototype.toString.call(e),"date");if(F(e))return E(e)}var s="",S=!1,M=["{","}"];if(J(e)&&(S=!0,M=["[","]"]),x(e)){var L=e.name?": "+e.name:"";s=" [Function"+L+"]"}if(U(e)&&(s=" "+RegExp.prototype.toString.call(e)),N(e)&&(s=" "+Date.prototype.toUTCString.call(e)),F(e)&&(s=" "+E(e)),a.length===0&&(!S||e.length==0))return M[0]+s+M[1];if(o<0)return U(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var $;return S?$=G(t,e,o,i,a):$=a.map(function(Y){return h(t,e,o,i,Y,S)}),t.seen.pop(),q($,s,M)}function d(t,e){if(A(e))return t.stylize("undefined","undefined");if(I(e)){var o="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(o,"string")}if(_(e))return t.stylize(""+e,"number");if(V(e))return t.stylize(""+e,"boolean");if(z(e))return t.stylize("null","null")}function E(t){return"["+Error.prototype.toString.call(t)+"]"}function G(t,e,o,u,l){for(var a=[],i=0,c=e.length;i<c;++i)R(e,String(i))?a.push(h(t,e,o,u,String(i),!0)):a.push("");return l.forEach(function(s){s.match(/^\d+$/)||a.push(h(t,e,o,u,s,!0))}),a}function h(t,e,o,u,l,a){var i,c,s;if(s=Object.getOwnPropertyDescriptor(e,l)||{value:e[l]},s.get?s.set?c=t.stylize("[Getter/Setter]","special"):c=t.stylize("[Getter]","special"):s.set&&(c=t.stylize("[Setter]","special")),R(u,l)||(i="["+l+"]"),c||(t.seen.indexOf(s.value)<0?(z(o)?c=w(t,s.value,null):c=w(t,s.value,o-1),c.indexOf(`
2
+ `)>-1&&(a?c=c.split(`
3
+ `).map(function(S){return" "+S}).join(`
4
+ `).slice(2):c=`
5
+ `+c.split(`
6
+ `).map(function(S){return" "+S}).join(`
7
+ `))):c=t.stylize("[Circular]","special")),A(i)){if(a&&l.match(/^\d+$/))return c;i=JSON.stringify(""+l),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.slice(1,-1),i=t.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=t.stylize(i,"string"))}return i+": "+c}function q(t,e,o){var u=t.reduce(function(l,a){return a.indexOf(`
8
+ `)>=0,l+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return u>60?o[0]+(e===""?"":e+`
9
+ `)+" "+t.join(`,
10
+ `)+" "+o[1]:o[0]+e+" "+t.join(", ")+" "+o[1]}n.types=zt();function J(t){return Array.isArray(t)}n.isArray=J;function V(t){return typeof t=="boolean"}n.isBoolean=V;function z(t){return t===null}n.isNull=z;function K(t){return t==null}n.isNullOrUndefined=K;function _(t){return typeof t=="number"}n.isNumber=_;function I(t){return typeof t=="string"}n.isString=I;function Q(t){return typeof t=="symbol"}n.isSymbol=Q;function A(t){return t===void 0}n.isUndefined=A;function U(t){return k(t)&&D(t)==="[object RegExp]"}n.isRegExp=U,n.types.isRegExp=U;function k(t){return typeof t=="object"&&t!==null}n.isObject=k;function N(t){return k(t)&&D(t)==="[object Date]"}n.isDate=N,n.types.isDate=N;function F(t){return k(t)&&(D(t)==="[object Error]"||t instanceof Error)}n.isError=F,n.types.isNativeError=F;function x(t){return typeof t=="function"}n.isFunction=x;function X(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}n.isPrimitive=X,n.isBuffer=It();function D(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tt(){var t=new Date,e=[C(t.getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}n.log=function(){console.log("%s - %s",tt(),n.format.apply(n,arguments))},n.inherits=St(),n._extend=function(t,e){if(!e||!k(e))return t;for(var o=Object.keys(e),u=o.length;u--;)t[o[u]]=e[o[u]];return t};function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&t[B]){var e=t[B];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var o,u,l=new Promise(function(c,s){o=c,u=s}),a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);a.push(function(c,s){c?u(c):o(s)});try{t.apply(this,a)}catch(c){u(c)}return l}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),B&&Object.defineProperty(e,B,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,v(t))},n.promisify.custom=B;function W(t,e){if(!t){var o=new Error("Promise was rejected with a falsy value");o.reason=t,t=o}return e(t)}function H(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var o=[],u=0;u<arguments.length;u++)o.push(arguments[u]);var l=o.pop();if(typeof l!="function")throw new TypeError("The last argument must be of type Function");var a=this,i=function(){return l.apply(a,arguments)};t.apply(this,o).then(function(c){O.nextTick(i.bind(null,null,c))},function(c){O.nextTick(W.bind(null,c,i))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,v(t)),e}n.callbackify=H})(at)),at}export{Rt as N};
@@ -0,0 +1 @@
1
+ import{N as f}from"./util-CNqBjtt6-GUXK7Yxz.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-69shuAsh-DF18H7zf.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";function c(t,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const i=Object.getOwnPropertyDescriptor(r,e);i&&Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var p=f();const g=c({__proto__:null},[p]);export{g as u};
@@ -0,0 +1 @@
1
+ import{f}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as m}from"./winston-D1zwHYTY-CkaOApIk.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-qaS8mbUT.js";import"./inherits_browser-5Fj3Mjxs.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./__vite-browser-external-DJy8wZt7.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-6mKfgpcs-DsgiI2lM.js";function a(e,n){for(var o=0;o<n.length;o++){const t=n[o];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var p=m();const c=f(p),v=a({__proto__:null,default:c},[p]);export{v as w};