@stacksjs/buddy 0.64.3 → 0.64.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/{chunk-ac1gbd0g.js → chunk-1b3vtfck.js} +4 -4
  2. package/dist/{chunk-ac1gbd0g.js.map → chunk-1b3vtfck.js.map} +1 -1
  3. package/dist/chunk-40ywd06q.js +5 -0
  4. package/dist/{chunk-0bcq9pbj.js.map → chunk-40ywd06q.js.map} +4 -4
  5. package/dist/chunk-4vf3e1hx.js +5 -0
  6. package/dist/{chunk-a1sxtbv1.js.map → chunk-4vf3e1hx.js.map} +4 -4
  7. package/dist/{chunk-pj6d7hvk.js → chunk-8ae8k7zp.js} +3 -3
  8. package/dist/{chunk-pj6d7hvk.js.map → chunk-8ae8k7zp.js.map} +1 -1
  9. package/dist/{chunk-59vbpar7.js → chunk-8enz17vb.js} +3 -3
  10. package/dist/{chunk-59vbpar7.js.map → chunk-8enz17vb.js.map} +1 -1
  11. package/dist/{chunk-vc4pnt6y.js → chunk-8s3k0fs4.js} +4 -4
  12. package/dist/{chunk-vc4pnt6y.js.map → chunk-8s3k0fs4.js.map} +1 -1
  13. package/dist/{chunk-agapayce.js → chunk-9ttt4yty.js} +3 -3
  14. package/dist/{chunk-agapayce.js.map → chunk-9ttt4yty.js.map} +1 -1
  15. package/dist/chunk-bjtazfcc.js +7 -0
  16. package/dist/{chunk-pf356ggx.js.map → chunk-bjtazfcc.js.map} +2 -2
  17. package/dist/{chunk-nnneyqej.js → chunk-da47cv59.js} +3 -3
  18. package/dist/{chunk-nnneyqej.js.map → chunk-da47cv59.js.map} +1 -1
  19. package/dist/{chunk-cpn7yy6s.js → chunk-emgvdvgv.js} +3 -3
  20. package/dist/{chunk-cpn7yy6s.js.map → chunk-emgvdvgv.js.map} +1 -1
  21. package/dist/chunk-hbfjzk5j.js +21 -0
  22. package/dist/{chunk-v1w6bgfy.js.map → chunk-hbfjzk5j.js.map} +18 -11
  23. package/dist/{chunk-5bf9sq7t.js → chunk-m4ha2b7x.js} +3 -3
  24. package/dist/{chunk-5bf9sq7t.js.map → chunk-m4ha2b7x.js.map} +1 -1
  25. package/dist/{chunk-zpm61fm8.js → chunk-qzys4y28.js} +3 -3
  26. package/dist/{chunk-zpm61fm8.js.map → chunk-qzys4y28.js.map} +1 -1
  27. package/dist/chunk-vv8b2cgh.js +6 -0
  28. package/dist/{chunk-a6jhzhht.js.map → chunk-vv8b2cgh.js.map} +4 -13
  29. package/dist/{chunk-1mphypxn.js → chunk-wrrrgt8g.js} +3 -3
  30. package/dist/{chunk-1mphypxn.js.map → chunk-wrrrgt8g.js.map} +1 -1
  31. package/dist/chunk-zeyas8gc.js +5 -0
  32. package/dist/{chunk-nw65c3yh.js.map → chunk-zeyas8gc.js.map} +5 -5
  33. package/dist/{chunk-t49ytmk0.js → chunk-zj93wgdp.js} +3 -3
  34. package/dist/{chunk-t49ytmk0.js.map → chunk-zj93wgdp.js.map} +1 -1
  35. package/dist/{chunk-gqfh2x89.js → chunk-zw6qgfz1.js} +3 -3
  36. package/dist/{chunk-gqfh2x89.js.map → chunk-zw6qgfz1.js.map} +1 -1
  37. package/dist/cli.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/stacks +0 -0
  40. package/package.json +1 -1
  41. package/dist/chunk-0bcq9pbj.js +0 -5
  42. package/dist/chunk-a1sxtbv1.js +0 -5
  43. package/dist/chunk-a6jhzhht.js +0 -6
  44. package/dist/chunk-nw65c3yh.js +0 -5
  45. package/dist/chunk-pf356ggx.js +0 -7
  46. package/dist/chunk-v1w6bgfy.js +0 -21
@@ -1,6 +0,0 @@
1
- import{N as F,O as E}from"./chunk-wmfxrbxe.js";import{ob as D}from"./chunk-5bf9sq7t.js";var Zt=E((di,Vt)=>{function jt(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}function Yt(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}var{defineProperty:W,getOwnPropertyDescriptor:gr,getOwnPropertyNames:mr}=Object,xr=Object.prototype.hasOwnProperty,S=(t,e)=>W(t,"name",{value:e,configurable:!0}),br=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},Er=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of mr(e))if(!xr.call(t,s)&&s!==r)W(t,s,{get:()=>e[s],enumerable:!(n=gr(e,s))||n.enumerable})}return t},Tr=(t)=>Er(W({},"__esModule",{value:!0}),t),Dt={};br(Dt,{Field:()=>Sr,Fields:()=>Ar,HttpRequest:()=>Ir,HttpResponse:()=>Ur,IHttpRequest:()=>zt.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Cr,isValidHostname:()=>Yt,resolveHttpHandlerRuntimeConfig:()=>$r});Vt.exports=Tr(Dt);var Cr=S((t)=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),$r=S((t)=>{return{httpHandler:t.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),zt=D(),Bt=class t{constructor({name:e,kind:r=zt.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((r)=>r!==e)}toString(){return this.values.map((e)=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}};S(Bt,"Field");var Sr=Bt,Wt=class t{constructor({fields:e=[],encoding:r="utf-8"}){this.entries={},e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((r)=>r.kind===e)}};S(Wt,"Fields");var Ar=Wt,kt=class t{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){const r=new t({...e,headers:{...e.headers}});if(r.query)r.query=jt(r.query);return r}static isInstance(e){if(!e)return!1;const r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query==="object"&&typeof r.headers==="object"}clone(){return t.clone(this)}};S(kt,"HttpRequest");var Ir=kt;S(jt,"cloneQuery");var Ot=class t{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;const r=e;return typeof r.statusCode==="number"&&typeof r.headers==="object"}};S(Ot,"HttpResponse");var Ur=Ot;S(Yt,"isValidHostname")});var Qt=E((li,Pt)=>{var{defineProperty:k,getOwnPropertyDescriptor:Mr,getOwnPropertyNames:Fr}=Object,Nr=Object.prototype.hasOwnProperty,ot=(t,e)=>k(t,"name",{value:e,configurable:!0}),Lr=(t,e)=>{for(var r in e)k(t,r,{get:e[r],enumerable:!0})},Rr=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of Fr(e))if(!Nr.call(t,s)&&s!==r)k(t,s,{get:()=>e[s],enumerable:!(n=Mr(e,s))||n.enumerable})}return t},Dr=(t)=>Rr(k({},"__esModule",{value:!0}),t),Gt={};Lr(Gt,{escapeUri:()=>Ht,escapeUriPath:()=>Br});Pt.exports=Dr(Gt);var Ht=ot((t)=>encodeURIComponent(t).replace(/[!'()*]/g,zr),"escapeUri"),zr=ot((t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Br=ot((t)=>t.split("/").map(Ht).join("/"),"escapeUriPath")});var vt=E((yi,Jt)=>{function Xt(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=it.escapeUri(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${it.escapeUri(n[s])}`);else{let s=r;if(n||typeof n==="string")s+=`=${it.escapeUri(n)}`;e.push(s)}}return e.join("&")}var{defineProperty:j,getOwnPropertyDescriptor:Wr,getOwnPropertyNames:kr}=Object,jr=Object.prototype.hasOwnProperty,Or=(t,e)=>j(t,"name",{value:e,configurable:!0}),Yr=(t,e)=>{for(var r in e)j(t,r,{get:e[r],enumerable:!0})},Vr=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of kr(e))if(!jr.call(t,s)&&s!==r)j(t,s,{get:()=>e[s],enumerable:!(n=Wr(e,s))||n.enumerable})}return t},Zr=(t)=>Vr(j({},"__esModule",{value:!0}),t),Kt={};Yr(Kt,{buildQueryString:()=>Xt});Jt.exports=Zr(Kt);var it=Qt();Or(Xt,"buildQueryString")});var te=E((pi,_t)=>{var{defineProperty:O,getOwnPropertyDescriptor:Gr,getOwnPropertyNames:Hr}=Object,Pr=Object.prototype.hasOwnProperty,Qr=(t,e)=>O(t,"name",{value:e,configurable:!0}),Kr=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},Xr=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of Hr(e))if(!Pr.call(t,s)&&s!==r)O(t,s,{get:()=>e[s],enumerable:!(n=Gr(e,s))||n.enumerable})}return t},Jr=(t)=>Xr(O({},"__esModule",{value:!0}),t),qt={};Kr(qt,{isArrayBuffer:()=>vr});_t.exports=Jr(qt);var vr=Qr((t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var V=E((wi,ne)=>{var{defineProperty:Y,getOwnPropertyDescriptor:qr,getOwnPropertyNames:_r}=Object,tn=Object.prototype.hasOwnProperty,ee=(t,e)=>Y(t,"name",{value:e,configurable:!0}),en=(t,e)=>{for(var r in e)Y(t,r,{get:e[r],enumerable:!0})},rn=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of _r(e))if(!tn.call(t,s)&&s!==r)Y(t,s,{get:()=>e[s],enumerable:!(n=qr(e,s))||n.enumerable})}return t},nn=(t)=>rn(Y({},"__esModule",{value:!0}),t),re={};en(re,{fromArrayBuffer:()=>on,fromString:()=>cn});ne.exports=nn(re);var sn=te(),ct=import.meta.require("buffer"),on=ee((t,e=0,r=t.byteLength-e)=>{if(!sn.isArrayBuffer(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return ct.Buffer.from(t,e,r)},"fromArrayBuffer"),cn=ee((t,e)=>{if(typeof t!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?ct.Buffer.from(t,e):ct.Buffer.from(t)},"fromString")});var ie=E((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.fromBase64=void 0;var fn=V(),an=/^[A-Za-z0-9+/]*={0,2}$/,un=(t)=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!an.exec(t))throw new TypeError("Invalid base64 string.");const e=fn.fromString(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};se.fromBase64=un});var he=E((mi,ue)=>{var{defineProperty:Z,getOwnPropertyDescriptor:hn,getOwnPropertyNames:dn}=Object,ln=Object.prototype.hasOwnProperty,ft=(t,e)=>Z(t,"name",{value:e,configurable:!0}),yn=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},pn=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of dn(e))if(!ln.call(t,s)&&s!==r)Z(t,s,{get:()=>e[s],enumerable:!(n=hn(e,s))||n.enumerable})}return t},wn=(t)=>pn(Z({},"__esModule",{value:!0}),t),ce={};yn(ce,{fromUtf8:()=>ae,toUint8Array:()=>gn,toUtf8:()=>mn});ue.exports=wn(ce);var fe=V(),ae=ft((t)=>{const e=fe.fromString(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),gn=ft((t)=>{if(typeof t==="string")return ae(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(t)},"toUint8Array"),mn=ft((t)=>{if(typeof t==="string")return t;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return fe.fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});var ye=E((de)=>{Object.defineProperty(de,"__esModule",{value:!0});de.toBase64=void 0;var xn=V(),bn=he(),En=(t)=>{let e;if(typeof t==="string")e=bn.fromUtf8(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return xn.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")};de.toBase64=En});var ge=E((bi,G)=>{var{defineProperty:pe,getOwnPropertyDescriptor:Tn,getOwnPropertyNames:Cn}=Object,$n=Object.prototype.hasOwnProperty,at=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of Cn(e))if(!$n.call(t,s)&&s!==r)pe(t,s,{get:()=>e[s],enumerable:!(n=Tn(e,s))||n.enumerable})}return t},we=(t,e,r)=>(at(t,e,"default"),r&&at(r,e,"default")),Sn=(t)=>at(pe({},"__esModule",{value:!0}),t),ut={};G.exports=Sn(ut);we(ut,ie(),G.exports);we(ut,ye(),G.exports)});var Ae=E((Ei,Se)=>{function be(t=0){return new Promise((e,r)=>{if(t)setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}async function Te(t){const e=await $e(t),r=Dn.fromBase64(e);return new Uint8Array(r)}async function Ce(t){const e=[],r=t.getReader();let n=!1,s=0;while(!n){const{done:a,value:y}=await r.read();if(y)e.push(y),s+=y.length;n=a}const o=new Uint8Array(s);let u=0;for(let a of e)o.set(a,u),u+=a.length;return o}function $e(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const s=n.result??"",o=s.indexOf(","),u=o>-1?o+1:s.length;e(s.substring(u))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}var{defineProperty:P,getOwnPropertyDescriptor:An,getOwnPropertyNames:In}=Object,Un=Object.prototype.hasOwnProperty,C=(t,e)=>P(t,"name",{value:e,configurable:!0}),Mn=(t,e)=>{for(var r in e)P(t,r,{get:e[r],enumerable:!0})},Fn=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of In(e))if(!Un.call(t,s)&&s!==r)P(t,s,{get:()=>e[s],enumerable:!(n=An(e,s))||n.enumerable})}return t},Nn=(t)=>Fn(P({},"__esModule",{value:!0}),t),xe={};Mn(xe,{FetchHttpHandler:()=>Rn,keepAliveSupport:()=>H,streamCollector:()=>zn});Se.exports=Nn(xe);var me=Zt(),Ln=vt();C(be,"requestTimeout");var H={supported:void 0},Ee=class t{static create(e){if(typeof(e==null?void 0:e.handle)==="function")return e;return new t(e)}constructor(e){if(typeof e==="function")this.configProvider=e().then((r)=>r||{});else this.config=e??{},this.configProvider=Promise.resolve(this.config);if(H.supported===void 0)H.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(e,{abortSignal:r}={}){if(!this.config)this.config=await this.configProvider;const n=this.config.requestTimeout,s=this.config.keepAlive===!0,o=this.config.credentials;if(r==null?void 0:r.aborted){const i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}let u=e.path;const a=Ln.buildQueryString(e.query||{});if(a)u+=`?${a}`;if(e.fragment)u+=`#${e.fragment}`;let y="";if(e.username!=null||e.password!=null){const i=e.username??"",l=e.password??"";y=`${i}:${l}@`}const{port:g,method:x}=e,c=`${e.protocol}//${y}${e.hostname}${g?`:${g}`:""}${u}`,f=x==="GET"||x==="HEAD"?void 0:e.body,h={body:f,headers:new Headers(e.headers),method:x,credentials:o};if(f)h.duplex="half";if(typeof AbortController!=="undefined")h.signal=r;if(H.supported)h.keepalive=s;let w=C(()=>{},"removeSignalEventListener");const p=new Request(c,h),d=[fetch(p).then((i)=>{const l=i.headers,b={};for(let T of l.entries())b[T[0]]=T[1];if(i.body==null)return i.blob().then((T)=>({response:new me.HttpResponse({headers:b,reason:i.statusText,statusCode:i.status,body:T})}));return{response:new me.HttpResponse({headers:b,reason:i.statusText,statusCode:i.status,body:i.body})}}),be(n)];if(r)d.push(new Promise((i,l)=>{const b=C(()=>{const m=new Error("Request aborted");m.name="AbortError",l(m)},"onAbort");if(typeof r.addEventListener==="function"){const m=r;m.addEventListener("abort",b,{once:!0}),w=C(()=>m.removeEventListener("abort",b),"removeSignalEventListener")}else r.onabort=b}));return Promise.race(d).finally(w)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return n[e]=r,n})}httpHandlerConfigs(){return this.config??{}}};C(Ee,"FetchHttpHandler");var Rn=Ee,Dn=ge(),zn=C((t)=>{if(typeof Blob==="function"&&t instanceof Blob)return Te(t);return Ce(t)},"streamCollector");C(Te,"collectBlob");C(Ce,"collectStream");C($e,"readToBase64")});var Re=E((Ti,Le)=>{function Fe(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){const n=t.slice(r,r+2).toLowerCase();if(n in ht)e[r/2]=ht[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function Ne(t){let e="";for(let r=0;r<t.byteLength;r++)e+=Me[t[r]];return e}var{defineProperty:Q,getOwnPropertyDescriptor:Bn,getOwnPropertyNames:Wn}=Object,kn=Object.prototype.hasOwnProperty,Ie=(t,e)=>Q(t,"name",{value:e,configurable:!0}),jn=(t,e)=>{for(var r in e)Q(t,r,{get:e[r],enumerable:!0})},On=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let s of Wn(e))if(!kn.call(t,s)&&s!==r)Q(t,s,{get:()=>e[s],enumerable:!(n=Bn(e,s))||n.enumerable})}return t},Yn=(t)=>On(Q({},"__esModule",{value:!0}),t),Ue={};jn(Ue,{fromHex:()=>Fe,toHex:()=>Ne});Le.exports=Yn(Ue);var Me={},ht={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();if(e.length===1)e=`0${e}`;Me[t]=e,ht[e]=t}Ie(Fe,"fromHex");Ie(Ne,"toHex")});var A=(t,e)=>{const r=[];if(t)r.push(t);if(e)for(let n of e)r.push(n);return r},$=(t,e)=>{return`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`},U=()=>{let t=[],e=[],r=!1;const n=new Set,s=(c)=>c.sort((f,h)=>mt[h.step]-mt[f.step]||xt[h.priority||"normal"]-xt[f.priority||"normal"]),o=(c)=>{let f=!1;const h=(w)=>{const p=A(w.name,w.aliases);if(p.includes(c)){f=!0;for(let d of p)n.delete(d);return!1}return!0};return t=t.filter(h),e=e.filter(h),f},u=(c)=>{let f=!1;const h=(w)=>{if(w.middleware===c){f=!0;for(let p of A(w.name,w.aliases))n.delete(p);return!1}return!0};return t=t.filter(h),e=e.filter(h),f},a=(c)=>{return t.forEach((f)=>{c.add(f.middleware,{...f})}),e.forEach((f)=>{c.addRelativeTo(f.middleware,{...f})}),c.identifyOnResolve?.(x.identifyOnResolve()),c},y=(c)=>{const f=[];return c.before.forEach((h)=>{if(h.before.length===0&&h.after.length===0)f.push(h);else f.push(...y(h))}),f.push(c),c.after.reverse().forEach((h)=>{if(h.before.length===0&&h.after.length===0)f.push(h);else f.push(...y(h))}),f},g=(c=!1)=>{const f=[],h=[],w={};return t.forEach((d)=>{const i={...d,before:[],after:[]};for(let l of A(i.name,i.aliases))w[l]=i;f.push(i)}),e.forEach((d)=>{const i={...d,before:[],after:[]};for(let l of A(i.name,i.aliases))w[l]=i;h.push(i)}),h.forEach((d)=>{if(d.toMiddleware){const i=w[d.toMiddleware];if(i===void 0){if(c)return;throw new Error(`${d.toMiddleware} is not found when adding ${$(d.name,d.aliases)} middleware ${d.relation} ${d.toMiddleware}`)}if(d.relation==="after")i.after.push(d);if(d.relation==="before")i.before.push(d)}}),s(f).map(y).reduce((d,i)=>{return d.push(...i),d},[])},x={add:(c,f={})=>{const{name:h,override:w,aliases:p}=f,d={step:"initialize",priority:"normal",middleware:c,...f},i=A(h,p);if(i.length>0){if(i.some((l)=>n.has(l))){if(!w)throw new Error(`Duplicate middleware name '${$(h,p)}'`);for(let l of i){const b=t.findIndex((T)=>T.name===l||T.aliases?.some((X)=>X===l));if(b===-1)continue;const m=t[b];if(m.step!==d.step||d.priority!==m.priority)throw new Error(`"${$(m.name,m.aliases)}" middleware with ${m.priority} priority in ${m.step} step cannot be overridden by "${$(h,p)}" middleware with ${d.priority} priority in ${d.step} step.`);t.splice(b,1)}}for(let l of i)n.add(l)}t.push(d)},addRelativeTo:(c,f)=>{const{name:h,override:w,aliases:p}=f,d={middleware:c,...f},i=A(h,p);if(i.length>0){if(i.some((l)=>n.has(l))){if(!w)throw new Error(`Duplicate middleware name '${$(h,p)}'`);for(let l of i){const b=e.findIndex((T)=>T.name===l||T.aliases?.some((X)=>X===l));if(b===-1)continue;const m=e[b];if(m.toMiddleware!==d.toMiddleware||m.relation!==d.relation)throw new Error(`"${$(m.name,m.aliases)}" middleware ${m.relation} "${m.toMiddleware}" middleware cannot be overridden by "${$(h,p)}" middleware ${d.relation} "${d.toMiddleware}" middleware.`);e.splice(b,1)}}for(let l of i)n.add(l)}e.push(d)},clone:()=>a(U()),use:(c)=>{c.applyToStack(x)},remove:(c)=>{if(typeof c==="string")return o(c);else return u(c)},removeByTag:(c)=>{let f=!1;const h=(w)=>{const{tags:p,name:d,aliases:i}=w;if(p&&p.includes(c)){const l=A(d,i);for(let b of l)n.delete(b);return f=!0,!1}return!0};return t=t.filter(h),e=e.filter(h),f},concat:(c)=>{const f=a(U());return f.use(c),f.identifyOnResolve(r||f.identifyOnResolve()||(c.identifyOnResolve?.()??!1)),f},applyToStack:a,identify:()=>{return g(!0).map((c)=>{const f=c.step??c.relation+" "+c.toMiddleware;return $(c.name,c.aliases)+" - "+f})},identifyOnResolve(c){if(typeof c==="boolean")r=c;return r},resolve:(c,f)=>{for(let h of g().map((w)=>w.middleware).reverse())c=h(c,f);if(r)console.log(x.identify());return c}};return x},mt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},xt={high:3,normal:2,low:1};class rr{constructor(t){this.middlewareStack=U(),this.config=t}send(t,e,r){const n=typeof e!=="function"?e:void 0,s=typeof e==="function"?e:r,o=t.resolveMiddleware(this.middlewareStack,this.config,n);if(s)o(t).then((u)=>s(null,u.output),(u)=>s(u)).catch(()=>{});else return o(t).then((u)=>u.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var bt=F(D(),1);class Et{constructor(){this.middlewareStack=U()}static classBuilder(){return new Tt}resolveMiddlewareWithContext(t,e,r,{middlewareFn:n,clientName:s,commandName:o,inputFilterSensitiveLog:u,outputFilterSensitiveLog:a,smithyContext:y,additionalContext:g,CommandCtor:x}){for(let p of n.bind(this)(x,t,e,r))this.middlewareStack.use(p);const c=t.concat(this.middlewareStack),{logger:f}=e,h={logger:f,clientName:s,commandName:o,inputFilterSensitiveLog:u,outputFilterSensitiveLog:a,[bt.SMITHY_CONTEXT_KEY]:{commandInstance:this,...y},...g},{requestHandler:w}=e;return c.resolve((p)=>w.handle(p.request,r||{}),h)}}class Tt{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(t)=>t,this._outputFilterSensitiveLog=(t)=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,e,r={}){return this._smithyContext={service:t,operation:e,...r},this}c(t={}){return this._additionalContext=t,this}n(t,e){return this._clientName=t,this._commandName=e,this}f(t=(r)=>r,e=(r)=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=e,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}build(){const t=this;let e;return e=class extends Et{static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super();this.serialize=t._serializer,this.deserialize=t._deserializer,this.input=r??{},t._init(this)}resolveMiddleware(r,n,s){return this.resolveMiddlewareWithContext(r,n,s,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}}var gs=(t)=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},ms=(t)=>{return{httpHandler:t.httpHandler()}};var nr=F(D(),1);function sr(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class J{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const e=new J({...t,headers:{...t.headers}});if(e.query)e.query=sr(e.query);return e}static isInstance(t){if(!t)return!1;const e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return J.clone(this)}}class z{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}var N=(t)=>encodeURIComponent(t).replace(/[!'()*]/g,or),or=(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function v(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=N(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${N(n[s])}`);else{let s=r;if(n||typeof n==="string")s+=`=${N(n)}`;e.push(s)}}return e.join("&")}import{Agent as Ut,request as fr}from"http";import{Agent as Mt,request as ar}from"https";var Ct=["ECONNRESET","EPIPE","ETIMEDOUT"];var q=(t)=>{const e={};for(let r of Object.keys(t)){const n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e};var $t=(t,e,r=0)=>{if(!r)return;const n=setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);t.on("socket",(s)=>{if(s.connecting)s.on("connect",()=>{clearTimeout(n)});else clearTimeout(n)})};var St=(t,{keepAlive:e,keepAliveMsecs:r})=>{if(e!==!0)return;t.on("socket",(n)=>{n.setKeepAlive(e,r||0)})};var At=(t,e,r=0)=>{t.setTimeout(r,()=>{t.destroy(),e(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};import{Readable as ir}from"stream";async function _(t,e,r=It){const n=e.headers??{},s=n.Expect||n.expect;let o=-1,u=!1;if(s==="100-continue")await Promise.race([new Promise((a)=>{o=Number(setTimeout(a,Math.max(It,r)))}),new Promise((a)=>{t.on("continue",()=>{clearTimeout(o),a()}),t.on("error",()=>{u=!0,clearTimeout(o),a()})})]);if(!u)cr(t,e.body)}function cr(t,e){if(e instanceof ir){e.pipe(t);return}if(e){if(Buffer.isBuffer(e)||typeof e==="string"){t.end(e);return}const r=e;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){t.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}t.end(Buffer.from(e));return}t.end()}var It=1000;class tt{static create(t){if(typeof t?.handle==="function")return t;return new tt(t)}static checkSocketUsage(t,e,r=console){const{sockets:n,requests:s,maxSockets:o}=t;if(typeof o!=="number"||o===1/0)return e;const u=15000;if(Date.now()-u<e)return e;if(n&&s)for(let a in n){const y=n[a]?.length??0,g=s[a]?.length??0;if(y>=o&&g>=2*o)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${y} and ${g} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return e}constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((e,r)=>{if(typeof t==="function")t().then((n)=>{e(this.resolveDefaultConfig(n))}).catch(r);else e(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){const{requestTimeout:e,connectionTimeout:r,socketTimeout:n,httpAgent:s,httpsAgent:o}=t||{};return{connectionTimeout:r,requestTimeout:e??n,httpAgent:(()=>{if(s instanceof Ut||typeof s?.destroy==="function")return s;return new Ut({keepAlive:!0,maxSockets:50,...s})})(),httpsAgent:(()=>{if(o instanceof Mt||typeof o?.destroy==="function")return o;return new Mt({keepAlive:!0,maxSockets:50,...o})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:e}={}){if(!this.config)this.config=await this.configProvider;let r;return new Promise((n,s)=>{let o=void 0;const u=async(i)=>{await o,clearTimeout(r),n(i)},a=async(i)=>{await o,clearTimeout(r),s(i)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(e?.aborted){const i=new Error("Request aborted");i.name="AbortError",a(i);return}const y=t.protocol==="https:",g=y?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=tt.checkSocketUsage(g,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const x=v(t.query||{});let c=void 0;if(t.username!=null||t.password!=null){const i=t.username??"",l=t.password??"";c=`${i}:${l}`}let f=t.path;if(x)f+=`?${x}`;if(t.fragment)f+=`#${t.fragment}`;const h={headers:t.headers,host:t.hostname,method:t.method,path:f,port:t.port,agent:g,auth:c},p=(y?ar:fr)(h,(i)=>{const l=new z({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:q(i.headers),body:i});u({response:l})});if(p.on("error",(i)=>{if(Ct.includes(i.code))a(Object.assign(i,{name:"TimeoutError"}));else a(i)}),$t(p,a,this.config.connectionTimeout),At(p,a,this.config.requestTimeout),e){const i=()=>{p.destroy();const l=new Error("Request aborted");l.name="AbortError",a(l)};if(typeof e.addEventListener==="function"){const l=e;l.addEventListener("abort",i,{once:!0}),p.once("close",()=>l.removeEventListener("abort",i))}else e.onabort=i}const d=h.agent;if(typeof d==="object"&&"keepAlive"in d)St(p,{keepAlive:d.keepAlive,keepAliveMsecs:d.keepAliveMsecs});o=_(p,t,this.config.requestTimeout).catch((i)=>{return clearTimeout(r),s(i)})})}updateHttpClientConfig(t,e){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[t]:e}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as ur}from"stream";class et extends ur{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,e,r){this.bufferedBytes.push(t),r()}}async function dr(t){const e=[],r=t.getReader();let n=!1,s=0;while(!n){const{done:a,value:y}=await r.read();if(y)e.push(y),s+=y.length;n=a}const o=new Uint8Array(s);let u=0;for(let a of e)o.set(a,u),u+=a.length;return o}var Ft=(t)=>{if(hr(t))return dr(t);return new Promise((e,r)=>{const n=new et;t.pipe(n),t.on("error",(s)=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){const s=new Uint8Array(Buffer.concat(this.bufferedBytes));e(s)})})},hr=(t)=>typeof ReadableStream==="function"&&t instanceof ReadableStream;var Uo="***SensitiveInformation***";var Fo=(t,e)=>{for(let r of Object.keys(t)){const n=t[r],s=async function(u,a,y){const g=new n(u);if(typeof a==="function")this.send(g,a);else if(typeof y==="function"){if(typeof a!=="object")throw new Error(`Expected http options but got ${typeof a}`);this.send(g,a||{},y)}else return this.send(g,a)},o=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");e.prototype[o]=s}};class Nt extends Error{constructor(t){super(t.message);Object.setPrototypeOf(this,Nt.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}}var Lt=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{if(t[n]==null||t[n]==="")t[n]=s});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t};class lr{trace(){}debug(){}info(){}warn(){}error(){}}var Rt=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";import{Buffer as rt}from"buffer";var M=(t,e=0,r=t.byteLength-e)=>{if(!Rt(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return rt.from(t,e,r)},B=(t,e)=>{if(typeof t!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?rt.from(t,e):rt.from(t)};var yr=/^[A-Za-z0-9+/]*={0,2}$/,pr=(t)=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!yr.exec(t))throw new TypeError("Invalid base64 string.");const e=B(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};var L=(t)=>{const e=B(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var Zo=(t)=>{if(typeof t==="string")return L(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(t)};var nt=(t)=>{if(typeof t==="string")return t;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return M(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};var st=(t)=>{let e;if(typeof t==="string")e=L(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return M(e.buffer,e.byteOffset,e.byteLength).toString("base64")};import{Readable as dt}from"stream";import{TextDecoder as Vn}from"util";var Be=F(Ae(),1);var We=F(Re(),1);var R=(t)=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);var De="The stream has already been transformed.",ke=(t)=>{if(!ze(t)&&!R(t)){const s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1;const r=async()=>{if(e)throw new Error(De);return e=!0,await Be.streamCollector(t)},n=(s)=>{if(typeof s.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return s.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async(s)=>{const o=await r();if(s==="base64")return st(o);else if(s==="hex")return We.toHex(o);else if(s===void 0||s==="utf8"||s==="utf-8")return nt(o);else if(typeof TextDecoder==="function")return new TextDecoder(s).decode(o);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(De);if(e=!0,ze(t))return n(t);else if(R(t))return t;else throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},ze=(t)=>typeof Blob==="function"&&t instanceof Blob;var je="The stream has already been transformed.",Ri=(t)=>{if(!(t instanceof dt))try{return ke(t)}catch(n){const s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1;const r=async()=>{if(e)throw new Error(je);return e=!0,await Ft(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async(n)=>{const s=await r();if(n===void 0||Buffer.isEncoding(n))return M(s.buffer,s.byteOffset,s.byteLength).toString(n);else return new Vn(n).decode(s)},transformToWebStream:()=>{if(e)throw new Error(je);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof dt.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return e=!0,dt.toWeb(t)}})};var Zn=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string"){const e=parseFloat(t);if(!Number.isNaN(e)){if(String(e)!==String(t))Qe.warn(Pe(`Expected number but observed string: ${t}`));return e}}if(typeof t==="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)},Gn=Math.ceil(340282346638528860000000000000000000000),Oe=(t)=>{const e=Zn(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0){if(Math.abs(e)>Gn)throw new TypeError(`Expected 32-bit float, got ${t}`)}return e},Hn=(t)=>{if(t===null||t===void 0)return;if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};var Ye=(t)=>lt(t,32),Ve=(t)=>lt(t,16),Ze=(t)=>lt(t,8),lt=(t,e)=>{const r=Hn(t);if(r!==void 0&&Pn(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},Pn=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},tc=(t,e)=>{if(t===null||t===void 0){if(e)throw new TypeError(`Expected a non-null value for ${e}`);throw new TypeError("Expected a non-null value")}return t},ec=(t)=>{if(t===null||t===void 0)return;if(typeof t==="object"&&!Array.isArray(t))return t;const e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},rc=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Qe.warn(Pe(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};var Ge=(t)=>{if(typeof t=="string")return Oe(K(t));return Oe(t)},Qn=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,K=(t)=>{const e=t.match(Qn);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)};var nc=(t)=>{if(typeof t==="string")return Ye(K(t));return Ye(t)},yt=(t)=>{if(typeof t==="string")return Ve(K(t));return Ve(t)},He=(t)=>{if(typeof t==="string")return Ze(K(t));return Ze(t)},Pe=(t)=>{return String(new TypeError(t).stack||t).split("\n").slice(0,5).filter((e)=>!e.includes("stackTraceWarning")).join("\n")},Qe={warn:console.warn};var Kn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),cc=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=Xn.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,s,o,u,a,y,g]=e,x=yt(pt(n)),c=I(s,"month",1,12),f=I(o,"day",1,31);return Ke(x,c,f,{hours:u,minutes:a,seconds:y,fractionalMilliseconds:g})},Jn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),fc=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=Jn.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,s,o,u,a,y,g,x]=e,c=yt(pt(n)),f=I(s,"month",1,12),h=I(o,"day",1,31),w=Ke(c,f,h,{hours:u,minutes:a,seconds:y,fractionalMilliseconds:g});if(x.toUpperCase()!="Z")w.setTime(w.getTime()-es(x));return w},ac=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$/),uc=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$/),hc=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 Ke=(t,e,r,n)=>{const s=e-1;return qn(t,s,r),new Date(Date.UTC(t,s,r,I(n.hours,"hour",0,23),I(n.minutes,"minute",0,59),I(n.seconds,"seconds",0,60),ts(n.fractionalMilliseconds)))};var vn=[31,28,31,30,31,30,31,31,30,31,30,31],qn=(t,e,r)=>{let n=vn[e];if(e===1&&_n(t))n=29;if(r>n)throw new TypeError(`Invalid day for ${Kn[e]} in ${t}: ${r}`)},_n=(t)=>{return t%4===0&&(t%100!==0||t%400===0)},I=(t,e,r,n)=>{const s=He(pt(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},ts=(t)=>{if(t===null||t===void 0)return 0;return Ge("0."+t)*1000},es=(t)=>{const e=t[0];let r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);const n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1000},pt=(t)=>{let e=0;while(e<t.length-1&&t.charAt(e)==="0")e++;if(e===0)return t;return t.slice(e)};var rs=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const s=ns(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,u=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw Lt(u,e)},yc=(t)=>{return({output:e,parsedBody:r,errorCode:n})=>{rs({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})}},ns=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});var wc=(t)=>{switch(t){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 Xe=!1,mc=(t)=>{if(t&&!Xe&&parseInt(t.substring(1,t.indexOf(".")))<16)Xe=!0};var wt=F(D(),1);var Je=(t)=>{const e=[];for(let r in wt.AlgorithmId){const n=wt.AlgorithmId[r];if(t[n]===void 0)continue;e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},ve=(t)=>{const e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e};var qe=(t)=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},_e=(t)=>{const e={};return e.retryStrategy=t.retryStrategy(),e};var $c=(t)=>{return{...Je(t),...qe(t)}};var Sc=(t)=>{return{...ve(t),..._e(t)}};function ss(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var Fc=(t)=>Array.isArray(t)?t:[t];var gt=function(){const t=Object.getPrototypeOf(this).constructor,r=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(r,t.prototype),r};gt.prototype=Object.create(String.prototype,{constructor:{value:gt,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(gt,String);function os(t,e,r){let n,s,o;if(typeof e==="undefined"&&typeof r==="undefined")n={},o=t;else if(n=t,typeof e==="function")return s=e,o=r,is(n,s,o);else o=e;for(let u of Object.keys(o)){if(!Array.isArray(o[u])){n[u]=o[u];continue}tr(n,null,o,u)}return n}var Dc=(t,e)=>{const r={};for(let n in e)tr(r,t,e,n);return r},is=(t,e,r)=>{return os(t,Object.entries(r).reduce((n,[s,o])=>{if(Array.isArray(o))n[s]=o;else if(typeof o==="function")n[s]=[e,o()];else n[s]=[e,o];return n},{}))},tr=(t,e,r,n)=>{if(e!==null){let u=r[n];if(typeof u==="function")u=[,u];const[a=cs,y=fs,g=n]=u;if(typeof a==="function"&&a(e[g])||typeof a!=="function"&&!!a)t[n]=y(e[g]);return}let[s,o]=r[n];if(typeof o==="function"){let u;const a=s===void 0&&(u=o())!=null,y=typeof s==="function"&&!!s(void 0)||typeof s!=="function"&&!!s;if(a)t[n]=u;else if(y)t[n]=o()}else{const u=s===void 0&&o!=null,a=typeof s==="function"&&!!s(o)||typeof s!=="function"&&!!s;if(u||a)t[n]=o}},cs=(t)=>t!=null,fs=(t)=>t;var er=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((e)=>e!=null).map(er);if(typeof t==="object"){const e={};for(let r of Object.keys(t)){if(t[r]==null)continue;e[r]=er(t[r])}return e}return t};export{gs as P,ms as Q,J as R,z as S,Zt as T,te as U,V,he as W,ge as X,Qt as Y,vt as Z,Ae as _,Re as $,lr as aa,rr as ba,M as ca,B as da,pr as ea,L as fa,Zo as ga,nt as ha,st as ia,tt as ja,Ft as ka,Ri as la,Et as ma,Uo as na,Fo as oa,Hn as pa,Ye as qa,tc as ra,ec as sa,rc as ta,nc as ua,cc as va,fc as wa,Nt as xa,Lt as ya,yc as za,wc as Aa,mc as Ba,$c as Ca,Sc as Da,ss as Ea,Fc as Fa,os as Ga,Dc as Ha,er as Ia};
4
-
5
- //# debugId=55372DBB1F0A888064756E2164756E21
6
- //# sourceMappingURL=chunk-a6jhzhht.js.map
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{N as i}from"./chunk-wmfxrbxe.js";import{Aa as xe,Ba as ve,Ca as $e,Da as Pe,Ga as c,Ha as y,Ia as ge,P as Fe,Q as _e,aa as se,ba as je,ea as te,fa as re,ha as ae,ia as ne,ja as we,ka as be,ma as ns,na as k,ra as z,sa as Ne,ta as h,xa as Oe,ya as u,za as fe}from"./chunk-a6jhzhht.js";import{$a as rs,Ja as Le,Ka as Ce,La as Me,Ma as We,Na as Ae,Oa as V,Pa as N,Qa as f,Ra as Ke,Sa as ie,Ta as le,Ua as _,Va as $,Wa as pe,Xa as ye,Ya as Qe,Za as B,_a as Xe,ab as as,bb as Ye,cb as me,db as he,eb as Ze,fb as ue,gb as Te,hb as x,ib as ke,jb as Re,kb as qe,lb as Ee,mb as Je,nb as Ue}from"./chunk-v1w6bgfy.js";import"./chunk-5bf9sq7t.js";import{pb as l,qb as ee}from"./chunk-ac1gbd0g.js";import"./chunk-agapayce.js";import"./chunk-59vbpar7.js";var p=i(B(),1);var P=i(x(),1);function ls(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}}function b(e){return{schemeId:"smithy.api#noAuth"}}var J=async(e,s,t)=>{return{operation:_(s).operation,region:await $(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},U=(e)=>{const s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(ls(e))}return s},I=(e)=>{return{...P.resolveAwsSdkSigV4Config(e)}};var L=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},C={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var M={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Se=i(x(),1);var de=i(x(),1),oe=i(B(),1);var W={["required"]:!1,type:"String"},A={["required"]:!0,default:!1,type:"Boolean"},K={["ref"]:"Endpoint"},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},H={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},d={},Q={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},O={["ref"]:"PartitionResult"},X={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[O,"supportsDualStack"]}]},Y=[T],Z=[H],j=[{["ref"]:"Region"}],ys={version:"1.0",parameters:{Region:W,UseDualStack:A,UseFIPS:A,Endpoint:W},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[K]}],rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:K,properties:d,headers:d},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:j}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:j,assign:"PartitionResult"}],rules:[{conditions:[T,H],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Q]},X],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:Y,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Q,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[O,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:d,headers:d},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Z,rules:[{conditions:[X],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},G=ys;var g=(e,s={})=>{return N(G,{endpointParams:e,logger:s.logger})};V.aws=f;var ce=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??te,base64Encoder:e?.base64Encoder??ne,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??g,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??U,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new de.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new oe.NoAuthSigner}],logger:e?.logger??new se,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??ee,utf8Decoder:e?.utf8Decoder??re,utf8Encoder:e?.utf8Encoder??ae}};var ze=(e)=>{ve(process.version);const s=Ee(e),t=()=>s().then(xe),r=ce(e);return Se.emitWarningIfUnsupportedVersion(process.version),{...r,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??qe,defaultUserAgentProvider:e?.defaultUserAgentProvider??ke({serviceId:r.serviceId,clientVersion:M.version}),maxAttempts:e?.maxAttempts??l(he),region:e?.region??l(pe,ye),requestHandler:we.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...ue,default:async()=>(await t()).retryMode||me}),sha256:e?.sha256??Re.bind(null,"sha256"),streamCollector:e?.streamCollector??be,useDualstackEndpoint:e?.useDualstackEndpoint??l(ie),useFipsEndpoint:e?.useFipsEndpoint??l(le)}};var De=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:t,credentials:r}=e;return{setHttpAuthScheme(a){const n=s.findIndex((D)=>D.schemeId===a.schemeId);if(n===-1)s.push(a);else s.splice(n,1,a)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(a){t=a},httpAuthSchemeProvider(){return t},setCredentials(a){r=a},credentials(){return r}}},Be=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var v=(e)=>e,Ie=(e,s)=>{const t={...v(Je(e)),...v($e(e)),...v(Fe(e)),...v(De(e))};return s.forEach((r)=>r.configure(t)),{...e,...Ue(t),...Pe(t),..._e(t),...Be(t)}};class He extends je{constructor(...[e]){const s=ze(e||{}),t=L(s),r=Ae(t),a=Ze(r),n=Qe(a),D=Le(n),os=Ye(D),cs=I(os),F=Ie(cs,e?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Xe(this.config)),this.middlewareStack.use(Ce(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:async(is)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":is.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class o extends Oe{constructor(e){super(e);Object.setPrototypeOf(this,o.prototype)}}class R extends o{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,R.prototype)}}class q extends o{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,q.prototype)}}class E extends o{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,E.prototype)}}class S extends o{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,S.prototype)}}var Ge=(e)=>({...e,...e.accessToken&&{accessToken:k}}),ms=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:k},...e.sessionToken&&{sessionToken:k}}),Ve=(e)=>({...e,...e.roleCredentials&&{roleCredentials:ms(e.roleCredentials)}});var m=i(x(),1),es=i(B(),1);var ss=async(e,s)=>{const t=es.requestBuilder(e,s),r=c({},ks,{[Ds]:e[qs]});t.bp("/federation/credentials");const a=c({[zs]:[,z(e[Ss],"roleName")],[Es]:[,z(e[Rs],"accountId")]});let n;return t.m("GET").h(r).q(a).b(n),t.build()};var ts=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return hs(e,s);const t=c({$metadata:w(e)}),r=z(Ne(await m.parseJsonBody(e.body,s)),"body"),a=y(r,{roleCredentials:ge});return Object.assign(t,a),t};var hs=async(e,s)=>{const t={...e,body:await m.parseJsonErrorBody(e.body,s)},r=m.loadRestJsonErrorCode(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ws(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await bs(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await xs(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await vs(t,s);default:const a=t.body;return us({output:e,parsedBody:a,errorCode:r})}},us=fe(o),ws=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new R({$metadata:w(e),...t});return u(n,e.body)},bs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new q({$metadata:w(e),...t});return u(n,e.body)},xs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new E({$metadata:w(e),...t});return u(n,e.body)},vs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new S({$metadata:w(e),...t});return u(n,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var ks=(e)=>e!==void 0&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Rs="accountId",qs="accessToken",Es="account_id";var Ss="roleName",zs="role_name",Ds="x-amz-sso_bearer_token";class ds extends ns.classBuilder().ep({...C}).m(function(e,s,t,r){return[rs(t,this.serialize,this.deserialize),as(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(Ge,Ve).ser(ss).de(ts).build(){}export{He as SSOClient,ds as GetRoleCredentialsCommand};
3
-
4
- //# debugId=2C8740315AA1686664756E2164756E21
5
- //# sourceMappingURL=chunk-nw65c3yh.js.map