@stacksjs/buddy 0.70.7 → 0.70.9

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 (32) hide show
  1. package/dist/{chunk-gt8zekyh.js → chunk-0kx5e4np.js} +1 -1
  2. package/dist/{chunk-4snfzgcp.js → chunk-6444b3b6.js} +1 -1
  3. package/dist/{chunk-2mzt8mks.js → chunk-864kk6a7.js} +1 -1
  4. package/dist/{chunk-38x86x4z.js → chunk-8nnfx0xe.js} +1 -1
  5. package/dist/{chunk-p4sjnjkt.js → chunk-aqgpc9tg.js} +1 -1
  6. package/dist/{chunk-6wnzdvc6.js → chunk-bj7sb2gs.js} +1 -1
  7. package/dist/{chunk-x6d1t8r7.js → chunk-cdz7xgbk.js} +2 -2
  8. package/dist/chunk-cs2tr6yd.js +2 -0
  9. package/dist/{chunk-3n3ay1vc.js → chunk-cx7bz59q.js} +1 -1
  10. package/dist/{chunk-jm49r4wr.js → chunk-dvnqfcah.js} +1 -1
  11. package/dist/{chunk-18byef1w.js → chunk-dz02fqrj.js} +1 -1
  12. package/dist/{chunk-5femxmbf.js → chunk-ensrnv3v.js} +92 -92
  13. package/dist/{chunk-atc0z327.js → chunk-eyn01tkt.js} +2 -2
  14. package/dist/{chunk-2m003k45.js → chunk-f0sjawty.js} +1 -1
  15. package/dist/{chunk-enfggzq6.js → chunk-gamj1826.js} +1 -1
  16. package/dist/{chunk-2az51wff.js → chunk-gser7yzj.js} +1 -1
  17. package/dist/{chunk-2hfepv08.js → chunk-h6ga49c2.js} +2 -2
  18. package/dist/{chunk-15sp93dn.js → chunk-m5phygyg.js} +2 -2
  19. package/dist/{chunk-jx6tpg9f.js → chunk-p2hmvsjh.js} +2 -2
  20. package/dist/{chunk-1j4se9g6.js → chunk-sz5qrrg9.js} +1 -1
  21. package/dist/chunk-v040jj16.js +2 -0
  22. package/dist/{chunk-mwdfdvqk.js → chunk-vcke324z.js} +1 -1
  23. package/dist/{chunk-fbbvmxn3.js → chunk-wjhmhcgy.js} +2 -2
  24. package/dist/{chunk-0wzn5tma.js → chunk-xkpw06x6.js} +1 -1
  25. package/dist/{chunk-gpr2zmbm.js → chunk-y7yphjhj.js} +1 -1
  26. package/dist/{chunk-rkh5r5e6.js → chunk-yqrgw3jk.js} +2 -2
  27. package/dist/{chunk-hrr9f8tw.js → chunk-zyvsgnfm.js} +2 -2
  28. package/dist/cli.js +1 -1
  29. package/dist/index.js +1 -1
  30. package/package.json +45 -45
  31. package/dist/chunk-0pkrjycw.js +0 -2
  32. package/dist/chunk-4z8d4zkm.js +0 -2
@@ -1,8 +1,8 @@
1
- import{Oc as X}from"./chunk-6wnzdvc6.js";var M=X((N,T)=>{var{defineProperty:B,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z}=Object,$=Object.prototype.hasOwnProperty,H=(b,j)=>B(b,"name",{value:j,configurable:!0}),A=(b,j)=>{for(var q in j)B(b,q,{get:j[q],enumerable:!0})},D=(b,j,q,K)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let z of Z(j))if(!$.call(b,z)&&z!==q)B(b,z,{get:()=>j[z],enumerable:!(K=Y(j,z))||K.enumerable})}return b},E=(b)=>D(B({},"__esModule",{value:!0}),b),L={};A(L,{emitWarningIfUnsupportedVersion:()=>I,setCredentialFeature:()=>Q,setFeature:()=>R,state:()=>G});T.exports=E(L);var G={warningEmitted:!1},I=H((b)=>{if(b&&!G.warningEmitted&&parseInt(b.substring(1,b.indexOf(".")))<18)G.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
1
+ import{Kc as X}from"./chunk-bj7sb2gs.js";var M=X((N,T)=>{var{defineProperty:B,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z}=Object,$=Object.prototype.hasOwnProperty,H=(b,j)=>B(b,"name",{value:j,configurable:!0}),A=(b,j)=>{for(var q in j)B(b,q,{get:j[q],enumerable:!0})},D=(b,j,q,K)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let z of Z(j))if(!$.call(b,z)&&z!==q)B(b,z,{get:()=>j[z],enumerable:!(K=Y(j,z))||K.enumerable})}return b},E=(b)=>D(B({},"__esModule",{value:!0}),b),L={};A(L,{emitWarningIfUnsupportedVersion:()=>I,setCredentialFeature:()=>Q,setFeature:()=>R,state:()=>G});T.exports=E(L);var G={warningEmitted:!1},I=H((b)=>{if(b&&!G.warningEmitted&&parseInt(b.substring(1,b.indexOf(".")))<18)G.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
2
2
  no longer support Node.js 16.x on January 6, 2025.
3
3
 
4
4
  To continue receiving updates to AWS services, bug fixes, and security
5
5
  updates please upgrade to a supported Node.js LTS version.
6
6
 
7
7
  More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion");function Q(b,j,q){if(!b.$source)b.$source={};return b.$source[j]=q,b}H(Q,"setCredentialFeature");function R(b,j,q){if(!b.__aws_sdk_context)b.__aws_sdk_context={features:{}};else if(!b.__aws_sdk_context.features)b.__aws_sdk_context.features={};b.__aws_sdk_context.features[j]=q}H(R,"setFeature")});
8
- export{M as Kc};
8
+ export{M as Gc};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Ac as z,Bc as R,Ec as v,Fc as A,zc as I}from"./chunk-18byef1w.js";import"./chunk-fbbvmxn3.js";import{Kc as oe}from"./chunk-atc0z327.js";import{Lc as u}from"./chunk-2hfepv08.js";import{Mc as S,Rc as D}from"./chunk-6wnzdvc6.js";var T=S(u(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var F=S(oe(),1);var x=S(u(),1);var U=300000,h="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var q=async(e,s={})=>{let{SSOOIDCClient:o}=await import("./chunk-enfggzq6.js");return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:s.clientConfig?.logger??s.parentClientConfig?.logger}))};var W=async(e,s,o={})=>{let{CreateTokenCommand:i}=await import("./chunk-enfggzq6.js");return(await q(s,o)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var j=S(u(),1);var $=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new j.TokenProviderError(`Token is expired. ${h}`,!1)};var X=S(u(),1);var g=(e,s,o=!1)=>{if(typeof s==="undefined")throw new X.TokenProviderError(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${h}`,!1)};import{promises as Z}from"fs";var{writeFile:ee}=Z,J=(e,s)=>{let o=z(e),i=JSON.stringify(s,null,2);return ee(o,i)};var V=new Date(0),Y=(e={})=>async({callerClientConfig:s}={})=>{let o={...e,parentClientConfig:{...s,...e.parentClientConfig}};o.logger?.debug("@aws-sdk/token-providers - fromSso");let i=await A(o),r=I({profile:o.profile??s?.profile}),f=i[r];if(!f)throw new x.TokenProviderError(`Profile '${r}' could not be found in shared credentials file.`,!1);else if(!f.sso_session)throw new x.TokenProviderError(`Profile '${r}' is missing required property 'sso_session'.`);let l=f.sso_session,a=(await v(o))[l];if(!a)throw new x.TokenProviderError(`Sso session '${l}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new x.TokenProviderError(`Sso session '${l}' is missing required property '${n}'.`,!1);let{sso_start_url:w,sso_region:t}=a,c;try{c=await R(l)}catch(n){throw new x.TokenProviderError(`The SSO session token associated with profile=${r} was not found or is invalid. ${h}`,!1)}g("accessToken",c.accessToken),g("expiresAt",c.expiresAt);let{accessToken:E,expiresAt:O}=c,p={token:E,expiration:new Date(O)};if(p.expiration.getTime()-Date.now()>U)return p;if(Date.now()-V.getTime()<30000)return $(p),p;g("clientId",c.clientId,!0),g("clientSecret",c.clientSecret,!0),g("refreshToken",c.refreshToken,!0);try{V.setTime(Date.now());let n=await W(c,t,o);g("accessToken",n.accessToken),g("expiresIn",n.expiresIn);let _=new Date(Date.now()+n.expiresIn*1000);try{await J(l,{...c,accessToken:n.accessToken,expiresAt:_.toISOString(),refreshToken:n.refreshToken})}catch(m){}return{token:n.accessToken,expiration:_}}catch(n){return $(p),p}};var k=S(u(),1);var N=!1,L=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:r,ssoClient:f,clientConfig:l,parentClientConfig:y,profile:a,logger:w})=>{let t,c="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let d=await Y({profile:a})();t={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:N,logger:w})}else try{t=await R(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w})}if(new Date(t.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w});let{accessToken:E}=t,{SSOClient:O,GetRoleCredentialsCommand:p}=await import("./chunk-0pkrjycw.js"),n=f||new O(Object.assign({},l??{},{logger:l?.logger??y?.logger,region:l?.region??i})),_;try{_=await n.send(new p({accountId:o,roleName:r,accessToken:E}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:N,logger:w})}let{roleCredentials:{accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:G,credentialScope:K,accountId:b}={}}=_;if(!m||!C||!M||!G)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:N,logger:w});let P={accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:new Date(G),...K&&{credentialScope:K},...b&&{accountId:b}};if(s)F.setCredentialFeature(P,"CREDENTIALS_SSO","s");else F.setCredentialFeature(P,"CREDENTIALS_SSO_LEGACY","u");return P};var B=S(u(),1),Q=(e,s)=>{let{sso_start_url:o,sso_account_id:i,sso_region:r,sso_role_name:f}=e;if(!o||!i||!r||!f)throw new B.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
+ import{Ac as v,Bc as A,vc as I,wc as z,xc as R}from"./chunk-dz02fqrj.js";import"./chunk-wjhmhcgy.js";import{Gc as oe}from"./chunk-eyn01tkt.js";import{Hc as u}from"./chunk-h6ga49c2.js";import{Ic as S,Nc as D}from"./chunk-bj7sb2gs.js";var T=S(u(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var F=S(oe(),1);var x=S(u(),1);var U=300000,h="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var q=async(e,s={})=>{let{SSOOIDCClient:o}=await import("./chunk-gamj1826.js");return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:s.clientConfig?.logger??s.parentClientConfig?.logger}))};var W=async(e,s,o={})=>{let{CreateTokenCommand:i}=await import("./chunk-gamj1826.js");return(await q(s,o)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var j=S(u(),1);var $=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new j.TokenProviderError(`Token is expired. ${h}`,!1)};var X=S(u(),1);var g=(e,s,o=!1)=>{if(typeof s==="undefined")throw new X.TokenProviderError(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${h}`,!1)};import{promises as Z}from"fs";var{writeFile:ee}=Z,J=(e,s)=>{let o=z(e),i=JSON.stringify(s,null,2);return ee(o,i)};var V=new Date(0),Y=(e={})=>async({callerClientConfig:s}={})=>{let o={...e,parentClientConfig:{...s,...e.parentClientConfig}};o.logger?.debug("@aws-sdk/token-providers - fromSso");let i=await A(o),r=I({profile:o.profile??s?.profile}),f=i[r];if(!f)throw new x.TokenProviderError(`Profile '${r}' could not be found in shared credentials file.`,!1);else if(!f.sso_session)throw new x.TokenProviderError(`Profile '${r}' is missing required property 'sso_session'.`);let l=f.sso_session,a=(await v(o))[l];if(!a)throw new x.TokenProviderError(`Sso session '${l}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new x.TokenProviderError(`Sso session '${l}' is missing required property '${n}'.`,!1);let{sso_start_url:w,sso_region:t}=a,c;try{c=await R(l)}catch(n){throw new x.TokenProviderError(`The SSO session token associated with profile=${r} was not found or is invalid. ${h}`,!1)}g("accessToken",c.accessToken),g("expiresAt",c.expiresAt);let{accessToken:E,expiresAt:O}=c,p={token:E,expiration:new Date(O)};if(p.expiration.getTime()-Date.now()>U)return p;if(Date.now()-V.getTime()<30000)return $(p),p;g("clientId",c.clientId,!0),g("clientSecret",c.clientSecret,!0),g("refreshToken",c.refreshToken,!0);try{V.setTime(Date.now());let n=await W(c,t,o);g("accessToken",n.accessToken),g("expiresIn",n.expiresIn);let _=new Date(Date.now()+n.expiresIn*1000);try{await J(l,{...c,accessToken:n.accessToken,expiresAt:_.toISOString(),refreshToken:n.refreshToken})}catch(m){}return{token:n.accessToken,expiration:_}}catch(n){return $(p),p}};var k=S(u(),1);var N=!1,L=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:r,ssoClient:f,clientConfig:l,parentClientConfig:y,profile:a,logger:w})=>{let t,c="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let d=await Y({profile:a})();t={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:N,logger:w})}else try{t=await R(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w})}if(new Date(t.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w});let{accessToken:E}=t,{SSOClient:O,GetRoleCredentialsCommand:p}=await import("./chunk-v040jj16.js"),n=f||new O(Object.assign({},l??{},{logger:l?.logger??y?.logger,region:l?.region??i})),_;try{_=await n.send(new p({accountId:o,roleName:r,accessToken:E}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:N,logger:w})}let{roleCredentials:{accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:G,credentialScope:K,accountId:b}={}}=_;if(!m||!C||!M||!G)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:N,logger:w});let P={accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:new Date(G),...K&&{credentialScope:K},...b&&{accountId:b}};if(s)F.setCredentialFeature(P,"CREDENTIALS_SSO","s");else F.setCredentialFeature(P,"CREDENTIALS_SSO_LEGACY","u");return P};var B=S(u(),1),Q=(e,s)=>{let{sso_start_url:o,sso_account_id:i,sso_region:r,sso_role_name:f}=e;if(!o||!i||!r||!f)throw new B.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
3
3
  Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e};var Re=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:o,ssoAccountId:i,ssoRegion:r,ssoRoleName:f,ssoSession:l}=e,{ssoClient:y}=e,a=I({profile:e.profile??s?.profile});if(!o&&!i&&!r&&!f&&!l){let t=(await A(e))[a];if(!t)throw new T.CredentialsProviderError(`Profile ${a} was not found.`,{logger:e.logger});if(!H(t))throw new T.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`,{logger:e.logger});if(t?.sso_session){let m=(await v(e))[t.sso_session],C=` configurations in profile ${a} and sso-session ${t.sso_session}`;if(r&&r!==m.sso_region)throw new T.CredentialsProviderError("Conflicting SSO region"+C,{tryNextLink:!1,logger:e.logger});if(o&&o!==m.sso_start_url)throw new T.CredentialsProviderError("Conflicting SSO start_url"+C,{tryNextLink:!1,logger:e.logger});t.sso_region=m.sso_region,t.sso_start_url=m.sso_start_url}let{sso_start_url:c,sso_account_id:E,sso_region:O,sso_role_name:p,sso_session:n}=Q(t,e.logger);return L({ssoStartUrl:c,ssoSession:n,ssoAccountId:E,ssoRegion:O,ssoRoleName:p,ssoClient:y,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,profile:a})}else if(!o||!i||!r||!f)throw new T.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return L({ssoStartUrl:o,ssoSession:l,ssoAccountId:i,ssoRegion:r,ssoRoleName:f,ssoClient:y,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,profile:a})};export{Q as validateSsoProfile,H as isSsoProfile,Re as fromSSO};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Da as nr,Ea as jr,Fa as ar,Ga as Ir,Ha as vr,Ia as fr,Ja as Re,Ka as mr,La as wr,Ma as Rr,Na as Ae,Oa as Cr,Pa as Ee,Qa as Ar,Ra as Gr,Sa as Hr,Ta as Lr,Ua as Vr,Va as Or}from"./chunk-gt8zekyh.js";import{hc as xe,ic as hr,jc as W,kc as kr,lc as E,mc as w}from"./chunk-hrr9f8tw.js";import{oc as gr,rc as Sr,sc as Nr,uc as Tr}from"./chunk-jx6tpg9f.js";import"./chunk-fbbvmxn3.js";import"./chunk-atc0z327.js";import"./chunk-2hfepv08.js";import{Oc as d}from"./chunk-6wnzdvc6.js";var L=d((J)=>{Object.defineProperty(J,"__esModule",{value:!0});J.resolveHttpAuthSchemeConfig=J.defaultSSOOIDCHttpAuthSchemeProvider=J.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var ce=w(),z=xe(),oe=async(e,r,l)=>{return{operation:z.getSmithyContext(r).operation,region:await z.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};J.defaultSSOOIDCHttpAuthSchemeParametersProvider=oe;function ue(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function pe(e){return{schemeId:"smithy.api#noAuth"}}var te=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(pe(e));break}default:r.push(ue(e))}return r};J.defaultSSOOIDCHttpAuthSchemeProvider=te;var er=(e)=>{return{...ce.resolveAwsSdkSigV4Config(e)}};J.resolveHttpAuthSchemeConfig=er});var ee=d((p)=>{Object.defineProperty(p,"__esModule",{value:!0});p.ruleSet=void 0;var x="required",S="fn",N="argv",U="ref",Z=!0,$="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",V="PartitionResult",b="getAttr",h={[x]:!1,type:"String"},g={[x]:!0,default:!1,type:"Boolean"},n={[U]:"Endpoint"},c={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},o={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},j={[S]:b,[N]:[{[U]:V},"supportsFIPS"]},u={[U]:V},a={[S]:k,[N]:[!0,{[S]:b,[N]:[u,"supportsDualStack"]}]},f=[c],m=[o],O=[{[U]:"Region"}],ir={version:"1.0",parameters:{Region:h,UseDualStack:g,UseFIPS:g,Endpoint:h},rules:[{conditions:[{[S]:$,[N]:[n]}],rules:[{conditions:f,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:m,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:n,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:$,[N]:O}],rules:[{conditions:[{[S]:"aws.partition",[N]:O,assign:V}],rules:[{conditions:[c,o],rules:[{conditions:[{[S]:k,[N]:[Z,j]},a],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:f,rules:[{conditions:[{[S]:k,[N]:[j,Z]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:b,[N]:[u,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:m,rules:[{conditions:[a],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};p.ruleSet=ir});var ie=d((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.defaultEndpointResolver=void 0;var Dr=vr(),B=Ir(),qr=ee(),yr=new B.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Pr=(e,r={})=>{return yr.get(e,()=>B.resolveEndpoint(qr.ruleSet,{endpointParams:e,logger:r.logger}))};re.defaultEndpointResolver=Pr;B.customEndpointFunctions.aws=Dr.awsEndpointFunctions});var ye=d((De)=>{Object.defineProperty(De,"__esModule",{value:!0});De.getRuntimeConfig=void 0;var Er=w(),sr=W(),dr=E(),Fr=Rr(),Ie=Nr(),ve=Sr(),_r=L(),Ur=ie(),Mr=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ie.fromBase64,base64Encoder:e?.base64Encoder??Ie.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ur.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??_r.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Er.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sr.NoAuthSigner}],logger:e?.logger??new dr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Fr.parseUrl,utf8Decoder:e?.utf8Decoder??ve.fromUtf8,utf8Encoder:e?.utf8Encoder??ve.toUtf8}};De.getRuntimeConfig=Mr});var Fe=d((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.getRuntimeConfig=void 0;var br=kr(),Br=br.__importDefault(Ar()),Wr=w(),Pe=Gr(),C=Re(),Yr=Hr(),Se=Ee(),M=wr(),Ne=Tr(),Kr=Lr(),Xr=Cr(),zr=ye(),Jr=E(),Qr=Vr(),Zr=E(),$r=(e)=>{Zr.emitWarningIfUnsupportedVersion(process.version);let r=Qr.resolveDefaultsModeConfig(e),l=()=>r().then(Jr.loadConfigsForDefaultMode),v=zr.getRuntimeConfig(e);Wr.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Kr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??Pe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:Br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(Se.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Ne.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...Se.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Xr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Yr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ne.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(Pe.NODE_APP_ID_CONFIG_OPTIONS,I)}};se.getRuntimeConfig=$r});var Yl=d((Zl,ae)=>{var{defineProperty:G,getOwnPropertyDescriptor:xr,getOwnPropertyNames:cr}=Object,or=Object.prototype.hasOwnProperty,D=(e,r)=>G(e,"name",{value:r,configurable:!0}),ur=(e,r)=>{for(var l in r)G(e,l,{get:r[l],enumerable:!0})},pr=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of cr(r))if(!or.call(e,I)&&I!==l)G(e,I,{get:()=>r[I],enumerable:!(v=xr(r,I))||v.enumerable})}return e},tr=(e)=>pr(G({},"__esModule",{value:!0}),e),Ge={};ur(Ge,{$Command:()=>Ve.Command,AccessDeniedException:()=>be,AuthorizationPendingException:()=>Be,CreateTokenCommand:()=>ne,CreateTokenRequestFilterSensitiveLog:()=>We,CreateTokenResponseFilterSensitiveLog:()=>Ye,ExpiredTokenException:()=>Ke,InternalServerException:()=>Xe,InvalidClientException:()=>ze,InvalidGrantException:()=>Je,InvalidRequestException:()=>Qe,InvalidScopeException:()=>Ze,SSOOIDC:()=>je,SSOOIDCClient:()=>Le,SSOOIDCServiceException:()=>y,SlowDownException:()=>$e,UnauthorizedClientException:()=>he,UnsupportedGrantTypeException:()=>ge,__Client:()=>He.Client});ae.exports=tr(Ge);var _e=nr(),el=jr(),rl=ar(),Ue=fr(),ll=Re(),Y=W(),il=mr(),Il=Ae(),Me=Ee(),He=E(),Te=L(),vl=D((e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},"resolveClientEndpointParameters"),Dl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},ql=Fe(),ke=Or(),we=gr(),Ce=E(),yl=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((H)=>H.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),Pl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),A=D((e)=>e,"asPartial"),Sl=D((e,r)=>{let l={...A(ke.getAwsRegionExtensionConfiguration(e)),...A(Ce.getDefaultExtensionConfiguration(e)),...A(we.getHttpHandlerExtensionConfiguration(e)),...A(yl(e))};return r.forEach((v)=>v.configure(l)),{...e,...ke.resolveAwsRegionExtensionConfiguration(l),...Ce.resolveDefaultRuntimeConfig(l),...we.resolveHttpHandlerRuntimeConfig(l),...Pl(l)}},"resolveRuntimeExtensions"),Le=class extends He.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=ql.getRuntimeConfig(e||{}),l=vl(r),v=Ue.resolveUserAgentConfig(l),I=Me.resolveRetryConfig(v),q=ll.resolveRegionConfig(I),H=_e.resolveHostHeaderConfig(q),fe=Il.resolveEndpointConfig(H),me=Te.resolveHttpAuthSchemeConfig(fe),X=Sl(me,e?.extensions||[]);super(X);this.config=X,this.middlewareStack.use(Ue.getUserAgentPlugin(this.config)),this.middlewareStack.use(Me.getRetryPlugin(this.config)),this.middlewareStack.use(il.getContentLengthPlugin(this.config)),this.middlewareStack.use(_e.getHostHeaderPlugin(this.config)),this.middlewareStack.use(el.getLoggerPlugin(this.config)),this.middlewareStack.use(rl.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Te.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(Oe)=>new Y.DefaultIdentityProviderConfig({"aws.auth#sigv4":Oe.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Nl=E(),Rl=Ae(),El=hr(),Ve=E(),T=E(),sl=E(),y=class e extends sl.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},be=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Be=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},We=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Ye=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),Ke=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},he=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ge=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},K=w(),dl=W(),i=E(),Fl=D(async(e,r)=>{let l=dl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),_l=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ul(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await K.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),Ul=D(async(e,r)=>{let l={...e,body:await K.parseJsonErrorBody(e.body,r)},v=K.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Tl(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await kl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await wl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Cl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Al(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Gl(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Hl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Ll(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Vl(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await bl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Bl(l,r);default:let I=l.body;return Ml({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ml=i.withBaseException(y),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new be({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Be({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new he({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),Bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ge({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),ne=class extends Ve.Command.classBuilder().ep(Dl).m(function(e,r,l,v){return[El.getSerdePlugin(l,this.serialize,this.deserialize),Rl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(We,Ye).ser(Fl).de(_l).build(){static{D(this,"CreateTokenCommand")}},Wl={CreateTokenCommand:ne},je=class extends Le{static{D(this,"SSOOIDC")}};Nl.createAggregatedClient(Wl,je)});export default Yl();
2
+ import{Da as nr,Ea as jr,Fa as ar,Ga as Ir,Ha as vr,Ia as fr,Ja as Re,Ka as mr,La as wr,Ma as Rr,Na as Ae,Oa as Cr,Pa as Ee,Qa as Ar,Ra as Gr,Sa as Hr,Ta as Lr,Ua as Vr,Va as Or}from"./chunk-0kx5e4np.js";import{dc as xe,ec as hr,fc as W,gc as kr,hc as E,ic as w}from"./chunk-zyvsgnfm.js";import{kc as gr,nc as Sr,oc as Nr,qc as Tr}from"./chunk-p2hmvsjh.js";import"./chunk-wjhmhcgy.js";import"./chunk-eyn01tkt.js";import"./chunk-h6ga49c2.js";import{Kc as d}from"./chunk-bj7sb2gs.js";var L=d((J)=>{Object.defineProperty(J,"__esModule",{value:!0});J.resolveHttpAuthSchemeConfig=J.defaultSSOOIDCHttpAuthSchemeProvider=J.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var ce=w(),z=xe(),oe=async(e,r,l)=>{return{operation:z.getSmithyContext(r).operation,region:await z.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};J.defaultSSOOIDCHttpAuthSchemeParametersProvider=oe;function ue(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function pe(e){return{schemeId:"smithy.api#noAuth"}}var te=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(pe(e));break}default:r.push(ue(e))}return r};J.defaultSSOOIDCHttpAuthSchemeProvider=te;var er=(e)=>{return{...ce.resolveAwsSdkSigV4Config(e)}};J.resolveHttpAuthSchemeConfig=er});var ee=d((p)=>{Object.defineProperty(p,"__esModule",{value:!0});p.ruleSet=void 0;var x="required",S="fn",N="argv",U="ref",Z=!0,$="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",V="PartitionResult",b="getAttr",h={[x]:!1,type:"String"},g={[x]:!0,default:!1,type:"Boolean"},n={[U]:"Endpoint"},c={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},o={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},j={[S]:b,[N]:[{[U]:V},"supportsFIPS"]},u={[U]:V},a={[S]:k,[N]:[!0,{[S]:b,[N]:[u,"supportsDualStack"]}]},f=[c],m=[o],O=[{[U]:"Region"}],ir={version:"1.0",parameters:{Region:h,UseDualStack:g,UseFIPS:g,Endpoint:h},rules:[{conditions:[{[S]:$,[N]:[n]}],rules:[{conditions:f,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:m,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:n,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:$,[N]:O}],rules:[{conditions:[{[S]:"aws.partition",[N]:O,assign:V}],rules:[{conditions:[c,o],rules:[{conditions:[{[S]:k,[N]:[Z,j]},a],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:f,rules:[{conditions:[{[S]:k,[N]:[j,Z]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:b,[N]:[u,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:m,rules:[{conditions:[a],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};p.ruleSet=ir});var ie=d((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.defaultEndpointResolver=void 0;var Dr=vr(),B=Ir(),qr=ee(),yr=new B.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Pr=(e,r={})=>{return yr.get(e,()=>B.resolveEndpoint(qr.ruleSet,{endpointParams:e,logger:r.logger}))};re.defaultEndpointResolver=Pr;B.customEndpointFunctions.aws=Dr.awsEndpointFunctions});var ye=d((De)=>{Object.defineProperty(De,"__esModule",{value:!0});De.getRuntimeConfig=void 0;var Er=w(),sr=W(),dr=E(),Fr=Rr(),Ie=Nr(),ve=Sr(),_r=L(),Ur=ie(),Mr=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ie.fromBase64,base64Encoder:e?.base64Encoder??Ie.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ur.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??_r.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Er.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sr.NoAuthSigner}],logger:e?.logger??new dr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Fr.parseUrl,utf8Decoder:e?.utf8Decoder??ve.fromUtf8,utf8Encoder:e?.utf8Encoder??ve.toUtf8}};De.getRuntimeConfig=Mr});var Fe=d((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.getRuntimeConfig=void 0;var br=kr(),Br=br.__importDefault(Ar()),Wr=w(),Pe=Gr(),C=Re(),Yr=Hr(),Se=Ee(),M=wr(),Ne=Tr(),Kr=Lr(),Xr=Cr(),zr=ye(),Jr=E(),Qr=Vr(),Zr=E(),$r=(e)=>{Zr.emitWarningIfUnsupportedVersion(process.version);let r=Qr.resolveDefaultsModeConfig(e),l=()=>r().then(Jr.loadConfigsForDefaultMode),v=zr.getRuntimeConfig(e);Wr.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Kr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??Pe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:Br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(Se.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Ne.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...Se.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Xr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Yr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ne.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(Pe.NODE_APP_ID_CONFIG_OPTIONS,I)}};se.getRuntimeConfig=$r});var Yl=d((Zl,ae)=>{var{defineProperty:G,getOwnPropertyDescriptor:xr,getOwnPropertyNames:cr}=Object,or=Object.prototype.hasOwnProperty,D=(e,r)=>G(e,"name",{value:r,configurable:!0}),ur=(e,r)=>{for(var l in r)G(e,l,{get:r[l],enumerable:!0})},pr=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of cr(r))if(!or.call(e,I)&&I!==l)G(e,I,{get:()=>r[I],enumerable:!(v=xr(r,I))||v.enumerable})}return e},tr=(e)=>pr(G({},"__esModule",{value:!0}),e),Ge={};ur(Ge,{$Command:()=>Ve.Command,AccessDeniedException:()=>be,AuthorizationPendingException:()=>Be,CreateTokenCommand:()=>ne,CreateTokenRequestFilterSensitiveLog:()=>We,CreateTokenResponseFilterSensitiveLog:()=>Ye,ExpiredTokenException:()=>Ke,InternalServerException:()=>Xe,InvalidClientException:()=>ze,InvalidGrantException:()=>Je,InvalidRequestException:()=>Qe,InvalidScopeException:()=>Ze,SSOOIDC:()=>je,SSOOIDCClient:()=>Le,SSOOIDCServiceException:()=>y,SlowDownException:()=>$e,UnauthorizedClientException:()=>he,UnsupportedGrantTypeException:()=>ge,__Client:()=>He.Client});ae.exports=tr(Ge);var _e=nr(),el=jr(),rl=ar(),Ue=fr(),ll=Re(),Y=W(),il=mr(),Il=Ae(),Me=Ee(),He=E(),Te=L(),vl=D((e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},"resolveClientEndpointParameters"),Dl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},ql=Fe(),ke=Or(),we=gr(),Ce=E(),yl=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((H)=>H.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),Pl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),A=D((e)=>e,"asPartial"),Sl=D((e,r)=>{let l={...A(ke.getAwsRegionExtensionConfiguration(e)),...A(Ce.getDefaultExtensionConfiguration(e)),...A(we.getHttpHandlerExtensionConfiguration(e)),...A(yl(e))};return r.forEach((v)=>v.configure(l)),{...e,...ke.resolveAwsRegionExtensionConfiguration(l),...Ce.resolveDefaultRuntimeConfig(l),...we.resolveHttpHandlerRuntimeConfig(l),...Pl(l)}},"resolveRuntimeExtensions"),Le=class extends He.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=ql.getRuntimeConfig(e||{}),l=vl(r),v=Ue.resolveUserAgentConfig(l),I=Me.resolveRetryConfig(v),q=ll.resolveRegionConfig(I),H=_e.resolveHostHeaderConfig(q),fe=Il.resolveEndpointConfig(H),me=Te.resolveHttpAuthSchemeConfig(fe),X=Sl(me,e?.extensions||[]);super(X);this.config=X,this.middlewareStack.use(Ue.getUserAgentPlugin(this.config)),this.middlewareStack.use(Me.getRetryPlugin(this.config)),this.middlewareStack.use(il.getContentLengthPlugin(this.config)),this.middlewareStack.use(_e.getHostHeaderPlugin(this.config)),this.middlewareStack.use(el.getLoggerPlugin(this.config)),this.middlewareStack.use(rl.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Te.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(Oe)=>new Y.DefaultIdentityProviderConfig({"aws.auth#sigv4":Oe.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Nl=E(),Rl=Ae(),El=hr(),Ve=E(),T=E(),sl=E(),y=class e extends sl.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},be=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Be=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},We=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Ye=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),Ke=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},he=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ge=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},K=w(),dl=W(),i=E(),Fl=D(async(e,r)=>{let l=dl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),_l=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ul(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await K.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),Ul=D(async(e,r)=>{let l={...e,body:await K.parseJsonErrorBody(e.body,r)},v=K.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Tl(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await kl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await wl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Cl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Al(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Gl(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Hl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Ll(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Vl(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await bl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Bl(l,r);default:let I=l.body;return Ml({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ml=i.withBaseException(y),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new be({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Be({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new he({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),Bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ge({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),ne=class extends Ve.Command.classBuilder().ep(Dl).m(function(e,r,l,v){return[El.getSerdePlugin(l,this.serialize,this.deserialize),Rl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(We,Ye).ser(Fl).de(_l).build(){static{D(this,"CreateTokenCommand")}},Wl={CreateTokenCommand:ne},je=class extends Le{static{D(this,"SSOOIDC")}};Nl.createAggregatedClient(Wl,je)});export default Yl();
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Fc as E,zc as A}from"./chunk-18byef1w.js";import"./chunk-fbbvmxn3.js";import{Kc as K}from"./chunk-atc0z327.js";import{Lc as T}from"./chunk-2hfepv08.js";import{Mc as w}from"./chunk-6wnzdvc6.js";var o=w(T(),1);import{exec as y}from"child_process";import{promisify as I}from"util";var S=w(K(),1),x=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let i=new Date;if(new Date(n.Expiration)<i)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let t={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return S.setCredentialFeature(t,"CREDENTIALS_PROCESS","w"),t};var _=async(c,n,e)=>{let s=n[c];if(n[c]){let t=s.credential_process;if(t!==void 0){let i=I(y);try{let{stdout:r}=await i(t),u;try{u=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return x(c,u,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:e})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var F=(c={})=>async({callerClientConfig:n}={})=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let e=await E(c);return _(A({profile:c.profile??n?.profile}),e,c.logger)};export{F as fromProcess};
2
+ import{Bc as E,vc as A}from"./chunk-dz02fqrj.js";import"./chunk-wjhmhcgy.js";import{Gc as K}from"./chunk-eyn01tkt.js";import{Hc as T}from"./chunk-h6ga49c2.js";import{Ic as w}from"./chunk-bj7sb2gs.js";var o=w(T(),1);import{exec as y}from"child_process";import{promisify as I}from"util";var S=w(K(),1),x=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let i=new Date;if(new Date(n.Expiration)<i)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let t={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return S.setCredentialFeature(t,"CREDENTIALS_PROCESS","w"),t};var _=async(c,n,e)=>{let s=n[c];if(n[c]){let t=s.credential_process;if(t!==void 0){let i=I(y);try{let{stdout:r}=await i(t),u;try{u=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return x(c,u,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:e})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var F=(c={})=>async({callerClientConfig:n}={})=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let e=await E(c);return _(A({profile:c.profile??n?.profile}),e,c.logger)};export{F as fromProcess};
@@ -1,2 +1,2 @@
1
- import{Oc as $}from"./chunk-6wnzdvc6.js";var S=$((N,Z)=>{var{defineProperty:I,getOwnPropertyDescriptor:z,getOwnPropertyNames:A}=Object,D=Object.prototype.hasOwnProperty,H=(j,b)=>I(j,"name",{value:b,configurable:!0}),M=(j,b)=>{for(var F in b)I(j,F,{get:b[F],enumerable:!0})},J=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of A(b))if(!D.call(j,G)&&G!==F)I(j,G,{get:()=>b[G],enumerable:!(B=z(b,G))||B.enumerable})}return j},T=(j)=>J(I({},"__esModule",{value:!0}),j),Y={};M(Y,{CredentialsProviderError:()=>V,ProviderError:()=>K,TokenProviderError:()=>w,chain:()=>O,fromStatic:()=>q,memoize:()=>L});Z.exports=T(Y);var K=class j extends Error{constructor(b,F=!0){let B,G=!0;if(typeof F==="boolean")B=void 0,G=F;else if(F!=null&&typeof F==="object")B=F.logger,G=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=G,Object.setPrototypeOf(this,j.prototype),B?.debug?.(`@smithy/property-provider ${G?"->":"(!)"} ${b}`)}static{H(this,"ProviderError")}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}},V=class j extends K{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"CredentialsProviderError")}},w=class j extends K{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"TokenProviderError")}},O=H((...j)=>async()=>{if(j.length===0)throw new K("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B?.tryNextLink)continue;throw B}throw b},"chain"),q=H((j)=>()=>Promise.resolve(j),"fromStatic"),L=H((j,b,F)=>{let B,G,Q,U=!1,W=H(async()=>{if(!G)G=j();try{B=await G,Q=!0,U=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(X)=>{if(!Q||X?.forceRefresh)B=await W();return B};return async(X)=>{if(!Q||X?.forceRefresh)B=await W();if(U)return B;if(F&&!F(B))return U=!0,B;if(b(B))return await W(),B;return B}},"memoize")});
2
- export{S as Lc};
1
+ import{Kc as $}from"./chunk-bj7sb2gs.js";var S=$((N,Z)=>{var{defineProperty:I,getOwnPropertyDescriptor:z,getOwnPropertyNames:A}=Object,D=Object.prototype.hasOwnProperty,H=(j,b)=>I(j,"name",{value:b,configurable:!0}),M=(j,b)=>{for(var F in b)I(j,F,{get:b[F],enumerable:!0})},J=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of A(b))if(!D.call(j,G)&&G!==F)I(j,G,{get:()=>b[G],enumerable:!(B=z(b,G))||B.enumerable})}return j},T=(j)=>J(I({},"__esModule",{value:!0}),j),Y={};M(Y,{CredentialsProviderError:()=>V,ProviderError:()=>K,TokenProviderError:()=>w,chain:()=>O,fromStatic:()=>q,memoize:()=>L});Z.exports=T(Y);var K=class j extends Error{constructor(b,F=!0){let B,G=!0;if(typeof F==="boolean")B=void 0,G=F;else if(F!=null&&typeof F==="object")B=F.logger,G=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=G,Object.setPrototypeOf(this,j.prototype),B?.debug?.(`@smithy/property-provider ${G?"->":"(!)"} ${b}`)}static{H(this,"ProviderError")}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}},V=class j extends K{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"CredentialsProviderError")}},w=class j extends K{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"TokenProviderError")}},O=H((...j)=>async()=>{if(j.length===0)throw new K("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B?.tryNextLink)continue;throw B}throw b},"chain"),q=H((j)=>()=>Promise.resolve(j),"fromStatic"),L=H((j,b,F)=>{let B,G,Q,U=!1,W=H(async()=>{if(!G)G=j();try{B=await G,Q=!0,U=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(X)=>{if(!Q||X?.forceRefresh)B=await W();return B};return async(X)=>{if(!Q||X?.forceRefresh)B=await W();if(U)return B;if(F&&!F(B))return U=!0,B;if(b(B))return await W(),B;return B}},"memoize")});
2
+ export{S as Hc};
@@ -1,2 +1,2 @@
1
- import{Dc as w,zc as u}from"./chunk-18byef1w.js";import{Lc as m}from"./chunk-2hfepv08.js";import{Mc as s}from"./chunk-6wnzdvc6.js";var a=s(m(),1);var g=s(m(),1);function c(o){try{let r=new Set(Array.from(o.match(/([A-Z_]){3,}/g)??[]));return r.delete("CONFIG"),r.delete("CONFIG_PREFIX_SEPARATOR"),r.delete("ENV"),[...r].join(", ")}catch(r){return o}}var h=(o,r)=>async()=>{try{let t=o(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new g.CredentialsProviderError(t.message||`Not found in ENV: ${c(o.toString())}`,{logger:r})}};var y=s(m(),1);var C=(o,{preferredFile:r="config",...t}={})=>async()=>{let e=u(t),{configFile:n,credentialsFile:i}=await w(t),f=i[e]||{},p=n[e]||{},N=r==="config"?{...f,...p}:{...p,...f};try{let d=o(N,r==="config"?n:i);if(d===void 0)throw new Error;return d}catch(l){throw new y.CredentialsProviderError(l.message||`Not found in config files w/ profile [${e}]: ${c(o.toString())}`,{logger:t.logger})}};var F=s(m(),1),x=(o)=>typeof o==="function",S=(o)=>x(o)?async()=>await o():F.fromStatic(o);var T=({environmentVariableSelector:o,configFileSelector:r,default:t},e={})=>a.memoize(a.chain(h(o),C(r,e),S(t)));function E(o){let r={};if(o=o.replace(/^\?/,""),o)for(let t of o.split("&")){let[e,n=null]=t.split("=");if(e=decodeURIComponent(e),n)n=decodeURIComponent(n);if(!(e in r))r[e]=n;else if(Array.isArray(r[e]))r[e].push(n);else r[e]=[r[e],n]}return r}var v=(o)=>{if(typeof o==="string")return v(new URL(o));let{hostname:r,pathname:t,port:e,protocol:n,search:i}=o,f;if(i)f=E(i);return{hostname:r,port:e?parseInt(e):void 0,protocol:n,path:t,query:f}};
2
- export{T as Fb,v as Gb};
1
+ import{vc as u,zc as w}from"./chunk-dz02fqrj.js";import{Hc as m}from"./chunk-h6ga49c2.js";import{Ic as s}from"./chunk-bj7sb2gs.js";var a=s(m(),1);var g=s(m(),1);function c(o){try{let r=new Set(Array.from(o.match(/([A-Z_]){3,}/g)??[]));return r.delete("CONFIG"),r.delete("CONFIG_PREFIX_SEPARATOR"),r.delete("ENV"),[...r].join(", ")}catch(r){return o}}var h=(o,r)=>async()=>{try{let t=o(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new g.CredentialsProviderError(t.message||`Not found in ENV: ${c(o.toString())}`,{logger:r})}};var y=s(m(),1);var C=(o,{preferredFile:r="config",...t}={})=>async()=>{let e=u(t),{configFile:n,credentialsFile:i}=await w(t),f=i[e]||{},p=n[e]||{},N=r==="config"?{...f,...p}:{...p,...f};try{let d=o(N,r==="config"?n:i);if(d===void 0)throw new Error;return d}catch(l){throw new y.CredentialsProviderError(l.message||`Not found in config files w/ profile [${e}]: ${c(o.toString())}`,{logger:t.logger})}};var F=s(m(),1),x=(o)=>typeof o==="function",S=(o)=>x(o)?async()=>await o():F.fromStatic(o);var T=({environmentVariableSelector:o,configFileSelector:r,default:t},e={})=>a.memoize(a.chain(h(o),C(r,e),S(t)));function E(o){let r={};if(o=o.replace(/^\?/,""),o)for(let t of o.split("&")){let[e,n=null]=t.split("=");if(e=decodeURIComponent(e),n)n=decodeURIComponent(n);if(!(e in r))r[e]=n;else if(Array.isArray(r[e]))r[e].push(n);else r[e]=[r[e],n]}return r}var v=(o)=>{if(typeof o==="string")return v(new URL(o));let{hostname:r,pathname:t,port:e,protocol:n,search:i}=o,f;if(i)f=E(i);return{hostname:r,port:e?parseInt(e):void 0,protocol:n,path:t,query:f}};
2
+ export{T as Bb,v as Cb};
@@ -1,4 +1,4 @@
1
- import{Gc as l6}from"./chunk-fbbvmxn3.js";import{Oc as U,Rc as N}from"./chunk-6wnzdvc6.js";var u=U((Ew,M0)=>{var{defineProperty:l,getOwnPropertyDescriptor:u6,getOwnPropertyNames:d6}=Object,i6=Object.prototype.hasOwnProperty,y=($,w)=>l($,"name",{value:w,configurable:!0}),p6=($,w)=>{for(var z in w)l($,z,{get:w[z],enumerable:!0})},_6=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of d6(w))if(!i6.call($,Z)&&Z!==z)l($,Z,{get:()=>w[Z],enumerable:!(L=u6(w,Z))||L.enumerable})}return $},a6=($)=>_6(l({},"__esModule",{value:!0}),$),A0={};p6(A0,{Field:()=>s6,Fields:()=>r6,HttpRequest:()=>t6,HttpResponse:()=>o6,IHttpRequest:()=>R0.HttpRequest,getHttpHandlerExtensionConfiguration:()=>n6,isValidHostname:()=>I0,resolveHttpHandlerRuntimeConfig:()=>m6});M0.exports=a6(A0);var n6=y(($)=>{let w=$.httpHandler;return{setHttpHandler(z){w=z},httpHandler(){return w},updateHttpClientConfig(z,L){w.updateHttpClientConfig(z,L)},httpHandlerConfigs(){return w.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),m6=y(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),R0=l6(),s6=class{static{y(this,"Field")}constructor({name:$,kind:w=R0.FieldPosition.HEADER,values:z=[]}){this.name=$,this.kind=w,this.values=z}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((w)=>w!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}},r6=class{constructor({fields:$=[],encoding:w="utf-8"}){this.entries={},$.forEach(this.setField.bind(this)),this.encoding=w}static{y(this,"Fields")}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((w)=>w.kind===$)}},t6=class ${static{y(this,"HttpRequest")}constructor(w){this.method=w.method||"GET",this.hostname=w.hostname||"localhost",this.port=w.port,this.query=w.query||{},this.headers=w.headers||{},this.body=w.body,this.protocol=w.protocol?w.protocol.slice(-1)!==":"?`${w.protocol}:`:w.protocol:"https:",this.path=w.path?w.path.charAt(0)!=="/"?`/${w.path}`:w.path:"/",this.username=w.username,this.password=w.password,this.fragment=w.fragment}static clone(w){let z=new $({...w,headers:{...w.headers}});if(z.query)z.query=N0(z.query);return z}static isInstance(w){if(!w)return!1;let z=w;return"method"in z&&"protocol"in z&&"hostname"in z&&"path"in z&&typeof z.query==="object"&&typeof z.headers==="object"}clone(){return $.clone(this)}};function N0($){return Object.keys($).reduce((w,z)=>{let L=$[z];return{...w,[z]:Array.isArray(L)?[...L]:L}},{})}y(N0,"cloneQuery");var o6=class{static{y(this,"HttpResponse")}constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let w=$;return typeof w.statusCode==="number"&&typeof w.headers==="object"}};function I0($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}y(I0,"isValidHostname")});var x0=U((gw,S0)=>{var{defineProperty:d,getOwnPropertyDescriptor:e6,getOwnPropertyNames:$4}=Object,w4=Object.prototype.hasOwnProperty,w0=($,w)=>d($,"name",{value:w,configurable:!0}),z4=($,w)=>{for(var z in w)d($,z,{get:w[z],enumerable:!0})},Z4=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of $4(w))if(!w4.call($,Z)&&Z!==z)d($,Z,{get:()=>w[Z],enumerable:!(L=e6(w,Z))||L.enumerable})}return $},L4=($)=>Z4(d({},"__esModule",{value:!0}),$),O0={};z4(O0,{escapeUri:()=>b0,escapeUriPath:()=>K4});S0.exports=L4(O0);var b0=w0(($)=>encodeURIComponent($).replace(/[!'()*]/g,Y4),"escapeUri"),Y4=w0(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),K4=w0(($)=>$.split("/").map(b0).join("/"),"escapeUriPath")});var Z0=U((lw,k0)=>{var{defineProperty:i,getOwnPropertyDescriptor:Q4,getOwnPropertyNames:X4}=Object,G4=Object.prototype.hasOwnProperty,B4=($,w)=>i($,"name",{value:w,configurable:!0}),F4=($,w)=>{for(var z in w)i($,z,{get:w[z],enumerable:!0})},U4=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of X4(w))if(!G4.call($,Z)&&Z!==z)i($,Z,{get:()=>w[Z],enumerable:!(L=Q4(w,Z))||L.enumerable})}return $},V4=($)=>U4(i({},"__esModule",{value:!0}),$),T0={};F4(T0,{buildQueryString:()=>y0});k0.exports=V4(T0);var z0=x0();function y0($){let w=[];for(let z of Object.keys($).sort()){let L=$[z];if(z=z0.escapeUri(z),Array.isArray(L))for(let Z=0,Q=L.length;Z<Q;Z++)w.push(`${z}=${z0.escapeUri(L[Z])}`);else{let Z=z;if(L||typeof L==="string")Z+=`=${z0.escapeUri(L)}`;w.push(Z)}}return w.join("&")}B4(y0,"buildQueryString")});var m0=U((uw,n0)=>{var{create:h4,defineProperty:q,getOwnPropertyDescriptor:W4,getOwnPropertyNames:J4,getPrototypeOf:j4}=Object,D4=Object.prototype.hasOwnProperty,V=($,w)=>q($,"name",{value:w,configurable:!0}),v4=($,w)=>{for(var z in w)q($,z,{get:w[z],enumerable:!0})},q0=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of J4(w))if(!D4.call($,Z)&&Z!==z)q($,Z,{get:()=>w[Z],enumerable:!(L=W4(w,Z))||L.enumerable})}return $},C4=($,w,z)=>(z=$!=null?h4(j4($)):{},q0(w||!$||!$.__esModule?q(z,"default",{value:$,enumerable:!0}):z,$)),H4=($)=>q0(q({},"__esModule",{value:!0}),$),g0={};v4(g0,{DEFAULT_REQUEST_TIMEOUT:()=>_0,NodeHttp2Handler:()=>T4,NodeHttpHandler:()=>O4,streamCollector:()=>k4});n0.exports=H4(g0);var l0=u(),u0=Z0(),L0=N("http"),Y0=N("https"),A4=["ECONNRESET","EPIPE","ETIMEDOUT"],d0=V(($)=>{let w={};for(let z of Object.keys($)){let L=$[z];w[z]=Array.isArray(L)?L.join(","):L}return w},"getTransformedHeaders"),H={setTimeout:($,w)=>setTimeout($,w),clearTimeout:($)=>clearTimeout($)},f0=1000,R4=V(($,w,z=0)=>{if(!z)return-1;let L=V((Z)=>{let Q=H.setTimeout(()=>{$.destroy(),w(Object.assign(new Error(`Socket timed out without establishing a connection within ${z} ms`),{name:"TimeoutError"}))},z-Z),Y=V((K)=>{if(K?.connecting)K.on("connect",()=>{H.clearTimeout(Q)});else H.clearTimeout(Q)},"doWithSocket");if($.socket)Y($.socket);else $.on("socket",Y)},"registerTimeout");if(z<2000)return L(0),0;return H.setTimeout(L.bind(null,f0),f0)},"setConnectionTimeout"),N4=3000,I4=V(($,{keepAlive:w,keepAliveMsecs:z},L=N4)=>{if(w!==!0)return-1;let Z=V(()=>{if($.socket)$.socket.setKeepAlive(w,z||0);else $.on("socket",(Q)=>{Q.setKeepAlive(w,z||0)})},"registerListener");if(L===0)return Z(),0;return H.setTimeout(Z,L)},"setSocketKeepAlive"),E0=3000,M4=V(($,w,z=_0)=>{let L=V((Z)=>{let Q=z-Z,Y=V(()=>{$.destroy(),w(Object.assign(new Error(`Connection timed out after ${z} ms`),{name:"TimeoutError"}))},"onTimeout");if($.socket)$.socket.setTimeout(Q,Y),$.on("close",()=>$.socket?.removeListener("timeout",Y));else $.setTimeout(Q,Y)},"registerTimeout");if(0<z&&z<6000)return L(0),0;return H.setTimeout(L.bind(null,z===0?0:E0),E0)},"setSocketTimeout"),i0=N("stream"),P0=6000;async function K0($,w,z=P0){let L=w.headers??{},Z=L.Expect||L.expect,Q=-1,Y=!0;if(Z==="100-continue")Y=await Promise.race([new Promise((K)=>{Q=Number(H.setTimeout(()=>K(!0),Math.max(P0,z)))}),new Promise((K)=>{$.on("continue",()=>{H.clearTimeout(Q),K(!0)}),$.on("response",()=>{H.clearTimeout(Q),K(!1)}),$.on("error",()=>{H.clearTimeout(Q),K(!1)})})]);if(Y)p0($,w.body)}V(K0,"writeRequestBody");function p0($,w){if(w instanceof i0.Readable){w.pipe($);return}if(w){if(Buffer.isBuffer(w)||typeof w==="string"){$.end(w);return}let z=w;if(typeof z==="object"&&z.buffer&&typeof z.byteOffset==="number"&&typeof z.byteLength==="number"){$.end(Buffer.from(z.buffer,z.byteOffset,z.byteLength));return}$.end(Buffer.from(w));return}$.end()}V(p0,"writeBody");var _0=0,O4=class ${constructor(w){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((z,L)=>{if(typeof w==="function")w().then((Z)=>{z(this.resolveDefaultConfig(Z))}).catch(L);else z(this.resolveDefaultConfig(w))})}static{V(this,"NodeHttpHandler")}static create(w){if(typeof w?.handle==="function")return w;return new $(w)}static checkSocketUsage(w,z,L=console){let{sockets:Z,requests:Q,maxSockets:Y}=w;if(typeof Y!=="number"||Y===1/0)return z;let K=15000;if(Date.now()-K<z)return z;if(Z&&Q)for(let X in Z){let G=Z[X]?.length??0,F=Q[X]?.length??0;if(G>=Y&&F>=2*Y)return L?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${G} and ${F} additional requests are enqueued.
1
+ import{Cc as l6}from"./chunk-wjhmhcgy.js";import{Kc as U,Nc as N}from"./chunk-bj7sb2gs.js";var u=U((Ew,M0)=>{var{defineProperty:l,getOwnPropertyDescriptor:u6,getOwnPropertyNames:d6}=Object,i6=Object.prototype.hasOwnProperty,y=($,w)=>l($,"name",{value:w,configurable:!0}),p6=($,w)=>{for(var z in w)l($,z,{get:w[z],enumerable:!0})},_6=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of d6(w))if(!i6.call($,Z)&&Z!==z)l($,Z,{get:()=>w[Z],enumerable:!(L=u6(w,Z))||L.enumerable})}return $},a6=($)=>_6(l({},"__esModule",{value:!0}),$),A0={};p6(A0,{Field:()=>s6,Fields:()=>r6,HttpRequest:()=>t6,HttpResponse:()=>o6,IHttpRequest:()=>R0.HttpRequest,getHttpHandlerExtensionConfiguration:()=>n6,isValidHostname:()=>I0,resolveHttpHandlerRuntimeConfig:()=>m6});M0.exports=a6(A0);var n6=y(($)=>{let w=$.httpHandler;return{setHttpHandler(z){w=z},httpHandler(){return w},updateHttpClientConfig(z,L){w.updateHttpClientConfig(z,L)},httpHandlerConfigs(){return w.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),m6=y(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),R0=l6(),s6=class{static{y(this,"Field")}constructor({name:$,kind:w=R0.FieldPosition.HEADER,values:z=[]}){this.name=$,this.kind=w,this.values=z}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((w)=>w!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}},r6=class{constructor({fields:$=[],encoding:w="utf-8"}){this.entries={},$.forEach(this.setField.bind(this)),this.encoding=w}static{y(this,"Fields")}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((w)=>w.kind===$)}},t6=class ${static{y(this,"HttpRequest")}constructor(w){this.method=w.method||"GET",this.hostname=w.hostname||"localhost",this.port=w.port,this.query=w.query||{},this.headers=w.headers||{},this.body=w.body,this.protocol=w.protocol?w.protocol.slice(-1)!==":"?`${w.protocol}:`:w.protocol:"https:",this.path=w.path?w.path.charAt(0)!=="/"?`/${w.path}`:w.path:"/",this.username=w.username,this.password=w.password,this.fragment=w.fragment}static clone(w){let z=new $({...w,headers:{...w.headers}});if(z.query)z.query=N0(z.query);return z}static isInstance(w){if(!w)return!1;let z=w;return"method"in z&&"protocol"in z&&"hostname"in z&&"path"in z&&typeof z.query==="object"&&typeof z.headers==="object"}clone(){return $.clone(this)}};function N0($){return Object.keys($).reduce((w,z)=>{let L=$[z];return{...w,[z]:Array.isArray(L)?[...L]:L}},{})}y(N0,"cloneQuery");var o6=class{static{y(this,"HttpResponse")}constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let w=$;return typeof w.statusCode==="number"&&typeof w.headers==="object"}};function I0($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}y(I0,"isValidHostname")});var x0=U((gw,S0)=>{var{defineProperty:d,getOwnPropertyDescriptor:e6,getOwnPropertyNames:$4}=Object,w4=Object.prototype.hasOwnProperty,w0=($,w)=>d($,"name",{value:w,configurable:!0}),z4=($,w)=>{for(var z in w)d($,z,{get:w[z],enumerable:!0})},Z4=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of $4(w))if(!w4.call($,Z)&&Z!==z)d($,Z,{get:()=>w[Z],enumerable:!(L=e6(w,Z))||L.enumerable})}return $},L4=($)=>Z4(d({},"__esModule",{value:!0}),$),O0={};z4(O0,{escapeUri:()=>b0,escapeUriPath:()=>K4});S0.exports=L4(O0);var b0=w0(($)=>encodeURIComponent($).replace(/[!'()*]/g,Y4),"escapeUri"),Y4=w0(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),K4=w0(($)=>$.split("/").map(b0).join("/"),"escapeUriPath")});var Z0=U((lw,k0)=>{var{defineProperty:i,getOwnPropertyDescriptor:Q4,getOwnPropertyNames:X4}=Object,G4=Object.prototype.hasOwnProperty,B4=($,w)=>i($,"name",{value:w,configurable:!0}),F4=($,w)=>{for(var z in w)i($,z,{get:w[z],enumerable:!0})},U4=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of X4(w))if(!G4.call($,Z)&&Z!==z)i($,Z,{get:()=>w[Z],enumerable:!(L=Q4(w,Z))||L.enumerable})}return $},V4=($)=>U4(i({},"__esModule",{value:!0}),$),T0={};F4(T0,{buildQueryString:()=>y0});k0.exports=V4(T0);var z0=x0();function y0($){let w=[];for(let z of Object.keys($).sort()){let L=$[z];if(z=z0.escapeUri(z),Array.isArray(L))for(let Z=0,Q=L.length;Z<Q;Z++)w.push(`${z}=${z0.escapeUri(L[Z])}`);else{let Z=z;if(L||typeof L==="string")Z+=`=${z0.escapeUri(L)}`;w.push(Z)}}return w.join("&")}B4(y0,"buildQueryString")});var m0=U((uw,n0)=>{var{create:h4,defineProperty:q,getOwnPropertyDescriptor:W4,getOwnPropertyNames:J4,getPrototypeOf:j4}=Object,D4=Object.prototype.hasOwnProperty,V=($,w)=>q($,"name",{value:w,configurable:!0}),v4=($,w)=>{for(var z in w)q($,z,{get:w[z],enumerable:!0})},q0=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of J4(w))if(!D4.call($,Z)&&Z!==z)q($,Z,{get:()=>w[Z],enumerable:!(L=W4(w,Z))||L.enumerable})}return $},C4=($,w,z)=>(z=$!=null?h4(j4($)):{},q0(w||!$||!$.__esModule?q(z,"default",{value:$,enumerable:!0}):z,$)),H4=($)=>q0(q({},"__esModule",{value:!0}),$),g0={};v4(g0,{DEFAULT_REQUEST_TIMEOUT:()=>_0,NodeHttp2Handler:()=>T4,NodeHttpHandler:()=>O4,streamCollector:()=>k4});n0.exports=H4(g0);var l0=u(),u0=Z0(),L0=N("http"),Y0=N("https"),A4=["ECONNRESET","EPIPE","ETIMEDOUT"],d0=V(($)=>{let w={};for(let z of Object.keys($)){let L=$[z];w[z]=Array.isArray(L)?L.join(","):L}return w},"getTransformedHeaders"),H={setTimeout:($,w)=>setTimeout($,w),clearTimeout:($)=>clearTimeout($)},f0=1000,R4=V(($,w,z=0)=>{if(!z)return-1;let L=V((Z)=>{let Q=H.setTimeout(()=>{$.destroy(),w(Object.assign(new Error(`Socket timed out without establishing a connection within ${z} ms`),{name:"TimeoutError"}))},z-Z),Y=V((K)=>{if(K?.connecting)K.on("connect",()=>{H.clearTimeout(Q)});else H.clearTimeout(Q)},"doWithSocket");if($.socket)Y($.socket);else $.on("socket",Y)},"registerTimeout");if(z<2000)return L(0),0;return H.setTimeout(L.bind(null,f0),f0)},"setConnectionTimeout"),N4=3000,I4=V(($,{keepAlive:w,keepAliveMsecs:z},L=N4)=>{if(w!==!0)return-1;let Z=V(()=>{if($.socket)$.socket.setKeepAlive(w,z||0);else $.on("socket",(Q)=>{Q.setKeepAlive(w,z||0)})},"registerListener");if(L===0)return Z(),0;return H.setTimeout(Z,L)},"setSocketKeepAlive"),E0=3000,M4=V(($,w,z=_0)=>{let L=V((Z)=>{let Q=z-Z,Y=V(()=>{$.destroy(),w(Object.assign(new Error(`Connection timed out after ${z} ms`),{name:"TimeoutError"}))},"onTimeout");if($.socket)$.socket.setTimeout(Q,Y),$.on("close",()=>$.socket?.removeListener("timeout",Y));else $.setTimeout(Q,Y)},"registerTimeout");if(0<z&&z<6000)return L(0),0;return H.setTimeout(L.bind(null,z===0?0:E0),E0)},"setSocketTimeout"),i0=N("stream"),P0=6000;async function K0($,w,z=P0){let L=w.headers??{},Z=L.Expect||L.expect,Q=-1,Y=!0;if(Z==="100-continue")Y=await Promise.race([new Promise((K)=>{Q=Number(H.setTimeout(()=>K(!0),Math.max(P0,z)))}),new Promise((K)=>{$.on("continue",()=>{H.clearTimeout(Q),K(!0)}),$.on("response",()=>{H.clearTimeout(Q),K(!1)}),$.on("error",()=>{H.clearTimeout(Q),K(!1)})})]);if(Y)p0($,w.body)}V(K0,"writeRequestBody");function p0($,w){if(w instanceof i0.Readable){w.pipe($);return}if(w){if(Buffer.isBuffer(w)||typeof w==="string"){$.end(w);return}let z=w;if(typeof z==="object"&&z.buffer&&typeof z.byteOffset==="number"&&typeof z.byteLength==="number"){$.end(Buffer.from(z.buffer,z.byteOffset,z.byteLength));return}$.end(Buffer.from(w));return}$.end()}V(p0,"writeBody");var _0=0,O4=class ${constructor(w){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((z,L)=>{if(typeof w==="function")w().then((Z)=>{z(this.resolveDefaultConfig(Z))}).catch(L);else z(this.resolveDefaultConfig(w))})}static{V(this,"NodeHttpHandler")}static create(w){if(typeof w?.handle==="function")return w;return new $(w)}static checkSocketUsage(w,z,L=console){let{sockets:Z,requests:Q,maxSockets:Y}=w;if(typeof Y!=="number"||Y===1/0)return z;let K=15000;if(Date.now()-K<z)return z;if(Z&&Q)for(let X in Z){let G=Z[X]?.length??0,F=Q[X]?.length??0;if(G>=Y&&F>=2*Y)return L?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${G} and ${F} additional requests are enqueued.
2
2
  See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
3
  or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return z}resolveDefaultConfig(w){let{requestTimeout:z,connectionTimeout:L,socketTimeout:Z,socketAcquisitionWarningTimeout:Q,httpAgent:Y,httpsAgent:K}=w||{},X=!0,G=50;return{connectionTimeout:L,requestTimeout:z??Z,socketAcquisitionWarningTimeout:Q,httpAgent:(()=>{if(Y instanceof L0.Agent||typeof Y?.destroy==="function")return Y;return new L0.Agent({keepAlive:!0,maxSockets:50,...Y})})(),httpsAgent:(()=>{if(K instanceof Y0.Agent||typeof K?.destroy==="function")return K;return new Y0.Agent({keepAlive:!0,maxSockets:50,...K})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(w,{abortSignal:z}={}){if(!this.config)this.config=await this.configProvider;return new Promise((L,Z)=>{let Q=void 0,Y=[],K=V(async(B)=>{await Q,Y.forEach(H.clearTimeout),L(B)},"resolve"),X=V(async(B)=>{await Q,Y.forEach(H.clearTimeout),Z(B)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(z?.aborted){let B=new Error("Request aborted");B.name="AbortError",X(B);return}let G=w.protocol==="https:",F=G?this.config.httpsAgent:this.config.httpAgent;Y.push(H.setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(F,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let v=u0.buildQueryString(w.query||{}),D=void 0;if(w.username!=null||w.password!=null){let B=w.username??"",W=w.password??"";D=`${B}:${W}`}let j=w.path;if(v)j+=`?${v}`;if(w.fragment)j+=`#${w.fragment}`;let C=w.hostname??"";if(C[0]==="["&&C.endsWith("]"))C=w.hostname.slice(1,-1);else C=w.hostname;let x={headers:w.headers,host:C,method:w.method,path:j,port:w.port,agent:F,auth:D},h=(G?Y0.request:L0.request)(x,(B)=>{let W=new l0.HttpResponse({statusCode:B.statusCode||-1,reason:B.statusMessage,headers:d0(B.headers),body:B});K({response:W})});if(h.on("error",(B)=>{if(A4.includes(B.code))X(Object.assign(B,{name:"TimeoutError"}));else X(B)}),z){let B=V(()=>{h.destroy();let W=new Error("Request aborted");W.name="AbortError",X(W)},"onAbort");if(typeof z.addEventListener==="function"){let W=z;W.addEventListener("abort",B,{once:!0}),h.once("close",()=>W.removeEventListener("abort",B))}else z.onabort=B}Y.push(R4(h,X,this.config.connectionTimeout)),Y.push(M4(h,X,this.config.requestTimeout));let A=x.agent;if(typeof A==="object"&&"keepAlive"in A)Y.push(I4(h,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs}));Q=K0(h,w,this.config.requestTimeout).catch((B)=>{return Y.forEach(H.clearTimeout),Z(B)})})}updateHttpClientConfig(w,z){this.config=void 0,this.configProvider=this.configProvider.then((L)=>{return{...L,[w]:z}})}httpHandlerConfigs(){return this.config??{}}},c0=N("http2"),b4=C4(N("http2")),S4=class{constructor($){this.sessions=[],this.sessions=$??[]}static{V(this,"NodeHttp2ConnectionPool")}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast($){this.sessions.push($)}contains($){return this.sessions.includes($)}remove($){this.sessions=this.sessions.filter((w)=>w!==$)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy($){for(let w of this.sessions)if(w===$){if(!w.destroyed)w.destroy()}}},x4=class{constructor($){if(this.sessionCache=new Map,this.config=$,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}static{V(this,"NodeHttp2ConnectionManager")}lease($,w){let z=this.getUrlString($),L=this.sessionCache.get(z);if(L){let K=L.poll();if(K&&!this.config.disableConcurrency)return K}let Z=b4.default.connect(z);if(this.config.maxConcurrency)Z.settings({maxConcurrentStreams:this.config.maxConcurrency},(K)=>{if(K)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+$.destination.toString())});Z.unref();let Q=V(()=>{Z.destroy(),this.deleteSession(z,Z)},"destroySessionCb");if(Z.on("goaway",Q),Z.on("error",Q),Z.on("frameError",Q),Z.on("close",()=>this.deleteSession(z,Z)),w.requestTimeout)Z.setTimeout(w.requestTimeout,Q);let Y=this.sessionCache.get(z)||new S4;return Y.offerLast(Z),this.sessionCache.set(z,Y),Z}deleteSession($,w){let z=this.sessionCache.get($);if(!z)return;if(!z.contains(w))return;z.remove(w),this.sessionCache.set($,z)}release($,w){let z=this.getUrlString($);this.sessionCache.get(z)?.offerLast(w)}destroy(){for(let[$,w]of this.sessionCache){for(let z of w){if(!z.destroyed)z.destroy();w.remove(z)}this.sessionCache.delete($)}}setMaxConcurrentStreams($){if($&&$<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=$}setDisableConcurrentStreams($){this.config.disableConcurrency=$}getUrlString($){return $.destination.toString()}},T4=class ${constructor(w){this.metadata={handlerProtocol:"h2"},this.connectionManager=new x4({}),this.configProvider=new Promise((z,L)=>{if(typeof w==="function")w().then((Z)=>{z(Z||{})}).catch(L);else z(w||{})})}static{V(this,"NodeHttp2Handler")}static create(w){if(typeof w?.handle==="function")return w;return new $(w)}destroy(){this.connectionManager.destroy()}async handle(w,{abortSignal:z}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}let{requestTimeout:L,disableConcurrentStreams:Z}=this.config;return new Promise((Q,Y)=>{let K=!1,X=void 0,G=V(async(J)=>{await X,Q(J)},"resolve"),F=V(async(J)=>{await X,Y(J)},"reject");if(z?.aborted){K=!0;let J=new Error("Request aborted");J.name="AbortError",F(J);return}let{hostname:v,method:D,port:j,protocol:C,query:x}=w,T="";if(w.username!=null||w.password!=null){let J=w.username??"",I=w.password??"";T=`${J}:${I}@`}let h=`${C}//${T}${v}${j?`:${j}`:""}`,A={destination:new URL(h)},B=this.connectionManager.lease(A,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:Z||!1}),W=V((J)=>{if(Z)this.destroySession(B);K=!0,F(J)},"rejectWithDestroy"),E=u0.buildQueryString(x||{}),$0=w.path;if(E)$0+=`?${E}`;if(w.fragment)$0+=`#${w.fragment}`;let R=B.request({...w.headers,[c0.constants.HTTP2_HEADER_PATH]:$0,[c0.constants.HTTP2_HEADER_METHOD]:D});if(B.ref(),R.on("response",(J)=>{let I=new l0.HttpResponse({statusCode:J[":status"]||-1,headers:d0(J),body:R});if(K=!0,G({response:I}),Z)B.close(),this.connectionManager.deleteSession(h,B)}),L)R.setTimeout(L,()=>{R.close();let J=new Error(`Stream timed out because of no activity for ${L} ms`);J.name="TimeoutError",W(J)});if(z){let J=V(()=>{R.close();let I=new Error("Request aborted");I.name="AbortError",W(I)},"onAbort");if(typeof z.addEventListener==="function"){let I=z;I.addEventListener("abort",J,{once:!0}),R.once("close",()=>I.removeEventListener("abort",J))}else z.onabort=J}R.on("frameError",(J,I,g6)=>{W(new Error(`Frame type id ${J} in stream id ${g6} has failed with code ${I}.`))}),R.on("error",W),R.on("aborted",()=>{W(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${R.rstCode}.`))}),R.on("close",()=>{if(B.unref(),Z)B.destroy();if(!K)W(new Error("Unexpected error: http2 request did not get a response"))}),X=K0(R,w,L)})}updateHttpClientConfig(w,z){this.config=void 0,this.configProvider=this.configProvider.then((L)=>{return{...L,[w]:z}})}httpHandlerConfigs(){return this.config??{}}destroySession(w){if(!w.destroyed)w.destroy()}},y4=class extends i0.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}static{V(this,"Collector")}_write($,w,z){this.bufferedBytes.push($),z()}},k4=V(($)=>{if(f4($))return a0($);return new Promise((w,z)=>{let L=new y4;$.pipe(L),$.on("error",(Z)=>{L.end(),z(Z)}),L.on("error",z),L.on("finish",function(){let Z=new Uint8Array(Buffer.concat(this.bufferedBytes));w(Z)})})},"streamCollector"),f4=V(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");async function a0($){let w=[],z=$.getReader(),L=!1,Z=0;while(!L){let{done:K,value:X}=await z.read();if(X)w.push(X),Z+=X.length;L=K}let Q=new Uint8Array(Z),Y=0;for(let K of w)Q.set(K,Y),Y+=K.length;return Q}V(a0,"collectReadableStream")});var t0=U((_w,r0)=>{var{defineProperty:p,getOwnPropertyDescriptor:E4,getOwnPropertyNames:P4}=Object,c4=Object.prototype.hasOwnProperty,q4=($,w)=>p($,"name",{value:w,configurable:!0}),g4=($,w)=>{for(var z in w)p($,z,{get:w[z],enumerable:!0})},l4=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of P4(w))if(!c4.call($,Z)&&Z!==z)p($,Z,{get:()=>w[Z],enumerable:!(L=E4(w,Z))||L.enumerable})}return $},u4=($)=>l4(p({},"__esModule",{value:!0}),$),s0={};g4(s0,{isArrayBuffer:()=>d4});r0.exports=u4(s0);var d4=q4(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var g=U((aw,$1)=>{var{defineProperty:_,getOwnPropertyDescriptor:i4,getOwnPropertyNames:p4}=Object,_4=Object.prototype.hasOwnProperty,o0=($,w)=>_($,"name",{value:w,configurable:!0}),a4=($,w)=>{for(var z in w)_($,z,{get:w[z],enumerable:!0})},n4=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of p4(w))if(!_4.call($,Z)&&Z!==z)_($,Z,{get:()=>w[Z],enumerable:!(L=i4(w,Z))||L.enumerable})}return $},m4=($)=>n4(_({},"__esModule",{value:!0}),$),e0={};a4(e0,{fromArrayBuffer:()=>r4,fromString:()=>t4});$1.exports=m4(e0);var s4=t0(),Q0=N("buffer"),r4=o0(($,w=0,z=$.byteLength-w)=>{if(!s4.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Q0.Buffer.from($,w,z)},"fromArrayBuffer"),t4=o0(($,w)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return w?Q0.Buffer.from($,w):Q0.Buffer.from($)},"fromString")});var Z1=U((w1)=>{Object.defineProperty(w1,"__esModule",{value:!0});w1.fromBase64=void 0;var o4=g(),e4=/^[A-Za-z0-9+/]*={0,2}$/,$$=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!e4.exec($))throw new TypeError("Invalid base64 string.");let w=o4.fromString($,"base64");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)};w1.fromBase64=$$});var n=U((mw,Q1)=>{var{defineProperty:a,getOwnPropertyDescriptor:w$,getOwnPropertyNames:z$}=Object,Z$=Object.prototype.hasOwnProperty,X0=($,w)=>a($,"name",{value:w,configurable:!0}),L$=($,w)=>{for(var z in w)a($,z,{get:w[z],enumerable:!0})},Y$=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of z$(w))if(!Z$.call($,Z)&&Z!==z)a($,Z,{get:()=>w[Z],enumerable:!(L=w$(w,Z))||L.enumerable})}return $},K$=($)=>Y$(a({},"__esModule",{value:!0}),$),L1={};L$(L1,{fromUtf8:()=>K1,toUint8Array:()=>Q$,toUtf8:()=>X$});Q1.exports=K$(L1);var Y1=g(),K1=X0(($)=>{let w=Y1.fromString($,"utf8");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Q$=X0(($)=>{if(typeof $==="string")return K1($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),X$=X0(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Y1.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var B1=U((X1)=>{Object.defineProperty(X1,"__esModule",{value:!0});X1.toBase64=void 0;var G$=g(),B$=n(),F$=($)=>{let w;if(typeof $==="string")w=B$.fromUtf8($);else w=$;if(typeof w!=="object"||typeof w.byteOffset!=="number"||typeof w.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return G$.fromArrayBuffer(w.buffer,w.byteOffset,w.byteLength).toString("base64")};X1.toBase64=F$});var P=U((rw,m)=>{var{defineProperty:F1,getOwnPropertyDescriptor:U$,getOwnPropertyNames:V$}=Object,h$=Object.prototype.hasOwnProperty,G0=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of V$(w))if(!h$.call($,Z)&&Z!==z)F1($,Z,{get:()=>w[Z],enumerable:!(L=U$(w,Z))||L.enumerable})}return $},U1=($,w,z)=>(G0($,w,"default"),z&&G0(z,w,"default")),W$=($)=>G0(F1({},"__esModule",{value:!0}),$),B0={};m.exports=W$(B0);U1(B0,Z1(),m.exports);U1(B0,B1(),m.exports)});var F0=U((h1)=>{Object.defineProperty(h1,"__esModule",{value:!0});h1.ChecksumStream=void 0;var J$=P(),j$=N("stream");class V1 extends j$.Duplex{constructor({expectedChecksum:$,checksum:w,source:z,checksumSourceLocation:L,base64Encoder:Z}){var Q,Y;super();if(typeof z.pipe==="function")this.source=z;else throw new Error(`@smithy/util-stream: unsupported source type ${(Y=(Q=z===null||z===void 0?void 0:z.constructor)===null||Q===void 0?void 0:Q.name)!==null&&Y!==void 0?Y:z} in ChecksumStream.`);this.base64Encoder=Z!==null&&Z!==void 0?Z:J$.toBase64,this.expectedChecksum=$,this.checksum=w,this.checksumSourceLocation=L,this.source.pipe(this)}_read($){}_write($,w,z){try{this.checksum.update($),this.push($)}catch(L){return z(L)}return z()}async _final($){try{let w=await this.checksum.digest(),z=this.base64Encoder(w);if(this.expectedChecksum!==z)return $(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${z}" in response header "${this.checksumSourceLocation}".`))}catch(w){return $(w)}return this.push(null),$()}}h1.ChecksumStream=V1});var k=U((J1)=>{Object.defineProperty(J1,"__esModule",{value:!0});J1.isBlob=J1.isReadableStream=void 0;var D$=($)=>{var w;return typeof ReadableStream==="function"&&(((w=$===null||$===void 0?void 0:$.constructor)===null||w===void 0?void 0:w.name)===ReadableStream.name||$ instanceof ReadableStream)};J1.isReadableStream=D$;var v$=($)=>{var w;return typeof Blob==="function"&&(((w=$===null||$===void 0?void 0:$.constructor)===null||w===void 0?void 0:w.name)===Blob.name||$ instanceof Blob)};J1.isBlob=v$});var H1=U((v1)=>{Object.defineProperty(v1,"__esModule",{value:!0});v1.ChecksumStream=void 0;var H$=typeof ReadableStream==="function"?ReadableStream:function(){};class D1 extends H${}v1.ChecksumStream=D1});var N1=U((A1)=>{Object.defineProperty(A1,"__esModule",{value:!0});A1.createChecksumStream=void 0;var A$=P(),R$=k(),N$=H1(),I$=({expectedChecksum:$,checksum:w,source:z,checksumSourceLocation:L,base64Encoder:Z})=>{var Q,Y;if(!R$.isReadableStream(z))throw new Error(`@smithy/util-stream: unsupported source type ${(Y=(Q=z===null||z===void 0?void 0:z.constructor)===null||Q===void 0?void 0:Q.name)!==null&&Y!==void 0?Y:z} in ChecksumStream.`);let K=Z!==null&&Z!==void 0?Z:A$.toBase64;if(typeof TransformStream!=="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let X=new TransformStream({start(){},async transform(F,v){w.update(F),v.enqueue(F)},async flush(F){let v=await w.digest(),D=K(v);if($!==D){let j=new Error(`Checksum mismatch: expected "${$}" but received "${D}" in response header "${L}".`);F.error(j)}else F.terminate()}});z.pipeThrough(X);let G=X.readable;return Object.setPrototypeOf(G,N$.ChecksumStream.prototype),G};A1.createChecksumStream=I$});var O1=U((I1)=>{Object.defineProperty(I1,"__esModule",{value:!0});I1.createChecksumStream=void 0;var M$=k(),O$=F0(),b$=N1();function S$($){if(typeof ReadableStream==="function"&&M$.isReadableStream($.source))return b$.createChecksumStream($);return new O$.ChecksumStream($)}I1.createChecksumStream=S$});var U0=U((S1)=>{Object.defineProperty(S1,"__esModule",{value:!0});S1.ByteArrayCollector=void 0;class b1{constructor($){this.allocByteArray=$,this.byteLength=0,this.byteArrays=[]}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let z=this.byteArrays[0];return this.reset(),z}let $=this.allocByteArray(this.byteLength),w=0;for(let z=0;z<this.byteArrays.length;++z){let L=this.byteArrays[z];$.set(L,w),w+=L.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}S1.ByteArrayCollector=b1});var P1=U((f1)=>{Object.defineProperty(f1,"__esModule",{value:!0});f1.modeOf=f1.sizeOf=f1.flush=f1.merge=f1.createBufferedReadable=f1.createBufferedReadableStream=void 0;var x$=U0();function T1($,w,z){let L=$.getReader(),Z=!1,Q=0,Y=["",new x$.ByteArrayCollector((G)=>new Uint8Array(G))],K=-1,X=async(G)=>{let{value:F,done:v}=await L.read(),D=F;if(v){if(K!==-1){let j=s(Y,K);if(c(j)>0)G.enqueue(j)}G.close()}else{let j=k1(D);if(K!==j){if(K>=0)G.enqueue(s(Y,K));K=j}if(K===-1){G.enqueue(D);return}let C=c(D);Q+=C;let x=c(Y[K]);if(C>=w&&x===0)G.enqueue(D);else{let T=y1(Y,K,D);if(!Z&&Q>w*2)Z=!0,z===null||z===void 0||z.warn(`@smithy/util-stream - stream chunk size ${C} is below threshold of ${w}, automatically buffering.`);if(T>=w)G.enqueue(s(Y,K));else await X(G)}}};return new ReadableStream({pull:X})}f1.createBufferedReadableStream=T1;f1.createBufferedReadable=T1;function y1($,w,z){switch(w){case 0:return $[0]+=z,c($[0]);case 1:case 2:return $[w].push(z),c($[w])}}f1.merge=y1;function s($,w){switch(w){case 0:let z=$[0];return $[0]="",z;case 1:case 2:return $[w].flush()}throw new Error(`@smithy/util-stream - invalid index ${w} given to flush()`)}f1.flush=s;function c($){var w,z;return(z=(w=$===null||$===void 0?void 0:$.byteLength)!==null&&w!==void 0?w:$===null||$===void 0?void 0:$.length)!==null&&z!==void 0?z:0}f1.sizeOf=c;function k1($){if(typeof Buffer!=="undefined"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}f1.modeOf=k1});var l1=U((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});q1.createBufferedReadable=void 0;var P$=N("stream"),c1=U0(),S=P1(),c$=k();function q$($,w,z){if(c$.isReadableStream($))return S.createBufferedReadableStream($,w,z);let L=new P$.Readable({read(){}}),Z=!1,Q=0,Y=["",new c1.ByteArrayCollector((X)=>new Uint8Array(X)),new c1.ByteArrayCollector((X)=>Buffer.from(new Uint8Array(X)))],K=-1;return $.on("data",(X)=>{let G=S.modeOf(X);if(K!==G){if(K>=0)L.push(S.flush(Y,K));K=G}if(K===-1){L.push(X);return}let F=S.sizeOf(X);Q+=F;let v=S.sizeOf(Y[K]);if(F>=w&&v===0)L.push(X);else{let D=S.merge(Y,K,X);if(!Z&&Q>w*2)Z=!0,z===null||z===void 0||z.warn(`@smithy/util-stream - stream chunk size ${F} is below threshold of ${w}, automatically buffering.`);if(D>=w)L.push(S.flush(Y,K))}}),$.on("end",()=>{if(K!==-1){let X=S.flush(Y,K);if(S.sizeOf(X)>0)L.push(X)}L.push(null)}),L}q1.createBufferedReadable=q$});var i1=U((u1)=>{Object.defineProperty(u1,"__esModule",{value:!0});u1.getAwsChunkedEncodingStream=void 0;var g$=N("stream"),l$=($,w)=>{let{base64Encoder:z,bodyLengthChecker:L,checksumAlgorithmFn:Z,checksumLocationName:Q,streamHasher:Y}=w,K=z!==void 0&&Z!==void 0&&Q!==void 0&&Y!==void 0,X=K?Y(Z,$):void 0,G=new g$.Readable({read:()=>{}});return $.on("data",(F)=>{let v=L(F)||0;G.push(`${v.toString(16)}\r
4
4
  `),G.push(F),G.push(`\r
@@ -7,4 +7,4 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
7
7
  `),G.push(`\r
8
8
  `)}G.push(null)}),G};u1.getAwsChunkedEncodingStream=l$});var a1=U((p1)=>{Object.defineProperty(p1,"__esModule",{value:!0});p1.headStream=void 0;async function u$($,w){var z;let L=0,Z=[],Q=$.getReader(),Y=!1;while(!Y){let{done:G,value:F}=await Q.read();if(F)Z.push(F),L+=(z=F===null||F===void 0?void 0:F.byteLength)!==null&&z!==void 0?z:0;if(L>=w)break;Y=G}Q.releaseLock();let K=new Uint8Array(Math.min(w,L)),X=0;for(let G of Z){if(G.byteLength>K.byteLength-X){K.set(G.subarray(0,K.byteLength-X),X);break}else K.set(G,X);X+=G.length}return K}p1.headStream=u$});var r1=U((m1)=>{Object.defineProperty(m1,"__esModule",{value:!0});m1.headStream=void 0;var d$=N("stream"),i$=a1(),p$=k(),_$=($,w)=>{if(p$.isReadableStream($))return i$.headStream($,w);return new Promise((z,L)=>{let Z=new n1;Z.limit=w,$.pipe(Z),$.on("error",(Q)=>{Z.end(),L(Q)}),Z.on("error",L),Z.on("finish",function(){let Q=new Uint8Array(Buffer.concat(this.buffers));z(Q)})})};m1.headStream=_$;class n1 extends d$.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write($,w,z){var L;if(this.buffers.push($),this.bytesBuffered+=(L=$.byteLength)!==null&&L!==void 0?L:0,this.bytesBuffered>=this.limit){let Z=this.bytesBuffered-this.limit,Q=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=Q.subarray(0,Q.byteLength-Z),this.emit("finish")}z()}}});var L6=U((X8,Z6)=>{var{defineProperty:t,getOwnPropertyDescriptor:a$,getOwnPropertyNames:n$}=Object,m$=Object.prototype.hasOwnProperty,M=($,w)=>t($,"name",{value:w,configurable:!0}),s$=($,w)=>{for(var z in w)t($,z,{get:w[z],enumerable:!0})},r$=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of n$(w))if(!m$.call($,Z)&&Z!==z)t($,Z,{get:()=>w[Z],enumerable:!(L=a$(w,Z))||L.enumerable})}return $},t$=($)=>r$(t({},"__esModule",{value:!0}),$),o1={};s$(o1,{FetchHttpHandler:()=>e$,keepAliveSupport:()=>r,streamCollector:()=>ww});Z6.exports=t$(o1);var t1=u(),o$=Z0();function V0($,w){return new Request($,w)}M(V0,"createRequest");function e1($=0){return new Promise((w,z)=>{if($)setTimeout(()=>{let L=new Error(`Request did not complete within ${$} ms`);L.name="TimeoutError",z(L)},$)})}M(e1,"requestTimeout");var r={supported:void 0},e$=class ${static{M(this,"FetchHttpHandler")}static create(w){if(typeof w?.handle==="function")return w;return new $(w)}constructor(w){if(typeof w==="function")this.configProvider=w().then((z)=>z||{});else this.config=w??{},this.configProvider=Promise.resolve(this.config);if(r.supported===void 0)r.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in V0("https://[::1]"))}destroy(){}async handle(w,{abortSignal:z}={}){if(!this.config)this.config=await this.configProvider;let L=this.config.requestTimeout,Z=this.config.keepAlive===!0,Q=this.config.credentials;if(z?.aborted){let h=new Error("Request aborted");return h.name="AbortError",Promise.reject(h)}let Y=w.path,K=o$.buildQueryString(w.query||{});if(K)Y+=`?${K}`;if(w.fragment)Y+=`#${w.fragment}`;let X="";if(w.username!=null||w.password!=null){let h=w.username??"",A=w.password??"";X=`${h}:${A}@`}let{port:G,method:F}=w,v=`${w.protocol}//${X}${w.hostname}${G?`:${G}`:""}${Y}`,D=F==="GET"||F==="HEAD"?void 0:w.body,j={body:D,headers:new Headers(w.headers),method:F,credentials:Q};if(this.config?.cache)j.cache=this.config.cache;if(D)j.duplex="half";if(typeof AbortController!=="undefined")j.signal=z;if(r.supported)j.keepalive=Z;if(typeof this.config.requestInit==="function")Object.assign(j,this.config.requestInit(w));let C=M(()=>{},"removeSignalEventListener"),x=V0(v,j),T=[fetch(x).then((h)=>{let A=h.headers,B={};for(let E of A.entries())B[E[0]]=E[1];if(h.body==null)return h.blob().then((E)=>({response:new t1.HttpResponse({headers:B,reason:h.statusText,statusCode:h.status,body:E})}));return{response:new t1.HttpResponse({headers:B,reason:h.statusText,statusCode:h.status,body:h.body})}}),e1(L)];if(z)T.push(new Promise((h,A)=>{let B=M(()=>{let W=new Error("Request aborted");W.name="AbortError",A(W)},"onAbort");if(typeof z.addEventListener==="function"){let W=z;W.addEventListener("abort",B,{once:!0}),C=M(()=>W.removeEventListener("abort",B),"removeSignalEventListener")}else z.onabort=B}));return Promise.race(T).finally(C)}updateHttpClientConfig(w,z){this.config=void 0,this.configProvider=this.configProvider.then((L)=>{return L[w]=z,L})}httpHandlerConfigs(){return this.config??{}}},$w=P(),ww=M(async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return $6($)}return w6($)},"streamCollector");async function $6($){let w=await z6($),z=$w.fromBase64(w);return new Uint8Array(z)}M($6,"collectBlob");async function w6($){let w=[],z=$.getReader(),L=!1,Z=0;while(!L){let{done:K,value:X}=await z.read();if(X)w.push(X),Z+=X.length;L=K}let Q=new Uint8Array(Z),Y=0;for(let K of w)Q.set(K,Y),Y+=K.length;return Q}M(w6,"collectStream");function z6($){return new Promise((w,z)=>{let L=new FileReader;L.onloadend=()=>{if(L.readyState!==2)return z(new Error("Reader aborted too early"));let Z=L.result??"",Q=Z.indexOf(","),Y=Q>-1?Q+1:Z.length;w(Z.substring(Y))},L.onabort=()=>z(new Error("Read aborted")),L.onerror=()=>z(L.error),L.readAsDataURL($)})}M(z6,"readToBase64")});var F6=U((G8,B6)=>{var{defineProperty:o,getOwnPropertyDescriptor:zw,getOwnPropertyNames:Zw}=Object,Lw=Object.prototype.hasOwnProperty,Y6=($,w)=>o($,"name",{value:w,configurable:!0}),Yw=($,w)=>{for(var z in w)o($,z,{get:w[z],enumerable:!0})},Kw=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of Zw(w))if(!Lw.call($,Z)&&Z!==z)o($,Z,{get:()=>w[Z],enumerable:!(L=zw(w,Z))||L.enumerable})}return $},Qw=($)=>Kw(o({},"__esModule",{value:!0}),$),K6={};Yw(K6,{fromHex:()=>X6,toHex:()=>G6});B6.exports=Qw(K6);var Q6={},h0={};for(let $=0;$<256;$++){let w=$.toString(16).toLowerCase();if(w.length===1)w=`0${w}`;Q6[$]=w,h0[w]=$}function X6($){if($.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let w=new Uint8Array($.length/2);for(let z=0;z<$.length;z+=2){let L=$.slice(z,z+2).toLowerCase();if(L in h0)w[z/2]=h0[L];else throw new Error(`Cannot decode unrecognized sequence ${L} as hexadecimal`)}return w}Y6(X6,"fromHex");function G6($){let w="";for(let z=0;z<$.byteLength;z++)w+=Q6[$[z]];return w}Y6(G6,"toHex")});var j6=U((W6)=>{Object.defineProperty(W6,"__esModule",{value:!0});W6.sdkStreamMixin=void 0;var Xw=L6(),Gw=P(),Bw=F6(),Fw=n(),U6=k(),V6="The stream has already been transformed.",Uw=($)=>{var w,z;if(!h6($)&&!U6.isReadableStream($)){let Y=((z=(w=$===null||$===void 0?void 0:$.__proto__)===null||w===void 0?void 0:w.constructor)===null||z===void 0?void 0:z.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${Y}`)}let L=!1,Z=async()=>{if(L)throw new Error(V6);return L=!0,await Xw.streamCollector($)},Q=(Y)=>{if(typeof Y.stream!=="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
9
9
  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 Y.stream()};return Object.assign($,{transformToByteArray:Z,transformToString:async(Y)=>{let K=await Z();if(Y==="base64")return Gw.toBase64(K);else if(Y==="hex")return Bw.toHex(K);else if(Y===void 0||Y==="utf8"||Y==="utf-8")return Fw.toUtf8(K);else if(typeof TextDecoder==="function")return new TextDecoder(Y).decode(K);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(L)throw new Error(V6);if(L=!0,h6($))return Q($);else if(U6.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};W6.sdkStreamMixin=Uw;var h6=($)=>typeof Blob==="function"&&$ instanceof Blob});var H6=U((v6)=>{Object.defineProperty(v6,"__esModule",{value:!0});v6.sdkStreamMixin=void 0;var Vw=m0(),hw=g(),W0=N("stream"),Ww=j6(),D6="The stream has already been transformed.",Jw=($)=>{var w,z;if(!($ instanceof W0.Readable))try{return Ww.sdkStreamMixin($)}catch(Q){let Y=((z=(w=$===null||$===void 0?void 0:$.__proto__)===null||w===void 0?void 0:w.constructor)===null||z===void 0?void 0:z.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${Y}`)}let L=!1,Z=async()=>{if(L)throw new Error(D6);return L=!0,await Vw.streamCollector($)};return Object.assign($,{transformToByteArray:Z,transformToString:async(Q)=>{let Y=await Z();if(Q===void 0||Buffer.isEncoding(Q))return hw.fromArrayBuffer(Y.buffer,Y.byteOffset,Y.byteLength).toString(Q);else return new TextDecoder(Q).decode(Y)},transformToWebStream:()=>{if(L)throw new Error(D6);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof W0.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return L=!0,W0.Readable.toWeb($)}})};v6.sdkStreamMixin=Jw});var N6=U((A6)=>{Object.defineProperty(A6,"__esModule",{value:!0});A6.splitStream=void 0;async function jw($){if(typeof $.stream==="function")$=$.stream();return $.tee()}A6.splitStream=jw});var S6=U((O6)=>{Object.defineProperty(O6,"__esModule",{value:!0});O6.splitStream=void 0;var I6=N("stream"),Dw=N6(),M6=k();async function vw($){if(M6.isReadableStream($)||M6.isBlob($))return Dw.splitStream($);let w=new I6.PassThrough,z=new I6.PassThrough;return $.pipe(w),$.pipe(z),[w,z]}O6.splitStream=vw});var f6=U((h8,b)=>{var{defineProperty:e,getOwnPropertyDescriptor:Cw,getOwnPropertyNames:Hw}=Object,Aw=Object.prototype.hasOwnProperty,D0=($,w)=>e($,"name",{value:w,configurable:!0}),Rw=($,w)=>{for(var z in w)e($,z,{get:w[z],enumerable:!0})},J0=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of Hw(w))if(!Aw.call($,Z)&&Z!==z)e($,Z,{get:()=>w[Z],enumerable:!(L=Cw(w,Z))||L.enumerable})}return $},f=($,w,z)=>(J0($,w,"default"),z&&J0(z,w,"default")),Nw=($)=>J0(e({},"__esModule",{value:!0}),$),O={};Rw(O,{Uint8ArrayBlobAdapter:()=>j0});b.exports=Nw(O);var x6=P(),T6=n();function y6($,w="utf-8"){if(w==="base64")return x6.toBase64($);return T6.toUtf8($)}D0(y6,"transformToString");function k6($,w){if(w==="base64")return j0.mutate(x6.fromBase64($));return j0.mutate(T6.fromUtf8($))}D0(k6,"transformFromString");var j0=class $ extends Uint8Array{static{D0(this,"Uint8ArrayBlobAdapter")}static fromString(w,z="utf-8"){switch(typeof w){case"string":return k6(w,z);default:throw new Error(`Unsupported conversion from ${typeof w} to Uint8ArrayBlobAdapter.`)}}static mutate(w){return Object.setPrototypeOf(w,$.prototype),w}transformToString(w="utf-8"){return y6(this,w)}};f(O,F0(),b.exports);f(O,O1(),b.exports);f(O,l1(),b.exports);f(O,i1(),b.exports);f(O,r1(),b.exports);f(O,H6(),b.exports);f(O,S6(),b.exports);f(O,k(),b.exports)});var fw=U((W8,q6)=>{var{defineProperty:H0,getOwnPropertyDescriptor:Iw,getOwnPropertyNames:Mw}=Object,Ow=Object.prototype.hasOwnProperty,bw=($,w)=>{for(var z in w)H0($,z,{get:w[z],enumerable:!0})},Sw=($,w,z,L)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let Z of Mw(w))if(!Ow.call($,Z)&&Z!==z)H0($,Z,{get:()=>w[Z],enumerable:!(L=Iw(w,Z))||L.enumerable})}return $},xw=($)=>Sw(H0({},"__esModule",{value:!0}),$),E6={};bw(E6,{RequestBuilder:()=>c6,collectBody:()=>Tw,extendedEncodeURIComponent:()=>C0,requestBuilder:()=>kw,resolvedPath:()=>P6});q6.exports=xw(E6);var v0=f6(),Tw=async($=new Uint8Array,w)=>{if($ instanceof Uint8Array)return v0.Uint8ArrayBlobAdapter.mutate($);if(!$)return v0.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let z=w.streamCollector($);return v0.Uint8ArrayBlobAdapter.mutate(await z)};function C0($){return encodeURIComponent($).replace(/[!'()*]/g,function(w){return"%"+w.charCodeAt(0).toString(16).toUpperCase()})}var yw=u(),P6=($,w,z,L,Z,Q)=>{if(w!=null&&w[z]!==void 0){let Y=L();if(Y.length<=0)throw new Error("Empty value provided for input HTTP label: "+z+".");$=$.replace(Z,Q?Y.split("/").map((K)=>C0(K)).join("/"):C0(Y))}else throw new Error("No value provided for input HTTP label: "+z+".");return $};function kw($,w){return new c6($,w)}var c6=class{constructor($,w){this.input=$,this.context=w,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){let{hostname:$,protocol:w="https",port:z,path:L}=await this.context.endpoint();this.path=L;for(let Z of this.resolvePathStack)Z(this.path);return new yw.HttpRequest({protocol:w,hostname:this.hostname||$,port:z,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn($){return this.hostname=$,this}bp($){return this.resolvePathStack.push((w)=>{this.path=`${w?.endsWith("/")?w.slice(0,-1):w||""}`+$}),this}p($,w,z,L){return this.resolvePathStack.push((Z)=>{this.path=P6(Z,this.input,$,w,z,L)}),this}h($){return this.headers=$,this}q($){return this.query=$,this}b($){return this.body=$,this}m($){return this.method=$,this}}});
10
- export{u as oc,t0 as pc,g as qc,n as rc,P as sc,x0 as tc,m0 as uc,F6 as vc,f6 as wc,fw as xc};
10
+ export{u as kc,t0 as lc,g as mc,n as nc,P as oc,x0 as pc,m0 as qc,F6 as rc,f6 as sc,fw as tc};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{G as D,i as C}from"./chunk-mwdfdvqk.js";import"./chunk-6wnzdvc6.js";class E{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(c)=>this.replacement=c}}replace(c,r,f,s){if(c&&r)if(f!=null)c[r][f]=s;else c[r]=s}remove(c,r,f){if(c&&r)if(f!==null&&f!==void 0)c[r].splice(f,1);else delete c[r]}}class w extends E{constructor(c,r){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(f)=>this.replacement=f},this.enter=c,this.leave=r}visit(c,r,f,s){if(c){if(this.enter){let i=this.should_skip,I=this.should_remove,l=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let t=this.should_skip,m=this.should_remove;if(this.should_skip=i,this.should_remove=I,this.replacement=l,t)return c;if(m)return null}let a;for(a in c){let i=c[a];if(i&&typeof i==="object"){if(Array.isArray(i)){let I=i;for(let l=0;l<I.length;l+=1){let t=I[l];if(e(t)){if(!this.visit(t,c,a,l))l--}}}else if(e(i))this.visit(i,c,a,null)}}if(this.leave){let i=this.replacement,I=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let l=this.should_remove;if(this.replacement=i,this.should_remove=I,l)return null}}return c}}function e(c){return c!==null&&typeof c==="object"&&"type"in c&&typeof c.type==="string"}function b(c,{enter:r,leave:f}){return new w(r,f).visit(c,null)}async function G(c,r,f){let s=D(c),a=await r.getImportMap(),i=[],I=f?.autoImport!==!1,l=f?.transformVirtualImports!==!1&&r.options.virtualImports?.length;if(I||l){let t=C(s.original,{sourceType:"module",ecmaVersion:"latest",locations:!0}),m=y(a,r.options.virtualImports),u=V(t,l?m.walk:{});if(I){let S=u.unmatched;i.push(...Array.from(S).map((g)=>{let h=a.get(g);if(h&&!h.disabled)return h;return null}).filter(Boolean));for(let g of r.addons)i=await g.matchImports?.call(r,S,i)||i}m.ranges.forEach(([S,g])=>{s.remove(S,g)}),i.push(...m.imports)}return{s,strippedCode:c.toString(),matchedImports:i,isCJSContext:!1,firstOccurrence:0}}function V(c,r){let f=[],s=void 0,a=[];function i(t){s={node:t,parent:s,declarations:new Set,references:new Set},f.push(s),a.push(s)}function I(t){if(a.pop()?.node!==t)throw new Error("Scope mismatch");s=a[a.length-1]}i(void 0),b(c,{enter(t,m,u,S){switch(r?.enter?.call(this,t,m,u,S),t.type){case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":s.declarations.add(t.local.name);return;case"FunctionDeclaration":case"ClassDeclaration":if(t.id)s.declarations.add(t.id.name);return;case"VariableDeclarator":if(t.id.type==="Identifier")s.declarations.add(t.id.name);else b(t.id,{enter(g){if(g.type==="ObjectPattern")g.properties.forEach((h)=>{if(h.type==="Property"&&h.value.type==="Identifier")s.declarations.add(h.value.name);else if(h.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)});else if(g.type==="ArrayPattern")g.elements.forEach((h)=>{if(h?.type==="Identifier")s.declarations.add(h.name);if(h?.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)})}});return;case"BlockStatement":i(t);return;case"Identifier":switch(m?.type){case"CallExpression":if(m.callee===t||m.arguments.includes(t))s.references.add(t.name);return;case"MemberExpression":if(m.object===t)s.references.add(t.name);return;case"VariableDeclarator":if(m.init===t)s.references.add(t.name);return;case"SpreadElement":if(m.argument===t)s.references.add(t.name);return;case"ClassDeclaration":if(m.superClass===t)s.references.add(t.name);return;case"Property":if(m.value===t)s.references.add(t.name);return;case"TemplateLiteral":if(m.expressions.includes(t))s.references.add(t.name);return;case"AssignmentExpression":if(m.right===t)s.references.add(t.name);return;case"IfStatement":case"WhileStatement":case"DoWhileStatement":if(m.test===t)s.references.add(t.name);return;case"SwitchStatement":if(m.discriminant===t)s.references.add(t.name);return}if(m?.type.includes("Expression"))s.references.add(t.name)}},leave(t,m,u,S){switch(r?.leave?.call(this,t,m,u,S),t.type){case"BlockStatement":I(t)}}});let l=new Set;for(let t of f)for(let m of t.references){let u=!1,S=t;while(S){if(S.declarations.has(m)){u=!0;break}S=S?.parent}if(!u)l.add(m)}return{unmatched:l,scopes:f}}function y(c,r=[]){let f=[],s=[];return{imports:f,ranges:s,walk:{enter(a){if(a.type==="ImportDeclaration"){if(r.includes(a.source.value))s.push([a.start,a.end]),a.specifiers.forEach((i)=>{if(i.type==="ImportSpecifier"&&i.imported.type==="Identifier"){let I=c.get(i.imported.name);if(!I)throw new Error(`[unimport] failed to find "${i.imported.name}" imported from "${a.source.value}"`);f.push({from:I.from,name:I.name,as:i.local.name})}})}}}}}export{V as traveseScopes,G as detectImportsAcorn,y as createVirtualImportsAcronWalker};
2
+ import{G as D,i as C}from"./chunk-vcke324z.js";import"./chunk-bj7sb2gs.js";class E{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(c)=>this.replacement=c}}replace(c,r,f,s){if(c&&r)if(f!=null)c[r][f]=s;else c[r]=s}remove(c,r,f){if(c&&r)if(f!==null&&f!==void 0)c[r].splice(f,1);else delete c[r]}}class w extends E{constructor(c,r){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(f)=>this.replacement=f},this.enter=c,this.leave=r}visit(c,r,f,s){if(c){if(this.enter){let i=this.should_skip,I=this.should_remove,l=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let t=this.should_skip,m=this.should_remove;if(this.should_skip=i,this.should_remove=I,this.replacement=l,t)return c;if(m)return null}let a;for(a in c){let i=c[a];if(i&&typeof i==="object"){if(Array.isArray(i)){let I=i;for(let l=0;l<I.length;l+=1){let t=I[l];if(e(t)){if(!this.visit(t,c,a,l))l--}}}else if(e(i))this.visit(i,c,a,null)}}if(this.leave){let i=this.replacement,I=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let l=this.should_remove;if(this.replacement=i,this.should_remove=I,l)return null}}return c}}function e(c){return c!==null&&typeof c==="object"&&"type"in c&&typeof c.type==="string"}function b(c,{enter:r,leave:f}){return new w(r,f).visit(c,null)}async function G(c,r,f){let s=D(c),a=await r.getImportMap(),i=[],I=f?.autoImport!==!1,l=f?.transformVirtualImports!==!1&&r.options.virtualImports?.length;if(I||l){let t=C(s.original,{sourceType:"module",ecmaVersion:"latest",locations:!0}),m=y(a,r.options.virtualImports),u=V(t,l?m.walk:{});if(I){let S=u.unmatched;i.push(...Array.from(S).map((g)=>{let h=a.get(g);if(h&&!h.disabled)return h;return null}).filter(Boolean));for(let g of r.addons)i=await g.matchImports?.call(r,S,i)||i}m.ranges.forEach(([S,g])=>{s.remove(S,g)}),i.push(...m.imports)}return{s,strippedCode:c.toString(),matchedImports:i,isCJSContext:!1,firstOccurrence:0}}function V(c,r){let f=[],s=void 0,a=[];function i(t){s={node:t,parent:s,declarations:new Set,references:new Set},f.push(s),a.push(s)}function I(t){if(a.pop()?.node!==t)throw new Error("Scope mismatch");s=a[a.length-1]}i(void 0),b(c,{enter(t,m,u,S){switch(r?.enter?.call(this,t,m,u,S),t.type){case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":s.declarations.add(t.local.name);return;case"FunctionDeclaration":case"ClassDeclaration":if(t.id)s.declarations.add(t.id.name);return;case"VariableDeclarator":if(t.id.type==="Identifier")s.declarations.add(t.id.name);else b(t.id,{enter(g){if(g.type==="ObjectPattern")g.properties.forEach((h)=>{if(h.type==="Property"&&h.value.type==="Identifier")s.declarations.add(h.value.name);else if(h.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)});else if(g.type==="ArrayPattern")g.elements.forEach((h)=>{if(h?.type==="Identifier")s.declarations.add(h.name);if(h?.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)})}});return;case"BlockStatement":i(t);return;case"Identifier":switch(m?.type){case"CallExpression":if(m.callee===t||m.arguments.includes(t))s.references.add(t.name);return;case"MemberExpression":if(m.object===t)s.references.add(t.name);return;case"VariableDeclarator":if(m.init===t)s.references.add(t.name);return;case"SpreadElement":if(m.argument===t)s.references.add(t.name);return;case"ClassDeclaration":if(m.superClass===t)s.references.add(t.name);return;case"Property":if(m.value===t)s.references.add(t.name);return;case"TemplateLiteral":if(m.expressions.includes(t))s.references.add(t.name);return;case"AssignmentExpression":if(m.right===t)s.references.add(t.name);return;case"IfStatement":case"WhileStatement":case"DoWhileStatement":if(m.test===t)s.references.add(t.name);return;case"SwitchStatement":if(m.discriminant===t)s.references.add(t.name);return}if(m?.type.includes("Expression"))s.references.add(t.name)}},leave(t,m,u,S){switch(r?.leave?.call(this,t,m,u,S),t.type){case"BlockStatement":I(t)}}});let l=new Set;for(let t of f)for(let m of t.references){let u=!1,S=t;while(S){if(S.declarations.has(m)){u=!0;break}S=S?.parent}if(!u)l.add(m)}return{unmatched:l,scopes:f}}function y(c,r=[]){let f=[],s=[];return{imports:f,ranges:s,walk:{enter(a){if(a.type==="ImportDeclaration"){if(r.includes(a.source.value))s.push([a.start,a.end]),a.specifiers.forEach((i)=>{if(i.type==="ImportSpecifier"&&i.imported.type==="Identifier"){let I=c.get(i.imported.name);if(!I)throw new Error(`[unimport] failed to find "${i.imported.name}" imported from "${a.source.value}"`);f.push({from:I.from,name:I.name,as:i.local.name})}})}}}}}export{V as traveseScopes,G as detectImportsAcorn,y as createVirtualImportsAcronWalker};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{$a as f,Ab as Ie,Wa as Le,Xa as Me,Ya as We,Za as Ae,_a as Ke,ab as g,bb as ee,cb as se,db as Qe,eb as ce,fb as ie,gb as $,hb as J,ib as le,jb as pe,kb as Xe,lb as Ye,mb as as,nb as ds,ob as Ze,pb as ye,qb as me,rb as Ce,sb as he,tb as je,ub as ve,vb as ke,wb as Re,xb as Ee,yb as qe,zb as Je}from"./chunk-cs2tr6yd.js";import{Bb as l,Cb as re}from"./chunk-m5phygyg.js";import{$b as y,Db as Fe,Eb as Ue,Hb as Te,Ib as ns,Jb as E,Kb as B,Lb as Ne,Mb as h,Qb as Ge,Rb as u,Sb as fe,Tb as ue,Ub as we,Vb as _e,Wb as $e,Yb as ge,Zb as ae,_b as i,ac as es,bc as be,cc as xe}from"./chunk-cdz7xgbk.js";import{fc as U,ic as x}from"./chunk-zyvsgnfm.js";import{nc as us,oc as ws}from"./chunk-p2hmvsjh.js";import"./chunk-dz02fqrj.js";import"./chunk-wjhmhcgy.js";import"./chunk-eyn01tkt.js";import"./chunk-h6ga49c2.js";import{Ic as o}from"./chunk-bj7sb2gs.js";var p=o(U(),1);var I=o(x(),1);var P=async(e,s,t)=>{return{operation:$(s).operation,region:await J(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function ps(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}}function b(e){return{schemeId:"smithy.api#noAuth"}}var L=(e)=>{let s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(ps(e))}return s},M=(e)=>{return{...I.resolveAwsSdkSigV4Config(e)}};var W=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},A={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var K={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.772.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.758.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.772.0","@aws-sdk/middleware-user-agent":"3.758.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.758.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.5","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.6","@smithy/middleware-retry":"^4.0.7","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.3","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.6","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.7","@smithy/util-defaults-mode-node":"^4.0.7","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Se=o(x(),1);var de=o(x(),1),ne=o(U(),1);var v=o(ws(),1),k=o(us(),1);var Q={["required"]:!1,type:"String"},X={["required"]:!0,default:!1,type:"Boolean"},Y={["ref"]:"Endpoint"},G={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},V={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},n={},Z={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},O={["ref"]:"PartitionResult"},C={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[O,"supportsDualStack"]}]},T=[G],j=[V],H=[{["ref"]:"Region"}],ms={version:"1.0",parameters:{Region:Q,UseDualStack:X,UseFIPS:X,Endpoint:Q},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Y]}],rules:[{conditions:T,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:j,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Y,properties:n,headers:n},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:H}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:H,assign:"PartitionResult"}],rules:[{conditions:[G,V],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Z]},C],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:T,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Z,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[O,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:n,headers:n},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:j,rules:[{conditions:[C],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},N=ms;var hs=new f({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),te=(e,s={})=>{return hs.get(e,()=>ee(N,{endpointParams:e,logger:s.logger}))};g.aws=se;var oe=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??v.fromBase64,base64Encoder:e?.base64Encoder??v.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??te,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??L,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new de.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ne.NoAuthSigner}],logger:e?.logger??new ae,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??re,utf8Decoder:e?.utf8Decoder??k.fromUtf8,utf8Encoder:e?.utf8Encoder??k.toUtf8}};var ze=(e)=>{we(process.version);let s=qe(e),t=()=>s().then(ue),a=oe(e);Se.emitWarningIfUnsupportedVersion(process.version);let r={profile:e?.profile};return{...a,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??Ee,defaultUserAgentProvider:e?.defaultUserAgentProvider??ve({serviceId:a.serviceId,clientVersion:K.version}),maxAttempts:e?.maxAttempts??l(me,e),region:e?.region??l(le,{...pe,...r}),requestHandler:be.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...he,default:async()=>(await t()).retryMode||ye},e),sha256:e?.sha256??Re.bind(null,"sha256"),streamCollector:e?.streamCollector??xe,useDualstackEndpoint:e?.useDualstackEndpoint??l(ce,r),useFipsEndpoint:e?.useFipsEndpoint??l(ie,r),userAgentAppId:e?.userAgentAppId??l(ke,r)}};var De=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:t,credentials:a}=e;return{setHttpAuthScheme(r){let d=s.findIndex((F)=>F.schemeId===r.schemeId);if(d===-1)s.push(r);else s.splice(d,1,r)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){a=r},credentials(){return a}}},Be=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var R=(e)=>e,Pe=(e,s)=>{let t={...R(Je(e)),...R(_e(e)),...R(Fe(e)),...R(De(e))};return s.forEach((a)=>a.configure(t)),{...e,...Ie(t),...$e(t),...Ue(t),...Be(t)}};class He extends Te{config;constructor(...[e]){let s=ze(e||{}),t=W(s),a=Ke(t),r=Ce(a),d=Xe(r),F=Le(d),cs=Ze(F),is=M(cs),_=Pe(is,e?.extensions||[]);super(_);this.config=_,this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:P,identityProviderConfigProvider:async(ls)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":ls.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class c extends Ge{constructor(e){super(e);Object.setPrototypeOf(this,c.prototype)}}class q extends c{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class S extends c{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,S.prototype)}}class z extends c{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}class D extends c{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype)}}var Ve=(e)=>({...e,...e.accessToken&&{accessToken:E}}),bs=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:E},...e.sessionToken&&{sessionToken:E}}),Oe=(e)=>({...e,...e.roleCredentials&&{roleCredentials:bs(e.roleCredentials)}});var m=o(x(),1),ss=o(U(),1);var ts=async(e,s)=>{let t=ss.requestBuilder(e,s),a=i({},ge,{[Us]:e[zs]});t.bp("/federation/credentials");let r=i({[Fs]:[,B(e[Bs],"roleName")],[Ds]:[,B(e[Ss],"accountId")]}),d;return t.m("GET").h(a).q(r).b(d),t.build()};var rs=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return xs(e,s);let t=i({$metadata:w(e)}),a=B(Ne(await m.parseJsonBody(e.body,s)),"body"),r=y(a,{roleCredentials:es});return Object.assign(t,r),t};var xs=async(e,s)=>{let t={...e,body:await m.parseJsonErrorBody(e.body,s)},a=m.loadRestJsonErrorCode(e,t.body);switch(a){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ks(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Rs(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Es(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await qs(t,s);default:let r=t.body;return vs({output:e,parsedBody:r,errorCode:a})}},vs=fe(c),ks=async(e,s)=>{let t=i({}),a=e.body,r=y(a,{message:h});Object.assign(t,r);let d=new q({$metadata:w(e),...t});return u(d,e.body)},Rs=async(e,s)=>{let t=i({}),a=e.body,r=y(a,{message:h});Object.assign(t,r);let d=new S({$metadata:w(e),...t});return u(d,e.body)},Es=async(e,s)=>{let t=i({}),a=e.body,r=y(a,{message:h});Object.assign(t,r);let d=new z({$metadata:w(e),...t});return u(d,e.body)},qs=async(e,s)=>{let t=i({}),a=e.body,r=y(a,{message:h});Object.assign(t,r);let d=new D({$metadata:w(e),...t});return u(d,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var Ss="accountId",zs="accessToken",Ds="account_id";var Bs="roleName",Fs="role_name",Us="x-amz-sso_bearer_token";class os extends ns.classBuilder().ep(A).m(function(e,s,t,a){return[as(t,this.serialize,this.deserialize),ds(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(Ve,Oe).ser(ts).de(rs).build(){}export{He as SSOClient,os as GetRoleCredentialsCommand};
@@ -1,4 +1,4 @@
1
- import{Mc as QZ,Oc as ZZ}from"./chunk-6wnzdvc6.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
1
+ import{Ic as QZ,Kc as ZZ}from"./chunk-bj7sb2gs.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
2
2
  `),Z=z.filter((j)=>/^\t+/.test(j)),O=z.filter((j)=>/^ {2,}/.test(j));if(Z.length===0&&O.length===0)return null;if(Z.length>=O.length)return"\t";let Q=O.reduce((j,H)=>{let $=/^ +/.exec(H)[0].length;return Math.min($,j)},1/0);return new Array(Q+1).join(" ")}function o_(_,z){let Z=_.split(/[/\\]/),O=z.split(/[/\\]/);Z.pop();while(Z[0]===O[0])Z.shift(),O.shift();if(Z.length){let Q=Z.length;while(Q--)Z[Q]=".."}return Z.concat(O).join("/")}var n_=Object.prototype.toString;function r_(_){return n_.call(_)==="[object Object]"}function O2(_){let z=_.split(`
3
3
  `),Z=[];for(let O=0,Q=0;O<z.length;O++)Z.push(Q),Q+=z[O].length+1;return function O(Q){let j=0,H=Z.length;while(j<H){let W=j+H>>1;if(Q<Z[W])H=W;else j=W+1}let $=j-1,K=Q-Z[$];return{line:$,column:K}}}var s_=/\w/;class j2{constructor(_){this.hires=_,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(_,z,Z,O){if(z.length){let Q=z.length-1,j=z.indexOf(`
4
4
  `,0),H=-1;while(j>=0&&Q>j){let K=[this.generatedCodeColumn,_,Z.line,Z.column];if(O>=0)K.push(O);this.rawSegments.push(K),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,H=j,j=z.indexOf(`
@@ -1,2 +1,2 @@
1
- import{Oc as D}from"./chunk-6wnzdvc6.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{let j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{let j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
2
- export{S as Gc};
1
+ import{Kc as D}from"./chunk-bj7sb2gs.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{let j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{let j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
2
+ export{S as Cc};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Kc as T}from"./chunk-atc0z327.js";import{Lc as f}from"./chunk-2hfepv08.js";import{Mc as E,Rc as p}from"./chunk-6wnzdvc6.js";var c=E(T(),1),N=E(f(),1);import{readFileSync as A}from"fs";var i=(e)=>async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:s,webIdentityToken:n,providerId:S,policyArns:d,policy:l,durationSeconds:m}=e,{roleAssumerWithWebIdentity:t}=e;if(!t){let{getDefaultRoleAssumerWithWebIdentity:a}=await import("./chunk-jm49r4wr.js");t=a({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...o?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return t({RoleArn:r,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:S,PolicyArns:d,Policy:l,DurationSeconds:m})};var _="AWS_WEB_IDENTITY_TOKEN_FILE",I="AWS_ROLE_ARN",O="AWS_ROLE_SESSION_NAME",k=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[_],r=e?.roleArn??process.env[I],s=e?.roleSessionName??process.env[O];if(!o||!r)throw new N.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await i({...e,webIdentityToken:A(o,{encoding:"ascii"}),roleArn:r,roleSessionName:s})();if(o===process.env[_])c.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{i as fromWebToken,k as fromTokenFile};
2
+ import{Gc as T}from"./chunk-eyn01tkt.js";import{Hc as f}from"./chunk-h6ga49c2.js";import{Ic as E,Nc as p}from"./chunk-bj7sb2gs.js";var c=E(T(),1),N=E(f(),1);import{readFileSync as A}from"fs";var i=(e)=>async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:s,webIdentityToken:n,providerId:S,policyArns:d,policy:l,durationSeconds:m}=e,{roleAssumerWithWebIdentity:t}=e;if(!t){let{getDefaultRoleAssumerWithWebIdentity:a}=await import("./chunk-dvnqfcah.js");t=a({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...o?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return t({RoleArn:r,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:S,PolicyArns:d,Policy:l,DurationSeconds:m})};var _="AWS_WEB_IDENTITY_TOKEN_FILE",I="AWS_ROLE_ARN",O="AWS_ROLE_SESSION_NAME",k=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[_],r=e?.roleArn??process.env[I],s=e?.roleSessionName??process.env[O];if(!o||!r)throw new N.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await i({...e,webIdentityToken:A(o,{encoding:"ascii"}),roleArn:r,roleSessionName:s})();if(o===process.env[_])c.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{i as fromWebToken,k as fromTokenFile};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Jb as g,Sb as w,fc as x}from"./chunk-x6d1t8r7.js";import{wc as b}from"./chunk-jx6tpg9f.js";import"./chunk-fbbvmxn3.js";import{Kc as v}from"./chunk-atc0z327.js";import{Lc as i}from"./chunk-2hfepv08.js";import{Mc as n}from"./chunk-6wnzdvc6.js";var E=n(v(),1);var d=n(i(),1);import _ from"fs/promises";var C=n(i(),1);var u="169.254.170.2",A="169.254.170.23",O="[fd00:ec2::23]",S=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===u||e.hostname===A||e.hostname===O)return;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;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
2
+ import{Fb as g,Ob as w,bc as x}from"./chunk-cdz7xgbk.js";import{sc as b}from"./chunk-p2hmvsjh.js";import"./chunk-wjhmhcgy.js";import{Gc as v}from"./chunk-eyn01tkt.js";import{Hc as i}from"./chunk-h6ga49c2.js";import{Ic as n}from"./chunk-bj7sb2gs.js";var E=n(v(),1);var d=n(i(),1);import _ from"fs/promises";var C=n(i(),1);var u="169.254.170.2",A="169.254.170.23",O="[fd00:ec2::23]",S=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===u||e.hostname===A||e.hostname===O)return;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;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
3
  - loopback CIDR 127.0.0.0/8 or [::1/128]
4
4
  - ECS container host 169.254.170.2
5
5
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:a})};var o=n(i(),1);var I=n(b(),1);function P(e){return new g({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((a,[c,r])=>{return a[c]=r,a},{}),fragment:e.hash})}async function K(e,a){let r=await I.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new o.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:a});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:w(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:a}),{Code:t.Code,Message:t.Message})}throw new o.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:a})}var T=(e,a,c)=>{return async()=>{for(let r=0;r<a;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,c))}return await e()}};var B="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",D="http://169.254.170.2",M="AWS_CONTAINER_CREDENTIALS_FULL_URI",N="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",j="AWS_CONTAINER_AUTHORIZATION_TOKEN",H=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let a,c=e.awsContainerCredentialsRelativeUri??process.env[B],r=e.awsContainerCredentialsFullUri??process.env[M],t=e.awsContainerAuthorizationToken??process.env[j],s=e.awsContainerAuthorizationTokenFile??process.env[N],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(c&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)a=r;else if(c)a=`${D}${c}`;else throw new d.CredentialsProviderError(`No HTTP credential provider host provided.