1var nt=Object.defineProperty;var rt=(t,e,s)=>e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>rt(t,typeof e!="symbol"?e+"":e,s);import{Z as ot,_ as M,$ as at,a0 as it,a1 as dt,a2 as ct,a3 as ut,a4 as lt,a5 as pt,a6 as j,a7 as ht,a8 as mt,a9 as Et,aa as It,ab as yt,ac as vt,ad as Pt,ae as St,af as xt,ag as Ct,ah as gt,ai as At,aj as _t,ak as Rt,al as wt,am as bt,an as Ft,ao as kt,ap as Dt,aq as $t,ar as Ot,as as Gt,at as Ht,au as Tt,av as Lt,aw as Nt,ax as Ut,ay as Mt,az as jt,aA as zt,aB as ft,aC as qt,aD as Kt,aE as Bt,aF as Vt,aG as Wt,aH as Jt,aI as Xt,aJ as Yt,aK as Zt,aL as Qt,aM as te,aN as ee,aO as z,aP as f}from"./index-B33eox3o.js";import"./vendor-DK739Z2k.js";const se=async(t,e,s)=>({operation:at(e).operation,region:await M(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ne(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:t.region},propertiesExtractor:(e,s)=>({signingProperties:{config:e,context:s}})}}function H(t){return{schemeId:"smithy.api#noAuth"}}const re=t=>{const e=[];switch(t.operation){case"GetCredentialsForIdentity":{e.push(H());break}case"GetId":{e.push(H());break}default:e.push(ne(t))}return e},oe=t=>{const e=ot(t);return Object.assign(e,{authSchemePreference:M(t.authSchemePreference??[])})},ae=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),q={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},ie="3.997.19",de={version:ie},v="ref",E=-1,S=!0,T="isSet",K="PartitionResult",x="booleanEquals",g="getAttr",I="stringEquals",L={[v]:"Endpoint"},A={[v]:K},y={[v]:"Region"},c={},N=[y],U={conditions:[[T,[L]],[T,N],["aws.partition",N,K],[x,[{[v]:"UseFIPS"},S]],[x,[{fn:g,argv:[A,"supportsFIPS"]},S]],[x,[{[v]:"UseDualStack"},S]],[x,[{fn:g,argv:[A,"supportsDualStack"]},S]],[I,[{fn:g,argv:[A,"name"]},"aws"]],[I,[y,"us-east-1"]],[I,[y,"us-east-2"]],[I,[y,"us-west-1"]],[I,[y,"us-west-2"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[L,c],["https://cognito-identity-fips.us-east-1.amazonaws.com",c],["https://cognito-identity-fips.us-east-2.amazonaws.com",c],["https://cognito-identity-fips.us-west-1.amazonaws.com",c],["https://cognito-identity-fips.us-west-2.amazonaws.com",c],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",c],[E,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",c],[E,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",c],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",c],[E,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",c],[E,"Invalid Configuration: Missing Region"]]},ce=2,o=1e8,ue=new Int32Array([-1,1,-1,0,17,3,1,4,o+16,2,5,o+16,3,9,6,5,7,o+15,6,8,o+14,7,o+12,o+13,4,11,10,5,o+9,o+11,5,12,o+10,6,13,o+9,8,o+4,14,9,o+5,15,10,o+6,16,11,o+7,o+8,3,o+1,18,5,o+2,o+3]),le=it.from(ue,ce,U.conditions,U.results),pe=new dt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),he=(t,e={})=>pe.get(t,()=>ct(le,{endpointParams:t,logger:e.logger}));lt.aws=ut;class i extends pt{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}class _ extends i{constructor(s){super({name:"ExternalServiceException",$fault:"client",...s});n(this,"name","ExternalServiceException");n(this,"$fault","client");Object.setPrototypeOf(this,_.prototype)}}class R extends i{constructor(s){super({name:"InternalErrorException",$fault:"server",...s});n(this,"name","InternalErrorException");n(this,"$fault","server");Object.setPrototypeOf(this,R.prototype)}}class w extends i{constructor(s){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...s});n(this,"name","InvalidIdentityPoolConfigurationException");n(this,"$fault","client");Object.setPrototypeOf(this,w.prototype)}}class b extends i{constructor(s){super({name:"InvalidParameterException",$fault:"client",...s});n(this,"name","InvalidParameterException");n(this,"$fault","client");Object.setPrototypeOf(this,b.prototype)}}class F extends i{constructor(s){super({name:"NotAuthorizedException",$fault:"client",...s});n(this,"name","NotAuthorizedException");n(this,"$fault","client");Object.setPrototypeOf(this,F.prototype)}}class k extends i{constructor(s){super({name:"ResourceConflictException",$fault:"client",...s});n(this,"name","ResourceConflictException");n(this,"$fault","client");Object.setPrototypeOf(this,k.prototype)}}class D extends i{constructor(s){super({name:"ResourceNotFoundException",$fault:"client",...s});n(this,"name","ResourceNotFoundException");n(this,"$fault","client");Object.setPrototypeOf(this,D.prototype)}}class $ extends i{constructor(s){super({name:"TooManyRequestsException",$fault:"client",...s});n(this,"name","TooManyRequestsException");n(this,"$fault","client");Object.setPrototypeOf(this,$.prototype)}}class O extends i{constructor(s){super({name:"LimitExceededException",$fault:"client",...s});n(this,"name","LimitExceededException");n(this,"$fault","client");Object.setPrototypeOf(this,O.prototype)}}const me="AccountId",Ee="AccessKeyId",B="Credentials",Ie="CustomRoleArn",ye="Expiration",ve="ExternalServiceException",Pe="GetCredentialsForIdentity",Se="GetCredentialsForIdentityInput",xe="GetCredentialsForIdentityResponse",Ce="GetId",ge="GetIdInput",Ae="GetIdResponse",_e="InternalErrorException",G="IdentityId",Re="InvalidIdentityPoolConfigurationException",we="InvalidParameterException",be="IdentityPoolId",Fe="IdentityProvi
1derToken",V="Logins",ke="LimitExceededException",De="LoginsMap",$e="NotAuthorizedException",Oe="ResourceConflictException",Ge="ResourceNotFoundException",He="SecretKey",Te="SecretKeyString",Le="SessionToken",Ne="TooManyRequestsException",h="client",l="error",m="httpError",p="message",W="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",Ue="server",r="com.amazonaws.cognitoidentity",J=j.for(W);var Me=[-3,W,"CognitoIdentityServiceException",0,[],[]];J.registerError(Me,i);const u=j.for(r);var je=[-3,r,ve,{[l]:h,[m]:400},[p],[0]];u.registerError(je,_);var ze=[-3,r,_e,{[l]:Ue},[p],[0]];u.registerError(ze,R);var fe=[-3,r,Re,{[l]:h,[m]:400},[p],[0]];u.registerError(fe,w);var qe=[-3,r,we,{[l]:h,[m]:400},[p],[0]];u.registerError(qe,b);var Ke=[-3,r,ke,{[l]:h,[m]:400},[p],[0]];u.registerError(Ke,O);var Be=[-3,r,$e,{[l]:h,[m]:403},[p],[0]];u.registerError(Be,F);var Ve=[-3,r,Oe,{[l]:h,[m]:409},[p],[0]];u.registerError(Ve,k);var We=[-3,r,Ge,{[l]:h,[m]:404},[p],[0]];u.registerError(We,D);var Je=[-3,r,Ne,{[l]:h,[m]:429},[p],[0]];u.registerError(Je,$);const Xe=[J,u];var Ye=[0,r,Fe,8,0],Ze=[0,r,Te,8,0],Qe=[3,r,B,0,[Ee,He,Le,ye],[0,[()=>Ze,0],0,4]],ts=[3,r,Se,0,[G,V,Ie],[0,[()=>X,0],0],1],es=[3,r,xe,0,[G,B],[0,[()=>Qe,0]]],ss=[3,r,ge,0,[be,me,V],[0,0,[()=>X,0]],1],ns=[3,r,Ae,0,[G],[0]],X=[2,r,De,0,[0,0],[()=>Ye,0]],rs=[9,r,Pe,0,()=>ts,()=>es],os=[9,r,Ce,0,()=>ss,()=>ns];const as=t=>({apiVersion:"2014-06-30",base64Decoder:(t==null?void 0:t.base64Decoder)??xt,base64Encoder:(t==null?void 0:t.base64Encoder)??St,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??he,extensions:(t==null?void 0:t.extensions)??[],httpAuthSchemeProvider:(t==null?void 0:t.httpAuthSchemeProvider)??re,httpAuthSchemes:(t==null?void 0:t.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new vt},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Pt}],logger:(t==null?void 0:t.logger)??new yt,protocol:(t==null?void 0:t.protocol)??It,protocolSettings:(t==null?void 0:t.protocolSettings)??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:Xe,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity",urlParser:(t==null?void 0:t.urlParser)??Et,utf8Decoder:(t==null?void 0:t.utf8Decoder)??mt,utf8Encoder:(t==null?void 0:t.utf8Encoder)??ht}),is=t=>{const e=Ct(t),s=()=>e().then(Ot),a=as(t);return{...a,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??wt,defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??$t({serviceId:a.serviceId,clientVersion:de.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Rt,region:(t==null?void 0:t.region)??Dt("Region is missing"),requestHandler:kt.create((t==null?void 0:t.requestHandler)??s),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await s()).retryMode||_t),sha256:(t==null?void 0:t.sha256)??At,streamCollector:(t==null?void 0:t.streamCollector)??gt,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Ft)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(bt))}},ds=t=>{const e=t.httpAuthSchemes;let s=t.httpAuthSchemeProvider,a=t.credentials;return{setHttpAuthScheme(d){const P=e.findIndex(C=>C.schemeId===d.schemeId);P===-1?e.push(d):e.splice(P,1,d)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(d){s=d},httpAuthSchemeProvider(){return s},setCredentials(d){a=d},credentials(){return a}}},cs=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),us=(t,e)=>{const s=Object.assign(Gt(t),Ht(t),Tt(t),ds(t));return e.forEach(a=>a.configure(s)),Object.assign(t,Lt(s),Nt(s),Ut(s),cs(s))};class ms extends Mt{constructor(...[s]){const a=is(s||{});super(a);n(this,"config");this.initConfig=a;const d=ae(a),P=jt(d),C=zt(P),Y=ft(C),Z=ee(Y),Q=qt(Z),tt=oe(Q),et=us(tt,(s==null?void 0:s.extensions)||[]);this.config=et,this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(Vt(this.config)),this.middlewareStack.use(Wt(this.config)),this.middlewareStack.use(Jt(this.config)),this.middlewareStack.use(Xt(this.config)),this.middlewareStack.use(Yt(this.config)),this.middlewareStack.use(Zt(this.config,{httpAuthSchemeParametersProvider:se,identityProvi
1derConfigProvider:async st=>new Qt({"aws.auth#sigv4":st.credentials})})),this.middlewareStack.use(te(this.config))}destroy(){super.destroy()}}class Es extends z.classBuilder().ep(q).m(function(e,s,a,d){return[f(a,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(rs).build(){}class Is extends z.classBuilder().ep(q).m(function(e,s,a,d){return[f(a,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(os).build(){}export{ms as CognitoIdentityClient,Es as GetCredentialsForIdentityCommand,Is as GetIdCommand};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.