nebutra 0.3.4 → 0.3.6

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 (73) hide show
  1. package/dist/aws-kms-LKU7DI4V.js +1 -0
  2. package/dist/{chunk-4AGDXYPL.js → chunk-5ECPN42W.js} +1 -1
  3. package/dist/{chunk-M3QJPQWS.js → chunk-EY2BHCQE.js} +1 -1
  4. package/dist/chunk-FNDUJLS6.js +1 -0
  5. package/dist/chunk-HGBWMVM7.js +21 -0
  6. package/dist/chunk-HGJYEXMU.js +1 -0
  7. package/dist/chunk-IYWUY3VA.js +1 -0
  8. package/dist/chunk-JTXBZ2SU.js +1 -0
  9. package/dist/chunk-OK7ER7YP.js +1 -0
  10. package/dist/chunk-P2WEIQRQ.js +3 -0
  11. package/dist/chunk-TW5BOTVX.js +0 -0
  12. package/dist/chunk-W5TBFCWY.js +4 -0
  13. package/dist/chunk-WJLTO7JW.js +0 -0
  14. package/dist/chunk-WU3IV4WF.js +1 -0
  15. package/dist/{chunk-UU4YUKYZ.js → chunk-XE3I3HCZ.js} +1 -1
  16. package/dist/chunk-XPQG77BK.js +30 -0
  17. package/dist/chunk-ZIBRKYXP.js +23 -0
  18. package/dist/chunk-ZQRYPBYL.js +1 -0
  19. package/dist/chunk-ZYSKNYCH.js +1 -0
  20. package/dist/credits-VMBFMWYZ.js +2635 -0
  21. package/dist/delegate-7HQKV277.js +1 -0
  22. package/dist/dist-64NZ7WFG.js +1 -0
  23. package/dist/{dist-RKQ2VFAN.js → dist-XXK46RYX.js} +2 -2
  24. package/dist/dist-es-3CZ3L4YG.js +1 -0
  25. package/dist/dist-es-6XC3E47H.js +2 -0
  26. package/dist/{dist-es-JATELSE4.js → dist-es-AVQJ4DIE.js} +1 -1
  27. package/dist/dist-es-IOF5RIJQ.js +1 -0
  28. package/dist/dist-es-IQDNDI5J.js +1 -0
  29. package/dist/dist-es-LP57UN2M.js +2 -0
  30. package/dist/dist-es-TBDNLENJ.js +5 -0
  31. package/dist/{event-streams-IPTOYMEP.js → event-streams-BXAP5G2H.js} +1 -1
  32. package/dist/event-streams-SGW54BDO.js +1 -0
  33. package/dist/index.js +151 -144
  34. package/dist/loadSso-5APLBIWH.js +1 -0
  35. package/dist/local-6WWVOMA7.js +1 -0
  36. package/dist/logger-WOLJCPZK.js +1 -0
  37. package/dist/{query_compiler_fast_bg.postgresql-FOSFFKA5.js → query_compiler_fast_bg.postgresql-JA2BFVW5.js} +1 -1
  38. package/dist/{query_compiler_fast_bg.postgresql.wasm-base64-JU7X67WB.js → query_compiler_fast_bg.postgresql.wasm-base64-URHQ2Y3Y.js} +1 -1
  39. package/dist/signin-XHF3EHOH.js +1 -0
  40. package/dist/sso-oidc-TZ2Y2UYP.js +1 -0
  41. package/dist/sts-UOIWFNPA.js +5 -0
  42. package/package.json +2 -1
  43. package/dist/aws-kms-JXNUBFR5.js +0 -1
  44. package/dist/chunk-224RJRPV.js +0 -5
  45. package/dist/chunk-2YUF6TO6.js +0 -2
  46. package/dist/chunk-76FD5Z7D.js +0 -23
  47. package/dist/chunk-AAIUIEEA.js +0 -1
  48. package/dist/chunk-CHWVD37K.js +0 -1
  49. package/dist/chunk-EUNES54A.js +0 -1
  50. package/dist/chunk-FBRPUQSU.js +0 -9
  51. package/dist/chunk-FSRPMVAS.js +0 -1
  52. package/dist/chunk-IY2KKEUD.js +0 -1
  53. package/dist/chunk-SF4JBB23.js +0 -1
  54. package/dist/chunk-U7GFHIC2.js +0 -1
  55. package/dist/chunk-WI7DO2VU.js +0 -1
  56. package/dist/chunk-WS6OSFOJ.js +0 -1
  57. package/dist/chunk-YYJUG63O.js +0 -20
  58. package/dist/credits-BNQN5G4U.js +0 -2613
  59. package/dist/delegate-AT4FVWBK.js +0 -1
  60. package/dist/dist-HHAEOWH3.js +0 -1
  61. package/dist/dist-es-27SHBPNL.js +0 -2
  62. package/dist/dist-es-3AHFNYTD.js +0 -5
  63. package/dist/dist-es-3MQSPUQV.js +0 -1
  64. package/dist/dist-es-7VTHVGQ3.js +0 -1
  65. package/dist/dist-es-JT6FIF3X.js +0 -1
  66. package/dist/dist-es-NRANDF25.js +0 -2
  67. package/dist/loadSso-PT5GF7HH.js +0 -1
  68. package/dist/local-BUKM6VCO.js +0 -1
  69. package/dist/logger-LKYUI2MJ.js +0 -1
  70. package/dist/signin-BWSVHQGQ.js +0 -1
  71. package/dist/sso-oidc-33SS76HS.js +0 -1
  72. package/dist/sts-RJ2HDNHF.js +0 -6
  73. /package/dist/{chunk-3T4EOSMQ.js → chunk-SPHQRDN5.js} +0 -0
@@ -0,0 +1 @@
1
+ import{k as P,l as k,m as A}from"./chunk-ZQRYPBYL.js";import{e as _,p as z}from"./chunk-FNDUJLS6.js";import{f as j,g as J}from"./chunk-HGJYEXMU.js";import{d as X,z as K}from"./chunk-W5TBFCWY.js";import{b as Q,c as Z,d as tt}from"./chunk-XB6R2VIU.js";var et=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],rt=["TimeoutError","RequestTimeout","RequestTimeoutException"],ot=[500,502,503,504],st=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],it=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];var St=t=>t?.$retryable!==void 0;var yt=t=>t.$metadata?.clockSkewCorrected,_t=t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},x=t=>t.$metadata?.httpStatusCode===429||et.includes(t.name)||t.$retryable?.throttling==!0,w=(t,e=0)=>St(t)||yt(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||rt.includes(t.name)||st.includes(t?.code||"")||it.includes(t?.code||"")||ot.includes(t.$metadata?.httpStatusCode||0)||_t(t)||At(t)||t.cause!==void 0&&e<=10&&w(t.cause,e+1),at=t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!w(t)}return!1};function At(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var R=class t{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let o=e;if(o?.errorType==="THROTTLING"||x(o?.error??e)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let i=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(i)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(o=>t.setTimeoutFn(o,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let o=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(o*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}};var I="amz-sdk-invocation-id",D="amz-sdk-request";var l=class t{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}};var N=class{x=l.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}};var h=class{delay;count;cost;longPoll;constructor(e,r,o,s){this.delay=e,this.count=r,this.cost=o,this.longPoll=s}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}};var d;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(d||(d={}));var p=3,O=d.STANDARD;var C={incompatible:1,attempts:2,capacity:3},f=class{mode=d.STANDARD;capacity=500;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>p,this.baseDelay??=l.delay(),this.retryBackoffStrategy??=new N}async acquireInitialRetryToken(e){return new h(l.delay(),0,void 0,l.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let o=await this.getMaxAttempts(),s=this.retryCode(e,r,o),i=s===0,a=e.isLongPoll?.();if(i||a){let n=r.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?l.throttlingDelay():this.baseDelay);let u=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),c=u;if(r.retryAfterHint instanceof Date&&(c=Math.max(u,Math.min(r.retryAfterHint.getTime()-Date.now(),u+5e3))),i){let m=this.getCapacityCost(n);return this.capacity-=m,new h(c,e.getRetryCount()+1,m,e.isLongPoll?.()??!1)}else throw Object.assign(new Error("No retry token available"),{$backoff:l.v2026&&s===C.capacity&&a?c:0})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${p}`),p}}retryCode(e,r,o){let s=e.getRetryCount()+1,i=this.isRetryableError(r.errorType)?0:C.incompatible,a=s<o?0:C.attempts,n=this.capacity>=this.getCapacityCost(r.errorType)?0:C.capacity;return i||a||n}getCapacityCost(e){return e===l.modifiedCostType()?l.throttlingCost():l.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}};var E=class{mode=d.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:o}=r??{};this.rateLimiter=o??new R,this.standardRetryStrategy=r?new f({maxAttempts:typeof e=="number"?e:3,...r}):new f(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let o=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),o}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};var U="AWS_MAX_ATTEMPTS",F="max_attempts",xt={environmentVariableSelector:t=>{let e=t[U];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${U} mast be a number, got "${e}"`);return r},configFileSelector:t=>{let e=t[F];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${F} mast be a number, got "${e}"`);return r},default:p},wt=t=>{let{retryStrategy:e,retryMode:r}=t,o=_(t.maxAttempts??p),s=e?Promise.resolve(e):void 0,i=async()=>await _(r)()===d.ADAPTIVE?new E(o):new f(o);return Object.assign(t,{maxAttempts:o,retryStrategy:()=>s??=i()})},ct="AWS_RETRY_MODE",ut="retry_mode",It={environmentVariableSelector:t=>t[ct],configFileSelector:t=>t[ut],default:O};import{Readable as Dt}from"stream";var B=t=>t?.body instanceof Dt||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream;function lt(t,e){if(J.isInstance(t))for(let r of Object.keys(t.headers)){let o=r.toLowerCase();if(o==="retry-after"){let s=t.headers[r],i=NaN;if(s.endsWith("GMT"))try{i=(X(s).getTime()-Date.now())/1e3}catch(a){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(a)}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(s):Date.parse(s)>=Date.now()&&(i=(Date.parse(s)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(o==="x-amz-retry-after"){let s=t.headers[r],i=Number(s);if(isNaN(i)){e?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+i)}}}var dt=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`);function Y(t){return e=>(r,o)=>async s=>{let i=await e.retryStrategy(),a=await e.maxAttempts();if(Nt(i)){i=i;let n=await i.acquireInitialRetryToken((o.partition_id??"")+(o.__retryLongPoll?":longpoll":"")),u=new Error,c=0,m=0,{request:S}=s,M=j.isInstance(S);for(M&&(S.headers[I]=K());;)try{M&&(S.headers[D]=`attempt=${c+1}; max=${a}`);let{response:y,output:T}=await r(s);return i.recordSuccess(n),T.$metadata.attempts=c+1,T.$metadata.totalRetryDelay=m,{response:y,output:T}}catch(y){let T=Ot(y,e.logger);if(u=dt(y),M&&t(S))throw(o.logger instanceof z?console:o.logger)?.warn("An error was encountered in a non-retryable streaming request."),u;try{n=await i.refreshRetryTokenForRetry(n,T)}catch(V){throw typeof V.$backoff=="number"&&await pt(V.$backoff),u.$metadata||(u.$metadata={}),u.$metadata.attempts=c+1,u.$metadata.totalRetryDelay=m,u}c=n.getRetryCount();let q=n.getRetryDelay();m+=q,await pt(q)}}else return i=i,i?.mode&&(o.userAgent=[...o.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(r,s)}}var pt=t=>new Promise(e=>setTimeout(e,t)),Nt=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",Ot=(t,e)=>{let r={error:t,errorType:Ct(t)},o=lt(t.$response,e);return o&&(r.retryAfterHint=o),r},Ct=t=>x(t)?"THROTTLING":w(t)?"TRANSIENT":at(t)?"SERVER_ERROR":"CLIENT_ERROR",bt={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function ft(t){let e=Y(t);return r=>({applyToStack:o=>{o.add(e(r),bt)}})}var Le=Y(B),Ue=ft(B);var mt=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e};var Lt=t=>function(r){return Ut(r)&&r.expiration.getTime()-Date.now()<t};var Ve=Lt(3e5),Ut=t=>t.expiration!==void 0,Xe=(t,e,r)=>{if(t===void 0)return;let o=typeof t!="function"?async()=>Promise.resolve(t):t,s,i,a,n=!1,u=async c=>{i||(i=o(c));try{s=await i,a=!0,n=!1}finally{i=void 0}return s};return e===void 0?async c=>((!a||c?.forceRefresh)&&(s=await u(c)),s):async c=>((!a||c?.forceRefresh)&&(s=await u(c)),n?s:r(s)?(e(s)&&await u(c),s):(n=!0,s))};var Ft=void 0;function Bt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function je(t){let e=mt(t.userAgentAppId??Ft),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:async()=>{let o=await e();if(!Bt(o)){let s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof o!="string"?s?.warn("userAgentAppId must be a string or undefined."):o.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return o}})}var Et={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};var Gt=Et,Ht="",Tt=t=>{let{partitions:e}=Gt;for(let o of e){let{regions:s,outputs:i}=o;for(let[a,n]of Object.entries(s))if(a===t)return{...i,...n}}for(let o of e){let{regionRegex:s,outputs:i}=o;if(new RegExp(s).test(t))return{...i}}let r=e.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}};var Sr=()=>Ht;var G=(t,e=!1)=>{if(e){for(let r of t.split("."))if(!G(r))return!1;return!0}return!(!k(t)||t.length<3||t.length>63||t!==t.toLowerCase()||A(t))};var Rt=t=>{let e=t.split(":");if(e.length<6)return null;let[r,o,s,i,a,...n]=e;if(r!=="arn"||o===""||s===""||n.join(":")==="")return null;let u=n.map(c=>c.split("/")).flat();return{partition:o,service:s,region:i,accountId:a,resourceId:u}};var $t={isVirtualHostableS3Bucket:G,parseArn:Rt,partition:Tt};P.aws=$t;import{fstatSync as Wt,lstatSync as qt,ReadStream as Vt}from"fs";var lo=t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof Vt){if(t.path!=null)return qt(t.path).size;if(typeof t.fd=="number")return Wt(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)};var g={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},H=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");H||(globalThis.awslambda=globalThis.awslambda||{});var b=class{static PROTECTED_KEYS=g;isProtectedKey(e){return Object.values(g).includes(e)}getRequestId(){return this.get(g.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(g.X_RAY_TRACE_ID)}getTenantId(){return this.get(g.TENANT_ID)}},$=class extends b{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},W=class t extends b{als;static async create(){let e=new t,r=await import("async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let o=this.als.getStore();if(!o)throw new Error("No context available");o[e]=r}run(e,r){return this.als.run(e,r)}},ht;(function(t){let e=null;async function r(){return e||(e=(async()=>{let s="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await W.create():new $;return!H&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!H&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),e}t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(ht||(ht={}));l.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function Eo(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var Xt=/^[A-Za-z0-9+/]*={0,2}$/,ho=t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Xt.exec(t))throw new TypeError("Invalid base64 string.");let e=Z(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};var _o=t=>{let e;if(typeof t=="string"?e=tt(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Q(e.buffer,e.byteOffset,e.byteLength).toString("base64")};var xo=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}};var gt;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(gt||(gt={}));export{ht as a,mt as b,Ve as c,Ut as d,Xe as e,Sr as f,$t as g,I as h,D as i,d as j,p as k,O as l,f as m,E as n,xt as o,wt as p,It as q,Ue as r,Eo as s,ho as t,_o as u,xo as v,gt as w,Ft as x,je as y,lo as z};