@stacksjs/buddy 0.70.22 → 0.70.27
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.
- package/README.md +15 -23
- package/dist/cli.js +3 -1
- package/dist/index.js +449 -1
- package/dist/src/cli.d.ts +1 -0
- package/dist/src/commands/about.d.ts +2 -0
- package/dist/src/commands/auth.d.ts +2 -0
- package/dist/src/commands/build.d.ts +2 -0
- package/dist/src/commands/changelog.d.ts +2 -0
- package/dist/src/commands/clean.d.ts +2 -0
- package/dist/src/commands/cloud.d.ts +2 -0
- package/dist/src/commands/commit.d.ts +2 -0
- package/dist/src/commands/completion.d.ts +2 -0
- package/dist/src/commands/config-migrate.d.ts +26 -0
- package/dist/src/commands/configure.d.ts +2 -0
- package/dist/src/commands/create.d.ts +2 -0
- package/dist/src/commands/deploy.d.ts +2 -0
- package/dist/{dev.d.ts → src/commands/dev.d.ts} +1 -3
- package/dist/src/commands/dns.d.ts +2 -0
- package/dist/src/commands/doctor.d.ts +2 -0
- package/dist/src/commands/domains.d.ts +2 -0
- package/dist/src/commands/email.d.ts +2 -0
- package/dist/src/commands/env.d.ts +2 -0
- package/dist/src/commands/fresh.d.ts +2 -0
- package/dist/src/commands/generate.d.ts +2 -0
- package/dist/src/commands/http.d.ts +2 -0
- package/dist/src/commands/index.d.ts +49 -0
- package/dist/src/commands/install.d.ts +2 -0
- package/dist/src/commands/key.d.ts +2 -0
- package/dist/src/commands/lint.d.ts +2 -0
- package/dist/src/commands/list.d.ts +2 -0
- package/dist/src/commands/mail.d.ts +2 -0
- package/dist/src/commands/make.d.ts +2 -0
- package/dist/src/commands/migrate.d.ts +2 -0
- package/dist/src/commands/outdated.d.ts +2 -0
- package/dist/src/commands/phone.d.ts +2 -0
- package/dist/src/commands/ports.d.ts +2 -0
- package/dist/src/commands/prepublish.d.ts +2 -0
- package/dist/src/commands/projects.d.ts +2 -0
- package/dist/src/commands/publish.d.ts +2 -0
- package/dist/src/commands/queue.d.ts +2 -0
- package/dist/src/commands/release.d.ts +2 -0
- package/dist/src/commands/route.d.ts +2 -0
- package/dist/src/commands/saas.d.ts +2 -0
- package/dist/src/commands/schedule.d.ts +2 -0
- package/dist/src/commands/search.d.ts +2 -0
- package/dist/src/commands/seed.d.ts +2 -0
- package/dist/src/commands/setup.d.ts +12 -0
- package/dist/src/commands/sms.d.ts +2 -0
- package/dist/src/commands/telemetry.d.ts +2 -0
- package/dist/src/commands/test.d.ts +2 -0
- package/dist/src/commands/tinker.d.ts +2 -0
- package/dist/src/commands/types.d.ts +2 -0
- package/dist/src/commands/upgrade.d.ts +2 -0
- package/dist/src/commands/version.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +64 -61
- package/dist/add.d.ts +0 -4
- package/dist/build.d.ts +0 -4
- package/dist/changelog.d.ts +0 -3
- package/dist/chunk-0ddnkwwh.js +0 -2
- package/dist/chunk-0x2p8v0y.js +0 -8
- package/dist/chunk-10x00s2d.js +0 -3
- package/dist/chunk-1db0j2x1.js +0 -2
- package/dist/chunk-3aav7z7p.js +0 -15
- package/dist/chunk-3q6hnzy0.js +0 -2
- package/dist/chunk-5asbctb1.js +0 -2
- package/dist/chunk-6ct1erv4.js +0 -1
- package/dist/chunk-6v69415e.js +0 -2
- package/dist/chunk-83fm0fkc.js +0 -3
- package/dist/chunk-85qckawc.js +0 -10
- package/dist/chunk-8yy9tk7n.js +0 -25
- package/dist/chunk-9db6arkz.js +0 -5410
- package/dist/chunk-af959jta.js +0 -2
- package/dist/chunk-caqr6vy3.js +0 -2
- package/dist/chunk-cqrmkpzz.js +0 -8
- package/dist/chunk-ct356ajd.js +0 -2
- package/dist/chunk-f7vye9sd.js +0 -2
- package/dist/chunk-fdxzeydh.js +0 -1
- package/dist/chunk-fshxe4zp.js +0 -10
- package/dist/chunk-gx994ec4.js +0 -35
- package/dist/chunk-h124zbs5.js +0 -6
- package/dist/chunk-jex4n4zt.js +0 -55
- package/dist/chunk-nhsag58c.js +0 -2
- package/dist/chunk-nrk7cdfz.js +0 -2
- package/dist/chunk-p9h1e4xh.js +0 -2
- package/dist/chunk-qn0s5yy0.js +0 -5
- package/dist/chunk-qw71q60g.js +0 -2
- package/dist/chunk-tcf9cf6h.js +0 -3
- package/dist/chunk-v10ahksj.js +0 -2
- package/dist/chunk-vcq7jtzy.js +0 -240
- package/dist/chunk-vsgj9f0h.js +0 -2
- package/dist/chunk-wwzkw4by.js +0 -33
- package/dist/clean.d.ts +0 -3
- package/dist/cli.d.ts +0 -4
- package/dist/cloud.d.ts +0 -3
- package/dist/commit.d.ts +0 -3
- package/dist/configure.d.ts +0 -4
- package/dist/create.d.ts +0 -8
- package/dist/custom-cli.d.ts +0 -1
- package/dist/deploy.d.ts +0 -7
- package/dist/dns.d.ts +0 -18
- package/dist/domains.d.ts +0 -3
- package/dist/env.d.ts +0 -20
- package/dist/fresh.d.ts +0 -3
- package/dist/generate.d.ts +0 -3
- package/dist/http.d.ts +0 -6
- package/dist/index.d.ts +0 -1
- package/dist/install.d.ts +0 -3
- package/dist/key.d.ts +0 -3
- package/dist/lint.d.ts +0 -3
- package/dist/list.d.ts +0 -3
- package/dist/make.d.ts +0 -1
- package/dist/migrate.d.ts +0 -3
- package/dist/outdated.d.ts +0 -3
- package/dist/ports.d.ts +0 -6
- package/dist/prepublish.d.ts +0 -3
- package/dist/projects.d.ts +0 -3
- package/dist/queue.d.ts +0 -3
- package/dist/release.d.ts +0 -9
- package/dist/route.d.ts +0 -3
- package/dist/saas.d.ts +0 -3
- package/dist/schedule.d.ts +0 -3
- package/dist/search.d.ts +0 -3
- package/dist/seed.d.ts +0 -3
- package/dist/setup.d.ts +0 -8
- package/dist/test.d.ts +0 -3
- package/dist/tinker.d.ts +0 -3
- package/dist/types.d.ts +0 -3
- package/dist/upgrade.d.ts +0 -4
- package/dist/version.d.ts +0 -3
package/dist/chunk-qn0s5yy0.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{Ac as Xe,Ec as U}from"./chunk-85qckawc.js";import{Nc as D}from"./chunk-nhsag58c.js";import{Tc as C}from"./chunk-5asbctb1.js";var b=(e,t)=>{let r=[];if(e)r.push(e);if(t)for(let n of t)r.push(n);return r},S=(e,t)=>{return`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`},M=()=>{let e=[],t=[],r=!1,n=new Set,o=(a)=>a.sort((f,d)=>Q[d.step]-Q[f.step]||G[d.priority||"normal"]-G[f.priority||"normal"]),s=(a)=>{let f=!1,d=(m)=>{let y=b(m.name,m.aliases);if(y.includes(a)){f=!0;for(let l of y)n.delete(l);return!1}return!0};return e=e.filter(d),t=t.filter(d),f},i=(a)=>{let f=!1,d=(m)=>{if(m.middleware===a){f=!0;for(let y of b(m.name,m.aliases))n.delete(y);return!1}return!0};return e=e.filter(d),t=t.filter(d),f},c=(a)=>{return e.forEach((f)=>{a.add(f.middleware,{...f})}),t.forEach((f)=>{a.addRelativeTo(f.middleware,{...f})}),a.identifyOnResolve?.(E.identifyOnResolve()),a},p=(a)=>{let f=[];return a.before.forEach((d)=>{if(d.before.length===0&&d.after.length===0)f.push(d);else f.push(...p(d))}),f.push(a),a.after.reverse().forEach((d)=>{if(d.before.length===0&&d.after.length===0)f.push(d);else f.push(...p(d))}),f},x=(a=!1)=>{let f=[],d=[],m={};return e.forEach((l)=>{let h={...l,before:[],after:[]};for(let u of b(h.name,h.aliases))m[u]=h;f.push(h)}),t.forEach((l)=>{let h={...l,before:[],after:[]};for(let u of b(h.name,h.aliases))m[u]=h;d.push(h)}),d.forEach((l)=>{if(l.toMiddleware){let h=m[l.toMiddleware];if(h===void 0){if(a)return;throw new Error(`${l.toMiddleware} is not found when adding ${S(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")h.after.push(l);if(l.relation==="before")h.before.push(l)}}),o(f).map(p).reduce((l,h)=>{return l.push(...h),l},[])},E={add:(a,f={})=>{let{name:d,override:m,aliases:y}=f,l={step:"initialize",priority:"normal",middleware:a,...f},h=b(d,y);if(h.length>0){if(h.some((u)=>n.has(u))){if(!m)throw new Error(`Duplicate middleware name '${S(d,y)}'`);for(let u of h){let g=e.findIndex((A)=>A.name===u||A.aliases?.some((O)=>O===u));if(g===-1)continue;let T=e[g];if(T.step!==l.step||l.priority!==T.priority)throw new Error(`"${S(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${S(d,y)}" middleware with ${l.priority} priority in ${l.step} step.`);e.splice(g,1)}}for(let u of h)n.add(u)}e.push(l)},addRelativeTo:(a,f)=>{let{name:d,override:m,aliases:y}=f,l={middleware:a,...f},h=b(d,y);if(h.length>0){if(h.some((u)=>n.has(u))){if(!m)throw new Error(`Duplicate middleware name '${S(d,y)}'`);for(let u of h){let g=t.findIndex((A)=>A.name===u||A.aliases?.some((O)=>O===u));if(g===-1)continue;let T=t[g];if(T.toMiddleware!==l.toMiddleware||T.relation!==l.relation)throw new Error(`"${S(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${S(d,y)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);t.splice(g,1)}}for(let u of h)n.add(u)}t.push(l)},clone:()=>c(M()),use:(a)=>{a.applyToStack(E)},remove:(a)=>{if(typeof a==="string")return s(a);else return i(a)},removeByTag:(a)=>{let f=!1,d=(m)=>{let{tags:y,name:l,aliases:h}=m;if(y&&y.includes(a)){let u=b(l,h);for(let g of u)n.delete(g);return f=!0,!1}return!0};return e=e.filter(d),t=t.filter(d),f},concat:(a)=>{let f=c(M());return f.use(a),f.identifyOnResolve(r||f.identifyOnResolve()||(a.identifyOnResolve?.()??!1)),f},applyToStack:c,identify:()=>{return x(!0).map((a)=>{let f=a.step??a.relation+" "+a.toMiddleware;return S(a.name,a.aliases)+" - "+f})},identifyOnResolve(a){if(typeof a==="boolean")r=a;return r},resolve:(a,f)=>{for(let d of x().map((m)=>m.middleware).reverse())a=d(a,f);if(r)console.log(E.identify());return a}};return E},Q={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},G={high:3,normal:2,low:1};class $e{constructor(e){this.config=e,this.middlewareStack=M()}send(e,t,r){let n=typeof t!=="function"?t:void 0,o=typeof t==="function"?t:r,s=n===void 0&&this.config.cacheMiddleware===!0,i;if(s){if(!this.handlers)this.handlers=new WeakMap;let c=this.handlers;if(c.has(e.constructor))i=c.get(e.constructor);else i=e.resolveMiddleware(this.middlewareStack,this.config,n),c.set(e.constructor,i)}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(o)i(e).then((c)=>o(null,c.output),(c)=>o(c)).catch(()=>{});else return i(e).then((c)=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var Z=C(D(),1);class X{constructor(){this.middlewareStack=M()}static classBuilder(){return new K}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:i,outputFilterSensitiveLog:c,smithyContext:p,additionalContext:x,CommandCtor:E}){for(let y of n.bind(this)(E,e,t,r))this.middlewareStack.use(y);let a=e.concat(this.middlewareStack),{logger:f}=t,d={logger:f,clientName:o,commandName:s,inputFilterSensitiveLog:i,outputFilterSensitiveLog:c,[Z.SMITHY_CONTEXT_KEY]:{commandInstance:this,...p},...x},{requestHandler:m}=t;return a.resolve((y)=>m.handle(y.request,r||{}),d)}}class K{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(e)=>e,this._outputFilterSensitiveLog=(e)=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=(r)=>r,t=(r)=>r){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){let e=this,t;return t=class extends X{static getEndpointParameterInstructions(){return e._ep}constructor(...[r]){super();this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=r??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}var Me=C(U(),1);var pt="***SensitiveInformation***";var wt=(e)=>{if(e===null||e===void 0)return;if(typeof e==="number"){if(e===0||e===1)k.warn(_(`Expected boolean, got ${typeof e}: ${e}`));if(e===0)return!1;if(e===1)return!0}if(typeof e==="string"){let t=e.toLowerCase();if(t==="false"||t==="true")k.warn(_(`Expected boolean, got ${typeof e}: ${e}`));if(t==="false")return!1;if(t==="true")return!0}if(typeof e==="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)},ne=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string"){let t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e))k.warn(_(`Expected number but observed string: ${e}`));return t}}if(typeof e==="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)},Ie=Math.ceil(340282346638528860000000000000000000000),v=(e)=>{let t=ne(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0){if(Math.abs(t)>Ie)throw new TypeError(`Expected 32-bit float, got ${e}`)}return t},Ae=(e)=>{if(e===null||e===void 0)return;if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};var ee=(e)=>L(e,32),te=(e)=>L(e,16),re=(e)=>L(e,8),L=(e,t)=>{let r=Ae(e);if(r!==void 0&&Ne(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Ne=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},xt=(e,t)=>{if(e===null||e===void 0){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},Et=(e)=>{if(e===null||e===void 0)return;if(typeof e==="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},Tt=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string")return e;if(["boolean","number","bigint"].includes(typeof e))return k.warn(_(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};var oe=(e)=>{if(typeof e=="string")return v(R(e));return v(e)},_e=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,R=(e)=>{let t=e.match(_e);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},St=(e)=>{if(typeof e=="string")return ke(e);return ne(e)};var ke=(e)=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}};var bt=(e)=>{if(typeof e==="string")return ee(R(e));return ee(e)},z=(e)=>{if(typeof e==="string")return te(R(e));return te(e)},se=(e)=>{if(typeof e==="string")return re(R(e));return re(e)},_=(e)=>{return String(new TypeError(e).stack||e).split(`
|
|
2
|
-
`).slice(0,5).filter((t)=>!t.includes("stackTraceWarning")).join(`
|
|
3
|
-
`)},k={warn:console.warn};var Re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var Fe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),It=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Fe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,c,p,x]=t,E=z(H(n)),a=$(o,"month",1,12),f=$(s,"day",1,31);return ie(E,a,f,{hours:i,minutes:c,seconds:p,fractionalMilliseconds:x})},Pe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),At=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Pe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,c,p,x,E]=t,a=z(H(n)),f=$(o,"month",1,12),d=$(s,"day",1,31),m=ie(a,f,d,{hours:i,minutes:c,seconds:p,fractionalMilliseconds:x});if(E.toUpperCase()!="Z")m.setTime(m.getTime()-ze(E));return m},Nt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),_t=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),kt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);var ie=(e,t,r,n)=>{let o=t-1;return De(e,o,r),new Date(Date.UTC(e,o,r,$(n.hours,"hour",0,23),$(n.minutes,"minute",0,59),$(n.seconds,"seconds",0,60),Le(n.fractionalMilliseconds)))};var Oe=[31,28,31,30,31,30,31,31,30,31,30,31],De=(e,t,r)=>{let n=Oe[t];if(t===1&&Ue(e))n=29;if(r>n)throw new TypeError(`Invalid day for ${Re[t]} in ${e}: ${r}`)},Ue=(e)=>{return e%4===0&&(e%100!==0||e%400===0)},$=(e,t,r,n)=>{let o=se(H(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},Le=(e)=>{if(e===null||e===void 0)return 0;return oe("0."+e)*1000},ze=(e)=>{let t=e[0],r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1000},H=(e)=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0")t++;if(t===0)return e;return e.slice(t)};class N extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let t=e;return N.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let t=e;if(this===N)return N.isInstance(e);if(N.isInstance(e)){if(t.name&&this.name)return this.prototype.isPrototypeOf(e)||t.name===this.name;return this.prototype.isPrototypeOf(e)}return!1}}var ce=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,o])=>{if(e[n]==null||e[n]==="")e[n]=o});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};var He=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{let o=Be(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:t?.code||t?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw ce(i,t)},Ot=(e)=>{return({output:t,parsedBody:r,errorCode:n})=>{He({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})}},Be=(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 Ut=(e)=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var ae=!1,zt=(e)=>{if(e&&!ae&&parseInt(e.substring(1,e.indexOf(".")))<16)ae=!0};var We=C(U(),1);var B=C(D(),1);var fe=(e)=>{let t=[];for(let r in B.AlgorithmId){let n=B.AlgorithmId[r];if(e[n]===void 0)continue;t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{addChecksumAlgorithm(r){t.push(r)},checksumAlgorithms(){return t}}},de=(e)=>{let t={};return e.checksumAlgorithms().forEach((r)=>{t[r.algorithmId()]=r.checksumConstructor()}),t};var ue=(e)=>{return{setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}},le=(e)=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var qt=(e)=>{return Object.assign(fe(e),ue(e))};var Vt=(e)=>{return Object.assign(de(e),le(e))};var Xt=(e)=>Array.isArray(e)?e:[e];var er=(e)=>{return e!=null};var I=function e(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};I.from=(e)=>{if(e&&typeof e==="object"&&(e instanceof I||("deserializeJSON"in e)))return e;else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype)return I(String(e));return I(JSON.stringify(e))};I.fromObject=I.from;class Je{trace(){}debug(){}info(){}warn(){}error(){}}function je(e,t,r){let n,o,s;if(typeof t==="undefined"&&typeof r==="undefined")n={},s=e;else if(n=e,typeof t==="function")return o=t,s=r,Ye(n,o,s);else s=t;for(let i of Object.keys(s)){if(!Array.isArray(s[i])){n[i]=s[i];continue}he(n,null,s,i)}return n}var or=(e,t)=>{let r={};for(let n in t)he(r,e,t,n);return r},Ye=(e,t,r)=>{return je(e,Object.entries(r).reduce((n,[o,s])=>{if(Array.isArray(s))n[o]=s;else if(typeof s==="function")n[o]=[t,s()];else n[o]=[t,s];return n},{}))},he=(e,t,r,n)=>{if(t!==null){let i=r[n];if(typeof i==="function")i=[,i];let[c=qe,p=Ve,x=n]=i;if(typeof c==="function"&&c(t[x])||typeof c!=="function"&&!!c)e[n]=p(t[x]);return}let[o,s]=r[n];if(typeof s==="function"){let i,c=o===void 0&&(i=s())!=null,p=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(c)e[n]=i;else if(p)e[n]=s()}else{let i=o===void 0&&s!=null,c=typeof o==="function"&&!!o(s)||typeof o!=="function"&&!!o;if(i||c)e[n]=s}},qe=(e)=>e!=null,Ve=(e)=>e;var Qe=C(U(),1);var me=(e)=>{if(e==null)return{};if(Array.isArray(e))return e.filter((t)=>t!=null).map(me);if(typeof e==="object"){let t={};for(let r of Object.keys(e)){if(e[r]==null)continue;t[r]=me(e[r])}return t}return e};var Lr=(e)=>{return{setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}},zr=(e)=>{return{httpHandler:e.httpHandler()}};var Ge=C(D(),1);class W{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let t=new W({...e,headers:{...e.headers}});if(t.query)t.query=Ze(t.query);return t}static isInstance(e){if(!e)return!1;let t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query==="object"&&typeof t.headers==="object"}clone(){return W.clone(this)}}function Ze(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class F{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}var P=C(Xe(),1);function J(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=P.escapeUri(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)t.push(`${r}=${P.escapeUri(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${P.escapeUri(n)}`;t.push(o)}}return t.join("&")}import{Agent as be,request as tt}from"node:http";import{Agent as Ce,request as rt}from"node:https";var pe=["ECONNRESET","EPIPE","ETIMEDOUT"];var j=(e)=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};var w={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)};var ye=1000,ge=(e,t,r=0)=>{if(!r)return-1;let n=(o)=>{let s=w.setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r-o),i=(c)=>{if(c?.connecting)c.on("connect",()=>{w.clearTimeout(s)});else w.clearTimeout(s)};if(e.socket)i(e.socket);else e.on("socket",i)};if(r<2000)return n(0),0;return w.setTimeout(n.bind(null,ye),ye)};var Ke=3000,we=(e,{keepAlive:t,keepAliveMsecs:r},n=Ke)=>{if(t!==!0)return-1;let o=()=>{if(e.socket)e.socket.setKeepAlive(t,r||0);else e.on("socket",(s)=>{s.setKeepAlive(t,r||0)})};if(n===0)return o(),0;return w.setTimeout(o,n)};var xe=3000,Ee=(e,t,r=Te)=>{let n=(o)=>{let s=r-o,i=()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(s,i),e.on("close",()=>e.socket?.removeListener("timeout",i));else e.setTimeout(s,i)};if(0<r&&r<6000)return n(0),0;return w.setTimeout(n.bind(null,r===0?0:xe),xe)};import{Readable as ve}from"node:stream";var Se=6000;async function Y(e,t,r=Se){let n=t.headers??{},o=n.Expect||n.expect,s=-1,i=!0;if(o==="100-continue")i=await Promise.race([new Promise((c)=>{s=Number(w.setTimeout(()=>c(!0),Math.max(Se,r)))}),new Promise((c)=>{e.on("continue",()=>{w.clearTimeout(s),c(!0)}),e.on("response",()=>{w.clearTimeout(s),c(!1)}),e.on("error",()=>{w.clearTimeout(s),c(!1)})})]);if(i)et(e,t.body)}function et(e,t){if(t instanceof ve){t.pipe(e);return}if(t){if(Buffer.isBuffer(t)||typeof t==="string"){e.end(t);return}let r=t;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}var Te=0;class q{static create(e){if(typeof e?.handle==="function")return e;return new q(e)}static checkSocketUsage(e,t,r=console){let{sockets:n,requests:o,maxSockets:s}=e;if(typeof s!=="number"||s===1/0)return t;let i=15000;if(Date.now()-i<t)return t;if(n&&o)for(let c in n){let p=n[c]?.length??0,x=o[c]?.length??0;if(p>=s&&x>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${p} and ${x} additional requests are enqueued.
|
|
4
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
5
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{if(typeof e==="function")e().then((n)=>{t(this.resolveDefaultConfig(n))}).catch(r);else t(this.resolveDefaultConfig(e))})}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:r,socketTimeout:n,socketAcquisitionWarningTimeout:o,httpAgent:s,httpsAgent:i}=e||{},c=!0,p=50;return{connectionTimeout:r,requestTimeout:t??n,socketAcquisitionWarningTimeout:o,httpAgent:(()=>{if(s instanceof be||typeof s?.destroy==="function")return s;return new be({keepAlive:!0,maxSockets:50,...s})})(),httpsAgent:(()=>{if(i instanceof Ce||typeof i?.destroy==="function")return i;return new Ce({keepAlive:!0,maxSockets:50,...i})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config)this.config=await this.configProvider;return new Promise((r,n)=>{let o=void 0,s=[],i=async(u)=>{await o,s.forEach(w.clearTimeout),r(u)},c=async(u)=>{await o,s.forEach(w.clearTimeout),n(u)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t?.aborted){let u=new Error("Request aborted");u.name="AbortError",c(u);return}let p=e.protocol==="https:",x=p?this.config.httpsAgent:this.config.httpAgent;s.push(w.setTimeout(()=>{this.socketWarningTimestamp=q.checkSocketUsage(x,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let E=J(e.query||{}),a=void 0;if(e.username!=null||e.password!=null){let u=e.username??"",g=e.password??"";a=`${u}:${g}`}let f=e.path;if(E)f+=`?${E}`;if(e.fragment)f+=`#${e.fragment}`;let d=e.hostname??"";if(d[0]==="["&&d.endsWith("]"))d=e.hostname.slice(1,-1);else d=e.hostname;let m={headers:e.headers,host:d,method:e.method,path:f,port:e.port,agent:x,auth:a},l=(p?rt:tt)(m,(u)=>{let g=new F({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:j(u.headers),body:u});i({response:g})});if(l.on("error",(u)=>{if(pe.includes(u.code))c(Object.assign(u,{name:"TimeoutError"}));else c(u)}),t){let u=()=>{l.destroy();let g=new Error("Request aborted");g.name="AbortError",c(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",u,{once:!0}),l.once("close",()=>g.removeEventListener("abort",u))}else t.onabort=u}s.push(ge(l,c,this.config.connectionTimeout)),s.push(Ee(l,c,this.config.requestTimeout));let h=m.agent;if(typeof h==="object"&&"keepAlive"in h)s.push(we(l,{keepAlive:h.keepAlive,keepAliveMsecs:h.keepAliveMsecs}));o=Y(l,e,this.config.requestTimeout).catch((u)=>{return s.forEach(w.clearTimeout),n(u)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as nt}from"node:stream";class V extends nt{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,r){this.bufferedBytes.push(e),r()}}var jn=(e)=>{if(ot(e))return st(e);return new Promise((t,r)=>{let n=new V;e.pipe(n),e.on("error",(o)=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));t(o)})})},ot=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function st(e){let t=[],r=e.getReader(),n=!1,o=0;while(!n){let{done:c,value:p}=await r.read();if(p)t.push(p),o+=p.length;n=c}let s=new Uint8Array(o),i=0;for(let c of t)s.set(c,i),i+=c.length;return s}export{Lr as Lb,zr as Mb,W as Nb,F as Ob,$e as Pb,X as Qb,pt as Rb,wt as Sb,ee as Tb,xt as Ub,Et as Vb,Tt as Wb,St as Xb,bt as Yb,It as Zb,At as _b,N as $b,ce as ac,Ot as bc,Ut as cc,zt as dc,qt as ec,Vt as fc,Xt as gc,er as hc,Je as ic,je as jc,or as kc,me as lc,q as mc,jn as nc};
|
package/dist/chunk-qw71q60g.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rc as T}from"./chunk-0x2p8v0y.js";import{Sc as f}from"./chunk-nrk7cdfz.js";import{Tc as E,Yc as p}from"./chunk-5asbctb1.js";var c=E(T(),1),N=E(f(),1);import{readFileSync as A}from"node: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-3q6hnzy0.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};
|
package/dist/chunk-tcf9cf6h.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{oc as f0,pc as X6,qc as $7,sc as Q2,tc as rj,uc as W2}from"./chunk-8yy9tk7n.js";import{vc as l,xc as o2,yc as t2}from"./chunk-85qckawc.js";import{Nc as S1}from"./chunk-nhsag58c.js";import{Sc as a0}from"./chunk-nrk7cdfz.js";import{Vc as q,Yc as F}from"./chunk-5asbctb1.js";var a5=q((F9,D1)=>{var{defineProperty:r,getOwnPropertyDescriptor:c5,getOwnPropertyNames:d5}=Object,l5=Object.prototype.hasOwnProperty,n=(j,$)=>r(j,"name",{value:$,configurable:!0}),_5=(j,$)=>{for(var z in $)r(j,z,{get:$[z],enumerable:!0})},s5=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of d5($))if(!l5.call(j,Q)&&Q!==z)r(j,Q,{get:()=>$[Q],enumerable:!(W=c5($,Q))||W.enumerable})}return j},m5=(j)=>s5(r({},"__esModule",{value:!0}),j),L1={};_5(L1,{getHostHeaderPlugin:()=>i5,hostHeaderMiddleware:()=>b1,hostHeaderMiddlewareOptions:()=>F1,resolveHostHeaderConfig:()=>M1});D1.exports=m5(L1);var p5=l();function M1(j){return j}n(M1,"resolveHostHeaderConfig");var b1=n((j)=>($)=>async(z)=>{if(!p5.HttpRequest.isInstance(z.request))return $(z);let{request:W}=z,{handlerProtocol:Q=""}=j.requestHandler.metadata||{};if(Q.indexOf("h2")>=0&&!W.headers[":authority"])delete W.headers.host,W.headers[":authority"]=W.hostname+(W.port?":"+W.port:"");else if(!W.headers.host){let Z=W.hostname;if(W.port!=null)Z+=`:${W.port}`;W.headers.host=Z}return $(z)},"hostHeaderMiddleware"),F1={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},i5=n((j)=>({applyToStack:n(($)=>{$.add(b1(j),F1)},"applyToStack")}),"getHostHeaderPlugin")});var zj=q((D9,C1)=>{var{defineProperty:o,getOwnPropertyDescriptor:n5,getOwnPropertyNames:r5}=Object,o5=Object.prototype.hasOwnProperty,R0=(j,$)=>o(j,"name",{value:$,configurable:!0}),t5=(j,$)=>{for(var z in $)o(j,z,{get:$[z],enumerable:!0})},e5=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of r5($))if(!o5.call(j,Q)&&Q!==z)o(j,Q,{get:()=>$[Q],enumerable:!(W=n5($,Q))||W.enumerable})}return j},jj=(j)=>e5(o({},"__esModule",{value:!0}),j),h1={};t5(h1,{getLoggerPlugin:()=>$j,loggerMiddleware:()=>N1,loggerMiddlewareOptions:()=>O1});C1.exports=jj(h1);var N1=R0(()=>(j,$)=>async(z)=>{try{let W=await j(z),{clientName:Q,commandName:Z,logger:X,dynamoDbDocumentClientOptions:J={}}=$,{overrideInputFilterSensitiveLog:K,overrideOutputFilterSensitiveLog:G}=J,V=K??$.inputFilterSensitiveLog,Y=G??$.outputFilterSensitiveLog,{$metadata:B,...b}=W.output;return X?.info?.({clientName:Q,commandName:Z,input:V(z.input),output:Y(b),metadata:B}),W}catch(W){let{clientName:Q,commandName:Z,logger:X,dynamoDbDocumentClientOptions:J={}}=$,{overrideInputFilterSensitiveLog:K}=J,G=K??$.inputFilterSensitiveLog;throw X?.error?.({clientName:Q,commandName:Z,input:G(z.input),error:W,metadata:W.$metadata}),W}},"loggerMiddleware"),O1={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},$j=R0((j)=>({applyToStack:R0(($)=>{$.add(N1(),O1)},"applyToStack")}),"getLoggerPlugin")});var Vj=q((h9,R1)=>{var{defineProperty:e,getOwnPropertyDescriptor:Qj,getOwnPropertyNames:Wj}=Object,Zj=Object.prototype.hasOwnProperty,t=(j,$)=>e(j,"name",{value:$,configurable:!0}),Xj=(j,$)=>{for(var z in $)e(j,z,{get:$[z],enumerable:!0})},Jj=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of Wj($))if(!Zj.call(j,Q)&&Q!==z)e(j,Q,{get:()=>$[Q],enumerable:!(W=Qj($,Q))||W.enumerable})}return j},Kj=(j)=>Jj(e({},"__esModule",{value:!0}),j),T1={};Xj(T1,{addRecursionDetectionMiddlewareOptions:()=>v1,getRecursionDetectionPlugin:()=>qj,recursionDetectionMiddleware:()=>I1});R1.exports=Kj(T1);var Gj=l(),S0="X-Amzn-Trace-Id",Yj="AWS_LAMBDA_FUNCTION_NAME",Bj="_X_AMZN_TRACE_ID",I1=t((j)=>($)=>async(z)=>{let{request:W}=z;if(!Gj.HttpRequest.isInstance(W)||j.runtime!=="node")return $(z);let Q=Object.keys(W.headers??{}).find((K)=>K.toLowerCase()===S0.toLowerCase())??S0;if(W.headers.hasOwnProperty(Q))return $(z);let Z=process.env[Yj],X=process.env[Bj],J=t((K)=>typeof K==="string"&&K.length>0,"nonEmptyString");if(J(Z)&&J(X))W.headers[S0]=X;return $({...z,request:W})},"recursionDetectionMiddleware"),v1={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},qj=t((j)=>({applyToStack:t(($)=>{$.add(I1(j),v1)},"applyToStack")}),"getRecursionDetectionPlugin")});var c1=q((N9,u1)=>{var{defineProperty:j0,getOwnPropertyDescriptor:Hj,getOwnPropertyNames:wj}=Object,Uj=Object.prototype.hasOwnProperty,H=(j,$)=>j0(j,"name",{value:$,configurable:!0}),Lj=(j,$)=>{for(var z in $)j0(j,z,{get:$[z],enumerable:!0})},Mj=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of wj($))if(!Uj.call(j,Q)&&Q!==z)j0(j,Q,{get:()=>$[Q],enumerable:!(W=Hj($,Q))||W.enumerable})}return j},bj=(j)=>Mj(j0({},"__esModule",{value:!0}),j),k1={};Lj(k1,{EndpointCache:()=>Fj,EndpointError:()=>h,customEndpointFunctions:()=>P0,isIpAddress:()=>P1,isValidHostLabel:()=>x0,resolveEndpoint:()=>uj});u1.exports=bj(k1);var Fj=class{constructor({size:j,params:$}){if(this.data=new Map,this.parameters=[],this.capacity=j??50,$)this.parameters=$}static{H(this,"EndpointCache")}get(j,$){let z=this.hash(j);if(z===!1)return $();if(!this.data.has(z)){if(this.data.size>this.capacity+10){let W=this.data.keys(),Q=0;while(!0){let{value:Z,done:X}=W.next();if(this.data.delete(Z),X||++Q>10)break}}this.data.set(z,$())}return this.data.get(z)}size(){return this.data.size}hash(j){let $="",{parameters:z}=this;if(z.length===0)return!1;for(let W of z){let Q=String(j[W]??"");if(Q.includes("|;"))return!1;$+=Q+"|;"}return $}},Dj=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),P1=H((j)=>Dj.test(j)||j.startsWith("[")&&j.endsWith("]"),"isIpAddress"),hj=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),x0=H((j,$=!1)=>{if(!$)return hj.test(j);let z=j.split(".");for(let W of z)if(!x0(W))return!1;return!0},"isValidHostLabel"),P0={},_="endpoints";function k(j){if(typeof j!=="object"||j==null)return j;if("ref"in j)return`$${k(j.ref)}`;if("fn"in j)return`${j.fn}(${(j.argv||[]).map(k).join(", ")})`;return JSON.stringify(j,null,2)}H(k,"toDebugString");var h=class extends Error{static{H(this,"EndpointError")}constructor(j){super(j);this.name="EndpointError"}},Nj=H((j,$)=>j===$,"booleanEquals"),Oj=H((j)=>{let $=j.split("."),z=[];for(let W of $){let Q=W.indexOf("[");if(Q!==-1){if(W.indexOf("]")!==W.length-1)throw new h(`Path: '${j}' does not end with ']'`);let Z=W.slice(Q+1,-1);if(Number.isNaN(parseInt(Z)))throw new h(`Invalid array index: '${Z}' in path: '${j}'`);if(Q!==0)z.push(W.slice(0,Q));z.push(Z)}else z.push(W)}return z},"getAttrPathList"),A1=H((j,$)=>Oj($).reduce((z,W)=>{if(typeof z!=="object")throw new h(`Index '${W}' in '${$}' not found in '${JSON.stringify(j)}'`);else if(Array.isArray(z))return z[parseInt(W)];return z[W]},j),"getAttr"),Cj=H((j)=>j!=null,"isSet"),Tj=H((j)=>!j,"not"),A0=S1(),k0={[A0.EndpointURLScheme.HTTP]:80,[A0.EndpointURLScheme.HTTPS]:443},Ij=H((j)=>{let $=(()=>{try{if(j instanceof URL)return j;if(typeof j==="object"&&"hostname"in j){let{hostname:B,port:b,protocol:D="",path:O="",query:g5={}}=j,U1=new URL(`${D}//${B}${b?`:${b}`:""}${O}`);return U1.search=Object.entries(g5).map(([f5,u5])=>`${f5}=${u5}`).join("&"),U1}return new URL(j)}catch(B){return null}})();if(!$)return console.error(`Unable to parse ${JSON.stringify(j)} as a whatwg URL.`),null;let z=$.href,{host:W,hostname:Q,pathname:Z,protocol:X,search:J}=$;if(J)return null;let K=X.slice(0,-1);if(!Object.values(A0.EndpointURLScheme).includes(K))return null;let G=P1(Q),V=z.includes(`${W}:${k0[K]}`)||typeof j==="string"&&j.includes(`${W}:${k0[K]}`),Y=`${W}${V?`:${k0[K]}`:""}`;return{scheme:K,authority:Y,path:Z,normalizedPath:Z.endsWith("/")?Z:`${Z}/`,isIp:G}},"parseURL"),vj=H((j,$)=>j===$,"stringEquals"),Rj=H((j,$,z,W)=>{if($>=z||j.length<z)return null;if(!W)return j.substring($,z);return j.substring(j.length-z,j.length-$)},"substring"),Sj=H((j)=>encodeURIComponent(j).replace(/[!*'()]/g,($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),kj={booleanEquals:Nj,getAttr:A1,isSet:Cj,isValidHostLabel:x0,not:Tj,parseURL:Ij,stringEquals:vj,substring:Rj,uriEncode:Sj},x1=H((j,$)=>{let z=[],W={...$.endpointParams,...$.referenceRecord},Q=0;while(Q<j.length){let Z=j.indexOf("{",Q);if(Z===-1){z.push(j.slice(Q));break}z.push(j.slice(Q,Z));let X=j.indexOf("}",Z);if(X===-1){z.push(j.slice(Z));break}if(j[Z+1]==="{"&&j[X+1]==="}")z.push(j.slice(Z+1,X)),Q=X+2;let J=j.substring(Z+1,X);if(J.includes("#")){let[K,G]=J.split("#");z.push(A1(W[K],G))}else z.push(W[J]);Q=X+1}return z.join("")},"evaluateTemplate"),Pj=H(({ref:j},$)=>{return{...$.endpointParams,...$.referenceRecord}[j]},"getReferenceValue"),$0=H((j,$,z)=>{if(typeof j==="string")return x1(j,z);else if(j.fn)return E1(j,z);else if(j.ref)return Pj(j,z);throw new h(`'${$}': ${String(j)} is not a string, function or reference.`)},"evaluateExpression"),E1=H(({fn:j,argv:$},z)=>{let W=$.map((Z)=>["boolean","number"].includes(typeof Z)?Z:$0(Z,"arg",z)),Q=j.split(".");if(Q[0]in P0&&Q[1]!=null)return P0[Q[0]][Q[1]](...W);return kj[j](...W)},"callFunction"),Aj=H(({assign:j,...$},z)=>{if(j&&j in z.referenceRecord)throw new h(`'${j}' is already defined in Reference Record.`);let W=E1($,z);return z.logger?.debug?.(`${_} evaluateCondition: ${k($)} = ${k(W)}`),{result:W===""?!0:!!W,...j!=null&&{toAssign:{name:j,value:W}}}},"evaluateCondition"),E0=H((j=[],$)=>{let z={};for(let W of j){let{result:Q,toAssign:Z}=Aj(W,{...$,referenceRecord:{...$.referenceRecord,...z}});if(!Q)return{result:Q};if(Z)z[Z.name]=Z.value,$.logger?.debug?.(`${_} assign: ${Z.name} := ${k(Z.value)}`)}return{result:!0,referenceRecord:z}},"evaluateConditions"),xj=H((j,$)=>Object.entries(j).reduce((z,[W,Q])=>({...z,[W]:Q.map((Z)=>{let X=$0(Z,"Header value entry",$);if(typeof X!=="string")throw new h(`Header '${W}' value '${X}' is not a string`);return X})}),{}),"getEndpointHeaders"),y1=H((j,$)=>{if(Array.isArray(j))return j.map((z)=>y1(z,$));switch(typeof j){case"string":return x1(j,$);case"object":if(j===null)throw new h(`Unexpected endpoint property: ${j}`);return g1(j,$);case"boolean":return j;default:throw new h(`Unexpected endpoint property type: ${typeof j}`)}},"getEndpointProperty"),g1=H((j,$)=>Object.entries(j).reduce((z,[W,Q])=>({...z,[W]:y1(Q,$)}),{}),"getEndpointProperties"),Ej=H((j,$)=>{let z=$0(j,"Endpoint URL",$);if(typeof z==="string")try{return new URL(z)}catch(W){throw console.error(`Failed to construct URL with ${z}`,W),W}throw new h(`Endpoint URL must be a string, got ${typeof z}`)},"getEndpointUrl"),yj=H((j,$)=>{let{conditions:z,endpoint:W}=j,{result:Q,referenceRecord:Z}=E0(z,$);if(!Q)return;let X={...$,referenceRecord:{...$.referenceRecord,...Z}},{url:J,properties:K,headers:G}=W;return $.logger?.debug?.(`${_} Resolving endpoint from template: ${k(W)}`),{...G!=null&&{headers:xj(G,X)},...K!=null&&{properties:g1(K,X)},url:Ej(J,X)}},"evaluateEndpointRule"),gj=H((j,$)=>{let{conditions:z,error:W}=j,{result:Q,referenceRecord:Z}=E0(z,$);if(!Q)return;throw new h($0(W,"Error",{...$,referenceRecord:{...$.referenceRecord,...Z}}))},"evaluateErrorRule"),fj=H((j,$)=>{let{conditions:z,rules:W}=j,{result:Q,referenceRecord:Z}=E0(z,$);if(!Q)return;return f1(W,{...$,referenceRecord:{...$.referenceRecord,...Z}})},"evaluateTreeRule"),f1=H((j,$)=>{for(let z of j)if(z.type==="endpoint"){let W=yj(z,$);if(W)return W}else if(z.type==="error")gj(z,$);else if(z.type==="tree"){let W=fj(z,$);if(W)return W}else throw new h(`Unknown endpoint rule: ${z}`);throw new h("Rules evaluation failed")},"evaluateRules"),uj=H((j,$)=>{let{endpointParams:z,logger:W}=$,{parameters:Q,rules:Z}=j;$.logger?.debug?.(`${_} Initial EndpointParams: ${k(z)}`);let X=Object.entries(Q).filter(([,G])=>G.default!=null).map(([G,V])=>[G,V.default]);if(X.length>0)for(let[G,V]of X)z[G]=z[G]??V;let J=Object.entries(Q).filter(([,G])=>G.required).map(([G])=>G);for(let G of J)if(z[G]==null)throw new h(`Missing required parameter: '${G}'`);let K=f1(Z,{endpointParams:z,logger:W,referenceRecord:{}});return $.logger?.debug?.(`${_} Resolved endpoint: ${k(K)}`),K},"resolveEndpoint")});var o1=q((T9,r1)=>{var{defineProperty:z0,getOwnPropertyDescriptor:cj,getOwnPropertyNames:dj}=Object,lj=Object.prototype.hasOwnProperty,y=(j,$)=>z0(j,"name",{value:$,configurable:!0}),_j=(j,$)=>{for(var z in $)z0(j,z,{get:$[z],enumerable:!0})},sj=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of dj($))if(!lj.call(j,Q)&&Q!==z)z0(j,Q,{get:()=>$[Q],enumerable:!(W=cj($,Q))||W.enumerable})}return j},mj=(j)=>sj(z0({},"__esModule",{value:!0}),j),l1={};_j(l1,{ConditionObject:()=>w.ConditionObject,DeprecatedObject:()=>w.DeprecatedObject,EndpointError:()=>w.EndpointError,EndpointObject:()=>w.EndpointObject,EndpointObjectHeaders:()=>w.EndpointObjectHeaders,EndpointObjectProperties:()=>w.EndpointObjectProperties,EndpointParams:()=>w.EndpointParams,EndpointResolverOptions:()=>w.EndpointResolverOptions,EndpointRuleObject:()=>w.EndpointRuleObject,ErrorRuleObject:()=>w.ErrorRuleObject,EvaluateOptions:()=>w.EvaluateOptions,Expression:()=>w.Expression,FunctionArgv:()=>w.FunctionArgv,FunctionObject:()=>w.FunctionObject,FunctionReturn:()=>w.FunctionReturn,ParameterObject:()=>w.ParameterObject,ReferenceObject:()=>w.ReferenceObject,ReferenceRecord:()=>w.ReferenceRecord,RuleSetObject:()=>w.RuleSetObject,RuleSetRules:()=>w.RuleSetRules,TreeRuleObject:()=>w.TreeRuleObject,awsEndpointFunctions:()=>n1,getUserAgentPrefix:()=>nj,isIpAddress:()=>w.isIpAddress,partition:()=>i1,resolveEndpoint:()=>w.resolveEndpoint,setPartitionInfo:()=>a1,useDefaultPartitionInfo:()=>aj});r1.exports=mj(l1);var w=c1(),_1=y((j,$=!1)=>{if($){for(let z of j.split("."))if(!_1(z))return!1;return!0}if(!w.isValidHostLabel(j))return!1;if(j.length<3||j.length>63)return!1;if(j!==j.toLowerCase())return!1;if(w.isIpAddress(j))return!1;return!0},"isVirtualHostableS3Bucket"),d1=":",pj="/",ij=y((j)=>{let $=j.split(d1);if($.length<6)return null;let[z,W,Q,Z,X,...J]=$;if(z!=="arn"||W===""||Q===""||J.join(d1)==="")return null;let K=J.map((G)=>G.split(pj)).flat();return{partition:W,service:Q,region:Z,accountId:X,resourceId:K}},"parseArn"),s1={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-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-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"AWS Standard 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 China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{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 GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) 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:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"},m1=s1,p1="",i1=y((j)=>{let{partitions:$}=m1;for(let W of $){let{regions:Q,outputs:Z}=W;for(let[X,J]of Object.entries(Q))if(X===j)return{...Z,...J}}for(let W of $){let{regionRegex:Q,outputs:Z}=W;if(new RegExp(Q).test(j))return{...Z}}let z=$.find((W)=>W.id==="aws");if(!z)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...z.outputs}},"partition"),a1=y((j,$="")=>{m1=j,p1=$},"setPartitionInfo"),aj=y(()=>{a1(s1,"")},"useDefaultPartitionInfo"),nj=y(()=>p1,"getUserAgentPrefix"),n1={isVirtualHostableS3Bucket:_1,parseArn:ij,partition:i1};w.customEndpointFunctions.aws=n1});var B7=q((I9,Y7)=>{var{defineProperty:W0,getOwnPropertyDescriptor:oj,getOwnPropertyNames:tj}=Object,ej=Object.prototype.hasOwnProperty,P=(j,$)=>W0(j,"name",{value:$,configurable:!0}),j8=(j,$)=>{for(var z in $)W0(j,z,{get:$[z],enumerable:!0})},$8=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of tj($))if(!ej.call(j,Q)&&Q!==z)W0(j,Q,{get:()=>$[Q],enumerable:!(W=oj($,Q))||W.enumerable})}return j},z8=(j)=>$8(W0({},"__esModule",{value:!0}),j),z7={};j8(z7,{DEFAULT_UA_APP_ID:()=>Q7,getUserAgentMiddlewareOptions:()=>G7,getUserAgentPlugin:()=>Y8,resolveUserAgentConfig:()=>Z7,userAgentMiddleware:()=>K7});Y7.exports=z8(z7);var Q8=$7(),Q7=void 0;function W7(j){if(j===void 0)return!0;return typeof j==="string"&&j.length<=50}P(W7,"isValidUserAgentAppId");function Z7(j){let $=Q8.normalizeProvider(j.userAgentAppId??Q7),{customUserAgent:z}=j;return Object.assign(j,{customUserAgent:typeof z==="string"?[[z]]:z,userAgentAppId:P(async()=>{let W=await $();if(!W7(W)){let Q=j.logger?.constructor?.name==="NoOpLogger"||!j.logger?console:j.logger;if(typeof W!=="string")Q?.warn("userAgentAppId must be a string or undefined.");else if(W.length>50)Q?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return W},"userAgentAppId")})}P(Z7,"resolveUserAgentConfig");var W8=o1(),Z8=l(),v=rj(),X8=/\d{12}\.ddb/;async function X7(j,$,z){if(z.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")v.setFeature(j,"PROTOCOL_RPC_V2_CBOR","M");if(typeof $.retryStrategy==="function"){let Z=await $.retryStrategy();if(typeof Z.acquireInitialRetryToken==="function")if(Z.constructor?.name?.includes("Adaptive"))v.setFeature(j,"RETRY_MODE_ADAPTIVE","F");else v.setFeature(j,"RETRY_MODE_STANDARD","E");else v.setFeature(j,"RETRY_MODE_LEGACY","D")}if(typeof $.accountIdEndpointMode==="function"){let Z=j.endpointV2;if(String(Z?.url?.hostname).match(X8))v.setFeature(j,"ACCOUNT_ID_ENDPOINT","O");switch(await $.accountIdEndpointMode?.()){case"disabled":v.setFeature(j,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":v.setFeature(j,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":v.setFeature(j,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let Q=j.__smithy_context?.selectedHttpAuthScheme?.identity;if(Q?.$source){let Z=Q;if(Z.accountId)v.setFeature(j,"RESOLVED_ACCOUNT_ID","T");for(let[X,J]of Object.entries(Z.$source??{}))v.setFeature(j,X,J)}}P(X7,"checkFeatures");var t1="user-agent",y0="x-amz-user-agent",e1=" ",g0="/",J8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,K8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,j7="-",G8=1024;function J7(j){let $="";for(let z in j){let W=j[z];if($.length+W.length+1<=G8){if($.length)$+=","+W;else $+=W;continue}break}return $}P(J7,"encodeFeatures");var K7=P((j)=>($,z)=>async(W)=>{let{request:Q}=W;if(!Z8.HttpRequest.isInstance(Q))return $(W);let{headers:Z}=Q,X=z?.userAgent?.map(Q0)||[],J=(await j.defaultUserAgentProvider()).map(Q0);await X7(z,j,W);let K=z;J.push(`m/${J7(Object.assign({},z.__smithy_context?.features,K.__aws_sdk_context?.features))}`);let G=j?.customUserAgent?.map(Q0)||[],V=await j.userAgentAppId();if(V)J.push(Q0([`app/${V}`]));let Y=W8.getUserAgentPrefix(),B=(Y?[Y]:[]).concat([...J,...X,...G]).join(e1),b=[...J.filter((D)=>D.startsWith("aws-sdk-")),...G].join(e1);if(j.runtime!=="browser"){if(b)Z[y0]=Z[y0]?`${Z[t1]} ${b}`:b;Z[t1]=B}else Z[y0]=B;return $({...W,request:Q})},"userAgentMiddleware"),Q0=P((j)=>{let $=j[0].split(g0).map((X)=>X.replace(J8,j7)).join(g0),z=j[1]?.replace(K8,j7),W=$.indexOf(g0),Q=$.substring(0,W),Z=$.substring(W+1);if(Q==="api")Z=Z.toLowerCase();return[Q,Z,z].filter((X)=>X&&X.length>0).reduce((X,J,K)=>{switch(K){case 0:return J;case 1:return`${X}/${J}`;default:return`${X}#${J}`}},"")},"escapeUserAgent"),G7={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Y8=P((j)=>({applyToStack:P(($)=>{$.add(K7(j),G7)},"applyToStack")}),"getUserAgentPlugin")});var U7=q((v9,w7)=>{var{defineProperty:Z0,getOwnPropertyDescriptor:B8,getOwnPropertyNames:q8}=Object,V8=Object.prototype.hasOwnProperty,q7=(j,$)=>Z0(j,"name",{value:$,configurable:!0}),H8=(j,$)=>{for(var z in $)Z0(j,z,{get:$[z],enumerable:!0})},w8=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of q8($))if(!V8.call(j,Q)&&Q!==z)Z0(j,Q,{get:()=>$[Q],enumerable:!(W=B8($,Q))||W.enumerable})}return j},U8=(j)=>w8(Z0({},"__esModule",{value:!0}),j),V7={};H8(V7,{SelectorType:()=>H7,booleanSelector:()=>L8,numberSelector:()=>M8});w7.exports=U8(V7);var L8=q7((j,$,z)=>{if(!($ in j))return;if(j[$]==="true")return!0;if(j[$]==="false")return!1;throw new Error(`Cannot load ${z} "${$}". Expected "true" or "false", got ${j[$]}.`)},"booleanSelector"),M8=q7((j,$,z)=>{if(!($ in j))return;let W=parseInt(j[$],10);if(Number.isNaN(W))throw new TypeError(`Cannot load ${z} '${$}'. Expected number, got '${j[$]}'.`);return W},"numberSelector"),H7=((j)=>{return j.ENV="env",j.CONFIG="shared config entry",j})(H7||{})});var v7=q((R9,I7)=>{var{defineProperty:J0,getOwnPropertyDescriptor:b8,getOwnPropertyNames:F8}=Object,D8=Object.prototype.hasOwnProperty,C=(j,$)=>J0(j,"name",{value:$,configurable:!0}),h8=(j,$)=>{for(var z in $)J0(j,z,{get:$[z],enumerable:!0})},N8=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of F8($))if(!D8.call(j,Q)&&Q!==z)J0(j,Q,{get:()=>$[Q],enumerable:!(W=b8($,Q))||W.enumerable})}return j},O8=(j)=>N8(J0({},"__esModule",{value:!0}),j),b7={};h8(b7,{CONFIG_USE_DUALSTACK_ENDPOINT:()=>D7,CONFIG_USE_FIPS_ENDPOINT:()=>N7,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>C8,DEFAULT_USE_FIPS_ENDPOINT:()=>I8,ENV_USE_DUALSTACK_ENDPOINT:()=>F7,ENV_USE_FIPS_ENDPOINT:()=>h7,NODE_REGION_CONFIG_FILE_OPTIONS:()=>A8,NODE_REGION_CONFIG_OPTIONS:()=>P8,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>T8,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>v8,REGION_ENV_NAME:()=>O7,REGION_INI_NAME:()=>C7,getRegionInfo:()=>f8,resolveCustomEndpointsConfig:()=>R8,resolveEndpointsConfig:()=>k8,resolveRegionConfig:()=>x8});I7.exports=O8(b7);var A=U7(),F7="AWS_USE_DUALSTACK_ENDPOINT",D7="use_dualstack_endpoint",C8=!1,T8={environmentVariableSelector:(j)=>A.booleanSelector(j,F7,A.SelectorType.ENV),configFileSelector:(j)=>A.booleanSelector(j,D7,A.SelectorType.CONFIG),default:!1},h7="AWS_USE_FIPS_ENDPOINT",N7="use_fips_endpoint",I8=!1,v8={environmentVariableSelector:(j)=>A.booleanSelector(j,h7,A.SelectorType.ENV),configFileSelector:(j)=>A.booleanSelector(j,N7,A.SelectorType.CONFIG),default:!1},X0=f0(),R8=C((j)=>{let{tls:$,endpoint:z,urlParser:W,useDualstackEndpoint:Q}=j;return Object.assign(j,{tls:$??!0,endpoint:X0.normalizeProvider(typeof z==="string"?W(z):z),isCustomEndpoint:!0,useDualstackEndpoint:X0.normalizeProvider(Q??!1)})},"resolveCustomEndpointsConfig"),S8=C(async(j)=>{let{tls:$=!0}=j,z=await j.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(z))throw new Error("Invalid region in client config");let Q=await j.useDualstackEndpoint(),Z=await j.useFipsEndpoint(),{hostname:X}=await j.regionInfoProvider(z,{useDualstackEndpoint:Q,useFipsEndpoint:Z})??{};if(!X)throw new Error("Cannot resolve hostname from client config");return j.urlParser(`${$?"https:":"http:"}//${X}`)},"getEndpointFromRegion"),k8=C((j)=>{let $=X0.normalizeProvider(j.useDualstackEndpoint??!1),{endpoint:z,useFipsEndpoint:W,urlParser:Q,tls:Z}=j;return Object.assign(j,{tls:Z??!0,endpoint:z?X0.normalizeProvider(typeof z==="string"?Q(z):z):()=>S8({...j,useDualstackEndpoint:$,useFipsEndpoint:W}),isCustomEndpoint:!!z,useDualstackEndpoint:$})},"resolveEndpointsConfig"),O7="AWS_REGION",C7="region",P8={environmentVariableSelector:(j)=>j[O7],configFileSelector:(j)=>j[C7],default:()=>{throw new Error("Region is missing")}},A8={preferredFile:"credentials"},T7=C((j)=>typeof j==="string"&&(j.startsWith("fips-")||j.endsWith("-fips")),"isFipsRegion"),L7=C((j)=>T7(j)?["fips-aws-global","aws-fips"].includes(j)?"us-east-1":j.replace(/fips-(dkr-|prod-)?|-fips/,""):j,"getRealRegion"),x8=C((j)=>{let{region:$,useFipsEndpoint:z}=j;if(!$)throw new Error("Region is missing");return Object.assign(j,{region:async()=>{if(typeof $==="string")return L7($);let W=await $();return L7(W)},useFipsEndpoint:async()=>{let W=typeof $==="string"?$:await $();if(T7(W))return!0;return typeof z!=="function"?Promise.resolve(!!z):z()}})},"resolveRegionConfig"),M7=C((j=[],{useFipsEndpoint:$,useDualstackEndpoint:z})=>j.find(({tags:W})=>$===W.includes("fips")&&z===W.includes("dualstack"))?.hostname,"getHostnameFromVariants"),E8=C((j,{regionHostname:$,partitionHostname:z})=>$?$:z?z.replace("{region}",j):void 0,"getResolvedHostname"),y8=C((j,{partitionHash:$})=>Object.keys($||{}).find((z)=>$[z].regions.includes(j))??"aws","getResolvedPartition"),g8=C((j,{signingRegion:$,regionRegex:z,useFipsEndpoint:W})=>{if($)return $;else if(W){let Q=z.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),Z=j.match(Q);if(Z)return Z[0].slice(1,-1)}},"getResolvedSigningRegion"),f8=C((j,{useFipsEndpoint:$=!1,useDualstackEndpoint:z=!1,signingService:W,regionHash:Q,partitionHash:Z})=>{let X=y8(j,{partitionHash:Z}),J=j in Q?j:Z[X]?.endpoint??j,K={useFipsEndpoint:$,useDualstackEndpoint:z},G=M7(Q[J]?.variants,K),V=M7(Z[X]?.variants,K),Y=E8(J,{regionHostname:G,partitionHostname:V});if(Y===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:J,useFipsEndpoint:$,useDualstackEndpoint:z}}`);let B=g8(Y,{signingRegion:Q[J]?.signingRegion,regionRegex:Z[X].regionRegex,useFipsEndpoint:$});return{partition:X,signingService:W,hostname:Y,...B&&{signingRegion:B},...Q[J]?.signingService&&{signingService:Q[J].signingService}}},"getRegionInfo")});var i8=q((S9,A7)=>{var{defineProperty:K0,getOwnPropertyDescriptor:u8,getOwnPropertyNames:c8}=Object,d8=Object.prototype.hasOwnProperty,S7=(j,$)=>K0(j,"name",{value:$,configurable:!0}),l8=(j,$)=>{for(var z in $)K0(j,z,{get:$[z],enumerable:!0})},_8=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of c8($))if(!d8.call(j,Q)&&Q!==z)K0(j,Q,{get:()=>$[Q],enumerable:!(W=u8($,Q))||W.enumerable})}return j},s8=(j)=>_8(K0({},"__esModule",{value:!0}),j),k7={};l8(k7,{contentLengthMiddleware:()=>u0,contentLengthMiddlewareOptions:()=>P7,getContentLengthPlugin:()=>p8});A7.exports=s8(k7);var m8=l(),R7="content-length";function u0(j){return($)=>async(z)=>{let W=z.request;if(m8.HttpRequest.isInstance(W)){let{body:Q,headers:Z}=W;if(Q&&Object.keys(Z).map((X)=>X.toLowerCase()).indexOf(R7)===-1)try{let X=j(Q);W.headers={...W.headers,[R7]:String(X)}}catch(X){}}return $({...z,request:W})}}S7(u0,"contentLengthMiddleware");var P7={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},p8=S7((j)=>({applyToStack:($)=>{$.add(u0(j.bodyLengthChecker),P7)}}),"getContentLengthPlugin")});var g=q((x7)=>{Object.defineProperty(x7,"__esModule",{value:!0});x7.getHomeDir=void 0;var a8=F("node:os"),n8=F("node:path"),c0={},r8=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},o8=()=>{let{HOME:j,USERPROFILE:$,HOMEPATH:z,HOMEDRIVE:W=`C:${n8.sep}`}=process.env;if(j)return j;if($)return $;if(z)return`${W}${z}`;let Q=r8();if(!c0[Q])c0[Q]=a8.homedir();return c0[Q]};x7.getHomeDir=o8});var d0=q((y7)=>{Object.defineProperty(y7,"__esModule",{value:!0});y7.getSSOTokenFilepath=void 0;var t8=F("node:crypto"),e8=F("node:path"),j$=g(),$$=(j)=>{let z=t8.createHash("sha1").update(j).digest("hex");return e8.join(j$.getHomeDir(),".aws","sso","cache",`${z}.json`)};y7.getSSOTokenFilepath=$$});var c7=q((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});f7.getSSOTokenFromFile=void 0;var z$=F("node:fs"),Q$=d0(),{readFile:W$}=z$.promises,Z$=async(j)=>{let $=Q$.getSSOTokenFilepath(j),z=await W$($,"utf8");return JSON.parse(z)};f7.getSSOTokenFromFile=Z$});var _0=q((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});d7.slurpFile=void 0;var X$=F("node:fs"),{readFile:J$}=X$.promises,l0={},K$=(j,$)=>{if(!l0[j]||($===null||$===void 0?void 0:$.ignoreCache))l0[j]=J$(j,"utf8");return l0[j]};d7.slurpFile=K$});var i0=q((E9,m)=>{var{defineProperty:B0,getOwnPropertyDescriptor:G$,getOwnPropertyNames:Y$}=Object,B$=Object.prototype.hasOwnProperty,N=(j,$)=>B0(j,"name",{value:$,configurable:!0}),q$=(j,$)=>{for(var z in $)B0(j,z,{get:$[z],enumerable:!0})},s0=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of Y$($))if(!B$.call(j,Q)&&Q!==z)B0(j,Q,{get:()=>$[Q],enumerable:!(W=G$($,Q))||W.enumerable})}return j},p0=(j,$,z)=>(s0(j,$,"default"),z&&s0(z,$,"default")),V$=(j)=>s0(B0({},"__esModule",{value:!0}),j),s={};q$(s,{CONFIG_PREFIX_SEPARATOR:()=>E,DEFAULT_PROFILE:()=>p7,ENV_PROFILE:()=>m7,getProfileName:()=>H$,loadSharedConfigFiles:()=>a7,loadSsoSessionData:()=>I$,parseKnownFiles:()=>R$});m.exports=V$(s);p0(s,g(),m.exports);var m7="AWS_PROFILE",p7="default",H$=N((j)=>j.profile||process.env[m7]||p7,"getProfileName");p0(s,d0(),m.exports);p0(s,c7(),m.exports);var G0=S1(),w$=N((j)=>Object.entries(j).filter(([$])=>{let z=$.indexOf(E);if(z===-1)return!1;return Object.values(G0.IniSectionType).includes($.substring(0,z))}).reduce(($,[z,W])=>{let Q=z.indexOf(E),Z=z.substring(0,Q)===G0.IniSectionType.PROFILE?z.substring(Q+1):z;return $[Z]=W,$},{...j.default&&{default:j.default}}),"getConfigData"),Y0=F("node:path"),U$=g(),L$="AWS_CONFIG_FILE",i7=N(()=>process.env[L$]||Y0.join(U$.getHomeDir(),".aws","config"),"getConfigFilepath"),M$=g(),b$="AWS_SHARED_CREDENTIALS_FILE",F$=N(()=>process.env[b$]||Y0.join(M$.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),D$=g(),h$=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,N$=["__proto__","profile __proto__"],m0=N((j)=>{let $={},z,W;for(let Q of j.split(/\r?\n/)){let Z=Q.split(/(^|\s)[;#]/)[0].trim();if(Z[0]==="["&&Z[Z.length-1]==="]"){z=void 0,W=void 0;let J=Z.substring(1,Z.length-1),K=h$.exec(J);if(K){let[,G,,V]=K;if(Object.values(G0.IniSectionType).includes(G))z=[G,V].join(E)}else z=J;if(N$.includes(J))throw new Error(`Found invalid profile name "${J}"`)}else if(z){let J=Z.indexOf("=");if(![0,-1].includes(J)){let[K,G]=[Z.substring(0,J).trim(),Z.substring(J+1).trim()];if(G==="")W=K;else{if(W&&Q.trimStart()===Q)W=void 0;$[z]=$[z]||{};let V=W?[W,K].join(E):K;$[z][V]=G}}}}return $},"parseIni"),_7=_0(),s7=N(()=>({}),"swallowError"),E=".",a7=N(async(j={})=>{let{filepath:$=F$(),configFilepath:z=i7()}=j,W=D$.getHomeDir(),Q="~/",Z=$;if($.startsWith("~/"))Z=Y0.join(W,$.slice(2));let X=z;if(z.startsWith("~/"))X=Y0.join(W,z.slice(2));let J=await Promise.all([_7.slurpFile(X,{ignoreCache:j.ignoreCache}).then(m0).then(w$).catch(s7),_7.slurpFile(Z,{ignoreCache:j.ignoreCache}).then(m0).catch(s7)]);return{configFile:J[0],credentialsFile:J[1]}},"loadSharedConfigFiles"),O$=N((j)=>Object.entries(j).filter(([$])=>$.startsWith(G0.IniSectionType.SSO_SESSION+E)).reduce(($,[z,W])=>({...$,[z.substring(z.indexOf(E)+1)]:W}),{}),"getSsoSessionData"),C$=_0(),T$=N(()=>({}),"swallowError"),I$=N(async(j={})=>C$.slurpFile(j.configFilepath??i7()).then(m0).then(O$).catch(T$),"loadSsoSessionData"),v$=N((...j)=>{let $={};for(let z of j)for(let[W,Q]of Object.entries(z))if($[W]!==void 0)Object.assign($[W],Q);else $[W]=Q;return $},"mergeConfigFiles"),R$=N(async(j)=>{let $=await a7(j);return v$($.configFile,$.credentialsFile)},"parseKnownFiles")});var V0=q((y9,o7)=>{var{defineProperty:q0,getOwnPropertyDescriptor:S$,getOwnPropertyNames:k$}=Object,P$=Object.prototype.hasOwnProperty,f=(j,$)=>q0(j,"name",{value:$,configurable:!0}),A$=(j,$)=>{for(var z in $)q0(j,z,{get:$[z],enumerable:!0})},x$=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of k$($))if(!P$.call(j,Q)&&Q!==z)q0(j,Q,{get:()=>$[Q],enumerable:!(W=S$($,Q))||W.enumerable})}return j},E$=(j)=>x$(q0({},"__esModule",{value:!0}),j),r7={};A$(r7,{loadConfig:()=>c$});o7.exports=E$(r7);var p=a0();function n0(j){try{let $=new Set(Array.from(j.match(/([A-Z_]){3,}/g)??[]));return $.delete("CONFIG"),$.delete("CONFIG_PREFIX_SEPARATOR"),$.delete("ENV"),[...$].join(", ")}catch($){return j}}f(n0,"getSelectorName");var y$=f((j,$)=>async()=>{try{let z=j(process.env);if(z===void 0)throw new Error;return z}catch(z){throw new p.CredentialsProviderError(z.message||`Not found in ENV: ${n0(j.toString())}`,{logger:$})}},"fromEnv"),n7=i0(),g$=f((j,{preferredFile:$="config",...z}={})=>async()=>{let W=n7.getProfileName(z),{configFile:Q,credentialsFile:Z}=await n7.loadSharedConfigFiles(z),X=Z[W]||{},J=Q[W]||{},K=$==="config"?{...X,...J}:{...J,...X};try{let V=j(K,$==="config"?Q:Z);if(V===void 0)throw new Error;return V}catch(G){throw new p.CredentialsProviderError(G.message||`Not found in config files w/ profile [${W}]: ${n0(j.toString())}`,{logger:z.logger})}},"fromSharedConfigFiles"),f$=f((j)=>typeof j==="function","isFunction"),u$=f((j)=>f$(j)?async()=>await j():p.fromStatic(j),"fromStatic"),c$=f(({environmentVariableSelector:j,configFileSelector:$,default:z},W={})=>p.memoize(p.chain(y$(j),g$($,W),u$(z))),"loadConfig")});var Q4=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.getEndpointUrlConfig=void 0;var t7=i0(),e7="AWS_ENDPOINT_URL",j4="endpoint_url",d$=(j)=>({environmentVariableSelector:($)=>{let z=j.split(" ").map((Z)=>Z.toUpperCase()),W=$[[e7,...z].join("_")];if(W)return W;let Q=$[e7];if(Q)return Q;return},configFileSelector:($,z)=>{if(z&&$.services){let Q=z[["services",$.services].join(t7.CONFIG_PREFIX_SEPARATOR)];if(Q){let Z=j.split(" ").map((J)=>J.toLowerCase()),X=Q[[Z.join("_"),j4].join(t7.CONFIG_PREFIX_SEPARATOR)];if(X)return X}}let W=$[j4];if(W)return W;return},default:void 0});$4.getEndpointUrlConfig=d$});var r0=q((W4)=>{Object.defineProperty(W4,"__esModule",{value:!0});W4.getEndpointFromConfig=void 0;var l$=V0(),_$=Q4(),s$=async(j)=>l$.loadConfig(_$.getEndpointUrlConfig(j!==null&&j!==void 0?j:""))();W4.getEndpointFromConfig=s$});var G4=q((u9,K4)=>{var{defineProperty:H0,getOwnPropertyDescriptor:m$,getOwnPropertyNames:p$}=Object,i$=Object.prototype.hasOwnProperty,a$=(j,$)=>H0(j,"name",{value:$,configurable:!0}),n$=(j,$)=>{for(var z in $)H0(j,z,{get:$[z],enumerable:!0})},r$=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of p$($))if(!i$.call(j,Q)&&Q!==z)H0(j,Q,{get:()=>$[Q],enumerable:!(W=m$($,Q))||W.enumerable})}return j},o$=(j)=>r$(H0({},"__esModule",{value:!0}),j),X4={};n$(X4,{parseQueryString:()=>J4});K4.exports=o$(X4);function J4(j){let $={};if(j=j.replace(/^\?/,""),j)for(let z of j.split("&")){let[W,Q=null]=z.split("=");if(W=decodeURIComponent(W),Q)Q=decodeURIComponent(Q);if(!(W in $))$[W]=Q;else if(Array.isArray($[W]))$[W].push(Q);else $[W]=[$[W],Q]}return $}a$(J4,"parseQueryString")});var o0=q((c9,q4)=>{var{defineProperty:w0,getOwnPropertyDescriptor:t$,getOwnPropertyNames:e$}=Object,j6=Object.prototype.hasOwnProperty,$6=(j,$)=>w0(j,"name",{value:$,configurable:!0}),z6=(j,$)=>{for(var z in $)w0(j,z,{get:$[z],enumerable:!0})},Q6=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of e$($))if(!j6.call(j,Q)&&Q!==z)w0(j,Q,{get:()=>$[Q],enumerable:!(W=t$($,Q))||W.enumerable})}return j},W6=(j)=>Q6(w0({},"__esModule",{value:!0}),j),Y4={};z6(Y4,{parseUrl:()=>B4});q4.exports=W6(Y4);var Z6=G4(),B4=$6((j)=>{if(typeof j==="string")return B4(new URL(j));let{hostname:$,pathname:z,port:W,protocol:Q,search:Z}=j,X;if(Z)X=Z6.parseQueryString(Z);return{hostname:$,port:W?parseInt(W):void 0,protocol:Q,path:z,query:X}},"parseUrl")});var T6=q((d9,b4)=>{var{defineProperty:L0,getOwnPropertyDescriptor:J6,getOwnPropertyNames:K6}=Object,G6=Object.prototype.hasOwnProperty,T=(j,$)=>L0(j,"name",{value:$,configurable:!0}),Y6=(j,$)=>{for(var z in $)L0(j,z,{get:$[z],enumerable:!0})},B6=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of K6($))if(!G6.call(j,Q)&&Q!==z)L0(j,Q,{get:()=>$[Q],enumerable:!(W=J6($,Q))||W.enumerable})}return j},q6=(j)=>B6(L0({},"__esModule",{value:!0}),j),H4={};Y6(H4,{endpointMiddleware:()=>L4,endpointMiddlewareOptions:()=>M4,getEndpointFromInstructions:()=>w4,getEndpointPlugin:()=>N6,resolveEndpointConfig:()=>C6,resolveParams:()=>U4,toEndpointV1:()=>t0});b4.exports=q6(H4);var V6=T(async(j)=>{let $=j?.Bucket||"";if(typeof j.Bucket==="string")j.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(M6($)){if(j.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!L6($)||$.indexOf(".")!==-1&&!String(j.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)j.ForcePathStyle=!0;if(j.DisableMultiRegionAccessPoints)j.disableMultiRegionAccessPoints=!0,j.DisableMRAP=!0;return j},"resolveParamsForS3"),H6=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,w6=/(\d+\.){3}\d+/,U6=/\.\./,L6=T((j)=>H6.test(j)&&!w6.test(j)&&!U6.test(j),"isDnsCompatibleBucketName"),M6=T((j)=>{let[$,z,W,,,Q]=j.split(":"),Z=$==="arn"&&j.split(":").length>=6,X=Boolean(Z&&z&&W&&Q);if(Z&&!X)throw new Error(`Invalid ARN: ${j} was an invalid ARN.`);return X},"isArnBucketName"),b6=T((j,$,z)=>{let W=T(async()=>{let Q=z[j]??z[$];if(typeof Q==="function")return Q();return Q},"configProvider");if(j==="credentialScope"||$==="CredentialScope")return async()=>{let Q=typeof z.credentials==="function"?await z.credentials():z.credentials;return Q?.credentialScope??Q?.CredentialScope};if(j==="accountId"||$==="AccountId")return async()=>{let Q=typeof z.credentials==="function"?await z.credentials():z.credentials;return Q?.accountId??Q?.AccountId};if(j==="endpoint"||$==="endpoint")return async()=>{let Q=await W();if(Q&&typeof Q==="object"){if("url"in Q)return Q.url.href;if("hostname"in Q){let{protocol:Z,hostname:X,port:J,path:K}=Q;return`${Z}//${X}${J?":"+J:""}${K}`}}return Q};return W},"createConfigValueProvider"),F6=r0(),V4=o0(),t0=T((j)=>{if(typeof j==="object"){if("url"in j)return V4.parseUrl(j.url);return j}return V4.parseUrl(j)},"toEndpointV1"),w4=T(async(j,$,z,W)=>{if(!z.endpoint){let X;if(z.serviceConfiguredEndpoint)X=await z.serviceConfiguredEndpoint();else X=await F6.getEndpointFromConfig(z.serviceId);if(X)z.endpoint=()=>Promise.resolve(t0(X))}let Q=await U4(j,$,z);if(typeof z.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return z.endpointProvider(Q,W)},"getEndpointFromInstructions"),U4=T(async(j,$,z)=>{let W={},Q=$?.getEndpointParameterInstructions?.()||{};for(let[Z,X]of Object.entries(Q))switch(X.type){case"staticContextParams":W[Z]=X.value;break;case"contextParams":W[Z]=j[X.name];break;case"clientContextParams":case"builtInParams":W[Z]=await b6(X.name,Z,z)();break;case"operationContextParams":W[Z]=X.get(j);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(X))}if(Object.keys(Q).length===0)Object.assign(W,z);if(String(z.serviceId).toLowerCase()==="s3")await V6(W);return W},"resolveParams"),D6=$7(),U0=f0(),L4=T(({config:j,instructions:$})=>{return(z,W)=>async(Q)=>{if(j.endpoint)D6.setFeature(W,"ENDPOINT_OVERRIDE","N");let Z=await w4(Q.input,{getEndpointParameterInstructions(){return $}},{...j},W);W.endpointV2=Z,W.authSchemes=Z.properties?.authSchemes;let X=W.authSchemes?.[0];if(X){W.signing_region=X.signingRegion,W.signing_service=X.signingName;let K=U0.getSmithyContext(W)?.selectedHttpAuthScheme?.httpAuthOption;if(K)K.signingProperties=Object.assign(K.signingProperties||{},{signing_region:X.signingRegion,signingRegion:X.signingRegion,signing_service:X.signingName,signingName:X.signingName,signingRegionSet:X.signingRegionSet},X.properties)}return z({...Q})}},"endpointMiddleware"),h6=X6(),M4={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:h6.serializerMiddlewareOption.name},N6=T((j,$)=>({applyToStack:(z)=>{z.addRelativeTo(L4({config:j,instructions:$}),M4)}}),"getEndpointPlugin"),O6=r0(),C6=T((j)=>{let $=j.tls??!0,{endpoint:z,useDualstackEndpoint:W,useFipsEndpoint:Q}=j,Z=z!=null?async()=>t0(await U0.normalizeProvider(z)()):void 0,J=Object.assign(j,{endpoint:Z,tls:$,isCustomEndpoint:!!z,useDualstackEndpoint:U0.normalizeProvider(W??!1),useFipsEndpoint:U0.normalizeProvider(Q??!1)}),K=void 0;return J.serviceConfiguredEndpoint=async()=>{if(j.serviceId&&!K)K=O6.getEndpointFromConfig(j.serviceId);return K},J},"resolveEndpointConfig")});var j1=q((l9,h4)=>{var{defineProperty:M0,getOwnPropertyDescriptor:I6,getOwnPropertyNames:v6}=Object,R6=Object.prototype.hasOwnProperty,u=(j,$)=>M0(j,"name",{value:$,configurable:!0}),S6=(j,$)=>{for(var z in $)M0(j,z,{get:$[z],enumerable:!0})},k6=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of v6($))if(!R6.call(j,Q)&&Q!==z)M0(j,Q,{get:()=>$[Q],enumerable:!(W=I6($,Q))||W.enumerable})}return j},P6=(j)=>k6(M0({},"__esModule",{value:!0}),j),F4={};S6(F4,{isClockSkewCorrectedError:()=>D4,isClockSkewError:()=>u6,isRetryableByTrait:()=>f6,isServerError:()=>d6,isThrottlingError:()=>c6,isTransientError:()=>e0});h4.exports=P6(F4);var A6=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],x6=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],E6=["TimeoutError","RequestTimeout","RequestTimeoutException"],y6=[500,502,503,504],g6=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],f6=u((j)=>j.$retryable!==void 0,"isRetryableByTrait"),u6=u((j)=>A6.includes(j.name),"isClockSkewError"),D4=u((j)=>j.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),c6=u((j)=>j.$metadata?.httpStatusCode===429||x6.includes(j.name)||j.$retryable?.throttling==!0,"isThrottlingError"),e0=u((j,$=0)=>D4(j)||E6.includes(j.name)||g6.includes(j?.code||"")||y6.includes(j.$metadata?.httpStatusCode||0)||j.cause!==void 0&&$<=10&&e0(j.cause,$+1),"isTransientError"),d6=u((j)=>{if(j.$metadata?.httpStatusCode!==void 0){let $=j.$metadata.httpStatusCode;if(500<=$&&$<=599&&!e0(j))return!0;return!1}return!1},"isServerError")});var P4=q((_9,k4)=>{var{defineProperty:b0,getOwnPropertyDescriptor:l6,getOwnPropertyNames:_6}=Object,s6=Object.prototype.hasOwnProperty,I=(j,$)=>b0(j,"name",{value:$,configurable:!0}),m6=(j,$)=>{for(var z in $)b0(j,z,{get:$[z],enumerable:!0})},p6=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of _6($))if(!s6.call(j,Q)&&Q!==z)b0(j,Q,{get:()=>$[Q],enumerable:!(W=l6($,Q))||W.enumerable})}return j},i6=(j)=>p6(b0({},"__esModule",{value:!0}),j),O4={};m6(O4,{AdaptiveRetryStrategy:()=>e6,ConfiguredRetryStrategy:()=>j2,DEFAULT_MAX_ATTEMPTS:()=>$1,DEFAULT_RETRY_DELAY_BASE:()=>i,DEFAULT_RETRY_MODE:()=>a6,DefaultRateLimiter:()=>T4,INITIAL_RETRY_TOKENS:()=>z1,INVOCATION_ID_HEADER:()=>r6,MAXIMUM_RETRY_DELAY:()=>Q1,NO_RETRY_INCREMENT:()=>S4,REQUEST_HEADER:()=>o6,RETRY_COST:()=>v4,RETRY_MODES:()=>C4,StandardRetryStrategy:()=>W1,THROTTLING_RETRY_DELAY_BASE:()=>I4,TIMEOUT_RETRY_COST:()=>R4});k4.exports=i6(O4);var C4=((j)=>{return j.STANDARD="standard",j.ADAPTIVE="adaptive",j})(C4||{}),$1=3,a6="standard",n6=j1(),T4=class j{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;let z=this.getCurrentTimeInSeconds();this.lastThrottleTime=z,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}static{I(this,"DefaultRateLimiter")}static{this.setTimeoutFn=setTimeout}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){let z=($-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>j.setTimeoutFn(W,z))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){let $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}let z=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+z),this.lastTimestamp=$}updateClientSendingRate($){let z;if(this.updateMeasuredRate(),n6.isThrottlingError($)){let Q=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=Q,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),z=this.cubicThrottle(Q),this.enableTokenBucket()}else this.calculateTimeWindow(),z=this.cubicSuccess(this.getCurrentTimeInSeconds());let W=Math.min(z,2*this.measuredTxRate);this.updateTokenBucketRate(W)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let $=this.getCurrentTimeInSeconds(),z=Math.floor($*2)/2;if(this.requestCount++,z>this.lastTxRateBucket){let W=this.requestCount/(z-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(W*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=z}}getPrecise($){return parseFloat($.toFixed(8))}},i=100,Q1=20000,I4=500,z1=500,v4=5,R4=10,S4=1,r6="amz-sdk-invocation-id",o6="amz-sdk-request",t6=I(()=>{let j=i;return{computeNextBackoffDelay:I((W)=>{return Math.floor(Math.min(Q1,Math.random()*2**W*j))},"computeNextBackoffDelay"),setDelayBase:I((W)=>{j=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),N4=I(({retryDelay:j,retryCount:$,retryCost:z})=>{return{getRetryCount:I(()=>$,"getRetryCount"),getRetryDelay:I(()=>Math.min(Q1,j),"getRetryDelay"),getRetryCost:I(()=>z,"getRetryCost")}},"createDefaultRetryToken"),W1=class{constructor(j){this.maxAttempts=j,this.mode="standard",this.capacity=z1,this.retryBackoffStrategy=t6(),this.maxAttemptsProvider=typeof j==="function"?j:async()=>j}static{I(this,"StandardRetryStrategy")}async acquireInitialRetryToken(j){return N4({retryDelay:i,retryCount:0})}async refreshRetryTokenForRetry(j,$){let z=await this.getMaxAttempts();if(this.shouldRetry(j,$,z)){let W=$.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?I4:i);let Q=this.retryBackoffStrategy.computeNextBackoffDelay(j.getRetryCount()),Z=$.retryAfterHint?Math.max($.retryAfterHint.getTime()-Date.now()||0,Q):Q,X=this.getCapacityCost(W);return this.capacity-=X,N4({retryDelay:Z,retryCount:j.getRetryCount()+1,retryCost:X})}throw new Error("No retry token available")}recordSuccess(j){this.capacity=Math.max(z1,this.capacity+(j.getRetryCost()??S4))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(j){return console.warn(`Max attempts provider could not resolve. Using default of ${$1}`),$1}}shouldRetry(j,$,z){return j.getRetryCount()+1<z&&this.capacity>=this.getCapacityCost($.errorType)&&this.isRetryableError($.errorType)}getCapacityCost(j){return j==="TRANSIENT"?R4:v4}isRetryableError(j){return j==="THROTTLING"||j==="TRANSIENT"}},e6=class{constructor(j,$){this.maxAttemptsProvider=j,this.mode="adaptive";let{rateLimiter:z}=$??{};this.rateLimiter=z??new T4,this.standardRetryStrategy=new W1(j)}static{I(this,"AdaptiveRetryStrategy")}async acquireInitialRetryToken(j){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(j)}async refreshRetryTokenForRetry(j,$){return this.rateLimiter.updateClientSendingRate($),this.standardRetryStrategy.refreshRetryTokenForRetry(j,$)}recordSuccess(j){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(j)}},j2=class extends W1{static{I(this,"ConfiguredRetryStrategy")}constructor(j,$=i){super(typeof j==="function"?j:async()=>j);if(typeof $==="number")this.computeNextBackoffDelay=()=>$;else this.computeNextBackoffDelay=$}async refreshRetryTokenForRetry(j,$){let z=await super.refreshRetryTokenForRetry(j,$);return z.getRetryDelay=()=>this.computeNextBackoffDelay(z.getRetryCount()),z}}});var E4=q((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.isStreamingPayload=void 0;var $2=F("node:stream"),z2=(j)=>(j===null||j===void 0?void 0:j.body)instanceof $2.Readable||typeof ReadableStream!=="undefined"&&(j===null||j===void 0?void 0:j.body)instanceof ReadableStream;A4.isStreamingPayload=z2});var O2=q((a9,r4)=>{var{defineProperty:F0,getOwnPropertyDescriptor:Z2,getOwnPropertyNames:X2}=Object,J2=Object.prototype.hasOwnProperty,L=(j,$)=>F0(j,"name",{value:$,configurable:!0}),K2=(j,$)=>{for(var z in $)F0(j,z,{get:$[z],enumerable:!0})},G2=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of X2($))if(!J2.call(j,Q)&&Q!==z)F0(j,Q,{get:()=>$[Q],enumerable:!(W=Z2($,Q))||W.enumerable})}return j},Y2=(j)=>G2(F0({},"__esModule",{value:!0}),j),g4={};K2(g4,{AdaptiveRetryStrategy:()=>V2,CONFIG_MAX_ATTEMPTS:()=>X1,CONFIG_RETRY_MODE:()=>s4,ENV_MAX_ATTEMPTS:()=>Z1,ENV_RETRY_MODE:()=>_4,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>H2,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>U2,StandardRetryStrategy:()=>l4,defaultDelayDecider:()=>u4,defaultRetryDecider:()=>c4,getOmitRetryHeadersPlugin:()=>L2,getRetryAfterHint:()=>n4,getRetryPlugin:()=>N2,omitRetryHeadersMiddleware:()=>m4,omitRetryHeadersMiddlewareOptions:()=>p4,resolveRetryConfig:()=>w2,retryMiddleware:()=>i4,retryMiddlewareOptions:()=>a4});r4.exports=Y2(g4);var c=l(),f4=W2(),U=P4(),B2=L((j,$)=>{let z=j,W=$?.noRetryIncrement??U.NO_RETRY_INCREMENT,Q=$?.retryCost??U.RETRY_COST,Z=$?.timeoutRetryCost??U.TIMEOUT_RETRY_COST,X=j,J=L((Y)=>Y.name==="TimeoutError"?Z:Q,"getCapacityAmount"),K=L((Y)=>J(Y)<=X,"hasRetryTokens");return Object.freeze({hasRetryTokens:K,retrieveRetryTokens:L((Y)=>{if(!K(Y))throw new Error("No retry token available");let B=J(Y);return X-=B,B},"retrieveRetryTokens"),releaseRetryTokens:L((Y)=>{X+=Y??W,X=Math.min(X,z)},"releaseRetryTokens")})},"getDefaultRetryQuota"),u4=L((j,$)=>Math.floor(Math.min(U.MAXIMUM_RETRY_DELAY,Math.random()*2**$*j)),"defaultDelayDecider"),x=j1(),c4=L((j)=>{if(!j)return!1;return x.isRetryableByTrait(j)||x.isClockSkewError(j)||x.isThrottlingError(j)||x.isTransientError(j)},"defaultRetryDecider"),d4=L((j)=>{if(j instanceof Error)return j;if(j instanceof Object)return Object.assign(new Error,j);if(typeof j==="string")return new Error(j);return new Error(`AWS SDK error wrapper for ${j}`)},"asSdkError"),l4=class{constructor(j,$){this.maxAttemptsProvider=j,this.mode=U.RETRY_MODES.STANDARD,this.retryDecider=$?.retryDecider??c4,this.delayDecider=$?.delayDecider??u4,this.retryQuota=$?.retryQuota??B2(U.INITIAL_RETRY_TOKENS)}static{L(this,"StandardRetryStrategy")}shouldRetry(j,$,z){return $<z&&this.retryDecider(j)&&this.retryQuota.hasRetryTokens(j)}async getMaxAttempts(){let j;try{j=await this.maxAttemptsProvider()}catch($){j=U.DEFAULT_MAX_ATTEMPTS}return j}async retry(j,$,z){let W,Q=0,Z=0,X=await this.getMaxAttempts(),{request:J}=$;if(c.HttpRequest.isInstance(J))J.headers[U.INVOCATION_ID_HEADER]=f4.v4();while(!0)try{if(c.HttpRequest.isInstance(J))J.headers[U.REQUEST_HEADER]=`attempt=${Q+1}; max=${X}`;if(z?.beforeRequest)await z.beforeRequest();let{response:K,output:G}=await j($);if(z?.afterRequest)z.afterRequest(K);return this.retryQuota.releaseRetryTokens(W),G.$metadata.attempts=Q+1,G.$metadata.totalRetryDelay=Z,{response:K,output:G}}catch(K){let G=d4(K);if(Q++,this.shouldRetry(G,Q,X)){W=this.retryQuota.retrieveRetryTokens(G);let V=this.delayDecider(x.isThrottlingError(G)?U.THROTTLING_RETRY_DELAY_BASE:U.DEFAULT_RETRY_DELAY_BASE,Q),Y=q2(G.$response),B=Math.max(Y||0,V);Z+=B,await new Promise((b)=>setTimeout(b,B));continue}if(!G.$metadata)G.$metadata={};throw G.$metadata.attempts=Q,G.$metadata.totalRetryDelay=Z,G}}},q2=L((j)=>{if(!c.HttpResponse.isInstance(j))return;let $=Object.keys(j.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!$)return;let z=j.headers[$],W=Number(z);if(!Number.isNaN(W))return W*1000;return new Date(z).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),V2=class extends l4{static{L(this,"AdaptiveRetryStrategy")}constructor(j,$){let{rateLimiter:z,...W}=$??{};super(j,W);this.rateLimiter=z??new U.DefaultRateLimiter,this.mode=U.RETRY_MODES.ADAPTIVE}async retry(j,$){return super.retry(j,$,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(z)=>{this.rateLimiter.updateClientSendingRate(z)}})}},y4=f0(),Z1="AWS_MAX_ATTEMPTS",X1="max_attempts",H2={environmentVariableSelector:(j)=>{let $=j[Z1];if(!$)return;let z=parseInt($);if(Number.isNaN(z))throw new Error(`Environment variable ${Z1} mast be a number, got "${$}"`);return z},configFileSelector:(j)=>{let $=j[X1];if(!$)return;let z=parseInt($);if(Number.isNaN(z))throw new Error(`Shared config file entry ${X1} mast be a number, got "${$}"`);return z},default:U.DEFAULT_MAX_ATTEMPTS},w2=L((j)=>{let{retryStrategy:$,retryMode:z,maxAttempts:W}=j,Q=y4.normalizeProvider(W??U.DEFAULT_MAX_ATTEMPTS);return Object.assign(j,{maxAttempts:Q,retryStrategy:async()=>{if($)return $;if(await y4.normalizeProvider(z)()===U.RETRY_MODES.ADAPTIVE)return new U.AdaptiveRetryStrategy(Q);return new U.StandardRetryStrategy(Q)}})},"resolveRetryConfig"),_4="AWS_RETRY_MODE",s4="retry_mode",U2={environmentVariableSelector:(j)=>j[_4],configFileSelector:(j)=>j[s4],default:U.DEFAULT_RETRY_MODE},m4=L(()=>(j)=>async($)=>{let{request:z}=$;if(c.HttpRequest.isInstance(z))delete z.headers[U.INVOCATION_ID_HEADER],delete z.headers[U.REQUEST_HEADER];return j($)},"omitRetryHeadersMiddleware"),p4={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},L2=L((j)=>({applyToStack:($)=>{$.addRelativeTo(m4(),p4)}}),"getOmitRetryHeadersPlugin"),M2=Q2(),b2=E4(),i4=L((j)=>($,z)=>async(W)=>{let Q=await j.retryStrategy(),Z=await j.maxAttempts();if(F2(Q)){Q=Q;let X=await Q.acquireInitialRetryToken(z.partition_id),J=new Error,K=0,G=0,{request:V}=W,Y=c.HttpRequest.isInstance(V);if(Y)V.headers[U.INVOCATION_ID_HEADER]=f4.v4();while(!0)try{if(Y)V.headers[U.REQUEST_HEADER]=`attempt=${K+1}; max=${Z}`;let{response:B,output:b}=await $(W);return Q.recordSuccess(X),b.$metadata.attempts=K+1,b.$metadata.totalRetryDelay=G,{response:B,output:b}}catch(B){let b=D2(B);if(J=d4(B),Y&&b2.isStreamingPayload(V))throw(z.logger instanceof M2.NoOpLogger?console:z.logger)?.warn("An error was encountered in a non-retryable streaming request."),J;try{X=await Q.refreshRetryTokenForRetry(X,b)}catch(O){if(!J.$metadata)J.$metadata={};throw J.$metadata.attempts=K+1,J.$metadata.totalRetryDelay=G,J}K=X.getRetryCount();let D=X.getRetryDelay();G+=D,await new Promise((O)=>setTimeout(O,D))}}else{if(Q=Q,Q?.mode)z.userAgent=[...z.userAgent||[],["cfg/retry-mode",Q.mode]];return Q.retry($,W)}},"retryMiddleware"),F2=L((j)=>typeof j.acquireInitialRetryToken!=="undefined"&&typeof j.refreshRetryTokenForRetry!=="undefined"&&typeof j.recordSuccess!=="undefined","isRetryStrategyV2"),D2=L((j)=>{let $={error:j,errorType:h2(j)},z=n4(j.$response);if(z)$.retryAfterHint=z;return $},"getRetryErrorInfo"),h2=L((j)=>{if(x.isThrottlingError(j))return"THROTTLING";if(x.isTransientError(j))return"TRANSIENT";if(x.isServerError(j))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),a4={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},N2=L((j)=>({applyToStack:($)=>{$.add(i4(j),a4)}}),"getRetryPlugin"),n4=L((j)=>{if(!c.HttpResponse.isInstance(j))return;let $=Object.keys(j.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!$)return;let z=j.headers[$],W=Number(z);if(!Number.isNaN(W))return new Date(W*1000);return new Date(z)},"getRetryAfterHint")});var y2=q((o9,z5)=>{var{defineProperty:D0,getOwnPropertyDescriptor:C2,getOwnPropertyNames:T2}=Object,I2=Object.prototype.hasOwnProperty,R=(j,$)=>D0(j,"name",{value:$,configurable:!0}),v2=(j,$)=>{for(var z in $)D0(j,z,{get:$[z],enumerable:!0})},R2=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of T2($))if(!I2.call(j,Q)&&Q!==z)D0(j,Q,{get:()=>$[Q],enumerable:!(W=C2($,Q))||W.enumerable})}return j},S2=(j)=>R2(D0({},"__esModule",{value:!0}),j),t4={};v2(t4,{NODE_REGION_CONFIG_FILE_OPTIONS:()=>x2,NODE_REGION_CONFIG_OPTIONS:()=>A2,REGION_ENV_NAME:()=>e4,REGION_INI_NAME:()=>j5,getAwsRegionExtensionConfiguration:()=>k2,resolveAwsRegionExtensionConfiguration:()=>P2,resolveRegionConfig:()=>E2});z5.exports=S2(t4);var k2=R((j)=>{return{setRegion($){j.region=$},region(){return j.region}}},"getAwsRegionExtensionConfiguration"),P2=R((j)=>{return{region:j.region()}},"resolveAwsRegionExtensionConfiguration"),e4="AWS_REGION",j5="region",A2={environmentVariableSelector:R((j)=>j[e4],"environmentVariableSelector"),configFileSelector:R((j)=>j[j5],"configFileSelector"),default:R(()=>{throw new Error("Region is missing")},"default")},x2={preferredFile:"credentials"},$5=R((j)=>typeof j==="string"&&(j.startsWith("fips-")||j.endsWith("-fips")),"isFipsRegion"),o4=R((j)=>$5(j)?["fips-aws-global","aws-fips"].includes(j)?"us-east-1":j.replace(/fips-(dkr-|prod-)?|-fips/,""):j,"getRealRegion"),E2=R((j)=>{let{region:$,useFipsEndpoint:z}=j;if(!$)throw new Error("Region is missing");return Object.assign(j,{region:R(async()=>{if(typeof $==="string")return o4($);let W=await $();return o4(W)},"region"),useFipsEndpoint:R(async()=>{let W=typeof $==="string"?$:await $();if($5(W))return!0;return typeof z!=="function"?Promise.resolve(!!z):z()},"useFipsEndpoint")})},"resolveRegionConfig")});var f2=q((t9,g2)=>{g2.exports={name:"@aws-sdk/nested-clients",version:"3.777.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","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",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.775.0","@aws-sdk/middleware-host-header":"3.775.0","@aws-sdk/middleware-logger":"3.775.0","@aws-sdk/middleware-recursion-detection":"3.775.0","@aws-sdk/middleware-user-agent":"3.775.0","@aws-sdk/region-config-resolver":"3.775.0","@aws-sdk/types":"3.775.0","@aws-sdk/util-endpoints":"3.775.0","@aws-sdk/util-user-agent-browser":"3.775.0","@aws-sdk/util-user-agent-node":"3.775.0","@smithy/config-resolver":"^4.1.0","@smithy/core":"^3.2.0","@smithy/fetch-http-handler":"^5.0.2","@smithy/hash-node":"^4.0.2","@smithy/invalid-dependency":"^4.0.2","@smithy/middleware-content-length":"^4.0.2","@smithy/middleware-endpoint":"^4.1.0","@smithy/middleware-retry":"^4.1.0","@smithy/middleware-serde":"^4.0.3","@smithy/middleware-stack":"^4.0.2","@smithy/node-config-provider":"^4.0.2","@smithy/node-http-handler":"^4.0.4","@smithy/protocol-http":"^5.1.0","@smithy/smithy-client":"^4.2.0","@smithy/types":"^4.2.0","@smithy/url-parser":"^4.0.2","@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.8","@smithy/util-defaults-mode-node":"^4.0.8","@smithy/util-endpoints":"^3.0.2","@smithy/util-middleware":"^4.0.2","@smithy/util-retry":"^4.0.2","@smithy/util-utf8":"^4.0.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"}}}});var r2=q((e9,G5)=>{var{defineProperty:N0,getOwnPropertyDescriptor:u2,getOwnPropertyNames:c2}=Object,d2=Object.prototype.hasOwnProperty,h0=(j,$)=>N0(j,"name",{value:$,configurable:!0}),l2=(j,$)=>{for(var z in $)N0(j,z,{get:$[z],enumerable:!0})},_2=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of c2($))if(!d2.call(j,Q)&&Q!==z)N0(j,Q,{get:()=>$[Q],enumerable:!(W=u2($,Q))||W.enumerable})}return j},s2=(j)=>_2(N0({},"__esModule",{value:!0}),j),W5={};l2(W5,{NODE_APP_ID_CONFIG_OPTIONS:()=>n2,UA_APP_ID_ENV_NAME:()=>J5,UA_APP_ID_INI_NAME:()=>K5,createDefaultUserAgentProvider:()=>X5,crtAvailability:()=>Z5,defaultUserAgent:()=>p2});G5.exports=s2(W5);var Q5=F("node:os"),J1=F("node:process"),Z5={isCrtAvailable:!1},m2=h0(()=>{if(Z5.isCrtAvailable)return["md/crt-avail"];return null},"isCrtAvailable"),X5=h0(({serviceId:j,clientVersion:$})=>{return async(z)=>{let W=[["aws-sdk-js",$],["ua","2.1"],[`os/${Q5.platform()}`,Q5.release()],["lang/js"],["md/nodejs",`${J1.versions.node}`]],Q=m2();if(Q)W.push(Q);if(j)W.push([`api/${j}`,$]);if(J1.env.AWS_EXECUTION_ENV)W.push([`exec-env/${J1.env.AWS_EXECUTION_ENV}`]);let Z=await z?.userAgentAppId?.();return Z?[...W,[`app/${Z}`]]:[...W]}},"createDefaultUserAgentProvider"),p2=X5,i2=B7(),J5="AWS_SDK_UA_APP_ID",K5="sdk_ua_app_id",a2="sdk-ua-app-id",n2={environmentVariableSelector:h0((j)=>j[J5],"environmentVariableSelector"),configFileSelector:h0((j)=>j[K5]??j[a2],"configFileSelector"),default:i2.DEFAULT_UA_APP_ID}});var Kz=q((jQ,V5)=>{var{defineProperty:O0,getOwnPropertyDescriptor:e2,getOwnPropertyNames:jz}=Object,$z=Object.prototype.hasOwnProperty,B5=(j,$)=>O0(j,"name",{value:$,configurable:!0}),zz=(j,$)=>{for(var z in $)O0(j,z,{get:$[z],enumerable:!0})},Qz=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of jz($))if(!$z.call(j,Q)&&Q!==z)O0(j,Q,{get:()=>$[Q],enumerable:!(W=e2($,Q))||W.enumerable})}return j},Wz=(j)=>Qz(O0({},"__esModule",{value:!0}),j),q5={};zz(q5,{Hash:()=>Jz});V5.exports=Wz(q5);var K1=o2(),Zz=t2(),Xz=F("node:buffer"),Y5=F("node:crypto"),Jz=class{static{B5(this,"Hash")}constructor(j,$){this.algorithmIdentifier=j,this.secret=$,this.reset()}update(j,$){this.hash.update(Zz.toUint8Array(G1(j,$)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Y5.createHmac(this.algorithmIdentifier,G1(this.secret)):Y5.createHash(this.algorithmIdentifier)}};function G1(j,$){if(Xz.Buffer.isBuffer(j))return j;if(typeof j==="string")return K1.fromString(j,$);if(ArrayBuffer.isView(j))return K1.fromArrayBuffer(j.buffer,j.byteOffset,j.byteLength);return K1.fromArrayBuffer(j)}B5(G1,"castSourceData")});var Lz=q((zQ,U5)=>{var{defineProperty:C0,getOwnPropertyDescriptor:Gz,getOwnPropertyNames:Yz}=Object,Bz=Object.prototype.hasOwnProperty,qz=(j,$)=>C0(j,"name",{value:$,configurable:!0}),Vz=(j,$)=>{for(var z in $)C0(j,z,{get:$[z],enumerable:!0})},Hz=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of Yz($))if(!Bz.call(j,Q)&&Q!==z)C0(j,Q,{get:()=>$[Q],enumerable:!(W=Gz($,Q))||W.enumerable})}return j},wz=(j)=>Hz(C0({},"__esModule",{value:!0}),j),w5={};Vz(w5,{calculateBodyLength:()=>Uz});U5.exports=wz(w5);var H5=F("node:fs"),Uz=qz((j)=>{if(!j)return 0;if(typeof j==="string")return Buffer.byteLength(j);else if(typeof j.byteLength==="number")return j.byteLength;else if(typeof j.size==="number")return j.size;else if(typeof j.start==="number"&&typeof j.end==="number")return j.end+1-j.start;else if(typeof j.path==="string"||Buffer.isBuffer(j.path))return H5.lstatSync(j.path).size;else if(typeof j.fd==="number")return H5.fstatSync(j.fd).size;throw new Error(`Body Length computation failed for ${j}`)},"calculateBodyLength")});var S5=q((QQ,R5)=>{var{defineProperty:v0,getOwnPropertyDescriptor:Mz,getOwnPropertyNames:bz}=Object,Fz=Object.prototype.hasOwnProperty,M=(j,$)=>v0(j,"name",{value:$,configurable:!0}),Dz=(j,$)=>{for(var z in $)v0(j,z,{get:$[z],enumerable:!0})},hz=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of bz($))if(!Fz.call(j,Q)&&Q!==z)v0(j,Q,{get:()=>$[Q],enumerable:!(W=Mz($,Q))||W.enumerable})}return j},Nz=(j)=>hz(v0({},"__esModule",{value:!0}),j),F5={};Dz(F5,{DEFAULT_MAX_RETRIES:()=>O5,DEFAULT_TIMEOUT:()=>N5,ENV_CMDS_AUTH_TOKEN:()=>q1,ENV_CMDS_FULL_URI:()=>T0,ENV_CMDS_RELATIVE_URI:()=>I0,Endpoint:()=>C5,fromContainerMetadata:()=>Iz,fromInstanceMetadata:()=>az,getInstanceMetadataEndpoint:()=>I5,httpRequest:()=>d,providerConfigFromInit:()=>V1});R5.exports=Nz(F5);var Oz=F("node:url"),S=a0(),Cz=F("node:buffer"),Tz=F("node:http");function d(j){return new Promise(($,z)=>{let W=Tz.request({method:"GET",...j,hostname:j.hostname?.replace(/^\[(.+)\]$/,"$1")});W.on("error",(Q)=>{z(Object.assign(new S.ProviderError("Unable to connect to instance metadata service"),Q)),W.destroy()}),W.on("timeout",()=>{z(new S.ProviderError("TimeoutError from instance metadata service")),W.destroy()}),W.on("response",(Q)=>{let{statusCode:Z=400}=Q;if(Z<200||300<=Z)z(Object.assign(new S.ProviderError("Error response received from instance metadata service"),{statusCode:Z})),W.destroy();let X=[];Q.on("data",(J)=>{X.push(J)}),Q.on("end",()=>{$(Cz.Buffer.concat(X)),W.destroy()})}),W.end()})}M(d,"httpRequest");var D5=M((j)=>Boolean(j)&&typeof j==="object"&&typeof j.AccessKeyId==="string"&&typeof j.SecretAccessKey==="string"&&typeof j.Token==="string"&&typeof j.Expiration==="string","isImdsCredentials"),h5=M((j)=>({accessKeyId:j.AccessKeyId,secretAccessKey:j.SecretAccessKey,sessionToken:j.Token,expiration:new Date(j.Expiration),...j.AccountId&&{accountId:j.AccountId}}),"fromImdsCredentials"),N5=1000,O5=0,V1=M(({maxRetries:j=O5,timeout:$=N5})=>({maxRetries:j,timeout:$}),"providerConfigFromInit"),B1=M((j,$)=>{let z=j();for(let W=0;W<$;W++)z=z.catch(j);return z},"retry"),T0="AWS_CONTAINER_CREDENTIALS_FULL_URI",I0="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",q1="AWS_CONTAINER_AUTHORIZATION_TOKEN",Iz=M((j={})=>{let{timeout:$,maxRetries:z}=V1(j);return()=>B1(async()=>{let W=await Pz({logger:j.logger}),Q=JSON.parse(await vz($,W));if(!D5(Q))throw new S.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:j.logger});return h5(Q)},z)},"fromContainerMetadata"),vz=M(async(j,$)=>{if(process.env[q1])$.headers={...$.headers,Authorization:process.env[q1]};return(await d({...$,timeout:j})).toString()},"requestFromEcsImds"),Rz="169.254.170.2",Sz={localhost:!0,"127.0.0.1":!0},kz={"http:":!0,"https:":!0},Pz=M(async({logger:j})=>{if(process.env[I0])return{hostname:Rz,path:process.env[I0]};if(process.env[T0]){let $=Oz.parse(process.env[T0]);if(!$.hostname||!($.hostname in Sz))throw new S.CredentialsProviderError(`${$.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:j});if(!$.protocol||!($.protocol in kz))throw new S.CredentialsProviderError(`${$.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:j});return{...$,port:$.port?parseInt($.port,10):void 0}}throw new S.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${I0} or ${T0} environment variable is set`,{tryNextLink:!1,logger:j})},"getCmdsUri"),Az=class j extends S.CredentialsProviderError{constructor($,z=!0){super($,z);this.tryNextLink=z,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,j.prototype)}static{M(this,"InstanceMetadataV1FallbackError")}},H1=V0(),xz=o0(),C5=((j)=>{return j.IPv4="http://169.254.169.254",j.IPv6="http://[fd00:ec2::254]",j})(C5||{}),Ez="AWS_EC2_METADATA_SERVICE_ENDPOINT",yz="ec2_metadata_service_endpoint",gz={environmentVariableSelector:(j)=>j[Ez],configFileSelector:(j)=>j[yz],default:void 0},T5=((j)=>{return j.IPv4="IPv4",j.IPv6="IPv6",j})(T5||{}),fz="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",uz="ec2_metadata_service_endpoint_mode",cz={environmentVariableSelector:(j)=>j[fz],configFileSelector:(j)=>j[uz],default:"IPv4"},I5=M(async()=>xz.parseUrl(await dz()||await lz()),"getInstanceMetadataEndpoint"),dz=M(async()=>H1.loadConfig(gz)(),"getFromEndpointConfig"),lz=M(async()=>{let j=await H1.loadConfig(cz)();switch(j){case"IPv4":return"http://169.254.169.254";case"IPv6":return"http://[fd00:ec2::254]";default:throw new Error(`Unsupported endpoint mode: ${j}. Select from ${Object.values(T5)}`)}},"getFromEndpointModeConfig"),_z=300,sz=300,mz="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",L5=M((j,$)=>{let z=_z+Math.floor(Math.random()*sz),W=new Date(Date.now()+z*1000);$.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(W)}.
|
|
2
|
-
For more information, please visit: `+mz);let Q=j.originalExpiration??j.expiration;return{...j,...Q?{originalExpiration:Q}:{},expiration:W}},"getExtendedInstanceMetadataCredentials"),pz=M((j,$={})=>{let z=$?.logger||console,W;return async()=>{let Q;try{if(Q=await j(),Q.expiration&&Q.expiration.getTime()<Date.now())Q=L5(Q,z)}catch(Z){if(W)z.warn("Credential renew failed: ",Z),Q=L5(W,z);else throw Z}return W=Q,Q}},"staticStabilityProvider"),v5="/latest/meta-data/iam/security-credentials/",iz="/latest/api/token",Y1="AWS_EC2_METADATA_V1_DISABLED",M5="ec2_metadata_v1_disabled",b5="x-aws-ec2-metadata-token",az=M((j={})=>pz(nz(j),{logger:j.logger}),"fromInstanceMetadata"),nz=M((j={})=>{let $=!1,{logger:z,profile:W}=j,{timeout:Q,maxRetries:Z}=V1(j),X=M(async(J,K)=>{if($||K.headers?.[b5]==null){let Y=!1,B=!1,b=await H1.loadConfig({environmentVariableSelector:(D)=>{let O=D[Y1];if(B=!!O&&O!=="false",O===void 0)throw new S.CredentialsProviderError(`${Y1} not set in env, checking config file next.`,{logger:j.logger});return B},configFileSelector:(D)=>{let O=D[M5];return Y=!!O&&O!=="false",Y},default:!1},{profile:W})();if(j.ec2MetadataV1Disabled||b){let D=[];if(j.ec2MetadataV1Disabled)D.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(Y)D.push(`config file profile (${M5})`);if(B)D.push(`process environment variable (${Y1})`);throw new Az(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${D.join(", ")}].`)}}let V=(await B1(async()=>{let Y;try{Y=await oz(K)}catch(B){if(B.statusCode===401)$=!1;throw B}return Y},J)).trim();return B1(async()=>{let Y;try{Y=await tz(V,K,j)}catch(B){if(B.statusCode===401)$=!1;throw B}return Y},J)},"getCredentials");return async()=>{let J=await I5();if($)return z?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),X(Z,{...J,timeout:Q});else{let K;try{K=(await rz({...J,timeout:Q})).toString()}catch(G){if(G?.statusCode===400)throw Object.assign(G,{message:"EC2 Metadata token request returned error"});else if(G.message==="TimeoutError"||[403,404,405].includes(G.statusCode))$=!0;return z?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),X(Z,{...J,timeout:Q})}return X(Z,{...J,headers:{[b5]:K},timeout:Q})}}},"getInstanceMetadataProvider"),rz=M(async(j)=>d({...j,path:iz,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),oz=M(async(j)=>(await d({...j,path:v5})).toString(),"getProfile"),tz=M(async(j,$,z)=>{let W=JSON.parse((await d({...$,path:v5+j})).toString());if(!D5(W))throw new S.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return h5(W)},"getCredentialsFromProfile")});var b9=q((WQ,y5)=>{var{create:ez,defineProperty:a,getOwnPropertyDescriptor:j9,getOwnPropertyNames:$9,getPrototypeOf:z9}=Object,Q9=Object.prototype.hasOwnProperty,w1=(j,$)=>a(j,"name",{value:$,configurable:!0}),W9=(j,$)=>{for(var z in $)a(j,z,{get:$[z],enumerable:!0})},x5=(j,$,z,W)=>{if($&&typeof $==="object"||typeof $==="function"){for(let Q of $9($))if(!Q9.call(j,Q)&&Q!==z)a(j,Q,{get:()=>$[Q],enumerable:!(W=j9($,Q))||W.enumerable})}return j},Z9=(j,$,z)=>(z=j!=null?ez(z9(j)):{},x5($||!j||!j.__esModule?a(z,"default",{value:j,enumerable:!0}):z,j)),X9=(j)=>x5(a({},"__esModule",{value:!0}),j),E5={};W9(E5,{resolveDefaultsModeConfig:()=>U9});y5.exports=X9(E5);var J9=v7(),k5=V0(),K9=a0(),G9="AWS_EXECUTION_ENV",P5="AWS_REGION",A5="AWS_DEFAULT_REGION",Y9="AWS_EC2_METADATA_DISABLED",B9=["in-region","cross-region","mobile","standard","legacy"],q9="/latest/meta-data/placement/region",V9="AWS_DEFAULTS_MODE",H9="defaults_mode",w9={environmentVariableSelector:(j)=>{return j[V9]},configFileSelector:(j)=>{return j[H9]},default:"legacy"},U9=w1(({region:j=k5.loadConfig(J9.NODE_REGION_CONFIG_OPTIONS),defaultsMode:$=k5.loadConfig(w9)}={})=>K9.memoize(async()=>{let z=typeof $==="function"?await $():$;switch(z?.toLowerCase()){case"auto":return L9(j);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(z?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${B9.join(", ")}, got ${z}`)}}),"resolveDefaultsModeConfig"),L9=w1(async(j)=>{if(j){let $=typeof j==="function"?await j():j,z=await M9();if(!z)return"standard";if($===z)return"in-region";else return"cross-region"}return"standard"},"resolveNodeDefaultsModeAuto"),M9=w1(async()=>{if(process.env[G9]&&(process.env[P5]||process.env[A5]))return process.env[P5]??process.env[A5];if(!process.env[Y9])try{let{getInstanceMetadataEndpoint:j,httpRequest:$}=await Promise.resolve().then(()=>Z9(S5())),z=await j();return(await $({...z,path:q9})).toString()}catch(j){}},"inferPhysicalRegion")});
|
|
3
|
-
export{a5 as Ia,zj as Ja,Vj as Ka,c1 as La,o1 as Ma,B7 as Na,v7 as Oa,i8 as Pa,V0 as Qa,o0 as Ra,T6 as Sa,P4 as Ta,O2 as Ua,f2 as Va,r2 as Wa,Kz as Xa,Lz as Ya,b9 as Za,y2 as _a};
|
package/dist/chunk-v10ahksj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gc as A,Mc as E}from"./chunk-6ct1erv4.js";import"./chunk-nhsag58c.js";import{Rc as K}from"./chunk-0x2p8v0y.js";import{Sc as T}from"./chunk-nrk7cdfz.js";import{Tc as w}from"./chunk-5asbctb1.js";var o=w(T(),1);import{exec as y}from"node:child_process";import{promisify as I}from"node: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};
|
package/dist/chunk-vcq7jtzy.js
DELETED
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ga as U,Ha as m}from"./chunk-6v69415e.js";import"./chunk-5asbctb1.js";/*!
|
|
3
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*
|
|
6
|
-
* Redistribution and use in source and binary forms, with or without
|
|
7
|
-
* modification, are permitted provided that the following conditions are met:
|
|
8
|
-
*
|
|
9
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
-
* list of conditions and the following disclaimer.
|
|
11
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
-
* this list of conditions and the following disclaimer in the
|
|
13
|
-
* documentation and/or other materials provided with the distribution.
|
|
14
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
15
|
-
* may be used to endorse or promote products derived from this software without
|
|
16
|
-
* specific prior written permission.
|
|
17
|
-
*
|
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
-
*/function A(k,z){let j=k.slice(0,z).split(/\r\n|\n|\r/g);return[j.length,j.pop().length+1]}function d(k,z,j){let J=k.split(/\r\n|\n|\r/g),K="",Z=(Math.log10(z+1)|0)+1;for(let Q=z-1;Q<=z+1;Q++){let q=J[Q-1];q&&(K+=Q.toString().padEnd(Z," "),K+=": ",K+=q,K+=`
|
|
29
|
-
`,Q===z&&(K+=" ".repeat(Z+j+2),K+=`^
|
|
30
|
-
`))}return K}class x extends Error{line;column;codeblock;constructor(k,z){let[j,J]=A(z.toml,z.ptr),K=d(z.toml,j,J);super(`Invalid TOML document: ${k}
|
|
31
|
-
|
|
32
|
-
${K}`,z),this.line=j,this.column=J,this.codeblock=K}}/*!
|
|
33
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
34
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*
|
|
36
|
-
* Redistribution and use in source and binary forms, with or without
|
|
37
|
-
* modification, are permitted provided that the following conditions are met:
|
|
38
|
-
*
|
|
39
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
40
|
-
* list of conditions and the following disclaimer.
|
|
41
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
42
|
-
* this list of conditions and the following disclaimer in the
|
|
43
|
-
* documentation and/or other materials provided with the distribution.
|
|
44
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45
|
-
* may be used to endorse or promote products derived from this software without
|
|
46
|
-
* specific prior written permission.
|
|
47
|
-
*
|
|
48
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
49
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
50
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
51
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
52
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
53
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
54
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
55
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
56
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
57
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
58
|
-
*/function M(k,z=0,j=k.length){let J=k.indexOf(`
|
|
59
|
-
`,z);return k[J-1]==="\r"&&J--,J<=j?J:-1}function G(k,z){for(let j=z;j<k.length;j++){let J=k[j];if(J===`
|
|
60
|
-
`)return j;if(J==="\r"&&k[j+1]===`
|
|
61
|
-
`)return j+1;if(J<" "&&J!=="\t"||J==="\x7F")throw new x("control characters are not allowed in comments",{toml:k,ptr:z})}return k.length}function V(k,z,j,J){let K;for(;(K=k[z])===" "||K==="\t"||!j&&(K===`
|
|
62
|
-
`||K==="\r"&&k[z+1]===`
|
|
63
|
-
`);)z++;return J||K!=="#"?z:V(k,G(k,z),j)}function P(k,z,j,J,K=!1){if(!J)return z=M(k,z),z<0?k.length:z;for(let Z=z;Z<k.length;Z++){let Q=k[Z];if(Q==="#")Z=M(k,Z);else{if(Q===j)return Z+1;if(Q===J)return Z;if(K&&(Q===`
|
|
64
|
-
`||Q==="\r"&&k[Z+1]===`
|
|
65
|
-
`))return Z}}throw new x("cannot find end of structure",{toml:k,ptr:z})}function C(k,z){let j=k[z],J=j===k[z+1]&&k[z+1]===k[z+2]?k.slice(z,z+3):j;z+=J.length-1;do z=k.indexOf(J,++z);while(z>-1&&j!=="'"&&k[z-1]==="\\"&&k[z-2]!=="\\");return z>-1&&(z+=J.length,J.length>1&&(k[z]===j&&z++,k[z]===j&&z++)),z}/*!
|
|
66
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
67
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
|
-
*
|
|
69
|
-
* Redistribution and use in source and binary forms, with or without
|
|
70
|
-
* modification, are permitted provided that the following conditions are met:
|
|
71
|
-
*
|
|
72
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
73
|
-
* list of conditions and the following disclaimer.
|
|
74
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
75
|
-
* this list of conditions and the following disclaimer in the
|
|
76
|
-
* documentation and/or other materials provided with the distribution.
|
|
77
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
78
|
-
* may be used to endorse or promote products derived from this software without
|
|
79
|
-
* specific prior written permission.
|
|
80
|
-
*
|
|
81
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
82
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
83
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
84
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
85
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
86
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
87
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
88
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
89
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
90
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
91
|
-
*/var s=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;class v extends Date{#z=!1;#J=!1;#k=null;constructor(k){let z=!0,j=!0,J="Z";if(typeof k=="string"){let K=k.match(s);K?(K[1]||(z=!1,k=`0000-01-01T${k}`),j=!!K[2],K[2]&&+K[2]>23?k="":(J=K[3]||null,k=k.toUpperCase(),!J&&j&&(k+="Z"))):k=""}super(k),isNaN(this.getTime())||(this.#z=z,this.#J=j,this.#k=J)}isDateTime(){return this.#z&&this.#J}isLocal(){return!this.#z||!this.#J||!this.#k}isDate(){return this.#z&&!this.#J}isTime(){return this.#J&&!this.#z}isValid(){return this.#z||this.#J}toISOString(){let k=super.toISOString();if(this.isDate())return k.slice(0,10);if(this.isTime())return k.slice(11,23);if(this.#k===null)return k.slice(0,-1);if(this.#k==="Z")return k;let z=+this.#k.slice(1,3)*60+ +this.#k.slice(4,6);return z=this.#k[0]==="-"?z:-z,new Date(this.getTime()-z*60000).toISOString().slice(0,-1)+this.#k}static wrapAsOffsetDateTime(k,z="Z"){let j=new v(k);return j.#k=z,j}static wrapAsLocalDateTime(k){let z=new v(k);return z.#k=null,z}static wrapAsLocalDate(k){let z=new v(k);return z.#J=!1,z.#k=null,z}static wrapAsLocalTime(k){let z=new v(k);return z.#z=!1,z.#k=null,z}}/*!
|
|
92
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
93
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
-
*
|
|
95
|
-
* Redistribution and use in source and binary forms, with or without
|
|
96
|
-
* modification, are permitted provided that the following conditions are met:
|
|
97
|
-
*
|
|
98
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
99
|
-
* list of conditions and the following disclaimer.
|
|
100
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
101
|
-
* this list of conditions and the following disclaimer in the
|
|
102
|
-
* documentation and/or other materials provided with the distribution.
|
|
103
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
104
|
-
* may be used to endorse or promote products derived from this software without
|
|
105
|
-
* specific prior written permission.
|
|
106
|
-
*
|
|
107
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
108
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
109
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
110
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
111
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
112
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
113
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
114
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
115
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
116
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
117
|
-
*/var S=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,R=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,O=/^[+-]?0[0-9_]/,T=/^[0-9a-f]{4,8}$/i,w={b:"\b",t:"\t",n:`
|
|
118
|
-
`,f:"\f",r:"\r",'"':'"',"\\":"\\"};function L(k,z=0,j=k.length){let J=k[z]==="'",K=k[z++]===k[z]&&k[z]===k[z+1];K&&(j-=2,k[z+=2]==="\r"&&z++,k[z]===`
|
|
119
|
-
`&&z++);let Z=0,Q,q="",_=z;for(;z<j-1;){let $=k[z++];if($===`
|
|
120
|
-
`||$==="\r"&&k[z]===`
|
|
121
|
-
`){if(!K)throw new x("newlines are not allowed in strings",{toml:k,ptr:z-1})}else if($<" "&&$!=="\t"||$==="\x7F")throw new x("control characters are not allowed in strings",{toml:k,ptr:z-1});if(Q){if(Q=!1,$==="u"||$==="U"){let X=k.slice(z,z+=$==="u"?4:8);if(!T.test(X))throw new x("invalid unicode escape",{toml:k,ptr:Z});try{q+=String.fromCodePoint(parseInt(X,16))}catch{throw new x("invalid unicode escape",{toml:k,ptr:Z})}}else if(K&&($===`
|
|
122
|
-
`||$===" "||$==="\t"||$==="\r")){if(z=V(k,z-1,!0),k[z]!==`
|
|
123
|
-
`&&k[z]!=="\r")throw new x("invalid escape: only line-ending whitespace may be escaped",{toml:k,ptr:Z});z=V(k,z)}else if($ in w)q+=w[$];else throw new x("unrecognized escape sequence",{toml:k,ptr:Z});_=z}else!J&&$==="\\"&&(Z=z-1,Q=!0,q+=k.slice(_,Z))}return q+k.slice(_,j-1)}function u(k,z,j){if(k==="true")return!0;if(k==="false")return!1;if(k==="-inf")return-1/0;if(k==="inf"||k==="+inf")return 1/0;if(k==="nan"||k==="+nan"||k==="-nan")return NaN;if(k==="-0")return 0;let J;if((J=S.test(k))||R.test(k)){if(O.test(k))throw new x("leading zeroes are not allowed",{toml:z,ptr:j});let Z=+k.replace(/_/g,"");if(isNaN(Z))throw new x("invalid number",{toml:z,ptr:j});if(J&&!Number.isSafeInteger(Z))throw new x("integer value cannot be represented losslessly",{toml:z,ptr:j});return Z}let K=new v(k);if(!K.isValid())throw new x("invalid value",{toml:z,ptr:j});return K}/*!
|
|
124
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
125
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
|
-
*
|
|
127
|
-
* Redistribution and use in source and binary forms, with or without
|
|
128
|
-
* modification, are permitted provided that the following conditions are met:
|
|
129
|
-
*
|
|
130
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
131
|
-
* list of conditions and the following disclaimer.
|
|
132
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
133
|
-
* this list of conditions and the following disclaimer in the
|
|
134
|
-
* documentation and/or other materials provided with the distribution.
|
|
135
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
136
|
-
* may be used to endorse or promote products derived from this software without
|
|
137
|
-
* specific prior written permission.
|
|
138
|
-
*
|
|
139
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
140
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
141
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
142
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
143
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
144
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
145
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
146
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
147
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
148
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
149
|
-
*/function E(k,z,j,J){let K=k.slice(z,j),Z=K.indexOf("#");Z>-1&&(G(k,Z),K=K.slice(0,Z));let Q=K.trimEnd();if(!J){let q=K.indexOf(`
|
|
150
|
-
`,Q.length);if(q>-1)throw new x("newlines are not allowed in inline tables",{toml:k,ptr:z+q})}return[Q,Z]}function b(k,z,j,J){if(J===0)throw new x("document contains excessively nested structures. aborting.",{toml:k,ptr:z});let K=k[z];if(K==="["||K==="{"){let[q,_]=K==="["?f(k,z,J):a(k,z,J),$=P(k,_,",",j);if(j==="}"){let X=M(k,_,$);if(X>-1)throw new x("newlines are not allowed in inline tables",{toml:k,ptr:X})}return[q,$]}let Z;if(K==='"'||K==="'"){Z=C(k,z);let q=L(k,z,Z);if(j){if(Z=V(k,Z,j!=="]"),k[Z]&&k[Z]!==","&&k[Z]!==j&&k[Z]!==`
|
|
151
|
-
`&&k[Z]!=="\r")throw new x("unexpected character encountered",{toml:k,ptr:Z});Z+=+(k[Z]===",")}return[q,Z]}Z=P(k,z,",",j);let Q=E(k,z,Z-+(k[Z-1]===","),j==="]");if(!Q[0])throw new x("incomplete key-value declaration: no value specified",{toml:k,ptr:z});return j&&Q[1]>-1&&(Z=V(k,z+Q[1]),Z+=+(k[Z]===",")),[u(Q[0],k,z),Z]}/*!
|
|
152
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
153
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
154
|
-
*
|
|
155
|
-
* Redistribution and use in source and binary forms, with or without
|
|
156
|
-
* modification, are permitted provided that the following conditions are met:
|
|
157
|
-
*
|
|
158
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
159
|
-
* list of conditions and the following disclaimer.
|
|
160
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
161
|
-
* this list of conditions and the following disclaimer in the
|
|
162
|
-
* documentation and/or other materials provided with the distribution.
|
|
163
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
164
|
-
* may be used to endorse or promote products derived from this software without
|
|
165
|
-
* specific prior written permission.
|
|
166
|
-
*
|
|
167
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
168
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
169
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
170
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
171
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
172
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
173
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
174
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
175
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
176
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
177
|
-
*/var I=/^[a-zA-Z0-9-_]+[ \t]*$/;function g(k,z,j="="){let J=z-1,K=[],Z=k.indexOf(j,z);if(Z<0)throw new x("incomplete key-value: cannot find end of key",{toml:k,ptr:z});do{let Q=k[z=++J];if(Q!==" "&&Q!=="\t")if(Q==='"'||Q==="'"){if(Q===k[z+1]&&Q===k[z+2])throw new x("multiline strings are not allowed in keys",{toml:k,ptr:z});let q=C(k,z);if(q<0)throw new x("unfinished string encountered",{toml:k,ptr:z});J=k.indexOf(".",q);let _=k.slice(q,J<0||J>Z?Z:J),$=M(_);if($>-1)throw new x("newlines are not allowed in keys",{toml:k,ptr:z+J+$});if(_.trimStart())throw new x("found extra tokens after the string part",{toml:k,ptr:q});if(Z<q&&(Z=k.indexOf(j,q),Z<0))throw new x("incomplete key-value: cannot find end of key",{toml:k,ptr:z});K.push(L(k,z,q))}else{J=k.indexOf(".",z);let q=k.slice(z,J<0||J>Z?Z:J);if(!I.test(q))throw new x("only letter, numbers, dashes and underscores are allowed in keys",{toml:k,ptr:z});K.push(q.trimEnd())}}while(J+1&&J<Z);return[K,V(k,Z+1,!0,!0)]}function a(k,z,j){let J={},K=new Set,Z,Q=0;for(z++;(Z=k[z++])!=="}"&&Z;){if(Z===`
|
|
178
|
-
`)throw new x("newlines are not allowed in inline tables",{toml:k,ptr:z-1});if(Z==="#")throw new x("inline tables cannot contain comments",{toml:k,ptr:z-1});if(Z===",")throw new x("expected key-value, found comma",{toml:k,ptr:z-1});if(Z!==" "&&Z!=="\t"){let q,_=J,$=!1,[X,h]=g(k,z-1);for(let y=0;y<X.length;y++){if(y&&(_=$?_[q]:_[q]={}),q=X[y],($=Object.hasOwn(_,q))&&(typeof _[q]!="object"||K.has(_[q])))throw new x("trying to redefine an already defined value",{toml:k,ptr:z});!$&&q==="__proto__"&&Object.defineProperty(_,q,{enumerable:!0,configurable:!0,writable:!0})}if($)throw new x("trying to redefine an already defined value",{toml:k,ptr:z});let[F,N]=b(k,h,"}",j-1);K.add(F),_[q]=F,z=N,Q=k[z-1]===","?z-1:0}}if(Q)throw new x("trailing commas are not allowed in inline tables",{toml:k,ptr:Q});if(!Z)throw new x("unfinished table encountered",{toml:k,ptr:z});return[J,z]}function f(k,z,j){let J=[],K;for(z++;(K=k[z++])!=="]"&&K;){if(K===",")throw new x("expected value, found comma",{toml:k,ptr:z-1});if(K==="#")z=G(k,z);else if(K!==" "&&K!=="\t"&&K!==`
|
|
179
|
-
`&&K!=="\r"){let Z=b(k,z-1,"]",j-1);J.push(Z[0]),z=Z[1]}}if(!K)throw new x("unfinished array encountered",{toml:k,ptr:z});return[J,z]}/*!
|
|
180
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
181
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
182
|
-
*
|
|
183
|
-
* Redistribution and use in source and binary forms, with or without
|
|
184
|
-
* modification, are permitted provided that the following conditions are met:
|
|
185
|
-
*
|
|
186
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
187
|
-
* list of conditions and the following disclaimer.
|
|
188
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
189
|
-
* this list of conditions and the following disclaimer in the
|
|
190
|
-
* documentation and/or other materials provided with the distribution.
|
|
191
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
192
|
-
* may be used to endorse or promote products derived from this software without
|
|
193
|
-
* specific prior written permission.
|
|
194
|
-
*
|
|
195
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
196
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
197
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
198
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
199
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
200
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
201
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
202
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
203
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
204
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
205
|
-
*/function H(k,z,j,J){let K=z,Z=j,Q,q=!1,_;for(let $=0;$<k.length;$++){if($){if(K=q?K[Q]:K[Q]={},Z=(_=Z[Q]).c,J===0&&(_.t===1||_.t===2))return null;if(_.t===2){let X=K.length-1;K=K[X],Z=Z[X].c}}if(Q=k[$],(q=Object.hasOwn(K,Q))&&Z[Q]?.t===0&&Z[Q]?.d)return null;q||(Q==="__proto__"&&(Object.defineProperty(K,Q,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(Z,Q,{enumerable:!0,configurable:!0,writable:!0})),Z[Q]={t:$<k.length-1&&J===2?3:J,d:!1,i:0,c:{}})}if(_=Z[Q],_.t!==J&&!(J===1&&_.t===3)||(J===2&&(_.d||(_.d=!0,K[Q]=[]),K[Q].push(K={}),_.c[_.i++]=_={t:1,d:!1,i:0,c:{}}),_.d))return null;if(_.d=!0,J===1)K=q?K[Q]:K[Q]={};else if(J===0&&q)return null;return[Q,K,_.c]}function c(k,z){let j=z?.maxDepth??1000,J={},K={},Z=J,Q=K;for(let q=V(k,0);q<k.length;){if(k[q]==="["){let _=k[++q]==="[",$=g(k,q+=+_,"]");if(_){if(k[$[1]-1]!=="]")throw new x("expected end of table declaration",{toml:k,ptr:$[1]-1});$[1]++}let X=H($[0],J,K,_?2:1);if(!X)throw new x("trying to redefine an already defined table or value",{toml:k,ptr:q});Q=X[2],Z=X[1],q=$[1]}else{let _=g(k,q),$=H(_[0],Z,Q,0);if(!$)throw new x("trying to redefine an already defined table or value",{toml:k,ptr:q});let X=b(k,_[1],void 0,j);$[1][$[0]]=X[0],q=X[1]}if(q=V(k,q,!0),k[q]&&k[q]!==`
|
|
206
|
-
`&&k[q]!=="\r")throw new x("each key-value declaration must be followed by an end-of-line",{toml:k,ptr:q});q=V(k,q)}return J}/*!
|
|
207
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
208
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
209
|
-
*
|
|
210
|
-
* Redistribution and use in source and binary forms, with or without
|
|
211
|
-
* modification, are permitted provided that the following conditions are met:
|
|
212
|
-
*
|
|
213
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
214
|
-
* list of conditions and the following disclaimer.
|
|
215
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
216
|
-
* this list of conditions and the following disclaimer in the
|
|
217
|
-
* documentation and/or other materials provided with the distribution.
|
|
218
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
219
|
-
* may be used to endorse or promote products derived from this software without
|
|
220
|
-
* specific prior written permission.
|
|
221
|
-
*
|
|
222
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
223
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
224
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
225
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
226
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
227
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
228
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
229
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
230
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
231
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
232
|
-
*/var D=/^[a-z0-9-_]+$/i;function W(k){let z=typeof k;if(z==="object"){if(Array.isArray(k))return"array";if(k instanceof Date)return"date"}return z}function l(k){for(let z=0;z<k.length;z++)if(W(k[z])!=="object")return!1;return k.length!=0}function p(k){return JSON.stringify(k).replace(/\x7f/g,"\\u007f")}function B(k,z,j){if(j===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(z==="number")return isNaN(k)?"nan":k===1/0?"inf":k===-1/0?"-inf":k.toString();if(z==="bigint"||z==="boolean")return k.toString();if(z==="string")return p(k);if(z==="date"){if(isNaN(k.getTime()))throw new TypeError("cannot serialize invalid date");return k.toISOString()}if(z==="object")return o(k,j);if(z==="array")return r(k,j)}function o(k,z){let j=Object.keys(k);if(j.length===0)return"{}";let J="{ ";for(let K=0;K<j.length;K++){let Z=j[K];K&&(J+=", "),J+=D.test(Z)?Z:p(Z),J+=" = ",J+=B(k[Z],W(k[Z]),z-1)}return J+" }"}function r(k,z){if(k.length===0)return"[]";let j="[ ";for(let J=0;J<k.length;J++){if(J&&(j+=", "),k[J]===null||k[J]===void 0)throw new TypeError("arrays cannot contain null or undefined values");j+=B(k[J],W(k[J]),z-1)}return j+" ]"}function i(k,z,j){if(j===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let J="";for(let K=0;K<k.length;K++)J+=`[[${z}]]
|
|
233
|
-
`,J+=Y(k[K],z,j),J+=`
|
|
234
|
-
|
|
235
|
-
`;return J}function Y(k,z,j){if(j===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let J="",K="",Z=Object.keys(k);for(let Q=0;Q<Z.length;Q++){let q=Z[Q];if(k[q]!==null&&k[q]!==void 0){let _=W(k[q]);if(_==="symbol"||_==="function")throw new TypeError(`cannot serialize values of type '${_}'`);let $=D.test(q)?q:p(q);if(_==="array"&&l(k[q]))K+=i(k[q],z?`${z}.${$}`:$,j-1);else if(_==="object"){let X=z?`${z}.${$}`:$;K+=`[${X}]
|
|
236
|
-
`,K+=Y(k[q],X,j-1),K+=`
|
|
237
|
-
|
|
238
|
-
`}else J+=$,J+=" = ",J+=B(k[q],_,j),J+=`
|
|
239
|
-
`}}return`${J}
|
|
240
|
-
${K}`.trim()}function t(k,z){if(W(k)!=="object")throw new TypeError("stringify can only be called with an object");let j=z?.maxDepth??1000;return Y(k,"",j)}function e(k){let z=c(k);return U(k,z,{preserveIndentation:!1}),z}function k0(k){let z=m(k,{}),j=t(k);return z.whitespace.start+j+z.whitespace.end}export{k0 as stringifyTOML,e as parseTOML};
|
package/dist/chunk-vsgj9f0h.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gc as E,Mc as v}from"./chunk-6ct1erv4.js";import"./chunk-nhsag58c.js";import{Rc as O}from"./chunk-0x2p8v0y.js";import{Sc as $}from"./chunk-nrk7cdfz.js";import{Tc as k,Yc as C}from"./chunk-5asbctb1.js";var u=k($(),1);var q=k(O(),1),z=k($(),1);var U=k(O(),1),j=k($(),1),V=(y,w,_)=>{let I={EcsContainer:async(b)=>{let{fromHttp:x}=await import("./chunk-h124zbs5.js"),{fromContainerMetadata:A}=await import("./chunk-10x00s2d.js");return _?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>j.chain(x(b??{}),A(b))().then(R)},Ec2InstanceMetadata:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:x}=await import("./chunk-10x00s2d.js");return async()=>x(b)().then(R)},Environment:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:x}=await import("./chunk-af959jta.js");return async()=>x(b)().then(R)}};if(y in I)return I[y];else throw new j.CredentialsProviderError(`Unsupported credential source in profile ${w}. Got ${y}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:_})},R=(y)=>U.setCredentialFeature(y,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var X=(y,{profile:w="default",logger:_}={})=>{return Boolean(y)&&typeof y==="object"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1&&["undefined","string"].indexOf(typeof y.external_id)>-1&&["undefined","string"].indexOf(typeof y.mfa_serial)>-1&&(d(y,{profile:w,logger:_})||n(y,{profile:w,logger:_}))},d=(y,{profile:w,logger:_})=>{let I=typeof y.source_profile==="string"&&typeof y.credential_source==="undefined";if(I)_?.debug?.(` ${w} isAssumeRoleWithSourceProfile source_profile=${y.source_profile}`);return I},n=(y,{profile:w,logger:_})=>{let I=typeof y.credential_source==="string"&&typeof y.source_profile==="undefined";if(I)_?.debug?.(` ${w} isCredentialSourceProfile credential_source=${y.credential_source}`);return I},Y=async(y,w,_,I={})=>{_.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let b=w[y],{source_profile:x,region:A}=b;if(!_.roleAssumer){let{getDefaultRoleAssumer:K}=await import("./chunk-3q6hnzy0.js");_.roleAssumer=K({..._.clientConfig,credentialProviderLogger:_.logger,parentClientConfig:{..._?.parentClientConfig,region:A??_?.parentClientConfig?.region}},_.clientPlugins)}if(x&&x in I)throw new z.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${E(_)}. Profiles visited: `+Object.keys(I).join(", "),{logger:_.logger});_.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${x?`source_profile=[${x}]`:`profile=[${y}]`}`);let T=x?L(x,w,_,{...I,[x]:!0},W(w[x]??{})):(await V(b.credential_source,y,_.logger)(_))();if(W(b))return T.then((K)=>q.setCredentialFeature(K,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let K={RoleArn:b.role_arn,RoleSessionName:b.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:b.external_id,DurationSeconds:parseInt(b.duration_seconds||"3600",10)},{mfa_serial:B}=b;if(B){if(!_.mfaCodeProvider)throw new z.CredentialsProviderError(`Profile ${y} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:_.logger,tryNextLink:!1});K.SerialNumber=B,K.TokenCode=await _.mfaCodeProvider(B)}let P=await T;return _.roleAssumer(P,K).then((N)=>q.setCredentialFeature(N,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},W=(y)=>{return!y.role_arn&&!!y.credential_source};var Z=k(O(),1),H=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.credential_process==="string",c=async(y,w)=>import("./chunk-v10ahksj.js").then(({fromProcess:_})=>_({...y,profile:w})().then((I)=>Z.setCredentialFeature(I,"CREDENTIALS_PROFILE_PROCESS","v")));var G=k(O(),1),S=async(y,w,_={})=>{let{fromSSO:I}=await import("./chunk-83fm0fkc.js");return I({profile:y,logger:_.logger,parentClientConfig:_.parentClientConfig,clientConfig:_.clientConfig})().then((b)=>{if(w.sso_session)return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO","r");else return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},F=(y)=>y&&(typeof y.sso_start_url==="string"||typeof y.sso_account_id==="string"||typeof y.sso_session==="string"||typeof y.sso_region==="string"||typeof y.sso_role_name==="string");var M=k(O(),1),J=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.aws_access_key_id==="string"&&typeof y.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof y.aws_session_token)>-1&&["undefined","string"].indexOf(typeof y.aws_account_id)>-1,Q=async(y,w)=>{w?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let _={accessKeyId:y.aws_access_key_id,secretAccessKey:y.aws_secret_access_key,sessionToken:y.aws_session_token,...y.aws_credential_scope&&{credentialScope:y.aws_credential_scope},...y.aws_account_id&&{accountId:y.aws_account_id}};return M.setCredentialFeature(_,"CREDENTIALS_PROFILE","n")};var h=k(O(),1),D=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.web_identity_token_file==="string"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1,m=async(y,w)=>import("./chunk-qw71q60g.js").then(({fromTokenFile:_})=>_({webIdentityTokenFile:y.web_identity_token_file,roleArn:y.role_arn,roleSessionName:y.role_session_name,roleAssumerWithWebIdentity:w.roleAssumerWithWebIdentity,logger:w.logger,parentClientConfig:w.parentClientConfig})().then((I)=>h.setCredentialFeature(I,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var L=async(y,w,_,I={},b=!1)=>{let x=w[y];if(Object.keys(I).length>0&&J(x))return Q(x,_);if(b||X(x,{profile:y,logger:_.logger}))return Y(y,w,_,I);if(J(x))return Q(x,_);if(D(x))return m(x,_);if(H(x))return c(_,y);if(F(x))return await S(y,x,_);throw new u.CredentialsProviderError(`Could not resolve credentials using profile: [${y}] in configuration/credentials file(s).`,{logger:_.logger})};var ky=(y={})=>async({callerClientConfig:w}={})=>{let _={...y,parentClientConfig:{...w,...y.parentClientConfig}};_.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let I=await v(_);return L(E({profile:y.profile??w?.profile}),I,_)};export{ky as fromIni};
|