@agentlang/lstudio 0.5.6 → 0.5.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.
Files changed (47) hide show
  1. package/assets/_commonjs-dynamic-modules-CBoS8n4P.js +1 -0
  2. package/assets/example_app.png +0 -0
  3. package/assets/{index-CAsiSxeK.js → index-BLPvWbNs.js} +9 -9
  4. package/assets/{index-D4z_hbl0-CD1MieBA.js → index-BdO96dMW-BjEBMMER.js} +9 -9
  5. package/assets/{index-6mr3sa6o.js → index-BeE6X42x.js} +1 -1
  6. package/assets/index-Bg7mjqf1.js +1 -0
  7. package/assets/index-BhYX3qBc.js +1 -0
  8. package/assets/index-BqmQ6R7D-Cvh6Y-cG.js +1 -0
  9. package/assets/{index-BFv-M3PX.js → index-C4ZJ2fWH.js} +14 -14
  10. package/assets/index-CTxlCoxU.js +1 -0
  11. package/assets/index-Cd6-wDh7-w-5JgxLH.js +1 -0
  12. package/assets/index-CtaoM3Uk.css +1 -0
  13. package/assets/{index-KGBiLwKE-Doz2tX9S.js → index-DCVpGHYR-DncY2IUl.js} +4 -4
  14. package/assets/index-MQ64-2HE-2GyteIUG.js +6 -0
  15. package/assets/{index-BT-B0wMw.js → index-uGY2TZXj.js} +1124 -1052
  16. package/assets/index.browser-LD9_MBUR.js +6 -0
  17. package/assets/loadCognitoIdentity-CbXsi3Qd.js +1 -0
  18. package/assets/loadSts-DomLYfvn.js +1 -0
  19. package/assets/replService-CbuM5xLC.js +1 -0
  20. package/assets/{resolveDefaultsModeConfig-BaVgVWbD.js → resolveDefaultsModeConfig-ogrP3dYF.js} +1 -1
  21. package/assets/{winston-1qzyIKCb-DfRv1PO8.js → winston-BeL9Vq-B-C8Yb-h9y.js} +27 -27
  22. package/assets/winston-Bz1F2xmd-D4C41xs-.js +1 -0
  23. package/assets/{winston-DA9FnRtM.js → winston-CnYg22C6.js} +27 -27
  24. package/assets/{winston-fLGSL0tu.js → winston-DnkiK_Cl.js} +1 -1
  25. package/index.html +5 -9
  26. package/package.json +1 -1
  27. package/assets/__vite-browser-external-BDMct_Gn-FmFgRqLi.js +0 -1
  28. package/assets/__vite-browser-external-DLjrMatA.js +0 -1
  29. package/assets/_commonjs-dynamic-modules-DkOKMH7F.js +0 -1
  30. package/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +0 -1
  31. package/assets/index-69shuAsh-DF18H7zf.js +0 -1
  32. package/assets/index-B0dS78d1.js +0 -1
  33. package/assets/index-BXMy9UIl.js +0 -1
  34. package/assets/index-Bto-kj6R-C0A_3Pwb.js +0 -1
  35. package/assets/index-CpjrEQ_o.css +0 -1
  36. package/assets/index-DSosZ5sh-Ceejs_jv.js +0 -1
  37. package/assets/index-Dlh-KIx4.js +0 -1
  38. package/assets/index-DsIu-45t-Bejjlpz4.js +0 -6
  39. package/assets/index.browser-1cO3jWRU.js +0 -6
  40. package/assets/inherits_browser-nmOknR35-Bp0mvRSL.js +0 -1
  41. package/assets/loadCognitoIdentity-DbqOiF04.js +0 -1
  42. package/assets/loadSts-D8r_UqTz.js +0 -1
  43. package/assets/replService-CZE13KTw.js +0 -1
  44. package/assets/util-B4ZV5RJW.js +0 -10
  45. package/assets/util-CNqBjtt6-GUXK7Yxz.js +0 -10
  46. package/assets/util-DZRIOW0Z-CproX86h.js +0 -1
  47. package/assets/winston-CtxF18qc-B_oJRj0X.js +0 -1
@@ -1 +0,0 @@
1
- var N={},m;function B(){if(m)return N;m=1,N.byteLength=d,N.toByteArray=M,N.fromByteArray=g;for(var u=[],r=[],A=typeof Uint8Array<"u"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,i=C.length;f<i;++f)u[f]=C[f],r[C.charCodeAt(f)]=f;r[45]=62,r[95]=63;function e(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=o);var v=n===o?0:4-n%4;return[n,v]}function d(t){var o=e(t),n=o[0],v=o[1];return(n+v)*3/4-v}function y(t,o,n){return(o+n)*3/4-n}function M(t){var o,n=e(t),v=n[0],w=n[1],c=new A(y(t,v,w)),p=0,l=w>0?v-4:v,s;for(s=0;s<l;s+=4)o=r[t.charCodeAt(s)]<<18|r[t.charCodeAt(s+1)]<<12|r[t.charCodeAt(s+2)]<<6|r[t.charCodeAt(s+3)],c[p++]=o>>16&255,c[p++]=o>>8&255,c[p++]=o&255;return w===2&&(o=r[t.charCodeAt(s)]<<2|r[t.charCodeAt(s+1)]>>4,c[p++]=o&255),w===1&&(o=r[t.charCodeAt(s)]<<10|r[t.charCodeAt(s+1)]<<4|r[t.charCodeAt(s+2)]>>2,c[p++]=o>>8&255,c[p++]=o&255),c}function a(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[t&63]}function h(t,o,n){for(var v,w=[],c=o;c<n;c+=3)v=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(t[c+2]&255),w.push(a(v));return w.join("")}function g(t){for(var o,n=t.length,v=n%3,w=[],c=16383,p=0,l=n-v;p<l;p+=c)w.push(h(t,p,p+c>l?l:p+c));return v===1?(o=t[n-1],w.push(u[o>>2]+u[o<<4&63]+"==")):v===2&&(o=(t[n-2]<<8)+t[n-1],w.push(u[o>>10]+u[o>>4&63]+u[o<<2&63]+"=")),w.join("")}return N}var b={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var x;function L(){return x||(x=1,b.read=function(u,r,A,C,f){var i,e,d=f*8-C-1,y=(1<<d)-1,M=y>>1,a=-7,h=A?f-1:0,g=A?-1:1,t=u[r+h];for(h+=g,i=t&(1<<-a)-1,t>>=-a,a+=d;a>0;i=i*256+u[r+h],h+=g,a-=8);for(e=i&(1<<-a)-1,i>>=-a,a+=C;a>0;e=e*256+u[r+h],h+=g,a-=8);if(i===0)i=1-M;else{if(i===y)return e?NaN:(t?-1:1)*(1/0);e=e+Math.pow(2,C),i=i-M}return(t?-1:1)*e*Math.pow(2,i-C)},b.write=function(u,r,A,C,f,i){var e,d,y,M=i*8-f-1,a=(1<<M)-1,h=a>>1,g=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=C?0:i-1,o=C?1:-1,n=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(d=isNaN(r)?1:0,e=a):(e=Math.floor(Math.log(r)/Math.LN2),r*(y=Math.pow(2,-e))<1&&(e--,y*=2),e+h>=1?r+=g/y:r+=g*Math.pow(2,1-h),r*y>=2&&(e++,y/=2),e+h>=a?(d=0,e=a):e+h>=1?(d=(r*y-1)*Math.pow(2,f),e=e+h):(d=r*Math.pow(2,h-1)*Math.pow(2,f),e=0));f>=8;u[A+t]=d&255,t+=o,d/=256,f-=8);for(e=e<<f|d,M+=f;M>0;u[A+t]=e&255,t+=o,e/=256,M-=8);u[A+t-o]|=n*128}),b}export{B as I,L as k};
@@ -1 +0,0 @@
1
- import{r as Pe,a as ye,A as Ae,b as ve,c as Ie,g as Re,d as Ce,e as xe,k as De,f as be,h as _e,i as Te,j as ke,s as N}from"./index-6mr3sa6o.js";import{n as ee,k as we,E as We,r as $e,c as Ue,p as He,l as Fe,o as Oe,q as Le,s as je,D as Me,t as Ne,u as Ke,w as qe,x as ze,y as Ge,z as Ve,A as Be,B as Qe,C as Je,F as Xe,G as Ye,H as Ze,I as et,J as tt,K as nt,M as ot,O as st,P as it,U as rt,Q as at,V as ct,T as P,W as dt,X as lt}from"./resolveDefaultsModeConfig-BaVgVWbD.js";import{b as ut,i as pt,t as mt,f as gt,s as ht,F as ft}from"./normalizeProvider-CtDY37Q6.js";import"./preload-helper-BlTxHScW.js";import"./index-BT-B0wMw.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.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"./_commonjs-dynamic-modules-DkOKMH7F.js";function St(){return async()=>"us-east-1"}const Et=async(e,t,i)=>({operation:we(t).operation,region:await ee(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Pt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,i)=>({signingProperties:{config:t,context:i}})}}function yt(e){return{schemeId:"smithy.api#noAuth"}}const At=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(yt());break}default:t.push(Pt(e))}return t},vt=e=>Object.assign(e,{stsClientCtor:ue}),It=e=>{const t=vt(e),i=Pe(t);return Object.assign(i,{authSchemePreference:ee(e.authSchemePreference??[])})},Rt=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Ct={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"}},xt="3.974.0",Dt={version:xt},te="required",n="type",o="fn",s="argv",y="ref",K=!1,w=!0,E="booleanEquals",l="stringEquals",ne="sigv4",oe="sts",se="us-east-1",a="endpoint",q="https://sts.{Region}.{PartitionResult#dnsSuffix}",h="tree",D="error",$="getAttr",z={[te]:!1,[n]:"string"},W={[te]:!0,default:!1,[n]:"boolean"},ie={[y]:"Endpoint"},G={[o]:"isSet",[s]:[{[y]:"Region"}]},u={[y]:"Region"},V={[o]:"aws.partition",[s]:[u],assign:"PartitionResult"},re={[y]:"UseFIPS"},ae={[y]:"UseDualStack"},p={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:ne,signingName:oe,signingRegion:se}]},headers:{}},m={},B={conditions:[{[o]:l,[s]:[u,"aws-global"]}],[a]:p,[n]:a},ce={[o]:E,[s]:[re,!0]},de={[o]:E,[s]:[ae,!0]},Q={[o]:$,[s]:[{[y]:"PartitionResult"},"supportsFIPS"]},le={[y]:"PartitionResult"},J={[o]:E,[s]:[!0,{[o]:$,[s]:[le,"supportsDualStack"]}]},X=[{[o]:"isSet",[s]:[ie]}],Y=[ce],Z=[de],bt={parameters:{Region:z,UseDualStack:W,UseFIPS:W,Endpoint:z,UseGlobalEndpoint:W},rules:[{conditions:[{[o]:E,[s]:[{[y]:"UseGlobalEndpoint"},w]},{[o]:"not",[s]:X},G,V,{[o]:E,[s]:[re,K]},{[o]:E,[s]:[ae,K]}],rules:[{conditions:[{[o]:l,[s]:[u,"ap-northeast-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"ap-south-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"ap-southeast-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"ap-southeast-2"]}],endpoint:p,[n]:a},B,{conditions:[{[o]:l,[s]:[u,"ca-central-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-central-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-north-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-west-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-west-2"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"eu-west-3"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"sa-east-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,se]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"us-east-2"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"us-west-1"]}],endpoint:p,[n]:a},{conditions:[{[o]:l,[s]:[u,"us-west-2"]}],endpoint:p,[n]:a},{endpoint:{url:q,properties:{authSchemes:[{name:ne,signingName:oe,signingRegion:"{Region}"}]},headers:m},[n]:a}],[n]:h},{conditions:X,rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[n]:D},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[n]:D},{endpoint:{url:ie,properties:m,headers:m},[n]:a}],[n]:h},{conditions:[G],rules:[{conditions:[V],rules:[{conditions:[ce,de],rules:[{conditions:[{[o]:E,[s]:[w,Q]},J],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[n]:a}],[n]:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[n]:D}],[n]:h},{conditions:Y,rules:[{conditions:[{[o]:E,[s]:[Q,w]}],rules:[{conditions:[{[o]:l,[s]:[{[o]:$,[s]:[le,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:m,headers:m},[n]:a},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[n]:a}],[n]:h},{error:"FIPS is enabled but this partition does not support FIPS",[n]:D}],[n]:h},{conditions:Z,rules:[{conditions:[J],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[n]:a}],[n]:h},{error:"DualStack is enabled but this partition does not support DualStack",[n]:D}],[n]:h},B,{endpoint:{url:q,properties:m,headers:m},[n]:a}],[n]:h}],[n]:h},{error:"Invalid Configuration: Missing Region",[n]:D}]},_t=bt,Tt=new We({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),kt=(e,t={})=>Tt.get(e,()=>$e(_t,{endpointParams:e,logger:t.logger}));Ue.aws=ye;const wt=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??gt,base64Encoder:e?.base64Encoder??mt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??kt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??At,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ve},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Oe}],logger:e?.logger??new Fe,protocol:e?.protocol??Ae,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??He,utf8Decoder:e?.utf8Decoder??pt,utf8Encoder:e?.utf8Encoder??ut}),Wt=e=>{const t=Le(e),i=()=>t().then(Ve),d=wt(e);return{...d,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??qe,credentialDefaultProvider:e?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ie({serviceId:d.serviceId,clientVersion:Dt.version}),maxAttempts:e?.maxAttempts??Ke,region:e?.region??Ne("Region is missing"),requestHandler:ft.create(e?.requestHandler??i),retryMode:e?.retryMode??(async()=>(await i()).retryMode||Me),sha256:e?.sha256??je,streamCollector:e?.streamCollector??ht,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Ge)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(ze))}},$t=e=>{const t=e.httpAuthSchemes;let i=e.httpAuthSchemeProvider,d=e.credentials;return{setHttpAuthScheme(r){const S=t.findIndex(g=>g.schemeId===r.schemeId);S===-1?t.push(r):t.splice(S,1,r)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(r){i=r},httpAuthSchemeProvider(){return i},setCredentials(r){d=r},credentials(){return d}}},Ut=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ht=(e,t)=>{const i=Object.assign(Re(e),Be(e),Qe(e),$t(e));return t.forEach(d=>d.configure(i)),Object.assign(e,Ce(i),Je(i),Xe(i),Ut(i))};class ue extends Ye{config;constructor(...[t]){const i=Wt(t||{});super(i),this.initConfig=i;const d=Rt(i),r=xe(d),S=Ze(r),g=et(S),A=De(g),_=tt(A),T=It(_),k=Ht(T,t?.extensions||[]);this.config=k,this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(ke(this.config)),this.middlewareStack.use(it(this.config,{httpAuthSchemeParametersProvider:Et,identityProviderConfigProvider:async b=>new rt({"aws.auth#sigv4":b.credentials})})),this.middlewareStack.use(at(this.config))}destroy(){super.destroy()}}class f extends ct{constructor(t){super(t),Object.setPrototypeOf(this,f.prototype)}}class U extends f{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class H extends f{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}class F extends f{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,F.prototype)}}class O extends f{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,O.prototype)}}class L extends f{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,L.prototype)}}class j extends f{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,j.prototype)}}class M extends f{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,M.prototype)}}const Ft="Arn",Ot="AccessKeyId",Lt="AssumedRoleId",pe="AssumedRoleUser",jt="AssumeRoleWithWebIdentity",Mt="AssumeRoleWithWebIdentityRequest",Nt="AssumeRoleWithWebIdentityResponse",Kt="Audience",me="Credentials",qt="DurationSeconds",zt="Expiration",Gt="ExpiredTokenException",Vt="IDPCommunicationErrorException",Bt="IDPRejectedClaimException",Qt="InvalidIdentityTokenException",Jt="MalformedPolicyDocumentException",Xt="Policy",Yt="PolicyArns",Zt="PolicyDescriptorType",en="ProviderId",tn="PackedPolicySize",nn="PackedPolicyTooLargeException",on="Provider",sn="RoleArn",rn="RegionDisabledException",an="RoleSessionName",cn="SecretAccessKey",dn="SubjectFromWebIdentityToken",ln="SourceIdentity",un="SessionToken",pn="WebIdentityToken",mn="arn",gn="accessKeySecretType",v="awsQueryError",I="client",hn="clientTokenType",R="error",C="httpError",x="message",fn="policyDescriptorListType",ge="smithy.ts.sdk.synthetic.com.amazonaws.sts",c="com.amazonaws.sts";var Sn=[0,c,gn,8,0],En=[0,c,hn,8,0],Pn=[3,c,pe,0,[Lt,Ft],[0,0],2],yn=[3,c,Mt,0,[sn,an,pn,en,Yt,Xt,qt],[0,0,[()=>En,0],0,()=>wn,0,1],3],An=[3,c,Nt,0,[me,dn,pe,tn,on,Kt,ln],[[()=>vn,0],0,()=>Pn,1,0,0,0]],vn=[3,c,me,0,[Ot,cn,un,zt],[0,[()=>Sn,0],0,4],4],In=[-3,c,Gt,{[v]:["ExpiredTokenException",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(In,U);var Rn=[-3,c,Vt,{[v]:["IDPCommunicationError",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(Rn,M);var Cn=[-3,c,Bt,{[v]:["IDPRejectedClaim",403],[R]:I,[C]:403},[x],[0]];P.for(c).registerError(Cn,L);var xn=[-3,c,Qt,{[v]:["InvalidIdentityToken",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(xn,j);var Dn=[-3,c,Jt,{[v]:["MalformedPolicyDocument",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(Dn,H);var bn=[-3,c,nn,{[v]:["PackedPolicyTooLarge",400],[R]:I,[C]:400},[x],[0]];P.for(c).registerError(bn,F);var _n=[3,c,Zt,0,[mn],[0]],Tn=[-3,c,rn,{[v]:["RegionDisabledException",403],[R]:I,[C]:403},[x],[0]];P.for(c).registerError(Tn,O);var kn=[-3,ge,"STSServiceException",0,[],[]];P.for(ge).registerError(kn,f);var wn=[1,c,fn,0,()=>_n],Wn=[9,c,jt,0,()=>yn,()=>An];class $n extends dt.classBuilder().ep(Ct).m(function(t,i,d,r){return[lt(d,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Wn).build(){}const Un=e=>{if(typeof e?.Arn=="string"){const t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}},Hn=async(e,t,i,d={})=>{const r=typeof e=="function"?await e():e,S=typeof t=="function"?await t():t;let g="";const A=r??S??(g=await St()());return i?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${r} (credential provider clientConfig)`,`${S} (contextual client)`,`${g} (STS default: AWS_REGION, profile region, or us-east-1)`),A},Fn=(e,t)=>{let i;return async d=>{if(!i){const{logger:_=e?.parentClientConfig?.logger,profile:T=e?.parentClientConfig?.profile,region:k,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:he,userAgentAppId:fe=e?.parentClientConfig?.userAgentAppId}=e,Se=await Hn(k,e?.parentClientConfig?.region,he,{}),Ee=!On(b);i=new t({...e,userAgentAppId:fe,profile:T,region:Se,requestHandler:Ee?b:void 0,logger:_})}const{Credentials:r,AssumedRoleUser:S}=await i.send(new $n(d));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${d.RoleArn}`);const g=Un(S),A={accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,...r.CredentialScope&&{credentialScope:r.CredentialScope},...g&&{accountId:g}};return g&&N(A,"RESOLVED_ACCOUNT_ID","T"),N(A,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),A}},On=e=>e?.metadata?.handlerProtocol==="h2",Ln=(e,t)=>t?class extends e{constructor(d){super(d);for(const r of t)this.middlewareStack.use(r)}}:e,io=(e={},t)=>Fn(e,Ln(ue,t));export{dt as $Command,Wn as AssumeRoleWithWebIdentity$,$n as AssumeRoleWithWebIdentityCommand,yn as AssumeRoleWithWebIdentityRequest$,An as AssumeRoleWithWebIdentityResponse$,Pn as AssumedRoleUser$,vn as Credentials$,U as ExpiredTokenException,In as ExpiredTokenException$,M as IDPCommunicationErrorException,Rn as IDPCommunicationErrorException$,L as IDPRejectedClaimException,Cn as IDPRejectedClaimException$,j as InvalidIdentityTokenException,xn as InvalidIdentityTokenException$,H as MalformedPolicyDocumentException,Dn as MalformedPolicyDocumentException$,F as PackedPolicyTooLargeException,bn as PackedPolicyTooLargeException$,_n as PolicyDescriptorType$,O as RegionDisabledException,Tn as RegionDisabledException$,ue as STSClient,f as STSServiceException,kn as STSServiceException$,Ye as __Client,io as getDefaultRoleAssumerWithWebIdentity};
@@ -1,6 +0,0 @@
1
- import{I as Tt,k as Ot}from"./index-DSosZ5sh-Ceejs_jv.js";var j={exports:{}},nt={};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */var rt;function St(){return rt||(rt=1,(function(B){const U=Tt(),w=Ot(),y=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;B.Buffer=i,B.SlowBuffer=st,B.INSPECT_MAX_BYTES=50;const T=2147483647;B.kMaxLength=T,i.TYPED_ARRAY_SUPPORT=A(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function A(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function h(t){if(t>T)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,i.prototype),e}function i(t,e,n){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(t)}return E(t,e,n)}i.poolSize=8192;function E(t,e,n){if(typeof t=="string")return b(t,e);if(ArrayBuffer.isView(t))return P(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return z(t,e,n);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(r!=null&&r!==t)return i.from(r,e,n);const o=ft(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return i.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}i.from=function(t,e,n){return E(t,e,n)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function v(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t,e,n){return v(t),t<=0?h(t):e!==void 0?typeof n=="string"?h(t).fill(e,n):h(t).fill(e):h(t)}i.alloc=function(t,e,n){return u(t,e,n)};function a(t){return v(t),h(t<0?0:k(t)|0)}i.allocUnsafe=function(t){return a(t)},i.allocUnsafeSlow=function(t){return a(t)};function b(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=Y(t,e)|0;let r=h(n);const o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}function S(t){const e=t.length<0?0:k(t.length)|0,n=h(e);for(let r=0;r<e;r+=1)n[r]=t[r]&255;return n}function P(t){if(R(t,Uint8Array)){const e=new Uint8Array(t);return z(e.buffer,e.byteOffset,e.byteLength)}return S(t)}function z(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return e===void 0&&n===void 0?r=new Uint8Array(t):n===void 0?r=new Uint8Array(t,e):r=new Uint8Array(t,e,n),Object.setPrototypeOf(r,i.prototype),r}function ft(t){if(i.isBuffer(t)){const e=k(t.length)|0,n=h(e);return n.length===0||t.copy(n,0,0,e),n}if(t.length!==void 0)return typeof t.length!="number"||F(t.length)?h(0):S(t);if(t.type==="Buffer"&&Array.isArray(t.data))return S(t.data)}function k(t){if(t>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return t|0}function st(t){return+t!=t&&(t=0),i.alloc(+t)}i.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==i.prototype},i.compare=function(t,e){if(R(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),R(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,f=Math.min(n,r);o<f;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return i.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=i.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let f=t[n];if(R(f,Uint8Array))o+f.length>r.length?(i.isBuffer(f)||(f=i.from(f)),f.copy(r,o)):Uint8Array.prototype.set.call(r,f,o);else if(i.isBuffer(f))f.copy(r,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=f.length}return r};function Y(t,e){if(i.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return et(t).length;default:if(o)return r?-1:N(t).length;e=(""+e).toLowerCase(),o=!0}}i.byteLength=Y;function ut(t,e,n){let r=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return mt(this,e,n);case"utf8":case"utf-8":return q(this,e,n);case"ascii":return wt(this,e,n);case"latin1":case"binary":return dt(this,e,n);case"base64":return yt(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}i.prototype._isBuffer=!0;function L(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}i.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)L(this,e,e+1);return this},i.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this},i.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this},i.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?q(this,0,t):ut.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:i.compare(this,t)===0},i.prototype.inspect=function(){let t="";const e=B.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},y&&(i.prototype[y]=i.prototype.inspect),i.prototype.compare=function(t,e,n,r,o){if(R(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;let f=o-r,s=n-e;const l=Math.min(f,s),m=this.slice(r,o),p=t.slice(e,n);for(let c=0;c<l;++c)if(m[c]!==p[c]){f=m[c],s=p[c];break}return f<s?-1:s<f?1:0};function G(t,e,n,r,o){if(t.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,F(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0)if(o)n=0;else return-1;if(typeof e=="string"&&(e=i.from(e,r)),i.isBuffer(e))return e.length===0?-1:V(t,e,n,r,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):V(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function V(t,e,n,r,o){let f=1,s=t.length,l=e.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(t.length<2||e.length<2)return-1;f=2,s/=2,l/=2,n/=2}function m(c,g){return f===1?c[g]:c.readUInt16BE(g*f)}let p;if(o){let c=-1;for(p=n;p<s;p++)if(m(t,p)===m(e,c===-1?0:p-c)){if(c===-1&&(c=p),p-c+1===l)return c*f}else c!==-1&&(p-=p-c),c=-1}else for(n+l>s&&(n=s-l),p=n;p>=0;p--){let c=!0;for(let g=0;g<l;g++)if(m(t,p+g)!==m(e,g)){c=!1;break}if(c)return p}return-1}i.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},i.prototype.indexOf=function(t,e,n){return G(this,t,e,n,!0)},i.prototype.lastIndexOf=function(t,e,n){return G(this,t,e,n,!1)};function ht(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;const f=e.length;r>f/2&&(r=f/2);let s;for(s=0;s<r;++s){const l=parseInt(e.substr(s*2,2),16);if(F(l))return s;t[n+s]=l}return s}function at(t,e,n,r){return M(N(e,t.length-n),t,n,r)}function ct(t,e,n,r){return M(Ut(e),t,n,r)}function lt(t,e,n,r){return M(et(e),t,n,r)}function pt(t,e,n,r){return M(vt(e,t.length-n),t,n,r)}i.prototype.write=function(t,e,n,r){if(e===void 0)r="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")r=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,r===void 0&&(r="utf8")):(r=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let f=!1;for(;;)switch(r){case"hex":return ht(this,t,e,n);case"utf8":case"utf-8":return at(this,t,e,n);case"ascii":case"latin1":case"binary":return ct(this,t,e,n);case"base64":return lt(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt(this,t,e,n);default:if(f)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function yt(t,e,n){return e===0&&n===t.length?U.fromByteArray(t):U.fromByteArray(t.slice(e,n))}function q(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const f=t[o];let s=null,l=f>239?4:f>223?3:f>191?2:1;if(o+l<=n){let m,p,c,g;switch(l){case 1:f<128&&(s=f);break;case 2:m=t[o+1],(m&192)===128&&(g=(f&31)<<6|m&63,g>127&&(s=g));break;case 3:m=t[o+1],p=t[o+2],(m&192)===128&&(p&192)===128&&(g=(f&15)<<12|(m&63)<<6|p&63,g>2047&&(g<55296||g>57343)&&(s=g));break;case 4:m=t[o+1],p=t[o+2],c=t[o+3],(m&192)===128&&(p&192)===128&&(c&192)===128&&(g=(f&15)<<18|(m&63)<<12|(p&63)<<6|c&63,g>65535&&g<1114112&&(s=g))}}s===null?(s=65533,l=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|s&1023),r.push(s),o+=l}return gt(r)}const J=4096;function gt(t){const e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=J));return n}function wt(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]&127);return r}function dt(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function mt(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let f=e;f<n;++f)o+=At[t[f]];return o}function bt(t,e,n){const r=t.slice(e,n);let o="";for(let f=0;f<r.length-1;f+=2)o+=String.fromCharCode(r[f]+r[f+1]*256);return o}i.prototype.slice=function(t,e){const n=this.length;t=~~t,e=e===void 0?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,i.prototype),r};function d(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let r=this[t],o=1,f=0;for(;++f<e&&(o*=256);)r+=this[t+f]*o;return r},i.prototype.readUintBE=i.prototype.readUIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},i.prototype.readUint8=i.prototype.readUInt8=function(t,e){return t=t>>>0,e||d(t,1,this.length),this[t]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||d(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||d(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||d(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||d(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readBigUInt64LE=O(function(t){t=t>>>0,x(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&$(t,this.length-8);const r=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),i.prototype.readBigUInt64BE=O(function(t){t=t>>>0,x(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&$(t,this.length-8);const r=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),i.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let r=this[t],o=1,f=0;for(;++f<e&&(o*=256);)r+=this[t+f]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||d(t,e,this.length);let r=e,o=1,f=this[t+--r];for(;r>0&&(o*=256);)f+=this[t+--r]*o;return o*=128,f>=o&&(f-=Math.pow(2,8*e)),f},i.prototype.readInt8=function(t,e){return t=t>>>0,e||d(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},i.prototype.readInt16LE=function(t,e){t=t>>>0,e||d(t,2,this.length);const n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n},i.prototype.readInt16BE=function(t,e){t=t>>>0,e||d(t,2,this.length);const n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},i.prototype.readInt32LE=function(t,e){return t=t>>>0,e||d(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t=t>>>0,e||d(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readBigInt64LE=O(function(t){t=t>>>0,x(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&$(t,this.length-8);const r=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),i.prototype.readBigInt64BE=O(function(t){t=t>>>0,x(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&$(t,this.length-8);const r=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)}),i.prototype.readFloatLE=function(t,e){return t=t>>>0,e||d(t,4,this.length),w.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t=t>>>0,e||d(t,4,this.length),w.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||d(t,8,this.length),w.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||d(t,8,this.length),w.read(this,t,!1,52,8)};function I(t,e,n,r,o,f){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<f)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e=e>>>0,n=n>>>0,!r){const s=Math.pow(2,8*n)-1;I(this,t,e,n,s,0)}let o=1,f=0;for(this[e]=t&255;++f<n&&(o*=256);)this[e+f]=t/o&255;return e+n},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e=e>>>0,n=n>>>0,!r){const s=Math.pow(2,8*n)-1;I(this,t,e,n,s,0)}let o=n-1,f=1;for(this[e+o]=t&255;--o>=0&&(f*=256);)this[e+o]=t/f&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,1,255,0),this[e]=t&255,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function W(t,e,n,r,o){tt(e,r,o,t,n,7);let f=Number(e&BigInt(4294967295));t[n++]=f,f=f>>8,t[n++]=f,f=f>>8,t[n++]=f,f=f>>8,t[n++]=f;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s=s>>8,t[n++]=s,s=s>>8,t[n++]=s,s=s>>8,t[n++]=s,n}function X(t,e,n,r,o){tt(e,r,o,t,n,7);let f=Number(e&BigInt(4294967295));t[n+7]=f,f=f>>8,t[n+6]=f,f=f>>8,t[n+5]=f,f=f>>8,t[n+4]=f;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s=s>>8,t[n+2]=s,s=s>>8,t[n+1]=s,s=s>>8,t[n]=s,n+8}i.prototype.writeBigUInt64LE=O(function(t,e=0){return W(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=O(function(t,e=0){return X(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e=e>>>0,!r){const l=Math.pow(2,8*n-1);I(this,t,e,n,l-1,-l)}let o=0,f=1,s=0;for(this[e]=t&255;++o<n&&(f*=256);)t<0&&s===0&&this[e+o-1]!==0&&(s=1),this[e+o]=(t/f>>0)-s&255;return e+n},i.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e=e>>>0,!r){const l=Math.pow(2,8*n-1);I(this,t,e,n,l-1,-l)}let o=n-1,f=1,s=0;for(this[e+o]=t&255;--o>=0&&(f*=256);)t<0&&s===0&&this[e+o+1]!==0&&(s=1),this[e+o]=(t/f>>0)-s&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},i.prototype.writeBigInt64LE=O(function(t,e=0){return W(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=O(function(t,e=0){return X(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(t,e,n,r,o,f){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,r,o){return e=+e,n=n>>>0,o||Z(t,e,n,4),w.write(t,e,n,r,23,4),n+4}i.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)};function K(t,e,n,r,o){return e=+e,n=n>>>0,o||Z(t,e,n,8),w.write(t,e,n,r,52,8),n+8}i.prototype.writeDoubleLE=function(t,e,n){return K(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return K(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,r){if(!i.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!r&&r!==0&&(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},i.prototype.fill=function(t,e,n,r){if(typeof t=="string"){if(typeof e=="string"?(r=e,e=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(t.length===1){const f=t.charCodeAt(0);(r==="utf8"&&f<128||r==="latin1")&&(t=f)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=e;o<n;++o)this[o]=t;else{const f=i.isBuffer(t)?t:i.from(t,r),s=f.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=f[o%s]}return this};const _={};function C(t,e,n){_[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(r){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:r,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}C("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),C("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=Q(String(n)):typeof n=="bigint"&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=Q(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r},RangeError);function Q(t){let e="",n=t.length;const r=t[0]==="-"?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function Bt(t,e,n){x(e,"offset"),(t[e]===void 0||t[e+n]===void 0)&&$(e,t.length-(n+1))}function tt(t,e,n,r,o,f){if(t>n||t<e){const s=typeof e=="bigint"?"n":"";let l;throw e===0||e===BigInt(0)?l=`>= 0${s} and < 2${s} ** ${(f+1)*8}${s}`:l=`>= -(2${s} ** ${(f+1)*8-1}${s}) and < 2 ** ${(f+1)*8-1}${s}`,new _.ERR_OUT_OF_RANGE("value",l,t)}Bt(r,o,f)}function x(t,e){if(typeof t!="number")throw new _.ERR_INVALID_ARG_TYPE(e,"number",t)}function $(t,e,n){throw Math.floor(t)!==t?(x(t,n),new _.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const Et=/[^+/0-9A-Za-z-_]/g;function It(t){if(t=t.split("=")[0],t=t.trim().replace(Et,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function N(t,e){e=e||1/0;let n;const r=t.length;let o=null;const f=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}else if(s+1===r){(e-=3)>-1&&f.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function Ut(t){const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function vt(t,e){let n,r,o;const f=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,f.push(o),f.push(r);return f}function et(t){return U.toByteArray(It(t))}function M(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function R(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function F(t){return t!==t}const At=(function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=n*16;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e})();function O(t){return typeof BigInt>"u"?Rt:t}function Rt(){throw new Error("BigInt not supported")}})(nt)),nt}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ot;function _t(){return ot||(ot=1,(function(B,U){var w=St(),y=w.Buffer;function T(h,i){for(var E in h)i[E]=h[E]}y.from&&y.alloc&&y.allocUnsafe&&y.allocUnsafeSlow?B.exports=w:(T(w,U),U.Buffer=A);function A(h,i,E){return y(h,i,E)}A.prototype=Object.create(y.prototype),T(y,A),A.from=function(h,i,E){if(typeof h=="number")throw new TypeError("Argument must not be a number");return y(h,i,E)},A.alloc=function(h,i,E){if(typeof h!="number")throw new TypeError("Argument must be a number");var v=y(h);return i!==void 0?typeof E=="string"?v.fill(i,E):v.fill(i):v.fill(0),v},A.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return y(h)},A.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(h)}})(j,j.exports)),j.exports}var D,it;function xt(){if(it)return D;it=1;var B=1e3,U=B*60,w=U*60,y=w*24,T=y*7,A=y*365.25;D=function(u,a){a=a||{};var b=typeof u;if(b==="string"&&u.length>0)return h(u);if(b==="number"&&isFinite(u))return a.long?E(u):i(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function h(u){if(u=String(u),!(u.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(a){var b=parseFloat(a[1]),S=(a[2]||"ms").toLowerCase();switch(S){case"years":case"year":case"yrs":case"yr":case"y":return b*A;case"weeks":case"week":case"w":return b*T;case"days":case"day":case"d":return b*y;case"hours":case"hour":case"hrs":case"hr":case"h":return b*w;case"minutes":case"minute":case"mins":case"min":case"m":return b*U;case"seconds":case"second":case"secs":case"sec":case"s":return b*B;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function i(u){var a=Math.abs(u);return a>=y?Math.round(u/y)+"d":a>=w?Math.round(u/w)+"h":a>=U?Math.round(u/U)+"m":a>=B?Math.round(u/B)+"s":u+"ms"}function E(u){var a=Math.abs(u);return a>=y?v(u,a,y,"day"):a>=w?v(u,a,w,"hour"):a>=U?v(u,a,U,"minute"):a>=B?v(u,a,B,"second"):u+" ms"}function v(u,a,b,S){var P=a>=b*1.5;return Math.round(u/b)+" "+S+(P?"s":"")}return D}export{xt as D,_t as L,St as S};
@@ -1,6 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/loadCognitoIdentity-DbqOiF04.js","assets/normalizeProvider-CtDY37Q6.js","assets/resolveDefaultsModeConfig-BaVgVWbD.js","assets/preload-helper-BlTxHScW.js","assets/index-BT-B0wMw.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/index-ChvoNxcO.js","assets/__vite-browser-external-DLjrMatA.js","assets/inherits_browser-nmOknR35-Bp0mvRSL.js","assets/index-6mKfgpcs-DsgiI2lM.js","assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.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.browser-BHPvGrwi-6Mh8eUw-.js","assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js","assets/_commonjs-dynamic-modules-DkOKMH7F.js","assets/index-CpjrEQ_o.css","assets/loadSts-D8r_UqTz.js","assets/index-6mr3sa6o.js","assets/index-Dlh-KIx4.js"])))=>i.map(i=>d[i]);
2
- import{_ as I}from"./preload-helper-BlTxHScW.js";import{t as O,a as N,b as x,s as D,H as K,p as H,F as j,n as q}from"./normalizeProvider-CtDY37Q6.js";class A extends Error{name="ProviderError";tryNextLink;constructor(t,o=!0){let n,r=!0;typeof o=="boolean"?(n=void 0,r=o):o!=null&&typeof o=="object"&&(n=o.logger,r=o.tryNextLink??!0),super(t),this.tryNextLink=r,Object.setPrototypeOf(this,A.prototype),n?.debug?.(`@smithy/property-provider ${r?"->":"(!)"} ${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 n=e[o];return typeof n=="string"?t.push([o,n]):t.push(n().then(r=>[o,r])),t},[])).then(t=>t.reduce((o,[n,r])=>(o[n]=r,o),{}))}function k(e){return async t=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");const{GetCredentialsForIdentityCommand:o,CognitoIdentityClient:n}=await I(async()=>{const{GetCredentialsForIdentityCommand:c,CognitoIdentityClient:f}=await import("./loadCognitoIdentity-DbqOiF04.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])),r=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 n(Object.assign({},e.clientConfig??{},{region:r("region"),profile:r("profile"),userAgentAppId:r("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 n=o.get(t);return new Promise(r=>{n.onerror=()=>r(null),n.onsuccess=()=>r(n.result?n.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",o=>{const n=o.delete(t);return new Promise((r,s)=>{n.onerror=()=>s(n.error),n.onsuccess=()=>r()})})}setItem(t,o){return this.withObjectStore("readwrite",n=>{const r=n.put({id:t,value:o});return new Promise((s,i)=>{r.onerror=()=>i(r.error),r.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((o,n)=>{t.onsuccess=()=>{o(t.result)},t.onerror=()=>{n(t.error)},t.onblocked=()=>{n(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const r=t.result;r.onerror=()=>{n(new Error("Failed to create object store"))},r.createObjectStore(b,{keyPath:"id"})}})}withObjectStore(t,o){return this.getDb().then(n=>{const r=n.transaction(b,t);return r.oncomplete=()=>n.close(),new Promise((s,i)=>{r.onerror=()=>i(r.error),s(o(r.objectStore(b)))}).catch(s=>{throw n.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:n,customRoleArn:r,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:h}=await I(async()=>{const{GetIdCommand:g,CognitoIdentityClient:P}=await import("./loadCognitoIdentity-DbqOiF04.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])),y=g=>n?.[g]??c?.[g]??w?.callerClientConfig?.[g],C=o??new h(Object.assign({},n??{},{region:y("region"),profile:y("profile"),userAgentAppId:y("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:r,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("."),n=r=>{const s=parseInt(r,10);return 0<=s&&s<=255};if(o[0]==="127"&&n(o[1])&&n(o[2])&&n(o[3])&&o.length===4)return}throw new l(`URL not accepted. It must either be HTTPS or match one of the following:
3
- - loopback CIDR 127.0.0.0/8 or [::1/128]
4
- - ECS container host 169.254.170.2
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 r=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${r}`)}let t=!1;const o=async()=>{if(t)throw new Error(R);return t=!0,await D(e)},n=r=>{if(typeof r.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 r.stream()};return Object.assign(e,{transformToByteArray:o,transformToString:async r=>{const s=await o();if(r==="base64")return O(s);if(r==="hex")return N(s);if(r===void 0||r==="utf8"||r==="utf-8")return x(s);if(typeof TextDecoder=="function")return new TextDecoder(r).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 n(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,n])=>(t[o]=n,t),{}),fragment:e.hash})}async function ee(e,t){const n=await X(e.body).transformToString();if(e.statusCode===200){const r=JSON.parse(n);if(typeof r.AccessKeyId!="string"||typeof r.SecretAccessKey!="string"||typeof r.Token!="string"||typeof r.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:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:H(r.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let r={};try{r=JSON.parse(n)}catch{}throw Object.assign(new l(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:r.Code,Message:r.Message})}throw new l(`Server responded with status: ${e.statusCode}`,{logger:t})}const te=(e,t,o)=>async()=>{for(let n=0;n<t;++n)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 n=new URL(t);Q(n,e.logger);const r=new j;return te(async()=>{const s=Z(n);e.authorizationToken&&(s.headers.Authorization=e.authorizationToken);const i=await r.handle(s);return ee(i.response)},e.maxRetries??3,e.timeout??1e3)},re="us-east-1",le=(e,t,o)=>{let n;return async(r={})=>{const{callerClientConfig:s}=r,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-D8r_UqTz.js");return{AssumeRoleCommand:w,STSClient:m}},__vite__mapDeps([19,2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20]));if(!n){const w=typeof t=="function"?t():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void s?.credentials,s?.credentialDefaultProvider?.(),w];let h="STS client default credentials";if(m[0])h="options.masterCredentials";else if(m[1])h="options.clientConfig.credentials";else{if(m[2])throw h="caller client's credentials",new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");m[3]?h="caller client's credentialDefaultProvider":m[4]&&(h="AWS SDK default credentials")}const y=[e.clientConfig?.region,s?.region,await o?.({profile:i}),re];let C="default partition's default region";y[0]?C="options.clientConfig.region":y[1]?C="caller client's region":y[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(y))()}, ${h}, ${g}.`),n=new f({userAgentAppId:s?.userAgentAppId,...e.clientConfig,credentials:S(m),logger:d,profile:i,region:S(y),requestHandler:S(p)})}if(e.clientPlugins)for(const w of e.clientPlugins)n.middlewareStack.use(w);const{Credentials:a}=await n.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},ne=e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:n,webIdentityToken:r,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-Dlh-KIx4.js");return{getDefaultRoleAssumerWithWebIdentity:a}},__vite__mapDeps([21,20,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));c=f({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:d,DurationSeconds:u})},de=e=>ne({...e});export{ie as fromCognitoIdentity,ae as fromCognitoIdentityPool,ce as fromHttp,le as fromTemporaryCredentials,de as fromWebToken};
@@ -1 +0,0 @@
1
- function v(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y={exports:{}},e=y.exports={},n,o;function p(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=p}catch{n=p}try{typeof clearTimeout=="function"?o=clearTimeout:o=h}catch{o=h}})();function d(t){if(n===setTimeout)return setTimeout(t,0);if((n===p||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch{try{return n.call(null,t,0)}catch{return n.call(this,t,0)}}}function w(t){if(o===clearTimeout)return clearTimeout(t);if((o===h||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch{try{return o.call(null,t)}catch{return o.call(this,t)}}}var u=[],a=!1,s,f=-1;function b(){!a||!s||(a=!1,s.length?u=s.concat(u):f=-1,u.length&&T())}function T(){if(!a){var t=d(b);a=!0;for(var r=u.length;r;){for(s=u,u=[];++f<r;)s&&s[f].run();f=-1,r=u.length}s=null,a=!1,w(t)}}e.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)r[c-1]=arguments[c];u.push(new g(t,r)),u.length===1&&!a&&d(T)};function g(t,r){this.fun=t,this.array=r}g.prototype.run=function(){this.fun.apply(null,this.array)};e.title="browser";e.browser=!0;e.env={};e.argv=[];e.version="";e.versions={};function i(){}e.on=i;e.addListener=i;e.once=i;e.off=i;e.removeListener=i;e.removeAllListeners=i;e.emit=i;e.prependListener=i;e.prependOnceListener=i;e.listeners=function(t){return[]};e.binding=function(t){throw new Error("process.binding is not supported")};e.cwd=function(){return"/"};e.chdir=function(t){throw new Error("process.chdir is not supported")};e.umask=function(){return 0};var x=y.exports;const L=v(x);var l={exports:{}},m;function E(){return m||(m=1,typeof Object.create=="function"?l.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:l.exports=function(t,r){if(r){t.super_=r;var c=function(){};c.prototype=r.prototype,t.prototype=new c,t.prototype.constructor=t}}),l.exports}export{L as E,E as L};
@@ -1 +0,0 @@
1
- import{H as G,n as N,c as qe,b as _e,f as xe,d as Ve,e as Je,g as We,t as H,h as Ke,i as Qe,s as Xe,F as Ye}from"./normalizeProvider-CtDY37Q6.js";import{i as Ze,a as et,c as Pe,S as ie,m as tt,d as st,b as rt,T as E,e as oe,N as k,f as R,g as nt,L as Re,h as ke,v as it,R as ot,j as at,n as ve,k as ct,E as ut,r as dt,p as pt,l as lt,o as gt,q as ft,s as mt,D as ht,t as yt,u as St,w as Et,x as wt,y as Ct,z as It,A as bt,B as At,C as _t,F as xt,G as Pt,H as Rt,I as kt,J as vt,K as Ot,M as Dt,O as Tt,P as Mt,Q as Nt,U as Ut,V as $t,W as Oe,X as De}from"./resolveDefaultsModeConfig-BaVgVWbD.js";import"./preload-helper-BlTxHScW.js";import"./index-BT-B0wMw.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.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"./_commonjs-dynamic-modules-DkOKMH7F.js";const Ft=t=>e=>async s=>{if(!G.isInstance(s.request))return e(s);const{request:r}=s,{handlerProtocol:n=""}=t.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let i=r.hostname;r.port!=null&&(i+=`:${r.port}`),r.headers.host=i}return e(s)},zt={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},jt=t=>({applyToStack:e=>{e.add(Ft(t),zt)}}),Lt=()=>(t,e)=>async s=>{try{const r=await t(s),{clientName:n,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,d=c??e.inputFilterSensitiveLog,l=u??e.outputFilterSensitiveLog,{$metadata:p,...f}=r.output;return o?.info?.({clientName:n,commandName:i,input:d(s.input),output:l(f),metadata:p}),r}catch(r){const{clientName:n,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=e,{overrideInputFilterSensitiveLog:c}=a,u=c??e.inputFilterSensitiveLog;throw o?.error?.({clientName:n,commandName:i,input:u(s.input),error:r,metadata:r.$metadata}),r}},Ht={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Gt=t=>({applyToStack:e=>{e.add(Lt(),Ht)}}),Bt={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},qt=()=>t=>async e=>t(e),Vt=t=>({applyToStack:e=>{e.add(qt(),Bt)}}),Jt=void 0;function Wt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function Kt(t){const e=N(t.userAgentAppId??Jt),{customUserAgent:s}=t;return Object.assign(t,{customUserAgent:typeof s=="string"?[[s]]:s,userAgentAppId:async()=>{const r=await e();if(!Wt(r)){const n=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.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}})}const Te=(t,e=!1)=>{if(e){for(const s of t.split("."))if(!Te(s))return!1;return!0}return!(!Ze(t)||t.length<3||t.length>63||t!==t.toLowerCase()||et(t))},ae=":",Qt="/",Xt=t=>{const e=t.split(ae);if(e.length<6)return null;const[s,r,n,i,o,...a]=e;if(s!=="arn"||r===""||n===""||a.join(ae)==="")return null;const c=a.map(u=>u.split(Qt)).flat();return{partition:r,service:n,region:i,accountId:o,resourceId:c}},Yt=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],Zt={partitions:Yt};let es=Zt;const ts=t=>{const{partitions:e}=es;for(const r of e){const{regions:n,outputs:i}=r;for(const[o,a]of Object.entries(n))if(o===t)return{...i,...a}}for(const r of e){const{regionRegex:n,outputs:i}=r;if(new RegExp(n).test(t))return{...i}}const s=e.find(r=>r.id==="aws");if(!s)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...s.outputs}},Me={isVirtualHostableS3Bucket:Te,parseArn:Xt,partition:ts};Pe.aws=Me;function ss(t,e,s){return t.$source||(t.$source={}),t.$source[e]=s,t}function b(t,e,s){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]=s}const ce=t=>qe.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,Ne=t=>new Date(Date.now()+t),rs=(t,e)=>Math.abs(Ne(e).getTime()-t)>=3e5,ue=(t,e)=>{const s=Date.parse(t);return rs(s,e)?s-Date.now():e},U=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},ns=async t=>{const e=U("context",t.context),s=U("config",t.config),r=e.endpointV2?.properties?.authSchemes?.[0],i=await U("signer",s.signer)(r),o=t?.signingRegion,a=t?.signingRegionSet,c=t?.signingName;return{config:s,signer:i,signingRegion:o,signingRegionSet:a,signingName:c}};class is{async sign(e,s,r){if(!G.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const n=await ns(r),{config:i,signer:o}=n;let{signingRegion:a,signingName:c}=n;const u=r.context;if(u?.authSchemes?.length??!1){const[l,p]=u.authSchemes;l?.name==="sigv4a"&&p?.name==="sigv4"&&(a=p?.signingRegion??a,c=p?.signingName??c)}return await o.sign(e,{signingDate:Ne(i.systemClockOffset),signingRegion:a,signingService:c})}errorHandler(e){return s=>{const r=s.ServerTime??ce(s.$response);if(r){const n=U("config",e.config),i=n.systemClockOffset;n.systemClockOffset=ue(r,n.systemClockOffset),n.systemClockOffset!==i&&s.$metadata&&(s.$metadata.clockSkewCorrected=!0)}throw s}}successHandler(e,s){const r=ce(e);if(r){const n=U("config",s.config);n.systemClockOffset=ue(r,n.systemClockOffset)}}}const os=t=>{let e=t.credentials,s=!!t.credentials,r;Object.defineProperty(t,"credentials",{set(u){u&&u!==e&&u!==r&&(s=!0),e=u;const d=as(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),l=cs(t,d);if(s&&!l.attributed){const p=typeof e=="object"&&e!==null;r=async f=>{const v=await l(f);return p&&(!v.$source||Object.keys(v.$source).length===0)?ss(v,"CREDENTIALS_CODE","e"):v},r.memoized=l.memoized,r.configBound=l.configBound,r.attributed=!0}else r=l},get(){return r},enumerable:!0,configurable:!0}),t.credentials=e;const{signingEscapePath:n=!0,systemClockOffset:i=t.systemClockOffset||0,sha256:o}=t;let a;return t.signer?a=N(t.signer):t.regionInfoProvider?a=()=>N(t.region)().then(async u=>[await t.regionInfoProvider(u,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},u]).then(([u,d])=>{const{signingRegion:l,signingService:p}=u;t.signingRegion=t.signingRegion||l||d,t.signingName=t.signingName||p||t.serviceId;const f={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:o,uriEscapePath:n},h=t.signerConstructor||ie;return new h(f)}):a=async u=>{u=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await N(t.region)(),properties:{}},u);const d=u.signingRegion,l=u.signingName;t.signingRegion=t.signingRegion||d,t.signingName=t.signingName||l||t.serviceId;const p={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:o,uriEscapePath:n},f=t.signerConstructor||ie;return new f(p)},Object.assign(t,{systemClockOffset:i,signingEscapePath:n,signer:a})};function as(t,{credentials:e,credentialDefaultProvider:s}){let r;return e?e?.memoized?r=e:r=tt(e,rt,st):s?r=N(s(Object.assign({},t,{parentClientConfig:t}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function cs(t,e){if(e.configBound)return e;const s=async r=>e({...r,callerClientConfig:t});return s.memoized=e.memoized,s.configBound=!0,s}class us{queryCompat;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,s){const r=s.getMemberSchemas(),n=Object.values(r).find(i=>!!i.getMergedTraits().httpPayload);if(n){const i=n.getMergedTraits().mediaType;return i||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":e)}else if(!s.isUnitSchema()&&Object.values(r).find(o=>{const{httpQuery:a,httpQueryParams:c,httpHeader:u,httpLabel:d,httpPrefixHeaders:l}=o.getMergedTraits();return!a&&!c&&!u&&!d&&l===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,s,r,n,i,o){let a=s,c=e;e.includes("#")&&([a,c]=e.split("#"));const u={$metadata:i,$fault:r.statusCode<500?"client":"server"},d=E.for(a);try{return{errorSchema:o?.(d,c)??d.getSchema(e),errorMetadata:u}}catch{n.message=n.message??n.Message??"UnknownError";const p=E.for("smithy.ts.sdk.synthetic."+a),f=p.getBaseException();if(f){const h=p.getErrorCtor(f)??Error;throw this.decorateServiceException(Object.assign(new h({name:c}),u),n)}throw this.decorateServiceException(Object.assign(new Error(c),u),n)}}decorateServiceException(e,s={}){if(this.queryCompat){const r=e.Message??s.Message,n=oe(e,s);r&&(n.message=r),n.Error={...n.Error,Type:n.Error.Type,Code:n.Error.Code,Message:n.Error.message??n.Error.Message??r};const i=n.$metadata.requestId;return i&&(n.RequestId=i),n}return oe(e,s)}setQueryCompatError(e,s){const r=s.headers?.["x-amzn-query-error"];if(e!==void 0&&r!=null){const[n,i]=r.split(";"),o=Object.entries(e),a={Code:n,Type:i};Object.assign(e,a);for(const[c,u]of o)a[c==="message"?"Message":c]=u;delete a.__type,e.Error=a}}queryCompatOutput(e,s){e.Error&&(s.Error=e.Error),e.Type&&(s.Type=e.Type),e.Code&&(s.Code=e.Code)}findQueryCompatibleError(e,s){try{return e.getSchema(s)}catch{return e.find(n=>k.of(n).getMergedTraits().awsQueryError?.[0]===s)}}}class B{serdeContext;setSerdeContext(e){this.serdeContext=e}}function*ds(t,e){if(t.isUnitSchema())return;const s=t.getSchema();for(let r=0;r<s[4].length;++r){const n=s[4][r],i=s[5][r],o=new k([i,0],n);!(n in e)&&!o.isIdempotencyToken()||(yield[n,o])}}function*ps(t,e,s){if(t.isUnitSchema())return;const r=t.getSchema();let n=Object.keys(e).filter(i=>i!=="__type").length;for(let i=0;i<r[4].length&&n!==0;++i){const o=r[4][i],a=r[5][i],c=new k([a,0],o);let u=o;s&&(u=c.getMergedTraits()[s]??o),u in e&&(yield[o,c],n-=1)}}class ls{from;to;keys;constructor(e,s){this.from=e,this.to=s,this.keys=new Set(Object.keys(this.from).filter(r=>r!=="__type"))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value,s=this.from[e];this.to.$unknown=[e,s]}}}function gs(t,e,s){if(s?.source){const r=s.source;if(typeof e=="number"&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER||r!==String(e)))return r.includes(".")?new R(r,"bigDecimal"):BigInt(r)}return e}const fs=(t,e)=>nt(t,e).then(s=>(e?.utf8Encoder??_e)(s)),ms=(t,e)=>fs(t,e).then(s=>{if(s.length)try{return JSON.parse(s)}catch(r){throw r?.name==="SyntaxError"&&Object.defineProperty(r,"$responseBodyText",{value:s}),r}return{}}),hs=(t,e)=>{const s=(i,o)=>Object.keys(i).find(a=>a.toLowerCase()===o.toLowerCase()),r=i=>{let o=i;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},n=s(t.headers,"x-amzn-errortype");if(n!==void 0)return r(t.headers[n]);if(e&&typeof e=="object"){const i=s(e,"code");if(i&&e[i]!==void 0)return r(e[i]);if(e.__type!==void 0)return r(e.__type)}};class ys extends B{settings;constructor(e){super(),this.settings=e}async read(e,s){return this._read(e,typeof s=="string"?JSON.parse(s,gs):await ms(s,this.serdeContext))}readObject(e,s){return this._read(e,s)}_read(e,s){const r=s!==null&&typeof s=="object",n=k.of(e);if(r){if(n.isStructSchema()){const o=s,a=n.isUnionSchema(),c={};let u;const{jsonName:d}=this.settings;d&&(u={});let l;a&&(l=new ls(o,c));for(const[p,f]of ps(n,o,d?"jsonName":!1)){let h=p;d&&(h=f.getMergedTraits().jsonName??h,u[h]=p),a&&l.mark(h),o[h]!=null&&(c[p]=this._read(f,o[h]))}if(a)l.writeUnknown();else if(typeof o.__type=="string")for(const[p,f]of Object.entries(o)){const h=d?u[p]??p:p;h in c||(c[h]=f)}return c}if(Array.isArray(s)&&n.isListSchema()){const o=n.getValueSchema(),a=[],c=!!n.getMergedTraits().sparse;for(const u of s)(c||u!=null)&&a.push(this._read(o,u));return a}if(n.isMapSchema()){const o=n.getValueSchema(),a={},c=!!n.getMergedTraits().sparse;for(const[u,d]of Object.entries(s))(c||d!=null)&&(a[u]=this._read(o,d));return a}}if(n.isBlobSchema()&&typeof s=="string")return xe(s);const i=n.getMergedTraits().mediaType;if(n.isStringSchema()&&typeof s=="string"&&i)return i==="application/json"||i.endsWith("+json")?Re.from(s):s;if(n.isTimestampSchema()&&s!=null)switch(ke(n,this.settings)){case 5:return We(s);case 6:return Je(s);case 7:return Ve(s);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",s),new Date(s)}if(n.isBigIntegerSchema()&&(typeof s=="number"||typeof s=="string"))return BigInt(s);if(n.isBigDecimalSchema()&&s!=null){if(s instanceof R)return s;const o=s;return o.type==="bigDecimal"&&"string"in o?new R(o.string,o.type):new R(String(s),"bigDecimal")}if(n.isNumericSchema()&&typeof s=="string"){switch(s){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return s}if(n.isDocumentSchema())if(r){const o=Array.isArray(s)?[]:{};for(const[a,c]of Object.entries(s))c instanceof R?o[a]=c:o[a]=this._read(n,c);return o}else return structuredClone(s);return s}}const de="Ν";class Ss{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,s)=>{if(s instanceof R){const r=`${de+"nv"+this.counter++}_`+s.string;return this.values.set(`"${r}"`,s.string),r}if(typeof s=="bigint"){const r=s.toString(),n=`${de+"b"+this.counter++}_`+r;return this.values.set(`"${n}"`,r),n}return s}}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[s,r]of this.values)e=e.replace(s,r);return e}}class Es extends B{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,s){this.rootSchema=k.of(e),this.buffer=this._write(this.rootSchema,s)}writeDiscriminatedDocument(e,s){this.write(e,s),typeof this.buffer=="object"&&(this.buffer.__type=k.of(e).getName(!0))}flush(){const{rootSchema:e,useReplacer:s}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!s)return JSON.stringify(this.buffer);const r=new Ss;return r.replaceInJson(JSON.stringify(this.buffer,r.createReplacer(),0))}return this.buffer}_write(e,s,r){const n=s!==null&&typeof s=="object",i=k.of(e);if(n){if(i.isStructSchema()){const o=s,a={},{jsonName:c}=this.settings;let u;c&&(u={});for(const[d,l]of ds(i,o)){const p=this._write(l,o[d],i);if(p!==void 0){let f=d;c&&(f=l.getMergedTraits().jsonName??d,u[d]=f),a[f]=p}}if(i.isUnionSchema()&&Object.keys(a).length===0){const{$unknown:d}=o;if(Array.isArray(d)){const[l,p]=d;a[l]=this._write(15,p)}}else if(typeof o.__type=="string")for(const[d,l]of Object.entries(o)){const p=c?u[d]??d:d;p in a||(a[p]=this._write(15,l))}return a}if(Array.isArray(s)&&i.isListSchema()){const o=i.getValueSchema(),a=[],c=!!i.getMergedTraits().sparse;for(const u of s)(c||u!=null)&&a.push(this._write(o,u));return a}if(i.isMapSchema()){const o=i.getValueSchema(),a={},c=!!i.getMergedTraits().sparse;for(const[u,d]of Object.entries(s))(c||d!=null)&&(a[u]=this._write(o,d));return a}if(s instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?s:(this.serdeContext?.base64Encoder??H)(s);if(s instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(ke(i,this.settings)){case 5:return s.toISOString().replace(".000Z","Z");case 6:return Ke(s);case 7:return s.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",s),s.getTime()/1e3}s instanceof R&&(this.useReplacer=!0)}if(!(s===null&&r?.isStructSchema())){if(i.isStringSchema()){if(typeof s>"u"&&i.isIdempotencyToken())return it();const o=i.getMergedTraits().mediaType;return s!=null&&o&&(o==="application/json"||o.endsWith("+json"))?Re.from(s):s}if(typeof s=="number"&&i.isNumericSchema())return Math.abs(s)===1/0||isNaN(s)?String(s):s;if(typeof s=="string"&&i.isBlobSchema())return i===this.rootSchema?s:(this.serdeContext?.base64Encoder??H)(s);if(typeof s=="bigint"&&(this.useReplacer=!0),i.isDocumentSchema())if(n){const o=Array.isArray(s)?[]:{};for(const[a,c]of Object.entries(s))c instanceof R?(this.useReplacer=!0,o[a]=c):o[a]=this._write(i,c);return o}else return structuredClone(s);return s}}}class ws extends B{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new Es(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new ys(this.settings);return e.setSerdeContext(this.serdeContext),e}}class Cs extends ot{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,serviceTarget:s,awsQueryCompatible:r,jsonCodec:n}){super({defaultNamespace:e}),this.serviceTarget=s,this.codec=n??new ws({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new us(this.awsQueryCompatible)}async serializeRequest(e,s,r){const n=await super.serializeRequest(e,s,r);return n.path.endsWith("/")||(n.path+="/"),Object.assign(n.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`}),this.awsQueryCompatible&&(n.headers["x-amzn-query-mode"]="true"),(at(e.input)==="unit"||!n.body)&&(n.body="{}"),n}getPayloadCodec(){return this.codec}async handleError(e,s,r,n,i){this.awsQueryCompatible&&this.mixin.setQueryCompatError(n,r);const o=hs(r,n)??"Unknown",{errorSchema:a,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,r,n,i,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=k.of(a),d=n.message??n.Message??"Unknown",l=E.for(a[1]).getErrorCtor(a)??Error,p=new l(d),f={};for(const[h,v]of u.structIterator())n[h]!=null&&(f[h]=this.codec.createDeserializer().readObject(v,n[h]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(n,f),this.mixin.decorateServiceException(Object.assign(p,c,{$fault:u.getMergedTraits().error,message:d},f),n)}}class Is extends Cs{constructor({defaultNamespace:e,serviceTarget:s,awsQueryCompatible:r,jsonCodec:n}){super({defaultNamespace:e,serviceTarget:s,awsQueryCompatible:r,jsonCodec:n})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const bs=/\d{12}\.ddb/;async function As(t,e,s){if(s.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&b(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){const i=await e.retryStrategy();typeof i.acquireInitialRetryToken=="function"?i.constructor?.name?.includes("Adaptive")?b(t,"RETRY_MODE_ADAPTIVE","F"):b(t,"RETRY_MODE_STANDARD","E"):b(t,"RETRY_MODE_LEGACY","D")}if(typeof e.accountIdEndpointMode=="function"){const i=t.endpointV2;switch(String(i?.url?.hostname).match(bs)&&b(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":b(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":b(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":b(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const n=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){const i=n;i.accountId&&b(t,"RESOLVED_ACCOUNT_ID","T");for(const[o,a]of Object.entries(i.$source??{}))b(t,o,a)}}const pe="user-agent",j="x-amz-user-agent",le=" ",L="/",_s=/[^!$%&'*+\-.^_`|~\w]/g,xs=/[^!$%&'*+\-.^_`|~\w#]/g,ge="-",Ps=1024;function Rs(t){let e="";for(const s in t){const r=t[s];if(e.length+r.length+1<=Ps){e.length?e+=","+r:e+=r;continue}break}return e}const ks=t=>(e,s)=>async r=>{const{request:n}=r;if(!G.isInstance(n))return e(r);const{headers:i}=n,o=s?.userAgent?.map(F)||[],a=(await t.defaultUserAgentProvider()).map(F);await As(s,t,r);const c=s;a.push(`m/${Rs(Object.assign({},s.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const u=t?.customUserAgent?.map(F)||[],d=await t.userAgentAppId();d&&a.push(F(["app",`${d}`]));const l=[].concat([...a,...o,...u]).join(le),p=[...a.filter(f=>f.startsWith("aws-sdk-")),...u].join(le);return t.runtime!=="browser"?(p&&(i[j]=i[j]?`${i[pe]} ${p}`:p),i[pe]=l):i[j]=l,e({...r,request:n})},F=t=>{const e=t[0].split(L).map(o=>o.replace(_s,ge)).join(L),s=t[1]?.replace(xs,ge),r=e.indexOf(L),n=e.substring(0,r);let i=e.substring(r+1);return n==="api"&&(i=i.toLowerCase()),[n,i,s].filter(o=>o&&o.length>0).reduce((o,a,c)=>{switch(c){case 0:return a;case 1:return`${o}/${a}`;default:return`${o}#${a}`}},"")},vs={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Os=t=>({applyToStack:e=>{e.add(ks(t),vs)}}),Ds=async(t,e,s)=>({operation:ct(e).operation,region:await ve(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ts(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:t.region},propertiesExtractor:(e,s)=>({signingProperties:{config:e,context:s}})}}function z(t){return{schemeId:"smithy.api#noAuth"}}const Ms=t=>{const e=[];switch(t.operation){case"GetCredentialsForIdentity":{e.push(z());break}case"GetId":{e.push(z());break}case"GetOpenIdToken":{e.push(z());break}case"UnlinkIdentity":{e.push(z());break}default:e.push(Ts(t))}return e},Ns=t=>{const e=os(t);return Object.assign(e,{authSchemePreference:ve(t.authSchemePreference??[])})},Us=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),Ue={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},$s="3.974.0",Fs={version:$s},zs=({serviceId:t,clientVersion:e})=>async s=>{const r=typeof window<"u"?window.navigator:void 0,n=r?.userAgent??"",i=r?.userAgentData?.platform??fe.os(n)??"other",o=void 0,a=r?.userAgentData?.brands??[],c=a[a.length-1],u=c?.brand??fe.browser(n)??"unknown",d=c?.version??"unknown",l=[["aws-sdk-js",e],["ua","2.1"],[`os/${i}`,o],["lang/js"],["md/browser",`${u}_${d}`]];t&&l.push([`api/${t}`,e]);const p=await s?.userAgentAppId?.();return p&&l.push([`app/${p}`]),l},fe={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}},$e="required",y="fn",S="argv",D="ref",me=!0,he="isSet",$="booleanEquals",O="error",A="endpoint",P="tree",q="PartitionResult",V="getAttr",T="stringEquals",ye={[$e]:!1,type:"string"},Se={[$e]:!0,default:!1,type:"boolean"},Ee={[D]:"Endpoint"},Fe={[y]:$,[S]:[{[D]:"UseFIPS"},!0]},ze={[y]:$,[S]:[{[D]:"UseDualStack"},!0]},m={},M={[D]:"Region"},we={[y]:V,[S]:[{[D]:q},"supportsFIPS"]},je={[D]:q},Ce={[y]:$,[S]:[!0,{[y]:V,[S]:[je,"supportsDualStack"]}]},Ie=[Fe],be=[ze],Ae=[M],js={parameters:{Region:ye,UseDualStack:Se,UseFIPS:Se,Endpoint:ye},rules:[{conditions:[{[y]:he,[S]:[Ee]}],rules:[{conditions:Ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:O},{conditions:be,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:O},{endpoint:{url:Ee,properties:m,headers:m},type:A}],type:P},{conditions:[{[y]:he,[S]:Ae}],rules:[{conditions:[{[y]:"aws.partition",[S]:Ae,assign:q}],rules:[{conditions:[Fe,ze],rules:[{conditions:[{[y]:$,[S]:[me,we]},Ce],rules:[{conditions:[{[y]:T,[S]:[M,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:m,headers:m},type:A},{conditions:[{[y]:T,[S]:[M,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:m,headers:m},type:A},{conditions:[{[y]:T,[S]:[M,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:m,headers:m},type:A},{conditions:[{[y]:T,[S]:[M,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:m,headers:m},type:A},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:A}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:O}],type:P},{conditions:Ie,rules:[{conditions:[{[y]:$,[S]:[we,me]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:A}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:O}],type:P},{conditions:be,rules:[{conditions:[Ce],rules:[{conditions:[{[y]:T,[S]:["aws",{[y]:V,[S]:[je,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:m,headers:m},type:A},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:A}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:O}],type:P},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:A}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:O}]},Ls=js,Hs=new ut({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Gs=(t,e={})=>Hs.get(t,()=>dt(Ls,{endpointParams:t,logger:e.logger}));Pe.aws=Me;const Bs=t=>({apiVersion:"2014-06-30",base64Decoder:t?.base64Decoder??xe,base64Encoder:t?.base64Encoder??H,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??Gs,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Ms,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new is},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new gt}],logger:t?.logger??new lt,protocol:t?.protocol??Is,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:t?.serviceId??"Cognito Identity",urlParser:t?.urlParser??pt,utf8Decoder:t?.utf8Decoder??Qe,utf8Encoder:t?.utf8Encoder??_e}),qs=t=>{const e=ft(t),s=()=>e().then(It),r=Bs(t);return{...r,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??Et,credentialDefaultProvider:t?.credentialDefaultProvider??(n=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:t?.defaultUserAgentProvider??zs({serviceId:r.serviceId,clientVersion:Fs.version}),maxAttempts:t?.maxAttempts??St,region:t?.region??yt("Region is missing"),requestHandler:Ye.create(t?.requestHandler??s),retryMode:t?.retryMode??(async()=>(await s()).retryMode||ht),sha256:t?.sha256??mt,streamCollector:t?.streamCollector??Xe,useDualstackEndpoint:t?.useDualstackEndpoint??(()=>Promise.resolve(Ct)),useFipsEndpoint:t?.useFipsEndpoint??(()=>Promise.resolve(wt))}},Vs=t=>({setRegion(e){t.region=e},region(){return t.region}}),Js=t=>({region:t.region()}),Ws=t=>{const e=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider,r=t.credentials;return{setHttpAuthScheme(n){const i=e.findIndex(o=>o.schemeId===n.schemeId);i===-1?e.push(n):e.splice(i,1,n)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){r=n},credentials(){return r}}},Ks=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Qs=(t,e)=>{const s=Object.assign(Vs(t),bt(t),At(t),Ws(t));return e.forEach(r=>r.configure(s)),Object.assign(t,Js(s),_t(s),xt(s),Ks(s))};class dn extends Pt{config;constructor(...[e]){const s=qs(e||{});super(s),this.initConfig=s;const r=Us(s),n=Kt(r),i=Rt(n),o=kt(i),a=o,c=vt(a),u=Ns(c),d=Qs(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Os(this.config)),this.middlewareStack.use(Dt(this.config)),this.middlewareStack.use(Tt(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(Gt(this.config)),this.middlewareStack.use(Vt(this.config)),this.middlewareStack.use(Mt(this.config,{httpAuthSchemeParametersProvider:Ds,identityProviderConfigProvider:async l=>new Ut({"aws.auth#sigv4":l.credentials})})),this.middlewareStack.use(Nt(this.config))}destroy(){super.destroy()}}class w extends $t{constructor(e){super(e),Object.setPrototypeOf(this,w.prototype)}}class J extends w{name="InternalErrorException";$fault="server";constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),Object.setPrototypeOf(this,J.prototype)}}class W extends w{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,W.prototype)}}class K extends w{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,K.prototype)}}class Q extends w{name="NotAuthorizedException";$fault="client";constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,Q.prototype)}}class X extends w{name="ResourceConflictException";$fault="client";constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),Object.setPrototypeOf(this,X.prototype)}}class Y extends w{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,Y.prototype)}}class Z extends w{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,Z.prototype)}}class ee extends w{name="ExternalServiceException";$fault="client";constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),Object.setPrototypeOf(this,ee.prototype)}}class te extends w{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),Object.setPrototypeOf(this,te.prototype)}}class se extends w{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(e){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...e}),Object.setPrototypeOf(this,se.prototype)}}class re extends w{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,re.prototype)}}const Xs="AccountId",Ys="AccessKeyId",Le="Credentials",Zs="ConcurrentModificationException",er="CustomRoleArn",tr="DeveloperUserAlreadyRegisteredException",sr="Expiration",rr="ExternalServiceException",nr="GetCredentialsForIdentity",ir="GetCredentialsForIdentityInput",or="GetCredentialsForIdentityResponse",ar="GetId",cr="GetIdInput",ur="GetIdResponse",dr="InternalErrorException",ne="IdentityId",pr="InvalidIdentityPoolConfigurationException",lr="InvalidParameterException",gr="IdentityPoolId",fr="IdentityProviderToken",He="Logins",mr="LimitExceededException",hr="LoginsMap",yr="NotAuthorizedException",Sr="ResourceConflictException",Er="ResourceNotFoundException",wr="SecretKey",Cr="SecretKeyString",Ir="SessionToken",br="TooManyRequestsException",_="client",C="error",x="httpError",I="message",Ar="server",Ge="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",g="com.amazonaws.cognitoidentity";var _r=[0,g,fr,8,0],xr=[0,g,Cr,8,0],Pr=[-3,g,Zs,{[C]:_,[x]:400},[I],[0]];E.for(g).registerError(Pr,re);var Rr=[3,g,Le,0,[Ys,wr,Ir,sr],[0,[()=>xr,0],0,4]],kr=[-3,g,tr,{[C]:_,[x]:400},[I],[0]];E.for(g).registerError(kr,se);var vr=[-3,g,rr,{[C]:_,[x]:400},[I],[0]];E.for(g).registerError(vr,ee);var Or=[3,g,ir,0,[ne,He,er],[0,[()=>Be,0],0],1],Dr=[3,g,or,0,[ne,Le],[0,[()=>Rr,0]]],Tr=[3,g,cr,0,[gr,Xs,He],[0,0,[()=>Be,0]],1],Mr=[3,g,ur,0,[ne],[0]],Nr=[-3,g,dr,{[C]:Ar},[I],[0]];E.for(g).registerError(Nr,J);var Ur=[-3,g,pr,{[C]:_,[x]:400},[I],[0]];E.for(g).registerError(Ur,te);var $r=[-3,g,lr,{[C]:_,[x]:400},[I],[0]];E.for(g).registerError($r,W);var Fr=[-3,g,mr,{[C]:_,[x]:400},[I],[0]];E.for(g).registerError(Fr,K);var zr=[-3,g,yr,{[C]:_,[x]:403},[I],[0]];E.for(g).registerError(zr,Q);var jr=[-3,g,Sr,{[C]:_,[x]:409},[I],[0]];E.for(g).registerError(jr,X);var Lr=[-3,g,Er,{[C]:_,[x]:404},[I],[0]];E.for(g).registerError(Lr,Z);var Hr=[-3,g,br,{[C]:_,[x]:429},[I],[0]];E.for(g).registerError(Hr,Y);var Gr=[-3,Ge,"CognitoIdentityServiceException",0,[],[]];E.for(Ge).registerError(Gr,w);var Be=[2,g,hr,0,[0,0],[()=>_r,0]],Br=[9,g,nr,0,()=>Or,()=>Dr],qr=[9,g,ar,0,()=>Tr,()=>Mr];class pn extends Oe.classBuilder().ep(Ue).m(function(e,s,r,n){return[De(r,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Br).build(){}class ln extends Oe.classBuilder().ep(Ue).m(function(e,s,r,n){return[De(r,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(qr).build(){}export{dn as CognitoIdentityClient,pn as GetCredentialsForIdentityCommand,ln as GetIdCommand};
@@ -1 +0,0 @@
1
- import{n as W,k as ge,E as he,r as Pe,c as Ee,p as Se,l as fe,o as ve,q as ye,s as Ae,D as xe,t as Re,u as _e,w as Ce,x as De,y as Ie,z as Te,A as be,B as ke,C as we,F as Ue,G as $e,H as Oe,I as He,J as Fe,K as Le,M as je,O as Me,P as Ne,Q as Ke,U as ze,V as Ve,T as E,W as qe,X as Ge}from"./resolveDefaultsModeConfig-BaVgVWbD.js";import{r as Be,a as We,A as Qe,b as Je,c as Xe,g as Ye,d as Ze,e as et,f as tt,h as ot,i as st,j as nt,k as it}from"./index-6mr3sa6o.js";import{b as rt,i as at,t as ct,f as dt,s as lt,F as ut}from"./normalizeProvider-CtDY37Q6.js";import"./preload-helper-BlTxHScW.js";import"./index-BT-B0wMw.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.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"./_commonjs-dynamic-modules-DkOKMH7F.js";const pt=async(e,t,a)=>({operation:ge(t).operation,region:await W(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function mt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,a)=>({signingProperties:{config:t,context:a}})}}function gt(e){return{schemeId:"smithy.api#noAuth"}}const ht=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(gt());break}default:t.push(mt(e))}return t},Pt=e=>Object.assign(e,{stsClientCtor:kt}),Et=e=>{const t=Pt(e),a=Be(t);return Object.assign(a,{authSchemePreference:W(e.authSchemePreference??[])})},St=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),ft={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"}},vt="3.975.0",yt={version:vt},Q="required",o="type",s="fn",n="argv",S="ref",F=!1,D=!0,P="booleanEquals",c="stringEquals",J="sigv4",X="sts",Y="us-east-1",r="endpoint",L="https://sts.{Region}.{PartitionResult#dnsSuffix}",g="tree",R="error",T="getAttr",j={[Q]:!1,[o]:"string"},I={[Q]:!0,default:!1,[o]:"boolean"},Z={[S]:"Endpoint"},M={[s]:"isSet",[n]:[{[S]:"Region"}]},d={[S]:"Region"},N={[s]:"aws.partition",[n]:[d],assign:"PartitionResult"},ee={[S]:"UseFIPS"},te={[S]:"UseDualStack"},l={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:J,signingName:X,signingRegion:Y}]},headers:{}},u={},K={conditions:[{[s]:c,[n]:[d,"aws-global"]}],[r]:l,[o]:r},oe={[s]:P,[n]:[ee,!0]},se={[s]:P,[n]:[te,!0]},z={[s]:T,[n]:[{[S]:"PartitionResult"},"supportsFIPS"]},ne={[S]:"PartitionResult"},V={[s]:P,[n]:[!0,{[s]:T,[n]:[ne,"supportsDualStack"]}]},q=[{[s]:"isSet",[n]:[Z]}],G=[oe],B=[se],At={parameters:{Region:j,UseDualStack:I,UseFIPS:I,Endpoint:j,UseGlobalEndpoint:I},rules:[{conditions:[{[s]:P,[n]:[{[S]:"UseGlobalEndpoint"},D]},{[s]:"not",[n]:q},M,N,{[s]:P,[n]:[ee,F]},{[s]:P,[n]:[te,F]}],rules:[{conditions:[{[s]:c,[n]:[d,"ap-northeast-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-south-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-southeast-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-southeast-2"]}],endpoint:l,[o]:r},K,{conditions:[{[s]:c,[n]:[d,"ca-central-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-central-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-north-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-2"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-3"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"sa-east-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,Y]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-east-2"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-west-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-west-2"]}],endpoint:l,[o]:r},{endpoint:{url:L,properties:{authSchemes:[{name:J,signingName:X,signingRegion:"{Region}"}]},headers:u},[o]:r}],[o]:g},{conditions:q,rules:[{conditions:G,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[o]:R},{conditions:B,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[o]:R},{endpoint:{url:Z,properties:u,headers:u},[o]:r}],[o]:g},{conditions:[M],rules:[{conditions:[N],rules:[{conditions:[oe,se],rules:[{conditions:[{[s]:P,[n]:[D,z]},V],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[o]:R}],[o]:g},{conditions:G,rules:[{conditions:[{[s]:P,[n]:[z,D]}],rules:[{conditions:[{[s]:c,[n]:[{[s]:T,[n]:[ne,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:u,headers:u},[o]:r},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"FIPS is enabled but this partition does not support FIPS",[o]:R}],[o]:g},{conditions:B,rules:[{conditions:[V],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"DualStack is enabled but this partition does not support DualStack",[o]:R}],[o]:g},K,{endpoint:{url:L,properties:u,headers:u},[o]:r}],[o]:g}],[o]:g},{error:"Invalid Configuration: Missing Region",[o]:R}]},xt=At,Rt=new he({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),_t=(e,t={})=>Rt.get(e,()=>Pe(xt,{endpointParams:e,logger:t.logger}));Ee.aws=We;const Ct=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??dt,base64Encoder:e?.base64Encoder??ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_t,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ht,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Je},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ve}],logger:e?.logger??new fe,protocol:e?.protocol??Qe,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Se,utf8Decoder:e?.utf8Decoder??at,utf8Encoder:e?.utf8Encoder??rt}),Dt=e=>{const t=ye(e),a=()=>t().then(Te),p=Ct(e);return{...p,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ce,credentialDefaultProvider:e?.credentialDefaultProvider??(m=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Xe({serviceId:p.serviceId,clientVersion:yt.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:ut.create(e?.requestHandler??a),retryMode:e?.retryMode??(async()=>(await a()).retryMode||xe),sha256:e?.sha256??Ae,streamCollector:e?.streamCollector??lt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Ie)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},It=e=>{const t=e.httpAuthSchemes;let a=e.httpAuthSchemeProvider,p=e.credentials;return{setHttpAuthScheme(m){const _=t.findIndex(C=>C.schemeId===m.schemeId);_===-1?t.push(m):t.splice(_,1,m)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(m){a=m},httpAuthSchemeProvider(){return a},setCredentials(m){p=m},credentials(){return p}}},Tt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),bt=(e,t)=>{const a=Object.assign(Ye(e),be(e),ke(e),It(e));return t.forEach(p=>p.configure(a)),Object.assign(e,Ze(a),we(a),Ue(a),Tt(a))};class kt extends $e{config;constructor(...[t]){const a=Dt(t||{});super(a),this.initConfig=a;const p=St(a),m=et(p),_=Oe(m),C=He(_),de=it(C),le=Fe(de),ue=Et(le),pe=bt(ue,t?.extensions||[]);this.config=pe,this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(Ne(this.config,{httpAuthSchemeParametersProvider:pt,identityProviderConfigProvider:async me=>new ze({"aws.auth#sigv4":me.credentials})})),this.middlewareStack.use(Ke(this.config))}destroy(){super.destroy()}}class h extends Ve{constructor(t){super(t),Object.setPrototypeOf(this,h.prototype)}}class b extends h{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,b.prototype)}}class k extends h{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,k.prototype)}}class w extends h{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,w.prototype)}}class U extends h{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class $ extends h{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,$.prototype)}}class O extends h{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,O.prototype)}}class H extends h{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}const wt="Arn",Ut="AccessKeyId",$t="AssumeRole",Ot="AssumedRoleId",Ht="AssumeRoleRequest",Ft="AssumeRoleResponse",ie="AssumedRoleUser",re="Credentials",Lt="ContextAssertion",jt="DurationSeconds",Mt="Expiration",Nt="ExternalId",Kt="ExpiredTokenException",zt="IDPCommunicationErrorException",Vt="IDPRejectedClaimException",qt="InvalidIdentityTokenException",Gt="Key",Bt="MalformedPolicyDocumentException",Wt="Policy",Qt="PolicyArns",Jt="ProviderArn",Xt="ProvidedContexts",Yt="ProvidedContextsListType",Zt="ProvidedContext",eo="PolicyDescriptorType",to="PackedPolicySize",oo="PackedPolicyTooLargeException",so="RoleArn",no="RegionDisabledException",io="RoleSessionName",ro="SecretAccessKey",ae="SourceIdentity",ao="SerialNumber",co="SessionToken",lo="Tags",uo="TokenCode",po="TransitiveTagKeys",mo="Tag",go="Value",ho="arn",Po="accessKeySecretType",f="awsQueryError",v="client",y="error",A="httpError",x="message",Eo="policyDescriptorListType",ce="smithy.ts.sdk.synthetic.com.amazonaws.sts",So="tagListType",i="com.amazonaws.sts";var fo=[0,i,Po,8,0],vo=[3,i,ie,0,[Ot,wt],[0,0],2],yo=[3,i,Ht,0,[so,io,Qt,Wt,jt,lo,po,Nt,ao,uo,ae,Xt],[0,0,()=>Oo,0,1,()=>Fo,64,0,0,0,0,()=>Ho],2],Ao=[3,i,Ft,0,[re,ie,to,ae],[[()=>xo,0],()=>vo,1,0]],xo=[3,i,re,0,[Ut,ro,co,Mt],[0,[()=>fo,0],0,4],4],Ro=[-3,i,Kt,{[f]:["ExpiredTokenException",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Ro,b);var _o=[-3,i,zt,{[f]:["IDPCommunicationError",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(_o,H);var Co=[-3,i,Vt,{[f]:["IDPRejectedClaim",403],[y]:v,[A]:403},[x],[0]];E.for(i).registerError(Co,$);var Do=[-3,i,qt,{[f]:["InvalidIdentityToken",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Do,O);var Io=[-3,i,Bt,{[f]:["MalformedPolicyDocument",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Io,k);var To=[-3,i,oo,{[f]:["PackedPolicyTooLarge",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(To,w);var bo=[3,i,eo,0,[ho],[0]],ko=[3,i,Zt,0,[Jt,Lt],[0,0]],wo=[-3,i,no,{[f]:["RegionDisabledException",403],[y]:v,[A]:403},[x],[0]];E.for(i).registerError(wo,U);var Uo=[3,i,mo,0,[Gt,go],[0,0],2],$o=[-3,ce,"STSServiceException",0,[],[]];E.for(ce).registerError($o,h);var Oo=[1,i,Eo,0,()=>bo],Ho=[1,i,Yt,0,()=>ko],Fo=[1,i,So,0,()=>Uo],Lo=[9,i,$t,0,()=>yo,()=>Ao];class ss extends qe.classBuilder().ep(ft).m(function(t,a,p,m){return[Ge(p,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Lo).build(){}export{ss as AssumeRoleCommand,kt as STSClient};
@@ -1 +0,0 @@
1
- import{l as o}from"./index-BT-B0wMw.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.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"./_commonjs-dynamic-modules-DkOKMH7F.js";export{o as default};
@@ -1,10 +0,0 @@
1
- import{d as sr,e as X,f as jr,g as wr,h as Or,i as vr,j as Br,k as Tr,c as Ir}from"./index-BT-B0wMw.js";var er={},nr={},tr,cr;function Pr(){if(cr)return tr;cr=1;var i=sr()(),p=X(),h=p("Object.prototype.toString"),l=function(u){return i&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:h(u)==="[object Arguments]"},g=function(u){return l(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&h(u)!=="[object Array]"&&"callee"in u&&h(u.callee)==="[object Function]"},d=(function(){return l(arguments)})();return l.isLegacyArguments=g,tr=d?l:g,tr}var ir,yr;function kr(){if(yr)return ir;yr=1;var i=X(),p=sr()(),h=wr(),l=jr(),g;if(p){var d=i("RegExp.prototype.exec"),A={},u=function(){throw A},m={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=u),g=function(S){if(!S||typeof S!="object")return!1;var I=l(S,"lastIndex"),B=I&&h(I,"value");if(!B)return!1;try{d(S,m)}catch(F){return F===A}}}else{var O=i("Object.prototype.toString"),E="[object RegExp]";g=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:O(S)===E}}return ir=g,ir}var or,lr;function Er(){if(lr)return or;lr=1;var i=X(),p=kr(),h=i("RegExp.prototype.exec"),l=Or();return or=function(d){if(!p(d))throw new l("`regex` must be a RegExp");return function(u){return h(d,u)!==null}},or}var fr,pr;function Fr(){if(pr)return fr;pr=1;const i=function*(){}.constructor;return fr=()=>i,fr}var ur,gr;function Rr(){if(gr)return ur;gr=1;var i=X(),p=Er(),h=p(/^\s*(?:function)?\*/),l=sr()(),g=vr(),d=i("Object.prototype.toString"),A=i("Function.prototype.toString"),u=Fr();return ur=function(O){if(typeof O!="function")return!1;if(h(A(O)))return!0;if(!l){var E=d(O);return E==="[object GeneratorFunction]"}if(!g)return!1;var w=u();return w&&g(O)===w.prototype},ur}var dr;function Dr(){return dr||(dr=1,(function(i){var p=Pr(),h=Rr(),l=Tr(),g=Br();function d(n){return n.call.bind(n)}var A=typeof BigInt<"u",u=typeof Symbol<"u",m=d(Object.prototype.toString),O=d(Number.prototype.valueOf),E=d(String.prototype.valueOf),w=d(Boolean.prototype.valueOf);if(A)var S=d(BigInt.prototype.valueOf);if(u)var I=d(Symbol.prototype.valueOf);function B(n,Sr){if(typeof n!="object")return!1;try{return Sr(n),!0}catch{return!1}}i.isArgumentsObject=p,i.isGeneratorFunction=h,i.isTypedArray=g;function F(n){return typeof Promise<"u"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}i.isPromise=F;function Y(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):g(n)||r(n)}i.isArrayBufferView=Y;function H(n){return l(n)==="Uint8Array"}i.isUint8Array=H;function C(n){return l(n)==="Uint8ClampedArray"}i.isUint8ClampedArray=C;function U(n){return l(n)==="Uint16Array"}i.isUint16Array=U;function x(n){return l(n)==="Uint32Array"}i.isUint32Array=x;function J(n){return l(n)==="Int8Array"}i.isInt8Array=J;function q(n){return l(n)==="Int16Array"}i.isInt16Array=q;function $(n){return l(n)==="Int32Array"}i.isInt32Array=$;function T(n){return l(n)==="Float32Array"}i.isFloat32Array=T;function R(n){return l(n)==="Float64Array"}i.isFloat64Array=R;function P(n){return l(n)==="BigInt64Array"}i.isBigInt64Array=P;function M(n){return l(n)==="BigUint64Array"}i.isBigUint64Array=M;function v(n){return m(n)==="[object Map]"}v.working=typeof Map<"u"&&v(new Map);function z(n){return typeof Map>"u"?!1:v.working?v(n):n instanceof Map}i.isMap=z;function G(n){return m(n)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function V(n){return typeof Set>"u"?!1:G.working?G(n):n instanceof Set}i.isSet=V;function k(n){return m(n)==="[object WeakMap]"}k.working=typeof WeakMap<"u"&&k(new WeakMap);function rr(n){return typeof WeakMap>"u"?!1:k.working?k(n):n instanceof WeakMap}i.isWeakMap=rr;function _(n){return m(n)==="[object WeakSet]"}_.working=typeof WeakSet<"u"&&_(new WeakSet);function L(n){return _(n)}i.isWeakSet=L;function j(n){return m(n)==="[object ArrayBuffer]"}j.working=typeof ArrayBuffer<"u"&&j(new ArrayBuffer);function Z(n){return typeof ArrayBuffer>"u"?!1:j.working?j(n):n instanceof ArrayBuffer}i.isArrayBuffer=Z;function N(n){return m(n)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function r(n){return typeof DataView>"u"?!1:N.working?N(n):n instanceof DataView}i.isDataView=r;var e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function t(n){return m(n)==="[object SharedArrayBuffer]"}function o(n){return typeof e>"u"?!1:(typeof t.working>"u"&&(t.working=t(new e)),t.working?t(n):n instanceof e)}i.isSharedArrayBuffer=o;function s(n){return m(n)==="[object AsyncFunction]"}i.isAsyncFunction=s;function c(n){return m(n)==="[object Map Iterator]"}i.isMapIterator=c;function f(n){return m(n)==="[object Set Iterator]"}i.isSetIterator=f;function a(n){return m(n)==="[object Generator]"}i.isGeneratorObject=a;function y(n){return m(n)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=y;function b(n){return B(n,O)}i.isNumberObject=b;function D(n){return B(n,E)}i.isStringObject=D;function K(n){return B(n,w)}i.isBooleanObject=K;function W(n){return A&&B(n,S)}i.isBigIntObject=W;function Q(n){return u&&B(n,I)}i.isSymbolObject=Q;function hr(n){return b(n)||D(n)||K(n)||W(n)||Q(n)}i.isBoxedPrimitive=hr;function Ar(n){return typeof Uint8Array<"u"&&(Z(n)||o(n))}i.isAnyArrayBuffer=Ar,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})})(nr)),nr}var ar,mr;function Ur(){return mr||(mr=1,ar=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}),ar}var br;function zr(){return br||(br=1,(function(i){var p={},h=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},s=0;s<t.length;s++)o[t[s]]=Object.getOwnPropertyDescriptor(e,t[s]);return o},l=/%[sdj%]/g;i.format=function(r){if(!q(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(u(arguments[t]));return e.join(" ")}for(var t=1,o=arguments,s=o.length,c=String(r).replace(l,function(a){if(a==="%%")return"%";if(t>=s)return a;switch(a){case"%s":return String(o[t++]);case"%d":return Number(o[t++]);case"%j":try{return JSON.stringify(o[t++])}catch{return"[Circular]"}default:return a}}),f=o[t];t<s;f=o[++t])U(f)||!P(f)?c+=" "+f:c+=" "+u(f);return c},i.deprecate=function(r,e){if(typeof process<"u"&&process.noDeprecation===!0)return r;if(typeof process>"u")return function(){return i.deprecate(r,e).apply(this,arguments)};var t=!1;function o(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return o};var g={},d=/^$/;if(p.NODE_DEBUG){var A=p.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+A+"$","i")}i.debuglog=function(r){if(r=r.toUpperCase(),!g[r])if(d.test(r)){var e=process.pid;g[r]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",r,e,t)}}else g[r]=function(){};return g[r]};function u(r,e){var t={seen:[],stylize:O};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C(e)?t.showHidden=e:e&&i._extend(t,e),T(t.showHidden)&&(t.showHidden=!1),T(t.depth)&&(t.depth=2),T(t.colors)&&(t.colors=!1),T(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m),w(t,r,t.depth)}i.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(r,e){var t=u.styles[e];return t?"\x1B["+u.colors[t][0]+"m"+r+"\x1B["+u.colors[t][1]+"m":r}function O(r,e){return r}function E(r){var e={};return r.forEach(function(t,o){e[t]=!0}),e}function w(r,e,t){if(r.customInspect&&e&&z(e.inspect)&&e.inspect!==i.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(t,r);return q(o)||(o=w(r,o,t)),o}var s=S(r,e);if(s)return s;var c=Object.keys(e),f=E(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(e)),v(e)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return I(e);if(c.length===0){if(z(e)){var a=e.name?": "+e.name:"";return r.stylize("[Function"+a+"]","special")}if(R(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(M(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return I(e)}var y="",b=!1,D=["{","}"];if(H(e)&&(b=!0,D=["[","]"]),z(e)){var K=e.name?": "+e.name:"";y=" [Function"+K+"]"}if(R(e)&&(y=" "+RegExp.prototype.toString.call(e)),M(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+I(e)),c.length===0&&(!b||e.length==0))return D[0]+y+D[1];if(t<0)return R(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var W;return b?W=B(r,e,t,f,c):W=c.map(function(Q){return F(r,e,t,f,Q,b)}),r.seen.pop(),Y(W,y,D)}function S(r,e){if(T(e))return r.stylize("undefined","undefined");if(q(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(J(e))return r.stylize(""+e,"number");if(C(e))return r.stylize(""+e,"boolean");if(U(e))return r.stylize("null","null")}function I(r){return"["+Error.prototype.toString.call(r)+"]"}function B(r,e,t,o,s){for(var c=[],f=0,a=e.length;f<a;++f)L(e,String(f))?c.push(F(r,e,t,o,String(f),!0)):c.push("");return s.forEach(function(y){y.match(/^\d+$/)||c.push(F(r,e,t,o,y,!0))}),c}function F(r,e,t,o,s,c){var f,a,y;if(y=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},y.get?y.set?a=r.stylize("[Getter/Setter]","special"):a=r.stylize("[Getter]","special"):y.set&&(a=r.stylize("[Setter]","special")),L(o,s)||(f="["+s+"]"),a||(r.seen.indexOf(y.value)<0?(U(t)?a=w(r,y.value,null):a=w(r,y.value,t-1),a.indexOf(`
2
- `)>-1&&(c?a=a.split(`
3
- `).map(function(b){return" "+b}).join(`
4
- `).slice(2):a=`
5
- `+a.split(`
6
- `).map(function(b){return" "+b}).join(`
7
- `))):a=r.stylize("[Circular]","special")),T(f)){if(c&&s.match(/^\d+$/))return a;f=JSON.stringify(""+s),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.slice(1,-1),f=r.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=r.stylize(f,"string"))}return f+": "+a}function Y(r,e,t){var o=r.reduce(function(s,c){return c.indexOf(`
8
- `)>=0,s+c.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?t[0]+(e===""?"":e+`
9
- `)+" "+r.join(`,
10
- `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}i.types=Dr();function H(r){return Array.isArray(r)}i.isArray=H;function C(r){return typeof r=="boolean"}i.isBoolean=C;function U(r){return r===null}i.isNull=U;function x(r){return r==null}i.isNullOrUndefined=x;function J(r){return typeof r=="number"}i.isNumber=J;function q(r){return typeof r=="string"}i.isString=q;function $(r){return typeof r=="symbol"}i.isSymbol=$;function T(r){return r===void 0}i.isUndefined=T;function R(r){return P(r)&&V(r)==="[object RegExp]"}i.isRegExp=R,i.types.isRegExp=R;function P(r){return typeof r=="object"&&r!==null}i.isObject=P;function M(r){return P(r)&&V(r)==="[object Date]"}i.isDate=M,i.types.isDate=M;function v(r){return P(r)&&(V(r)==="[object Error]"||r instanceof Error)}i.isError=v,i.types.isNativeError=v;function z(r){return typeof r=="function"}i.isFunction=z;function G(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}i.isPrimitive=G,i.isBuffer=Ur();function V(r){return Object.prototype.toString.call(r)}function k(r){return r<10?"0"+r.toString(10):r.toString(10)}var rr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var r=new Date,e=[k(r.getHours()),k(r.getMinutes()),k(r.getSeconds())].join(":");return[r.getDate(),rr[r.getMonth()],e].join(" ")}i.log=function(){console.log("%s - %s",_(),i.format.apply(i,arguments))},i.inherits=Ir(),i._extend=function(r,e){if(!e||!P(e))return r;for(var t=Object.keys(e),o=t.length;o--;)r[t[o]]=e[t[o]];return r};function L(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;i.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t=e[j];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var o,s,c=new Promise(function(y,b){o=y,s=b}),f=[],a=0;a<arguments.length;a++)f.push(arguments[a]);f.push(function(y,b){y?s(y):o(b)});try{e.apply(this,f)}catch(y){s(y)}return c}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,h(e))},i.promisify.custom=j;function Z(r,e){if(!r){var t=new Error("Promise was rejected with a falsy value");t.reason=r,r=t}return e(r)}function N(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var t=[],o=0;o<arguments.length;o++)t.push(arguments[o]);var s=t.pop();if(typeof s!="function")throw new TypeError("The last argument must be of type Function");var c=this,f=function(){return s.apply(c,arguments)};r.apply(this,t).then(function(a){process.nextTick(f.bind(null,null,a))},function(a){process.nextTick(Z.bind(null,a,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(r)),Object.defineProperties(e,h(r)),e}i.callbackify=N})(er)),er}export{zr as r};
@@ -1,10 +0,0 @@
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};
@@ -1 +0,0 @@
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};
@@ -1 +0,0 @@
1
- import{f as n}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as f}from"./winston-1qzyIKCb-DfRv1PO8.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-B4ZV5RJW.js";import"./index-BT-B0wMw.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.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"./_commonjs-dynamic-modules-DkOKMH7F.js";function a(o,p){for(var e=0;e<p.length;e++){const t=p[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in o)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),z=a({__proto__:null,default:c},[m]);export{z as w};