gemi 0.17.0 → 0.17.2
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/dist/app/index.js +2 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gemi.js +13 -12
- package/dist/bin/gemi.js.map +3 -3
- package/dist/broadcasting/index.js +1 -1
- package/dist/{chunk-0nbhfhjm.js → chunk-0gqecs9x.js} +2 -2
- package/dist/{chunk-0nbhfhjm.js.map → chunk-0gqecs9x.js.map} +1 -1
- package/dist/{chunk-xxeyvbxv.js → chunk-0mfpz0sr.js} +2 -2
- package/dist/{chunk-xxeyvbxv.js.map → chunk-0mfpz0sr.js.map} +1 -1
- package/dist/{chunk-1ad4b5rj.js → chunk-3e3vww1d.js} +2 -2
- package/dist/{chunk-1ad4b5rj.js.map → chunk-3e3vww1d.js.map} +1 -1
- package/dist/chunk-3q85w7aa.js +4 -0
- package/dist/{chunk-2r1y89gy.js.map → chunk-3q85w7aa.js.map} +1 -1
- package/dist/chunk-4czdf5mk.js +4 -0
- package/dist/{chunk-dg7gtcxz.js.map → chunk-4czdf5mk.js.map} +8 -12
- package/dist/{chunk-ks26vjaw.js → chunk-52na318z.js} +3 -3
- package/dist/{chunk-ks26vjaw.js.map → chunk-52na318z.js.map} +1 -1
- package/dist/{chunk-rdcx9ppk.js → chunk-5q5qjyxf.js} +2 -2
- package/dist/{chunk-rdcx9ppk.js.map → chunk-5q5qjyxf.js.map} +1 -1
- package/dist/{chunk-sf2we1v3.js → chunk-6fy0y9na.js} +2 -2
- package/dist/{chunk-sf2we1v3.js.map → chunk-6fy0y9na.js.map} +1 -1
- package/dist/{chunk-eex4vsfd.js → chunk-6jy726pm.js} +2 -2
- package/dist/{chunk-eex4vsfd.js.map → chunk-6jy726pm.js.map} +1 -1
- package/dist/chunk-6pwjkfk5.js +4 -0
- package/dist/{chunk-c99p8jbk.js.map → chunk-6pwjkfk5.js.map} +1 -1
- package/dist/chunk-bbzm124w.js +9 -0
- package/dist/chunk-bbzm124w.js.map +25 -0
- package/dist/{chunk-q7j24rgq.js → chunk-bk1yttt0.js} +2 -2
- package/dist/{chunk-q7j24rgq.js.map → chunk-bk1yttt0.js.map} +1 -1
- package/dist/{chunk-chyz7as9.js → chunk-d4scca74.js} +3 -3
- package/dist/{chunk-chyz7as9.js.map → chunk-d4scca74.js.map} +1 -1
- package/dist/{chunk-v7wx59a7.js → chunk-dak25pw2.js} +2 -2
- package/dist/{chunk-v7wx59a7.js.map → chunk-dak25pw2.js.map} +1 -1
- package/dist/{chunk-h07hzx11.js → chunk-e9n9prdq.js} +2 -2
- package/dist/{chunk-h07hzx11.js.map → chunk-e9n9prdq.js.map} +1 -1
- package/dist/{chunk-8z12f5zv.js → chunk-fe0fp00j.js} +3 -3
- package/dist/{chunk-8z12f5zv.js.map → chunk-fe0fp00j.js.map} +1 -1
- package/dist/{chunk-nhbsq0tb.js → chunk-fe1gn043.js} +2 -2
- package/dist/{chunk-nhbsq0tb.js.map → chunk-fe1gn043.js.map} +1 -1
- package/dist/{chunk-gfrsy13s.js → chunk-gd97hptj.js} +2 -2
- package/dist/{chunk-gfrsy13s.js.map → chunk-gd97hptj.js.map} +1 -1
- package/dist/{chunk-gnsf15vm.js → chunk-gn2m3jsa.js} +3 -3
- package/dist/{chunk-gnsf15vm.js.map → chunk-gn2m3jsa.js.map} +1 -1
- package/dist/{chunk-ebhm9drz.js → chunk-jxftkhsd.js} +2 -2
- package/dist/{chunk-ebhm9drz.js.map → chunk-jxftkhsd.js.map} +1 -1
- package/dist/{chunk-gq17snpw.js → chunk-k1xkhpre.js} +1 -1
- package/dist/{chunk-0gtrd3c6.js → chunk-nw4kw8js.js} +2 -2
- package/dist/{chunk-0gtrd3c6.js.map → chunk-nw4kw8js.js.map} +1 -1
- package/dist/{chunk-gkahp6d9.js → chunk-nxrhps23.js} +2 -2
- package/dist/{chunk-gkahp6d9.js.map → chunk-nxrhps23.js.map} +1 -1
- package/dist/{chunk-3wv0h3r6.js → chunk-r20a2grz.js} +2 -2
- package/dist/{chunk-3wv0h3r6.js.map → chunk-r20a2grz.js.map} +1 -1
- package/dist/{chunk-qskyr5d3.js → chunk-reqaqkjv.js} +3 -3
- package/dist/{chunk-qskyr5d3.js.map → chunk-reqaqkjv.js.map} +1 -1
- package/dist/chunk-s3nhz7k5.js +7 -0
- package/dist/{chunk-7dha7ya8.js.map → chunk-s3nhz7k5.js.map} +26 -19
- package/dist/{chunk-c4v7pram.js → chunk-tdad7es6.js} +2 -2
- package/dist/{chunk-c4v7pram.js.map → chunk-tdad7es6.js.map} +5 -5
- package/dist/chunk-w9f88sv6.js +8 -0
- package/dist/{chunk-z5q0aka9.js.map → chunk-w9f88sv6.js.map} +2 -2
- package/dist/{chunk-vhqapyd3.js → chunk-wqy8x387.js} +2 -2
- package/dist/{chunk-vhqapyd3.js.map → chunk-wqy8x387.js.map} +1 -1
- package/dist/{chunk-1x452caq.js → chunk-xmd0avcp.js} +3 -3
- package/dist/{chunk-1x452caq.js.map → chunk-xmd0avcp.js.map} +1 -1
- package/dist/{chunk-j0j1aw1d.js → chunk-yaw2ezys.js} +2 -2
- package/dist/{chunk-j0j1aw1d.js.map → chunk-yaw2ezys.js.map} +1 -1
- package/dist/{chunk-kgsj8tf1.js → chunk-yr45yx58.js} +2 -2
- package/dist/{chunk-kgsj8tf1.js.map → chunk-yr45yx58.js.map} +1 -1
- package/dist/{chunk-smpxfjy8.js → chunk-yvrp97kk.js} +3 -3
- package/dist/{chunk-smpxfjy8.js.map → chunk-yvrp97kk.js.map} +1 -1
- package/dist/client/ServerDataProvider.d.ts +0 -1
- package/dist/client/ServerDataProvider.d.ts.map +1 -1
- package/dist/client/ThemeProvider.d.ts +1 -1
- package/dist/client/ThemeProvider.d.ts.map +1 -1
- package/dist/client/index.js +30 -12
- package/dist/client/index.js.map +1 -1
- package/dist/email/index.js +1 -1
- package/dist/facades/index.js +21 -10
- package/dist/facades/index.js.map +3 -3
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.js.map +3 -3
- package/dist/services/index.js +62 -73
- package/dist/services/index.js.map +6 -18
- package/dist/services/router/ViewRouterServiceContainer.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2r1y89gy.js +0 -4
- package/dist/chunk-7dha7ya8.js +0 -7
- package/dist/chunk-c99p8jbk.js +0 -4
- package/dist/chunk-dg7gtcxz.js +0 -3
- package/dist/chunk-z5q0aka9.js +0 -8
- /package/dist/{chunk-gq17snpw.js.map → chunk-k1xkhpre.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewRouterServiceContainer.d.ts","sourceRoot":"","sources":["../../../services/router/ViewRouterServiceContainer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAU7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ViewRouterServiceContainer.d.ts","sourceRoot":"","sources":["../../../services/router/ViewRouterServiceContainer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAU7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA2CxD,qBAAa,0BAA2B,SAAQ,gBAAgB;IAS3C,OAAO,EAAE,yBAAyB;IARrD,MAAM,CAAC,KAAK,SAAgC;IAE5C,cAAc,EAAE,cAAc,CAAM;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAM;IAC7C,aAAa,EAAE,aAAa,CAAM;IAClC,iBAAiB,EAAE,MAAM,EAAE,CAAM;IACjC,IAAI,EAAE,GAAG,CAAQ;gBAEE,OAAO,EAAE,yBAAyB;IAarD,IAAI;IAEE,YAAY,CAAC,GAAG,EAAE,WAAW;YAarB,MAAM;IAiKd,iBAAiB,CAAC,GAAG,EAAE,OAAO,gCAlGZ;QACpB,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAC3C,aAAa,EAAE,GAAG,CAAC;QACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QACtC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC5B;CA+UJ"}
|
package/package.json
CHANGED
package/dist/chunk-2r1y89gy.js
DELETED
package/dist/chunk-7dha7ya8.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{fc as L}from"./chunk-gnsf15vm.js";import{hc as U}from"./chunk-ks26vjaw.js";import{rc as M}from"./chunk-sf2we1v3.js";var C=(e,t)=>{let r=[];if(e)r.push(e);if(t)for(let n of t)r.push(n);return r},b=(e,t)=>{return`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`},$=()=>{let e=[],t=[],r=!1,n=new Set,o=(a)=>a.sort((f,d)=>Z[d.step]-Z[f.step]||X[d.priority||"normal"]-X[f.priority||"normal"]),s=(a)=>{let f=!1,d=(p)=>{let y=C(p.name,p.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=(p)=>{if(p.middleware===a){f=!0;for(let y of C(p.name,p.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},h=(a)=>{let f=[];return a.before.forEach((d)=>{if(d.before.length===0&&d.after.length===0)f.push(d);else f.push(...h(d))}),f.push(a),a.after.reverse().forEach((d)=>{if(d.before.length===0&&d.after.length===0)f.push(d);else f.push(...h(d))}),f},g=(a=!1)=>{let f=[],d=[],p={};return e.forEach((l)=>{let m={...l,before:[],after:[]};for(let u of C(m.name,m.aliases))p[u]=m;f.push(m)}),t.forEach((l)=>{let m={...l,before:[],after:[]};for(let u of C(m.name,m.aliases))p[u]=m;d.push(m)}),d.forEach((l)=>{if(l.toMiddleware){let m=p[l.toMiddleware];if(m===void 0){if(a)return;throw new Error(`${l.toMiddleware} is not found when adding ${b(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")m.after.push(l);if(l.relation==="before")m.before.push(l)}}),o(f).map(h).reduce((l,m)=>{return l.push(...m),l},[])},E={add:(a,f={})=>{let{name:d,override:p,aliases:y}=f,l={step:"initialize",priority:"normal",middleware:a,...f},m=C(d,y);if(m.length>0){if(m.some((u)=>n.has(u))){if(!p)throw new Error(`Duplicate middleware name '${b(d,y)}'`);for(let u of m){let w=e.findIndex((_)=>_.name===u||_.aliases?.some((D)=>D===u));if(w===-1)continue;let T=e[w];if(T.step!==l.step||l.priority!==T.priority)throw new Error(`"${b(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${b(d,y)}" middleware with ${l.priority} priority in ${l.step} step.`);e.splice(w,1)}}for(let u of m)n.add(u)}e.push(l)},addRelativeTo:(a,f)=>{let{name:d,override:p,aliases:y}=f,l={middleware:a,...f},m=C(d,y);if(m.length>0){if(m.some((u)=>n.has(u))){if(!p)throw new Error(`Duplicate middleware name '${b(d,y)}'`);for(let u of m){let w=t.findIndex((_)=>_.name===u||_.aliases?.some((D)=>D===u));if(w===-1)continue;let T=t[w];if(T.toMiddleware!==l.toMiddleware||T.relation!==l.relation)throw new Error(`"${b(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${b(d,y)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);t.splice(w,1)}}for(let u of m)n.add(u)}t.push(l)},clone:()=>c($()),use:(a)=>{a.applyToStack(E)},remove:(a)=>{if(typeof a==="string")return s(a);else return i(a)},removeByTag:(a)=>{let f=!1,d=(p)=>{let{tags:y,name:l,aliases:m}=p;if(y&&y.includes(a)){let u=C(l,m);for(let w of u)n.delete(w);return f=!0,!1}return!0};return e=e.filter(d),t=t.filter(d),f},concat:(a)=>{let f=c($());return f.use(a),f.identifyOnResolve(r||f.identifyOnResolve()||(a.identifyOnResolve?.()??!1)),f},applyToStack:c,identify:()=>{return g(!0).map((a)=>{let f=a.step??a.relation+" "+a.toMiddleware;return b(a.name,a.aliases)+" - "+f})},identifyOnResolve(a){if(typeof a==="boolean")r=a;return r},resolve:(a,f)=>{for(let d of g().map((p)=>p.middleware).reverse())a=d(a,f);if(r)console.log(E.identify());return a}};return E},Z={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},X={high:3,normal:2,low:1};class Ie{constructor(e){this.config=e,this.middlewareStack=$()}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 K=M(U(),1);class v{constructor(){this.middlewareStack=$()}static classBuilder(){return new ee}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:i,outputFilterSensitiveLog:c,smithyContext:h,additionalContext:g,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,[K.SMITHY_CONTEXT_KEY]:{commandInstance:this,...h},...g},{requestHandler:p}=t;return a.resolve((y)=>p.handle(y.request,r||{}),d)}}class ee{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 v{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 Ae=M(L(),1);var St="***SensitiveInformation***";var $t=(e)=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};var 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))ae.warn(ce(`Expected number but observed string: ${e}`));return t}}if(typeof e==="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)},_e=Math.ceil(340282346638528860000000000000000000000),te=(e)=>{let t=Ne(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0){if(Math.abs(t)>_e)throw new TypeError(`Expected 32-bit float, got ${e}`)}return t},z=(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 re=(e)=>H(e,32),ne=(e)=>H(e,16),oe=(e)=>H(e,8),H=(e,t)=>{let r=z(e);if(r!==void 0&&Re(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Re=(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]}},Mt=(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},It=(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}`)},At=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string")return e;if(["boolean","number","bigint"].includes(typeof e))return ae.warn(ce(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};var se=(e)=>{if(typeof e=="string")return te(R(e));return te(e)},ke=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,R=(e)=>{let t=e.match(ke);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)};var Nt=(e)=>{if(typeof e==="string")return z(R(e));return z(e)};var _t=(e)=>{if(typeof e==="string")return re(R(e));return re(e)},I=(e)=>{if(typeof e==="string")return ne(R(e));return ne(e)},ie=(e)=>{if(typeof e==="string")return oe(R(e));return oe(e)},ce=(e)=>{return String(new TypeError(e).stack||e).split(`
|
|
2
|
-
`).slice(0,5).filter((t)=>!t.includes("stackTraceWarning")).join(`
|
|
3
|
-
`)},ae={warn:console.warn};var Fe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Pt(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),i=e.getUTCMinutes(),c=e.getUTCSeconds(),h=o<10?`0${o}`:`${o}`,g=s<10?`0${s}`:`${s}`,E=i<10?`0${i}`:`${i}`,a=c<10?`0${c}`:`${c}`;return`${Fe[n]}, ${h} ${W[r]} ${t} ${g}:${E}:${a} GMT`}var Pe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ot=(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,h,g]=t,E=I(A(n)),a=S(o,"month",1,12),f=S(s,"day",1,31);return k(E,a,f,{hours:i,minutes:c,seconds:h,fractionalMilliseconds:g})},Oe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Dt=(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=Oe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,c,h,g,E]=t,a=I(A(n)),f=S(o,"month",1,12),d=S(s,"day",1,31),p=k(a,f,d,{hours:i,minutes:c,seconds:h,fractionalMilliseconds:g});if(E.toUpperCase()!="Z")p.setTime(p.getTime()-qe(E));return p},De=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$/),Ue=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$/),Le=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})$/),Ut=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=De.exec(e);if(t){let[r,n,o,s,i,c,h,g]=t;return k(I(A(s)),B(o),S(n,"day",1,31),{hours:i,minutes:c,seconds:h,fractionalMilliseconds:g})}if(t=Ue.exec(e),t){let[r,n,o,s,i,c,h,g]=t;return Be(k(ze(s),B(o),S(n,"day",1,31),{hours:i,minutes:c,seconds:h,fractionalMilliseconds:g}))}if(t=Le.exec(e),t){let[r,n,o,s,i,c,h,g]=t;return k(I(A(g)),B(n),S(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:c,fractionalMilliseconds:h})}throw new TypeError("Invalid RFC-7231 date-time value")};var k=(e,t,r,n)=>{let o=t-1;return Je(e,o,r),new Date(Date.UTC(e,o,r,S(n.hours,"hour",0,23),S(n.minutes,"minute",0,59),S(n.seconds,"seconds",0,60),Ye(n.fractionalMilliseconds)))},ze=(e)=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+I(A(e));if(r<t)return r+100;return r},He=1576800000000,Be=(e)=>{if(e.getTime()-new Date().getTime()>He)return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()));return e},B=(e)=>{let t=W.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},We=[31,28,31,30,31,30,31,31,30,31,30,31],Je=(e,t,r)=>{let n=We[t];if(t===1&&je(e))n=29;if(r>n)throw new TypeError(`Invalid day for ${W[t]} in ${e}: ${r}`)},je=(e)=>{return e%4===0&&(e%100!==0||e%400===0)},S=(e,t,r,n)=>{let o=ie(A(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},Ye=(e)=>{if(e===null||e===void 0)return 0;return se("0."+e)*1000},qe=(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},A=(e)=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0")t++;if(t===0)return e;return e.slice(t)};class F 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 F.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===F)return F.isInstance(e);if(F.isInstance(e)){if(t.name&&this.name)return this.prototype.isPrototypeOf(e)||t.name===this.name;return this.prototype.isPrototypeOf(e)}return!1}}var fe=(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 Ve=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{let o=Qe(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:t?.code||t?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw fe(i,t)},Bt=(e)=>{return({output:t,parsedBody:r,errorCode:n})=>{Ve({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})}},Qe=(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 Jt=(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 de=!1,Yt=(e)=>{if(e&&!de&&parseInt(e.substring(1,e.indexOf(".")))<16)de=!0};var Ge=M(L(),1);var J=M(U(),1);var ue=(e)=>{let t=[];for(let r in J.AlgorithmId){let n=J.AlgorithmId[r];if(e[n]===void 0)continue;t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{addChecksumAlgorithm(r){t.push(r)},checksumAlgorithms(){return t}}},le=(e)=>{let t={};return e.checksumAlgorithms().forEach((r)=>{t[r.algorithmId()]=r.checksumConstructor()}),t};var he=(e)=>{return{setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}},me=(e)=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var Kt=(e)=>{return Object.assign(ue(e),he(e))};var vt=(e)=>{return Object.assign(le(e),me(e))};var nr=(e)=>Array.isArray(e)?e:[e];var ir=(e)=>{return e!=null};var N=function e(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};N.from=(e)=>{if(e&&typeof e==="object"&&(e instanceof N||("deserializeJSON"in e)))return e;else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype)return N(String(e));return N(JSON.stringify(e))};N.fromObject=N.from;class Ze{trace(){}debug(){}info(){}warn(){}error(){}}function Xe(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,Ke(n,o,s);else s=t;for(let i of Object.keys(s)){if(!Array.isArray(s[i])){n[i]=s[i];continue}pe(n,null,s,i)}return n}var dr=(e,t)=>{let r={};for(let n in t)pe(r,e,t,n);return r},Ke=(e,t,r)=>{return Xe(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},{}))},pe=(e,t,r,n)=>{if(t!==null){let i=r[n];if(typeof i==="function")i=[,i];let[c=ve,h=et,g=n]=i;if(typeof c==="function"&&c(t[g])||typeof c!=="function"&&!!c)e[n]=h(t[g]);return}let[o,s]=r[n];if(typeof s==="function"){let i,c=o===void 0&&(i=s())!=null,h=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(c)e[n]=i;else if(h)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}},ve=(e)=>e!=null,et=(e)=>e;function lr(e){if(e.includes(",")||e.includes('"'))e=`"${e.replace(/"/g,"\\\"")}"`;return e}var tt=M(L(),1);var pr=(e)=>e.toISOString().replace(".000Z","Z");var ge=(e)=>{if(e==null)return{};if(Array.isArray(e))return e.filter((t)=>t!=null).map(ge);if(typeof e==="object"){let t={};for(let r of Object.keys(e)){if(e[r]==null)continue;t[r]=ge(e[r])}return t}return e};var qr=(e)=>{return{setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}},Vr=(e)=>{return{httpHandler:e.httpHandler()}};var rt=M(U(),1);class j{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 j({...e,headers:{...e.headers}});if(t.query)t.query=nt(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 j.clone(this)}}function nt(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class O{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=(e)=>encodeURIComponent(e).replace(/[!'()*]/g,ot),ot=(e)=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function Y(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=P(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)t.push(`${r}=${P(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${P(n)}`;t.push(o)}}return t.join("&")}import{Agent as $e,request as at}from"http";import{Agent as Me,request as ft}from"https";var ye=["ECONNRESET","EPIPE","ETIMEDOUT"];var q=(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 x={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)};var we=1000,xe=(e,t,r=0)=>{if(!r)return-1;let n=(o)=>{let s=x.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",()=>{x.clearTimeout(s)});else x.clearTimeout(s)};if(e.socket)i(e.socket);else e.on("socket",i)};if(r<2000)return n(0),0;return x.setTimeout(n.bind(null,we),we)};var st=3000,Ee=(e,{keepAlive:t,keepAliveMsecs:r},n=st)=>{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 x.setTimeout(o,n)};var Te=3000,Se=(e,t,r=be)=>{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 x.setTimeout(n.bind(null,r===0?0:Te),Te)};import{Readable as it}from"stream";var Ce=6000;async function V(e,t,r=Ce){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(x.setTimeout(()=>c(!0),Math.max(Ce,r)))}),new Promise((c)=>{e.on("continue",()=>{x.clearTimeout(s),c(!0)}),e.on("response",()=>{x.clearTimeout(s),c(!1)}),e.on("error",()=>{x.clearTimeout(s),c(!1)})})]);if(i)ct(e,t.body)}function ct(e,t){if(t instanceof it){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 be=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 h=n[c]?.length??0,g=o[c]?.length??0;if(h>=s&&g>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${h} and ${g} 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,h=50;return{connectionTimeout:r,requestTimeout:t??n,socketAcquisitionWarningTimeout:o,httpAgent:(()=>{if(s instanceof $e||typeof s?.destroy==="function")return s;return new $e({keepAlive:!0,maxSockets:50,...s})})(),httpsAgent:(()=>{if(i instanceof Me||typeof i?.destroy==="function")return i;return new Me({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(x.clearTimeout),r(u)},c=async(u)=>{await o,s.forEach(x.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 h=e.protocol==="https:",g=h?this.config.httpsAgent:this.config.httpAgent;s.push(x.setTimeout(()=>{this.socketWarningTimestamp=Q.checkSocketUsage(g,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let E=Y(e.query||{}),a=void 0;if(e.username!=null||e.password!=null){let u=e.username??"",w=e.password??"";a=`${u}:${w}`}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 p={headers:e.headers,host:d,method:e.method,path:f,port:e.port,agent:g,auth:a},l=(h?ft:at)(p,(u)=>{let w=new O({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:q(u.headers),body:u});i({response:w})});if(l.on("error",(u)=>{if(ye.includes(u.code))c(Object.assign(u,{name:"TimeoutError"}));else c(u)}),t){let u=()=>{l.destroy();let w=new Error("Request aborted");w.name="AbortError",c(w)};if(typeof t.addEventListener==="function"){let w=t;w.addEventListener("abort",u,{once:!0}),l.once("close",()=>w.removeEventListener("abort",u))}else t.onabort=u}s.push(xe(l,c,this.config.connectionTimeout)),s.push(Se(l,c,this.config.requestTimeout));let m=p.agent;if(typeof m==="object"&&"keepAlive"in m)s.push(Ee(l,{keepAlive:m.keepAlive,keepAliveMsecs:m.keepAliveMsecs}));o=V(l,e,this.config.requestTimeout).catch((u)=>{return s.forEach(x.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 dt}from"stream";class G extends dt{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,r){this.bufferedBytes.push(e),r()}}var so=(e)=>{if(ut(e))return lt(e);return new Promise((t,r)=>{let n=new G;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)})})},ut=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function lt(e){let t=[],r=e.getReader(),n=!1,o=0;while(!n){let{done:c,value:h}=await r.read();if(h)t.push(h),o+=h.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{qr as bb,Vr as cb,j as db,O as eb,Ie as fb,Ae as gb,v as hb,St as ib,$t as jb,Mt as kb,It as lb,At as mb,Nt as nb,_t as ob,Pt as pb,Ot as qb,Dt as rb,Ut as sb,F as tb,fe as ub,Bt as vb,Jt as wb,Yt as xb,Kt as yb,vt as zb,nr as Ab,ir as Bb,Ze as Cb,Xe as Db,dr as Eb,lr as Fb,pr as Gb,ge as Hb,P as Ib,Q as Jb,so as Kb};
|
|
6
|
-
|
|
7
|
-
//# debugId=C99651471A23876A64756E2164756E21
|
package/dist/chunk-c99p8jbk.js
DELETED
package/dist/chunk-dg7gtcxz.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ta as F,Ua as Ee}from"./chunk-1x452caq.js";import{Za as me}from"./chunk-gfrsy13s.js";import{Cb as wt,db as m,eb as Oe}from"./chunk-7dha7ya8.js";import{Qb as Mt}from"./chunk-0gtrd3c6.js";import{Rb as $,Sb as Sr,Tb as De,Wb as nr,Xb as Nr}from"./chunk-chyz7as9.js";import{hc as Kt}from"./chunk-ks26vjaw.js";import{rc as E,tc as Xr}from"./chunk-sf2we1v3.js";function Qr(e){return e}var Gt=(e)=>(t)=>async(r)=>{if(!m.isInstance(r.request))return t(r);let{request:o}=r,{handlerProtocol:n=""}=e.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!o.headers[":authority"])delete o.headers.host,o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"");else if(!o.headers.host){let s=o.hostname;if(o.port!=null)s+=`:${o.port}`;o.headers.host=s}return t(r)},Vt={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},eo=(e)=>({applyToStack:(t)=>{t.add(Gt(e),Vt)}});var Bt=()=>(e,t)=>async(r)=>{try{let o=await e(r),{clientName:n,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:f}=a,u=c??t.inputFilterSensitiveLog,_=f??t.outputFilterSensitiveLog,{$metadata:l,...d}=o.output;return i?.info?.({clientName:n,commandName:s,input:u(r.input),output:_(d),metadata:l}),o}catch(o){let{clientName:n,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c}=a,f=c??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:s,input:f(r.input),error:o,metadata:o.$metadata}),o}},Wt={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},ro=(e)=>({applyToStack:(t)=>{t.add(Bt(),Wt)}});var se="X-Amzn-Trace-Id",Yt="AWS_LAMBDA_FUNCTION_NAME",jt="_X_AMZN_TRACE_ID",zt=(e)=>(t)=>async(r)=>{let{request:o}=r;if(!m.isInstance(o)||e.runtime!=="node")return t(r);let n=Object.keys(o.headers??{}).find((c)=>c.toLowerCase()===se.toLowerCase())??se;if(o.headers.hasOwnProperty(n))return t(r);let s=process.env[Yt],i=process.env[jt],a=(c)=>typeof c==="string"&&c.length>0;if(a(s)&&a(i))o.headers[se]=i;return t({...r,request:o})},Xt={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},ao=(e)=>({applyToStack:(t)=>{t.add(zt(e),Xt)}});var Ce=E(De(),1),ie=void 0;function Ht(e){if(e===void 0)return!0;return typeof e==="string"&&e.length<=50}function fo(e){let t=Ce.normalizeProvider(e.userAgentAppId??ie),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r==="string"?[[r]]:r,userAgentAppId:async()=>{let o=await t();if(!Ht(o)){let n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof o!=="string")n?.warn("userAgentAppId must be a string or undefined.");else if(o.length>50)n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return o}})}class qt{constructor({size:e,params:t}){if(this.data=new Map,this.parameters=[],this.capacity=e??50,t)this.parameters=t}get(e,t){let r=this.hash(e);if(r===!1)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let o=this.data.keys(),n=0;while(!0){let{value:s,done:i}=o.next();if(this.data.delete(s),i||++n>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="",{parameters:r}=this;if(r.length===0)return!1;for(let o of r){let n=String(e[o]??"");if(n.includes("|;"))return!1;t+=n+"|;"}return t}}var Zt=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}$"),v=(e)=>Zt.test(e)||e.startsWith("[")&&e.endsWith("]");var Jt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),L=(e,t=!1)=>{if(!t)return Jt.test(e);let r=e.split(".");for(let o of r)if(!L(o))return!1;return!0};var M={};var h="endpoints";function g(e){if(typeof e!=="object"||e==null)return e;if("ref"in e)return`$${g(e.ref)}`;if("fn"in e)return`${e.fn}(${(e.argv||[]).map(g).join(", ")})`;return JSON.stringify(e,null,2)}class p extends Error{constructor(e){super(e);this.name="EndpointError"}}var Ue=(e,t)=>e===t;var Pe=(e)=>{let t=e.split("."),r=[];for(let o of t){let n=o.indexOf("[");if(n!==-1){if(o.indexOf("]")!==o.length-1)throw new p(`Path: '${e}' does not end with ']'`);let s=o.slice(n+1,-1);if(Number.isNaN(parseInt(s)))throw new p(`Invalid array index: '${s}' in path: '${e}'`);if(n!==0)r.push(o.slice(0,n));r.push(s)}else r.push(o)}return r};var B=(e,t)=>Pe(t).reduce((r,o)=>{if(typeof r!=="object")throw new p(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);else if(Array.isArray(r))return r[parseInt(o)];return r[o]},e);var ve=(e)=>e!=null;var Le=(e)=>!e;var W=E(Kt(),1);var ae={[W.EndpointURLScheme.HTTP]:80,[W.EndpointURLScheme.HTTPS]:443},Me=(e)=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==="object"&&"hostname"in e){let{hostname:l,port:d,protocol:N="",path:V="",query:$t={}}=e,be=new URL(`${N}//${l}${d?`:${d}`:""}${V}`);return be.search=Object.entries($t).map(([Ft,kt])=>`${Ft}=${kt}`).join("&"),be}return new URL(e)}catch(l){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:o,hostname:n,pathname:s,protocol:i,search:a}=t;if(a)return null;let c=i.slice(0,-1);if(!Object.values(W.EndpointURLScheme).includes(c))return null;let f=v(n),u=r.includes(`${o}:${ae[c]}`)||typeof e==="string"&&e.includes(`${o}:${ae[c]}`),_=`${o}${u?`:${ae[c]}`:""}`;return{scheme:c,authority:_,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:f}};var $e=(e,t)=>e===t;var Fe=(e,t,r,o)=>{if(t>=r||e.length<r)return null;if(!o)return e.substring(t,r);return e.substring(e.length-r,e.length-t)};var ke=(e)=>encodeURIComponent(e).replace(/[!*'()]/g,(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);var Ge={booleanEquals:Ue,getAttr:B,isSet:ve,isValidHostLabel:L,not:Le,parseURL:Me,stringEquals:$e,substring:Fe,uriEncode:ke};var Y=(e,t)=>{let r=[],o={...t.endpointParams,...t.referenceRecord},n=0;while(n<e.length){let s=e.indexOf("{",n);if(s===-1){r.push(e.slice(n));break}r.push(e.slice(n,s));let i=e.indexOf("}",s);if(i===-1){r.push(e.slice(s));break}if(e[s+1]==="{"&&e[i+1]==="}")r.push(e.slice(s+1,i)),n=i+2;let a=e.substring(s+1,i);if(a.includes("#")){let[c,f]=a.split("#");r.push(B(o[c],f))}else r.push(o[a]);n=i+1}return r.join("")};var Ve=({ref:e},t)=>{return{...t.endpointParams,...t.referenceRecord}[e]};var S=(e,t,r)=>{if(typeof e==="string")return Y(e,r);else if(e.fn)return j(e,r);else if(e.ref)return Ve(e,r);throw new p(`'${t}': ${String(e)} is not a string, function or reference.`)};var j=({fn:e,argv:t},r)=>{let o=t.map((s)=>["boolean","number"].includes(typeof s)?s:S(s,"arg",r)),n=e.split(".");if(n[0]in M&&n[1]!=null)return M[n[0]][n[1]](...o);return Ge[e](...o)};var Be=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new p(`'${e}' is already defined in Reference Record.`);let o=j(t,r);return r.logger?.debug?.(`${h} evaluateCondition: ${g(t)} = ${g(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};var y=(e=[],t)=>{let r={};for(let o of e){let{result:n,toAssign:s}=Be(o,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!n)return{result:n};if(s)r[s.name]=s.value,t.logger?.debug?.(`${h} assign: ${s.name} := ${g(s.value)}`)}return{result:!0,referenceRecord:r}};var We=(e,t)=>Object.entries(e).reduce((r,[o,n])=>({...r,[o]:n.map((s)=>{let i=S(s,"Header value entry",t);if(typeof i!=="string")throw new p(`Header '${o}' value '${i}' is not a string`);return i})}),{});var ce=(e,t)=>{if(Array.isArray(e))return e.map((r)=>ce(r,t));switch(typeof e){case"string":return Y(e,t);case"object":if(e===null)throw new p(`Unexpected endpoint property: ${e}`);return z(e,t);case"boolean":return e;default:throw new p(`Unexpected endpoint property type: ${typeof e}`)}};var z=(e,t)=>Object.entries(e).reduce((r,[o,n])=>({...r,[o]:ce(n,t)}),{});var Ye=(e,t)=>{let r=S(e,"Endpoint URL",t);if(typeof r==="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new p(`Endpoint URL must be a string, got ${typeof r}`)};var je=(e,t)=>{let{conditions:r,endpoint:o}=e,{result:n,referenceRecord:s}=y(r,t);if(!n)return;let i={...t,referenceRecord:{...t.referenceRecord,...s}},{url:a,properties:c,headers:f}=o;return t.logger?.debug?.(`${h} Resolving endpoint from template: ${g(o)}`),{...f!=null&&{headers:We(f,i)},...c!=null&&{properties:z(c,i)},url:Ye(a,i)}};var ze=(e,t)=>{let{conditions:r,error:o}=e,{result:n,referenceRecord:s}=y(r,t);if(!n)return;throw new p(S(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))};var Xe=(e,t)=>{let{conditions:r,rules:o}=e,{result:n,referenceRecord:s}=y(r,t);if(!n)return;return X(o,{...t,referenceRecord:{...t.referenceRecord,...s}})};var X=(e,t)=>{for(let r of e)if(r.type==="endpoint"){let o=je(r,t);if(o)return o}else if(r.type==="error")ze(r,t);else if(r.type==="tree"){let o=Xe(r,t);if(o)return o}else throw new p(`Unknown endpoint rule: ${r}`);throw new p("Rules evaluation failed")};var Qt=(e,t)=>{let{endpointParams:r,logger:o}=t,{parameters:n,rules:s}=e;t.logger?.debug?.(`${h} Initial EndpointParams: ${g(r)}`);let i=Object.entries(n).filter(([,f])=>f.default!=null).map(([f,u])=>[f,u.default]);if(i.length>0)for(let[f,u]of i)r[f]=r[f]??u;let a=Object.entries(n).filter(([,f])=>f.required).map(([f])=>f);for(let f of a)if(r[f]==null)throw new p(`Missing required parameter: '${f}'`);let c=X(s,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${h} Resolved endpoint: ${g(c)}`),c};var fe=(e,t=!1)=>{if(t){for(let r of e.split("."))if(!fe(r))return!1;return!0}if(!L(e))return!1;if(e.length<3||e.length>63)return!1;if(e!==e.toLowerCase())return!1;if(v(e))return!1;return!0};var He=(e)=>{let t=e.split(":");if(t.length<6)return null;let[r,o,n,s,i,...a]=t;if(r!=="arn"||o===""||n===""||a.join(":")==="")return null;let c=a.map((f)=>f.split("/")).flat();return{partition:o,service:n,region:s,accountId:i,resourceId:c}};var qe={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:{"aws-iso-e-global":{description:"AWS ISOE (Europe) global region"},"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"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"amazonaws.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"EU (Germany)"}}}],version:"1.1"};var tr=qe,rr="",Ze=(e)=>{let{partitions:t}=tr;for(let o of t){let{regions:n,outputs:s}=o;for(let[i,a]of Object.entries(n))if(i===e)return{...s,...a}}for(let o of t){let{regionRegex:n,outputs:s}=o;if(new RegExp(n).test(e))return{...s}}let r=t.find((o)=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}};var Je=()=>rr;var or={isVirtualHostableS3Bucket:fe,parseArn:He,partition:Ze};M.aws=or;var R=E(nr(),1),sr=/\d{12}\.ddb/;async function Ke(e,t,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")R.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M");if(typeof t.retryStrategy==="function"){let s=await t.retryStrategy();if(typeof s.acquireInitialRetryToken==="function")if(s.constructor?.name?.includes("Adaptive"))R.setFeature(e,"RETRY_MODE_ADAPTIVE","F");else R.setFeature(e,"RETRY_MODE_STANDARD","E");else R.setFeature(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode==="function"){let s=e.endpointV2;if(String(s?.url?.hostname).match(sr))R.setFeature(e,"ACCOUNT_ID_ENDPOINT","O");switch(await t.accountIdEndpointMode?.()){case"disabled":R.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":R.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":R.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){let s=n;if(s.accountId)R.setFeature(e,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))R.setFeature(e,i,a)}}var pe="user-agent",H="x-amz-user-agent",ue=" ",q="/",Qe=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,et=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,de="-";function tt(e){let t="";for(let r in e){let o=e[r];if(t.length+o.length+1<=1024){if(t.length)t+=","+o;else t+=o;continue}break}return t}var ir=(e)=>(t,r)=>async(o)=>{let{request:n}=o;if(!m.isInstance(n))return t(o);let{headers:s}=n,i=r?.userAgent?.map(Z)||[],a=(await e.defaultUserAgentProvider()).map(Z);await Ke(r,e,o);let c=r;a.push(`m/${tt(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let f=e?.customUserAgent?.map(Z)||[],u=await e.userAgentAppId();if(u)a.push(Z([`app/${u}`]));let _=Je(),l=(_?[_]:[]).concat([...a,...i,...f]).join(ue),d=[...a.filter((N)=>N.startsWith("aws-sdk-")),...f].join(ue);if(e.runtime!=="browser"){if(d)s[H]=s[H]?`${s[pe]} ${d}`:d;s[pe]=l}else s[H]=l;return t({...o,request:n})},Z=(e)=>{let t=e[0].split(q).map((i)=>i.replace(Qe,de)).join(q),r=e[1]?.replace(et,de),o=t.indexOf(q),n=t.substring(0,o),s=t.substring(o+1);if(n==="api")s=s.toLowerCase();return[n,s,r].filter((i)=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},ar={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Zs=(e)=>({applyToStack:(t)=>{t.add(ir(e),ar)}});var J=(e)=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));var le=(e)=>J(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;var ii=(e)=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{if(typeof t==="string")return le(t);let o=await t();return le(o)},useFipsEndpoint:async()=>{let o=typeof t==="string"?t:await t();if(J(o))return!0;return typeof r!=="function"?Promise.resolve(!!r):r()}})};var b=(e,t,r)=>{if(!(t in e))return;if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)};var T;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(T||(T={}));var cr="AWS_USE_DUALSTACK_ENDPOINT",fr="use_dualstack_endpoint";var gi={environmentVariableSelector:(e)=>b(e,cr,T.ENV),configFileSelector:(e)=>b(e,fr,T.CONFIG),default:!1};var pr="AWS_USE_FIPS_ENDPOINT",ur="use_fips_endpoint";var _i={environmentVariableSelector:(e)=>b(e,pr,T.ENV),configFileSelector:(e)=>b(e,ur,T.CONFIG),default:!1};var dr=E($(),1);var lr=E($(),1);var rt={environmentVariableSelector:(e)=>e.AWS_REGION,configFileSelector:(e)=>e.region,default:()=>{throw new Error("Region is missing")}},Ci={preferredFile:"credentials"};var ot="content-length";function mr(e){return(t)=>async(r)=>{let o=r.request;if(m.isInstance(o)){let{body:n,headers:s}=o;if(n&&Object.keys(s).map((i)=>i.toLowerCase()).indexOf(ot)===-1)try{let i=e(n);o.headers={...o.headers,[ot]:String(i)}}catch(i){}}return t({...r,request:o})}}var Er={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},na=(e)=>({applyToStack:(t)=>{t.add(mr(e.bodyLengthChecker),Er)}});var lt=E(Sr(),1);var pt=E(De(),1),ut=E($(),1);var nt=async(e)=>{let t=e?.Bucket||"";if(typeof e.Bucket==="string")e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Ar(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!_r(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)e.ForcePathStyle=!0;if(e.DisableMultiRegionAccessPoints)e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0;return e},gr=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,xr=/(\d+\.){3}\d+/,Rr=/\.\./;var _r=(e)=>gr.test(e)&&!xr.test(e)&&!Rr.test(e),Ar=(e)=>{let[t,r,o,,,n]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,i=Boolean(s&&r&&o&&n);if(s&&!i)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return i};var st=(e,t,r)=>{let o=async()=>{let n=r[e]??r[t];if(typeof n==="function")return n();return n};if(e==="credentialScope"||t==="CredentialScope")return async()=>{let n=typeof r.credentials==="function"?await r.credentials():r.credentials;return n?.credentialScope??n?.CredentialScope};if(e==="accountId"||t==="AccountId")return async()=>{let n=typeof r.credentials==="function"?await r.credentials():r.credentials;return n?.accountId??n?.AccountId};if(e==="endpoint"||t==="endpoint")return async()=>{let n=await o();if(n&&typeof n==="object"){if("url"in n)return n.url.href;if("hostname"in n){let{protocol:s,hostname:i,port:a,path:c}=n;return`${s}//${i}${a?":"+a:""}${c}`}}return n};return o};var it="AWS_ENDPOINT_URL",at="endpoint_url",ct=(e)=>({environmentVariableSelector:(t)=>{let r=e.split(" ").map((s)=>s.toUpperCase()),o=t[[it,...r].join("_")];if(o)return o;let n=t[it];if(n)return n;return},configFileSelector:(t,r)=>{if(r&&t.services){let n=r[["services",t.services].join(me)];if(n){let s=e.split(" ").map((a)=>a.toLowerCase()),i=n[[s.join("_"),at].join(me)];if(i)return i}}let o=t[at];if(o)return o;return},default:void 0});var K=async(e)=>F(ct(e??""))();var Q=(e)=>{if(typeof e==="object"){if("url"in e)return Ee(e.url);return e}return Ee(e)};var ft=async(e,t,r,o)=>{if(!r.endpoint){let i;if(r.serviceConfiguredEndpoint)i=await r.serviceConfiguredEndpoint();else i=await K(r.serviceId);if(i)r.endpoint=()=>Promise.resolve(Q(i))}let n=await hr(e,t,r);if(typeof r.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(n,o)},hr=async(e,t,r)=>{let o={},n=t?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(n))switch(i.type){case"staticContextParams":o[s]=i.value;break;case"contextParams":o[s]=e[i.name];break;case"clientContextParams":case"builtInParams":o[s]=await st(i.name,s,r)();break;case"operationContextParams":o[s]=i.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}if(Object.keys(n).length===0)Object.assign(o,r);if(String(r.serviceId).toLowerCase()==="s3")await nt(o);return o};var dt=({config:e,instructions:t})=>{return(r,o)=>async(n)=>{if(e.endpoint)pt.setFeature(o,"ENDPOINT_OVERRIDE","N");let s=await ft(n.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;let i=o.authSchemes?.[0];if(i){o.signing_region=i.signingRegion,o.signing_service=i.signingName;let c=ut.getSmithyContext(o)?.selectedHttpAuthScheme?.httpAuthOption;if(c)c.signingProperties=Object.assign(c.signingProperties||{},{signing_region:i.signingRegion,signingRegion:i.signingRegion,signing_service:i.signingName,signingName:i.signingName,signingRegionSet:i.signingRegionSet},i.properties)}return r({...n})}};var Tr={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:lt.serializerMiddlewareOption.name},wa=(e,t)=>({applyToStack:(r)=>{r.addRelativeTo(dt({config:e,instructions:t}),Tr)}});var ee=E($(),1);var ba=(e)=>{let t=e.tls??!0,{endpoint:r,useDualstackEndpoint:o,useFipsEndpoint:n}=e,s=r!=null?async()=>Q(await ee.normalizeProvider(r)()):void 0,a=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!r,useDualstackEndpoint:ee.normalizeProvider(o??!1),useFipsEndpoint:ee.normalizeProvider(n??!1)}),c=void 0;return a.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!c)c=K(e.serviceId);return c},a};var Se=E($(),1);var x;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(x||(x={}));var O=3,mt=x.STANDARD;var Et=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],gt=["TimeoutError","RequestTimeout","RequestTimeoutException"],xt=[500,502,503,504],Rt=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var Or=(e)=>e.$metadata?.clockSkewCorrected,D=(e)=>e.$metadata?.httpStatusCode===429||Et.includes(e.name)||e.$retryable?.throttling==!0,k=(e,t=0)=>Or(e)||gt.includes(e.name)||Rt.includes(e?.code||"")||xt.includes(e.$metadata?.httpStatusCode||0)||e.cause!==void 0&&t<=10&&k(e.cause,t+1),_t=(e)=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!k(e))return!0;return!1}return!1};class C{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??0.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??0.5,this.scaleConstant=e?.scaleConstant??0.4,this.smooth=e?.smooth??0.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled)return;if(this.refillTokenBucket(),e>this.currentCapacity){let t=(e-this.currentCapacity)/this.fillRate*1000;await new Promise((r)=>C.setTimeoutFn(r,t))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),D(e)){let o=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}C.setTimeoutFn=setTimeout;var w=100,G=20000,ge=500,te=500,xe=5,Re=10,_e=1,re="amz-sdk-invocation-id",oe="amz-sdk-request";var At=()=>{let e=w;return{computeNextBackoffDelay:(o)=>{return Math.floor(Math.min(G,Math.random()*2**o*e))},setDelayBase:(o)=>{e=o}}};var Ae=({retryDelay:e,retryCount:t,retryCost:r})=>{return{getRetryCount:()=>t,getRetryDelay:()=>Math.min(G,e),getRetryCost:()=>r}};class U{constructor(e){this.maxAttempts=e,this.mode=x.STANDARD,this.capacity=te,this.retryBackoffStrategy=At(),this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return Ae({retryDelay:w,retryCount:0})}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){let o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?ge:w);let n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(o);return this.capacity-=i,Ae({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(te,this.capacity+(e.getRetryCost()??_e))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${O}`),O}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?Re:xe}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class he{constructor(e,t){this.maxAttemptsProvider=e,this.mode=x.ADAPTIVE;let{rateLimiter:r}=t??{};this.rateLimiter=r??new C,this.standardRetryStrategy=new U(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}var ht="AWS_MAX_ATTEMPTS",St="max_attempts",_c={environmentVariableSelector:(e)=>{let t=e[ht];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${ht} mast be a number, got "${t}"`);return r},configFileSelector:(e)=>{let t=e[St];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${St} mast be a number, got "${t}"`);return r},default:O},Ac=(e)=>{let{retryStrategy:t,retryMode:r,maxAttempts:o}=e,n=Se.normalizeProvider(o??O);return Object.assign(e,{maxAttempts:n,retryStrategy:async()=>{if(t)return t;if(await Se.normalizeProvider(r)()===x.ADAPTIVE)return new he(n);return new U(n)}})},wr="AWS_RETRY_MODE",Ir="retry_mode",hc={environmentVariableSelector:(e)=>e[wr],configFileSelector:(e)=>e[Ir],default:mt};var A=E(Nr(),1),Tc=A.default.v1,Oc=A.default.v3,Tt=A.default.v4,wc=A.default.v5,Ic=A.default.NIL,Nc=A.default.version,yc=A.default.validate,bc=A.default.stringify,Dc=A.default.parse;import{Readable as yr}from"stream";var Ot=(e)=>e?.body instanceof yr||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;var Te=(e)=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};var br=(e)=>(t,r)=>async(o)=>{let n=await e.retryStrategy(),s=await e.maxAttempts();if(Dr(n)){n=n;let i=await n.acquireInitialRetryToken(r.partition_id),a=new Error,c=0,f=0,{request:u}=o,_=m.isInstance(u);if(_)u.headers[re]=Tt();while(!0)try{if(_)u.headers[oe]=`attempt=${c+1}; max=${s}`;let{response:l,output:d}=await t(o);return n.recordSuccess(i),d.$metadata.attempts=c+1,d.$metadata.totalRetryDelay=f,{response:l,output:d}}catch(l){let d=Cr(l);if(a=Te(l),_&&Ot(u))throw(r.logger instanceof wt?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),a;try{i=await n.refreshRetryTokenForRetry(i,d)}catch(V){if(!a.$metadata)a.$metadata={};throw a.$metadata.attempts=c+1,a.$metadata.totalRetryDelay=f,a}c=i.getRetryCount();let N=i.getRetryDelay();f+=N,await new Promise((V)=>setTimeout(V,N))}}else{if(n=n,n?.mode)r.userAgent=[...r.userAgent||[],["cfg/retry-mode",n.mode]];return n.retry(t,o)}},Dr=(e)=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined",Cr=(e)=>{let t={error:e,errorType:Ur(e)},r=vr(e.$response);if(r)t.retryAfterHint=r;return t},Ur=(e)=>{if(D(e))return"THROTTLING";if(k(e))return"TRANSIENT";if(_t(e))return"SERVER_ERROR";return"CLIENT_ERROR"},Pr={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Bc=(e)=>({applyToStack:(t)=>{t.add(br(e),Pr)}}),vr=(e)=>{if(!Oe.isInstance(e))return;let t=Object.keys(e.headers).find((s)=>s.toLowerCase()==="retry-after");if(!t)return;let r=e.headers[t],o=Number(r);if(!Number.isNaN(o))return new Date(o*1000);return new Date(r)};import{platform as Lr,release as Mr}from"os";import{env as Nt,versions as $r}from"process";var we={isCrtAvailable:!1};var It=()=>{if(we.isCrtAvailable)return["md/crt-avail"];return null};var Cf=({serviceId:e,clientVersion:t})=>{return async(r)=>{let o=[["aws-sdk-js",t],["ua","2.1"],[`os/${Lr()}`,Mr()],["lang/js"],["md/nodejs",`${$r.node}`]],n=It();if(n)o.push(n);if(e)o.push([`api/${e}`,t]);if(Nt.AWS_EXECUTION_ENV)o.push([`exec-env/${Nt.AWS_EXECUTION_ENV}`]);let s=await r?.userAgentAppId?.();return s?[...o,[`app/${s}`]]:[...o]}};var Fr="AWS_SDK_UA_APP_ID",kr="sdk_ua_app_id",Gr="sdk-ua-app-id",Lf={environmentVariableSelector:(e)=>e[Fr],configFileSelector:(e)=>e[kr]??e[Gr],default:ie};var yt=(e)=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";import{Buffer as Ie}from"buffer";var I=(e,t=0,r=e.byteLength-t)=>{if(!yt(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Ie.from(e,t,r)},P=(e,t)=>{if(typeof e!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Ie.from(e,t):Ie.from(e)};var ne=(e)=>{let t=P(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var bt=(e)=>{if(typeof e==="string")return ne(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)};var qf=(e)=>{if(typeof e==="string")return e;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return I(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};import{Buffer as Vr}from"buffer";import{createHash as Br,createHmac as Wr}from"crypto";class Yr{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(bt(Dt(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Wr(this.algorithmIdentifier,Dt(this.secret)):Br(this.algorithmIdentifier)}}function Dt(e,t){if(Vr.isBuffer(e))return e;if(typeof e==="string")return P(e,t);if(ArrayBuffer.isView(e))return I(e.buffer,e.byteOffset,e.byteLength);return I(e)}import{fstatSync as jr,lstatSync as zr}from"fs";var ap=(e)=>{if(!e)return 0;if(typeof e==="string")return Buffer.byteLength(e);else if(typeof e.byteLength==="number")return e.byteLength;else if(typeof e.size==="number")return e.size;else if(typeof e.start==="number"&&typeof e.end==="number")return e.end+1-e.start;else if(typeof e.path==="string"||Buffer.isBuffer(e.path))return zr(e.path).size;else if(typeof e.fd==="number")return jr(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};var Ct="AWS_EXECUTION_ENV",Ne="AWS_REGION",ye="AWS_DEFAULT_REGION",Ut="AWS_EC2_METADATA_DISABLED",Pt=["in-region","cross-region","mobile","standard","legacy"],vt="/latest/meta-data/placement/region";var Lt={environmentVariableSelector:(e)=>{return e.AWS_DEFAULTS_MODE},configFileSelector:(e)=>{return e.defaults_mode},default:"legacy"};var Rp=({region:e=F(rt),defaultsMode:t=F(Lt)}={})=>Mt(async()=>{let r=typeof t==="function"?await t():t;switch(r?.toLowerCase()){case"auto":return Hr(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Pt.join(", ")}, got ${r}`)}}),Hr=async(e)=>{if(e){let t=typeof e==="function"?await e():e,r=await qr();if(!r)return"standard";if(t===r)return"in-region";else return"cross-region"}return"standard"},qr=async()=>{if(process.env[Ct]&&(process.env[Ne]||process.env[ye]))return process.env[Ne]??process.env[ye];if(!process.env[Ut])try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await import("./chunk-q7j24rgq.js"),r=await e();return(await t({...r,path:vt})).toString()}catch(e){}};var Sp=(e)=>{return{setRegion(t){e.region=t},region(){return e.region}}},Tp=(e)=>{return{region:e.region()}};var Jr=/^[A-Za-z0-9+/]*={0,2}$/,Gp=(e)=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Jr.exec(e))throw new TypeError("Invalid base64 string.");let t=P(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};var Yp=(e)=>{let t;if(typeof e==="string")t=ne(e);else t=e;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return I(t.buffer,t.byteOffset,t.byteLength).toString("base64")};export{yt as ga,ne as ha,bt as ia,qf as ja,Qr as ka,eo as la,ro as ma,ao as na,b as oa,T as pa,fo as qa,qt as ra,M as sa,Qt as ta,or as ua,Zs as va,gi as wa,_i as xa,rt as ya,Ci as za,ii as Aa,na as Ba,hr as Ca,wa as Da,ba as Ea,mt as Fa,_c as Ga,Ac as Ha,hc as Ia,Bc as Ja,Cf as Ka,Lf as La,Yr as Ma,ap as Na,Gp as Oa,Yp as Pa,Rp as Qa,Sp as Ra,Tp as Sa};
|
|
2
|
-
|
|
3
|
-
//# debugId=52A5752B59F2766764756E2164756E21
|
package/dist/chunk-z5q0aka9.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jb as P,db as y,qb as C}from"./chunk-7dha7ya8.js";import{Mb as n}from"./chunk-0gtrd3c6.js";import{ec as u}from"./chunk-gnsf15vm.js";import{gc as A}from"./chunk-8z12f5zv.js";import"./chunk-ks26vjaw.js";import{rc as d}from"./chunk-sf2we1v3.js";var K=d(A(),1);import O from"fs/promises";var E="169.254.170.2",R="169.254.170.23",p="[fd00:ec2::23]",i=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===E||e.hostname===R||e.hostname===p)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new n(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
3
|
-
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
4
|
-
- ECS container host 169.254.170.2
|
|
5
|
-
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:a})};var S=d(u(),1);function g(e){return new y({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((a,[c,r])=>{return a[c]=r,a},{}),fragment:e.hash})}async function w(e,a){let r=await S.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new n("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:a});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:C(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new n(`Server responded with status: ${e.statusCode}`,{logger:a}),{Code:t.Code,Message:t.Message})}throw new n(`Server responded with status: ${e.statusCode}`,{logger:a})}var I=(e,a,c)=>{return async()=>{for(let r=0;r<a;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,c))}return await e()}};var b="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",v="http://169.254.170.2",_="AWS_CONTAINER_CREDENTIALS_FULL_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",D="AWS_CONTAINER_AUTHORIZATION_TOKEN",M=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let a,c=e.awsContainerCredentialsRelativeUri??process.env[b],r=e.awsContainerCredentialsFullUri??process.env[_],t=e.awsContainerAuthorizationToken??process.env[D],s=e.awsContainerAuthorizationTokenFile??process.env[B],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(c&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)a=r;else if(c)a=`${v}${c}`;else throw new n(`No HTTP credential provider host provided.
|
|
6
|
-
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let h=new URL(a);i(h,e.logger);let T=new P({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return I(async()=>{let o=g(h);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await O.readFile(s)).toString();try{let f=await T.handle(o);return w(f.response).then((x)=>K.setCredentialFeature(x,"CREDENTIALS_HTTP","z"))}catch(f){throw new n(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{M as fromHttp};
|
|
7
|
-
|
|
8
|
-
//# debugId=28D132DAD7A6963A64756E2164756E21
|
|
File without changes
|