@mongosh/node-runtime-worker-thread 3.3.8 → 3.3.10
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/.sbom/dependencies.json +421 -294
- package/.sbom/node-js-dep.json +1 -1
- package/dist/index.js +1 -1
- package/dist/purls.txt +14 -3
- package/dist/report.html +2 -2
- package/dist/rpc.js +3 -3
- package/dist/rpc.js.map +1 -1
- package/dist/serializer.js +7 -7
- package/dist/serializer.js.map +1 -1
- package/dist/worker-runtime.js +244 -239
- package/dist/worker-runtime.js.LICENSE.txt +24 -0
- package/package.json +6 -6
- package/src/worker-runtime.spec.ts +1 -1
- package/dist/153.js +0 -1
- package/dist/41.js +0 -1
- package/dist/502.js +0 -1
- package/dist/503.js +0 -1
- package/dist/527.js +0 -1
- package/dist/534.js +0 -1
- package/dist/711.js +0 -1
- package/dist/739.js +0 -1
|
@@ -247,12 +247,36 @@
|
|
|
247
247
|
* MIT Licensed
|
|
248
248
|
*/
|
|
249
249
|
|
|
250
|
+
/*! *****************************************************************************
|
|
251
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
252
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
253
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
254
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
255
|
+
|
|
256
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
257
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
258
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
259
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
260
|
+
|
|
261
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
262
|
+
and limitations under the License.
|
|
263
|
+
***************************************************************************** */
|
|
264
|
+
|
|
250
265
|
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
251
266
|
|
|
252
267
|
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
253
268
|
|
|
254
269
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
255
270
|
|
|
271
|
+
/**
|
|
272
|
+
* @license
|
|
273
|
+
* Lodash <https://lodash.com/>
|
|
274
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
275
|
+
* Released under MIT license <https://lodash.com/license>
|
|
276
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
277
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
278
|
+
*/
|
|
279
|
+
|
|
256
280
|
/**
|
|
257
281
|
* @license
|
|
258
282
|
* web-streams-polyfill v3.3.3
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/node-runtime-worker-thread",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10",
|
|
4
4
|
"description": "MongoDB shell runtime that lives in a worker thread",
|
|
5
5
|
"homepage": "https://github.com/mongodb-js/mongosh",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@mongodb-js/prettier-config-devtools": "^1.0.1",
|
|
41
41
|
"@mongodb-js/sbom-tools": "^0.7.2",
|
|
42
42
|
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
|
|
43
|
-
"@mongosh/browser-runtime-core": "^3.
|
|
44
|
-
"@mongosh/browser-runtime-electron": "^3.
|
|
43
|
+
"@mongosh/browser-runtime-core": "^3.12.0",
|
|
44
|
+
"@mongosh/browser-runtime-electron": "^3.12.0",
|
|
45
45
|
"@mongosh/service-provider-core": "3.3.3",
|
|
46
|
-
"@mongosh/service-provider-node-driver": "3.
|
|
47
|
-
"@mongosh/types": "3.
|
|
46
|
+
"@mongosh/service-provider-node-driver": "3.9.0",
|
|
47
|
+
"@mongosh/types": "3.7.0",
|
|
48
48
|
"bson": "^6.10.3",
|
|
49
49
|
"depcheck": "^1.4.7",
|
|
50
50
|
"eslint": "^7.25.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"system-ca": "^2.0.1",
|
|
59
59
|
"web-worker": "^1.3.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "2660bc11f444db11c6511afdc90f6b96df99afc9"
|
|
62
62
|
}
|
|
@@ -207,7 +207,7 @@ describe('worker-runtime', function () {
|
|
|
207
207
|
expect(printable).to.have.property('help', 'Shell Help');
|
|
208
208
|
expect(printable)
|
|
209
209
|
.to.have.property('docs')
|
|
210
|
-
.match(/https:\/\/
|
|
210
|
+
.match(/https:\/\/mongodb.com\/docs/);
|
|
211
211
|
},
|
|
212
212
|
],
|
|
213
213
|
];
|
package/dist/153.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=153,exports.ids=[153],exports.modules={22153:(s,e,o)=>{o.d(e,{AssumeRoleCommand:()=>t.Q,STSClient:()=>d.i});var t=o(25043),d=o(4213)}};
|
package/dist/41.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=41,exports.ids=[41],exports.modules={81830:(e,t,n)=>{n.d(t,{CG:()=>r,Y2:()=>i,cJ:()=>s});var o=n(53127);const i=(e,t)=>(0,o.w)(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),r=async(e,t)=>{const n=await i(e,t);return n.message=n.message??n.Message,n},s=(e,t)=>{const n=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(i=e.headers,r="x-amzn-errortype",Object.keys(i).find((e=>e.toLowerCase()===r.toLowerCase())));var i,r;return void 0!==o?n(e.headers[o]):void 0!==t.code?n(t.code):void 0!==t.__type?n(t.__type):void 0}},40041:(e,t,n)=>{n.d(t,{CognitoIdentityClient:()=>CognitoIdentityClient,GetCredentialsForIdentityCommand:()=>GetCredentialsForIdentityCommand,GetIdCommand:()=>GetIdCommand});var o=n(31758),i=n(46170),r=n(96692),s=n(33202),a=n(20512),c=n(97882),d=n(51320),p=n(34546),u=n(2103),l=n(1802),y=n(71383),h=n(42952);const m=async(e,t,n)=>({operation:(0,h.u)(t).operation,region:await(0,h.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const x=e=>{const t=[];switch(e.operation){case"GetCredentialsForIdentity":case"GetId":case"GetOpenIdToken":case"UnlinkIdentity":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},E={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},g="3.621.0";var f=n(68227),v=n(34054),I=n(62438),S=n(25708),w=n(75854),C=n(3337),P=n(88226),b=n(94134),A=n(59065),R=n(42640),$=n(50563),O=n(67670),D=n(6775),M=n(96954);const k="required",z="fn",F="argv",N="ref",q=!0,G="isSet",j="booleanEquals",T="error",U="endpoint",L="tree",K="PartitionResult",H={[k]:!1,type:"String"},B={[k]:!0,default:!1,type:"Boolean"},J={[N]:"Endpoint"},W={[z]:j,[F]:[{[N]:"UseFIPS"},!0]},Y={[z]:j,[F]:[{[N]:"UseDualStack"},!0]},Z={},V={[z]:"getAttr",[F]:[{[N]:K},"supportsFIPS"]},_={[z]:j,[F]:[!0,{[z]:"getAttr",[F]:[{[N]:K},"supportsDualStack"]}]},Q=[W],X=[Y],ee=[{[N]:"Region"}],te={version:"1.0",parameters:{Region:H,UseDualStack:B,UseFIPS:B,Endpoint:H},rules:[{conditions:[{[z]:G,[F]:[J]}],rules:[{conditions:Q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:T},{conditions:X,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:T},{endpoint:{url:J,properties:Z,headers:Z},type:U}],type:L},{conditions:[{[z]:G,[F]:ee}],rules:[{conditions:[{[z]:"aws.partition",[F]:ee,assign:K}],rules:[{conditions:[W,Y],rules:[{conditions:[{[z]:j,[F]:[q,V]},_],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Z,headers:Z},type:U}],type:L},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:T}],type:L},{conditions:Q,rules:[{conditions:[{[z]:j,[F]:[V,q]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Z,headers:Z},type:U}],type:L},{error:"FIPS is enabled but this partition does not support FIPS",type:T}],type:L},{conditions:X,rules:[{conditions:[_],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Z,headers:Z},type:U}],type:L},{error:"DualStack is enabled but this partition does not support DualStack",type:T}],type:L},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:Z,headers:Z},type:U}],type:L}],type:L},{error:"Invalid Configuration: Missing Region",type:T}]},ne=(e,t={})=>(0,M.sO)(te,{endpointParams:e,logger:t.logger});M.mw.aws=D.UF;var oe=n(12165);const ie=e=>{(0,l.I9)(process.version);const t=(0,oe.I)(e),n=()=>t().then(l.lT),o=(e=>({apiVersion:"2014-06-30",base64Decoder:e?.base64Decoder??$.E,base64Encoder:e?.base64Encoder??$.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ne,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??x,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new A.f},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new c.mR}],logger:e?.logger??new l.N4,serviceId:e?.serviceId??"Cognito Identity",urlParser:e?.urlParser??R.D,utf8Decoder:e?.utf8Decoder??O.ar,utf8Encoder:e?.utf8Encoder??O.Pq}))(e);return(0,f.I)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??P.n,credentialDefaultProvider:e?.credentialDefaultProvider??v.v6,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,I.mJ)({serviceId:o.serviceId,clientVersion:g}),maxAttempts:e?.maxAttempts??(0,w.Z)(u.qs),region:e?.region??(0,w.Z)(a.GG,a.zH),requestHandler:C.$c.create(e?.requestHandler??n),retryMode:e?.retryMode??(0,w.Z)({...u.kN,default:async()=>(await n()).retryMode||b.L0}),sha256:e?.sha256??S.V.bind(null,"sha256"),streamCollector:e?.streamCollector??C.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,w.Z)(a.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,w.Z)(a.Ko)}};var re=n(3119),se=n(47624);const ae=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){o=e},credentials:()=>o}};class CognitoIdentityClient extends l.Kj{constructor(...[e]){const t=ie(e||{}),n=(h=t,{...h,useDualstackEndpoint:h.useDualstackEndpoint??!1,useFipsEndpoint:h.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"});var h;const m=(0,a.TD)(n),x=(0,p.Co)(m),E=(0,o.OV)(x),g=(0,s.Dc)(E),f=(0,u.$z)(g);var v;const I=((e,t)=>{const n={...(0,re.Rq)(e),...(0,l.xA)(e),...(0,se.eS)(e),...ae(e)};return t.forEach((e=>e.configure(n))),{...e,...(0,re.$3)(n),...(0,l.uv)(n),...(0,se.jt)(n),...(o=n,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((v=f,{...(0,y.h)(v)}),e?.extensions||[]);super(I),this.config=I,this.middlewareStack.use((0,o.TC)(this.config)),this.middlewareStack.use((0,i.Y7)(this.config)),this.middlewareStack.use((0,r.n4)(this.config)),this.middlewareStack.use((0,s.sM)(this.config)),this.middlewareStack.use((0,u.ey)(this.config)),this.middlewareStack.use((0,d.vK)(this.config)),this.middlewareStack.use((0,c.wB)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,c.lW)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return m}getIdentityProviderConfigProvider(){return async e=>new c.h$({"aws.auth#sigv4":e.credentials})}}var ce=n(8029),de=n(81830);class CognitoIdentityServiceException extends l.TJ{constructor(e){super(e),Object.setPrototypeOf(this,CognitoIdentityServiceException.prototype)}}class InternalErrorException extends CognitoIdentityServiceException{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,InternalErrorException.prototype)}}class InvalidParameterException extends CognitoIdentityServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,InvalidParameterException.prototype)}}class LimitExceededException extends CognitoIdentityServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,LimitExceededException.prototype)}}class NotAuthorizedException extends CognitoIdentityServiceException{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,NotAuthorizedException.prototype)}}class ResourceConflictException extends CognitoIdentityServiceException{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,ResourceConflictException.prototype)}}class TooManyRequestsException extends CognitoIdentityServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}class ResourceNotFoundException extends CognitoIdentityServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}class ExternalServiceException extends CognitoIdentityServiceException{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,ExternalServiceException.prototype)}}class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,InvalidIdentityPoolConfigurationException.prototype)}}class DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException{constructor(e){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...e}),this.name="DeveloperUserAlreadyRegisteredException",this.$fault="client",Object.setPrototypeOf(this,DeveloperUserAlreadyRegisteredException.prototype)}}class ConcurrentModificationException extends CognitoIdentityServiceException{constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),this.name="ConcurrentModificationException",this.$fault="client",Object.setPrototypeOf(this,ConcurrentModificationException.prototype)}}const pe=async(e,t)=>{const n=Oe("GetCredentialsForIdentity");let o;return o=JSON.stringify((0,l.Ss)(e)),$e(t,n,"/",void 0,o)},ue=async(e,t)=>{const n=Oe("GetId");let o;return o=JSON.stringify((0,l.Ss)(e)),$e(t,n,"/",void 0,o)},le=async(e,t)=>{if(e.statusCode>=300)return he(e,t);const n=await(0,de.Y2)(e.body,t);let o={};o=be(n,t);return{$metadata:Ae(e),...o}},ye=async(e,t)=>{if(e.statusCode>=300)return he(e,t);const n=await(0,de.Y2)(e.body,t);let o={};o=(0,l.Ss)(n);return{$metadata:Ae(e),...o}},he=async(e,t)=>{const n={...e,body:await(0,de.CG)(e.body,t)},o=(0,de.cJ)(e,n.body);switch(o){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await ge(n,t);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await ve(n,t);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await Ie(n,t);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Se(n,t);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await we(n,t);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Pe(n,t);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await Ce(n,t);case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await Ee(n,t);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await fe(n,t);case"DeveloperUserAlreadyRegisteredException":case"com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":throw await xe(n,t);case"ConcurrentModificationException":case"com.amazonaws.cognitoidentity#ConcurrentModificationException":throw await me(n,t);default:const i=n.body;return Re({output:e,parsedBody:i,errorCode:o})}},me=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ConcurrentModificationException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},xe=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new DeveloperUserAlreadyRegisteredException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},Ee=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ExternalServiceException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},ge=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new InternalErrorException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},fe=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new InvalidIdentityPoolConfigurationException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},ve=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new InvalidParameterException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},Ie=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new LimitExceededException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},Se=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new NotAuthorizedException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},we=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ResourceConflictException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},Ce=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new ResourceNotFoundException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},Pe=async(e,t)=>{const n=e.body,o=(0,l.Ss)(n),i=new TooManyRequestsException({$metadata:Ae(e),...o});return(0,l.Mw)(i,n)},be=(e,t)=>(0,l.s)(e,{Credentials:e=>(e=>(0,l.s)(e,{AccessKeyId:l.lK,Expiration:e=>(0,l.Y0)((0,l.l3)((0,l.r$)(e))),SecretKey:l.lK,SessionToken:l.lK}))(e),IdentityId:l.lK}),Ae=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"]}),Re=(0,l.jr)(CognitoIdentityServiceException),$e=async(e,t,n,o,i)=>{const{hostname:r,protocol:s="https",port:a,path:c}=await e.endpoint(),d={protocol:s,hostname:r,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return void 0!==o&&(d.hostname=o),void 0!==i&&(d.body=i),new se.Kd(d)};function Oe(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}}class GetCredentialsForIdentityCommand extends(l.uB.classBuilder().ep({...E}).m((function(e,t,n,o){return[(0,ce.TM)(n,this.serialize,this.deserialize),(0,p.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").f(void 0,void 0).ser(pe).de(le).build()){}class GetIdCommand extends(l.uB.classBuilder().ep({...E}).m((function(e,t,n,o){return[(0,ce.TM)(n,this.serialize,this.deserialize),(0,p.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").f(void 0,void 0).ser(ue).de(ye).build()){}}};
|
package/dist/502.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=502,exports.ids=[502],exports.modules={68227:(e,t,r)=>{r.d(t,{I:()=>s});let n=!1;const s=e=>{e&&!n&&parseInt(e.substring(1,e.indexOf(".")))<18&&(n=!0,process.emitWarning("NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js 16.x on January 6, 2025.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/74kJMmI"))}},59065:(e,t,r)=>{r.d(t,{f:()=>AwsSdkSigV4Signer});var n=r(47624);const s=e=>new Date(Date.now()+e),i=e=>n.cS.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,o=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(s(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},a=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class AwsSdkSigV4Signer{async sign(e,t,r){if(!n.Kd.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:o,signingRegion:c,signingName:u}=await(async e=>{const t=a("context",e.context),r=a("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],s=a("signer",r.signer),i=await s(n),o=e?.signingRegion,c=e?.signingName;return{config:r,signer:i,signingRegion:o,signingName:c}})(r);return await o.sign(e,{signingDate:s(i.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(e){return t=>{const r=t.ServerTime??i(t.$response);if(r){const n=a("config",e.config),s=n.systemClockOffset;n.systemClockOffset=o(r,n.systemClockOffset);n.systemClockOffset!==s&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=i(e);if(r){const e=a("config",t.config);e.systemClockOffset=o(r,e.systemClockOffset)}}}},71383:(e,t,r)=>{r.d(t,{h:()=>q});var n=r(97882),s=r(82369),i=r(42952),o=r(30548),a=r(67670);const c="X-Amz-Date",u="X-Amz-Signature",d="X-Amz-Security-Token",l="authorization",g=c.toLowerCase(),p=[l,g,"date"],h=u.toLowerCase(),f="x-amz-content-sha256",m=d.toLowerCase(),y={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},w=/^proxy-/,S=/^sec-/,v="AWS4-HMAC-SHA256",b="AWS4-HMAC-SHA256-PAYLOAD",R="aws4_request",E={},A=[],T=(e,t,r)=>`${e}/${t}/${r}/${R}`,C=(e,t,r)=>{const n=new e(t);return n.update((0,a.Fo)(r)),n.digest()},$=({headers:e},t,r)=>{const n={};for(const s of Object.keys(e).sort()){if(null==e[s])continue;const i=s.toLowerCase();(i in y||t?.has(i)||w.test(i)||S.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[s].trim().replace(/\s+/g," "))}return n};var P=r(41150);const I=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===f)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,P.m)(t)){const e=new r;return e.update((0,a.Fo)(t)),(0,s.n)(await e.digest())}return"UNSIGNED-PAYLOAD"};class HeaderFormatter{format(e){const t=[];for(const r of Object.keys(e)){const n=(0,a.ar)(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":const c=(0,a.ar)(e.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,7),u.setUint16(1,c.byteLength,!1);const d=new Uint8Array(u.buffer);return d.set(c,3),d;case"timestamp":const l=new Uint8Array(9);return l[0]=8,l.set(Int64.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!D.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const g=new Uint8Array(17);return g[0]=9,g.set((0,s.a)(e.value.replace(/\-/g,"")),1),g}}}var k;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(k||(k={}));const D=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&x(t),new Int64(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&x(e),parseInt((0,s.n)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function x(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}var N=r(47624);const O=e=>{e=N.Kd.clone(e);for(const t of Object.keys(e.headers))p.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},U=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class SignatureV4{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.headerFormatter=new HeaderFormatter,this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,i.t)(r),this.credentialProvider=(0,i.t)(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:i,signableHeaders:o,signingRegion:a,signingService:l}=t,g=await this.credentialProvider();this.validateResolvedCredentials(g);const p=a??await this.regionProvider(),{longDate:h,shortDate:f}=L(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=T(f,p,l??this.service),y=((e,t={})=>{const{headers:r,query:n={}}=N.Kd.clone(e);for(const e of Object.keys(r)){const s=e.toLowerCase();"x-amz-"!==s.slice(0,6)||t.unhoistableHeaders?.has(s)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(O(e),{unhoistableHeaders:i});g.sessionToken&&(y.query[d]=g.sessionToken),y.query["X-Amz-Algorithm"]=v,y.query["X-Amz-Credential"]=`${g.accessKeyId}/${m}`,y.query[c]=h,y.query["X-Amz-Expires"]=n.toString(10);const w=$(y,s,o);return y.query["X-Amz-SignedHeaders"]=M(w),y.query[u]=await this.getSignature(h,m,this.getSigningKey(g,p,f,l),this.createCanonicalRequest(y,w,await I(e,this.sha256))),y}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:i,signingService:o}){const a=i??await this.regionProvider(),{shortDate:c,longDate:u}=L(r),d=T(c,a,o??this.service),l=await I({headers:{},body:t},this.sha256),g=new this.sha256;g.update(e);const p=(0,s.n)(await g.digest()),h=[b,u,d,n,p,l].join("\n");return this.signString(h,{signingDate:r,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const o=r??await this.regionProvider(),{shortDate:c}=L(t),u=new this.sha256(await this.getSigningKey(i,o,c,n));return u.update((0,a.Fo)(e)),(0,s.n)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:i}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const a=s??await this.regionProvider(),c=O(e),{longDate:u,shortDate:d}=L(t),p=T(d,a,i??this.service);c.headers[g]=u,o.sessionToken&&(c.headers[m]=o.sessionToken);const h=await I(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(f,c.headers)&&this.applyChecksum&&(c.headers[f]=h);const y=$(c,n,r),w=await this.getSignature(u,p,this.getSigningKey(o,a,d,i),this.createCanonicalRequest(c,y,h));return c.headers[l]=`${v} Credential=${o.accessKeyId}/${p}, SignedHeaders=${M(y)}, Signature=${w}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===h)continue;t.push(n);const s=e[n];"string"==typeof s?r[n]=`${(0,o.o)(n)}=${(0,o.o)(s)}`:Array.isArray(s)&&(r[n]=s.slice(0).reduce(((e,t)=>e.concat([`${(0,o.o)(n)}=${(0,o.o)(t)}`])),[]).sort().join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update((0,a.Fo)(r));const i=await n.digest();return`${v}\n${e}\n${t}\n${(0,s.n)(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,o.o)(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const i=await this.createStringToSign(e,t,n),o=new this.sha256(await r);return o.update((0,a.Fo)(i)),(0,s.n)(await o.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,i)=>{const o=await C(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${i}:${(0,s.n)(o)}:${t.sessionToken}`;if(a in E)return E[a];for(A.push(a);A.length>50;)delete E[A.shift()];let c=`AWS4${t.secretAccessKey}`;for(const t of[r,n,i,R])c=await C(e,c,t);return E[a]=c})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const L=e=>{const t=(r=e,U(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},M=e=>Object.keys(e).sort().join(";"),q=e=>{let t;e.credentials&&(t=(0,n.K4)(e.credentials,n.OC,n.e)),t||(t=e.credentialDefaultProvider?(0,n.te)(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:s=e.systemClockOffset||0,sha256:i}=e;let o;return o=e.signer?(0,n.te)(e.signer):e.regionInfoProvider?()=>(0,n.te)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,s])=>{const{signingRegion:o,signingService:a}=n;e.signingRegion=e.signingRegion||o||s,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r};return new(e.signerConstructor||SignatureV4)(c)})):async s=>{const o=(s=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,n.te)(e.region)(),properties:{}},s)).signingRegion,a=s.signingName;e.signingRegion=e.signingRegion||o,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r};return new(e.signerConstructor||SignatureV4)(c)},{...e,systemClockOffset:s,signingEscapePath:r,credentials:t,signer:o}}},53127:(e,t,r)=>{r.d(t,{w:()=>s});var n=r(1802);const s=(e,t)=>(0,n.Px)(e,t).then((e=>t.utf8Encoder(e)))},31758:(e,t,r)=>{r.d(t,{OV:()=>s,TC:()=>o});var n=r(47624);function s(e){return e}const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},o=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!n.Kd.isInstance(r.request))return t(r);const{request:s}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let e=s.hostname;null!=s.port&&(e+=`:${s.port}`),s.headers.host=e}return t(r)})(e),i)}})},46170:(e,t,r)=>{r.d(t,{Y7:()=>s});const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},s=e=>({applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:s,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,d=c??t.inputFilterSensitiveLog,l=u??t.outputFilterSensitiveLog,{$metadata:g,...p}=n.output;return o?.info?.({clientName:s,commandName:i,input:d(r.input),output:l(p),metadata:g}),n}catch(e){const{clientName:n,commandName:s,logger:i,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:a}=o,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:s,input:c(r.input),error:e,metadata:e.$metadata}),e}}),n)}})},96692:(e,t,r)=>{r.d(t,{n4:()=>o});var n=r(47624);const s="X-Amzn-Trace-Id",i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},o=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:i}=r;if(!n.Kd.isInstance(i)||"node"!==e.runtime||i.headers.hasOwnProperty(s))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,a=process.env._X_AMZN_TRACE_ID,c=e=>"string"==typeof e&&e.length>0;return c(o)&&c(a)&&(i.headers[s]=a),t({...r,request:i})})(e),i)}})},33202:(e,t,r)=>{function n(e){return{...e,customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent}}r.d(t,{sM:()=>g,Dc:()=>n});var s=r(6775),i=r(47624);const o="user-agent",a="x-amz-user-agent",c=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,u=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,d=e=>{const t=e[0].split("/").map((e=>e.replace(c,"-"))).join("/"),r=e[1]?.replace(u,"-"),n=t.indexOf("/"),s=t.substring(0,n);let i=t.substring(n+1);return"api"===s&&(i=i.toLowerCase()),[s,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},l={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},g=e=>({applyToStack:t=>{var r;t.add((r=e,(e,t)=>async n=>{const{request:c}=n;if(!i.Kd.isInstance(c))return e(n);const{headers:u}=c,l=t?.userAgent?.map(d)||[],g=(await r.defaultUserAgentProvider()).map(d),p=r?.customUserAgent?.map(d)||[],h=(0,s.vL)(),f=(h?[h]:[]).concat([...g,...l,...p]).join(" "),m=[...g.filter((e=>e.startsWith("aws-sdk-"))),...p].join(" ");return"browser"!==r.runtime?(m&&(u[a]=u[a]?`${u[o]} ${m}`:m),u[o]=f):u[a]=f,e({...n,request:c})}),l)}})},3119:(e,t,r)=>{r.d(t,{Rq:()=>n,$3:()=>s});const n=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}},s=e=>({region:e.region()})},6775:(e,t,r)=>{r.d(t,{UF:()=>c,vL:()=>a});var n=r(96954);const s=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!s(t))return!1;return!0}return!!(0,n.X8)(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!(0,n.oX)(e)))};let i=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\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)"},"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)"},"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":true,"supportsFIPS":true},"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":true,"supportsFIPS":true},"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":false,"supportsFIPS":true},"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":false,"supportsFIPS":true},"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":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),o="";const a=()=>o,c={isVirtualHostableS3Bucket:s,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,s,i,o,...a]=t;return"arn"!==r||""===n||""===s||""===a[0]?null:{partition:n,service:s,region:i,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=i;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,s]of Object.entries(t))if(r===e)return{...n,...s}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));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}}};n.mw.aws=c},62438:(e,t,r)=>{r.d(t,{mJ:()=>a});var n=r(75854),s=r(70857),i=r(932);const o=!1,a=({serviceId:e,clientVersion:t})=>{const r=[["aws-sdk-js",t],["ua","2.0"],[`os/${(0,s.platform)()}`,(0,s.release)()],["lang/js"],["md/nodejs",`${i.versions.node}`]],a=o?["md/crt-avail"]:null;a&&r.push(a),e&&r.push([`api/${e}`,t]),i.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`]);const c=(0,n.Z)({environmentVariableSelector:e=>e.AWS_SDK_UA_APP_ID,configFileSelector:e=>e["sdk-ua-app-id"],default:void 0})();let u;return async()=>{if(!u){const e=await c;u=e?[...r,[`app/${e}`]]:[...r]}return u}}},20512:(e,t,r)=>{r.d(t,{zH:()=>c,GG:()=>a,e$:()=>i,Ko:()=>o,TD:()=>l});const n=(e,t,r)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}};var s;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(s||(s={}));const i={environmentVariableSelector:e=>n(e,"AWS_USE_DUALSTACK_ENDPOINT",s.ENV),configFileSelector:e=>n(e,"use_dualstack_endpoint",s.CONFIG),default:!1},o={environmentVariableSelector:e=>n(e,"AWS_USE_FIPS_ENDPOINT",s.ENV),configFileSelector:e=>n(e,"use_fips_endpoint",s.CONFIG),default:!1};r(42952);const a={environmentVariableSelector:e=>e.AWS_REGION,configFileSelector:e=>e.region,default:()=>{throw new Error("Region is missing")}},c={preferredFile:"credentials"},u=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),d=e=>u(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,l=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return d(t);const e=await t();return d(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!u(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}}},97882:(e,t,r)=>{r.d(t,{h$:()=>DefaultIdentityProviderConfig,mR:()=>NoAuthSigner,e:()=>h,wB:()=>o,lW:()=>l,OC:()=>g,K4:()=>f,te:()=>m,lI:()=>w});r(31932);var n=r(42952);const s=(e,t)=>(r,s)=>async i=>{const o=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,s,i.input)),a=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),c=(0,n.u)(s),u=[];for(const r of o){const n=a.get(r.schemeId);if(!n){u.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=n.identityProvider(await t.identityProviderConfigProvider(e));if(!i){u.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:o={},signingProperties:d={}}=r.propertiesExtractor?.(e,s)||{};r.identityProperties=Object.assign(r.identityProperties||{},o),r.signingProperties=Object.assign(r.signingProperties||{},d),c.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:n.signer};break}if(!c.selectedHttpAuthScheme)throw new Error(u.join("\n"));return r(i)};const i={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:r(34546).ko.name},o=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(s(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),i)}});r(8029).Ou.name;var a=r(47624);const c=e=>e=>{throw e},u=(e,t)=>{};const d={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:r(2103).j7.name},l=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async r=>{if(!a.Kd.isInstance(r.request))return e(r);const s=(0,n.u)(t).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:i={}},identity:o,signer:d}=s,l=await e({...r,request:await d.sign(r.request,o,i)}).catch((d.errorHandler||c)(i));return(d.successHandler||u)(l.response,i),l}),d)}});class DefaultIdentityProviderConfig{constructor(e){this.authSchemes=new Map;for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}class NoAuthSigner{async sign(e,t,r){return e}}const g=(p=3e5,e=>h(e)&&e.expiration.getTime()-Date.now()<p);var p;const h=e=>void 0!==e.expiration,f=(e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let s,i,o,a=!1;const c=async e=>{i||(i=n(e));try{s=await i,o=!0,a=!1}finally{i=void 0}return s};return void 0===t?async e=>(o&&!e?.forceRefresh||(s=await c(e)),s):async e=>(o&&!e?.forceRefresh||(s=await c(e)),a?s:r(s)?t(s)?(await c(e),s):s:(a=!0,s))},m=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t};var y=r(1802);function w(e,t){return new RequestBuilder(e,t)}class RequestBuilder{constructor(e,t){this.input=e,this.context=t,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:e,protocol:t="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(const e of this.resolvePathStack)e(this.path);return new a.Kd({protocol:t,hostname:this.hostname||e,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e})),this}p(e,t,r,n){return this.resolvePathStack.push((s=>{this.path=(0,y.un)(s,this.input,e,t,r,n)})),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}},25708:(e,t,r)=>{r.d(t,{V:()=>Hash});var n=r(96385),s=r(67670),i=r(20181),o=r(76982);class Hash{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update((0,s.Fo)(a(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,o.createHmac)(this.algorithmIdentifier,a(this.secret)):(0,o.createHash)(this.algorithmIdentifier)}}function a(e,t){return i.Buffer.isBuffer(e)?e:"string"==typeof e?(0,n.s)(e,t):ArrayBuffer.isView(e)?(0,n.Q)(e.buffer,e.byteOffset,e.byteLength):(0,n.Q)(e)}},51320:(e,t,r)=>{r.d(t,{vK:()=>o});var n=r(47624);const s="content-length";const i={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},o=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const i=t.request;if(n.Kd.isInstance(i)){const{body:e,headers:t}=i;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(s))try{const t=r(e);i.headers={...i.headers,[s]:String(t)}}catch(e){}}return e({...t,request:i})}),i)}})},34546:(e,t,r)=>{r.d(t,{ko:()=>S,rD:()=>v,Co:()=>b});const n=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,s=/(\d+\.){3}\d+/,i=/\.\./,o=e=>n.test(e)&&!s.test(e)&&!i.test(e),a=e=>{const[t,r,n,,,s]=e.split(":"),i="arn"===t&&e.split(":").length>=6,o=Boolean(i&&r&&n&&s);if(i&&!o)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},c=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:s}=e;return`${t}//${r}${n?":"+n:""}${s}`}}return e}:n};var u=r(75854),d=r(70619);const l="AWS_ENDPOINT_URL",g="endpoint_url",p=async e=>(0,u.Z)((e=>({environmentVariableSelector:t=>{const r=e.split(" ").map((e=>e.toUpperCase())),n=t[[l,...r].join("_")];if(n)return n;return t[l]||void 0},configFileSelector:(t,r)=>{if(r&&t.services){const n=r[["services",t.services].join(d.QD)];if(n){const t=n[[e.split(" ").map((e=>e.toLowerCase())).join("_"),g].join(d.QD)];if(t)return t}}const n=t[g];if(n)return n},default:void 0}))(e))();var h=r(42640);const f=e=>"object"==typeof e?"url"in e?(0,h.D)(e.url):e:(0,h.D)(e),m=async(e,t,r)=>{const n={},s=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(s))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await c(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(s).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),a(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!o(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n};var y=r(42952);const w=({config:e,instructions:t})=>(r,n)=>async s=>{const i=await(async(e,t,r,n)=>{if(!r.endpoint){const e=await p(r.serviceId||"");e&&(r.endpoint=()=>Promise.resolve(f(e)))}const s=await m(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(s,n)})(s.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const o=n.authSchemes?.[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const e=(0,y.u)(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...s})};const S={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:r(8029).Ou.name},v=(e,t)=>({applyToStack:r=>{r.addRelativeTo(w({config:e,instructions:t}),S)}}),b=e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>f(await(0,y.t)(r)()):void 0,s=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:s,useDualstackEndpoint:(0,y.t)(e.useDualstackEndpoint??!1),useFipsEndpoint:(0,y.t)(e.useFipsEndpoint??!1)}}},2103:(e,t,r)=>{r.d(t,{qs:()=>S,kN:()=>b,ey:()=>I,$z:()=>v,j7:()=>P});var n=r(94134),s=r(47624),i=r(1535),o=r(76982),a=r.n(o);const c={randomUUID:a().randomUUID},u=new Uint8Array(256);let d=u.length;function l(){return d>u.length-16&&(a().randomFillSync(u),d=0),u.slice(d,d+=16)}const g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));function p(e,t=0){return g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]}const h=function(e,t,r){if(c.randomUUID&&!t&&!e)return c.randomUUID();const n=(e=e||{}).random||(e.rng||l)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return p(n)},f=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);var m=r(42952);const y="AWS_MAX_ATTEMPTS",w="max_attempts",S={environmentVariableSelector:e=>{const t=e[y];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${y} mast be a number, got "${t}"`);return r},configFileSelector:e=>{const t=e[w];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${w} mast be a number, got "${t}"`);return r},default:n.Gz},v=e=>{const{retryStrategy:t}=e,r=(0,m.t)(e.maxAttempts??n.Gz);return{...e,maxAttempts:r,retryStrategy:async()=>{if(t)return t;return await(0,m.t)(e.retryMode)()===n.cm.ADAPTIVE?new n.Y(r):new n.ru(r)}}},b={environmentVariableSelector:e=>e.AWS_RETRY_MODE,configFileSelector:e=>e.retry_mode,default:n.L0};var R=r(1802),E=r(2203);const A=e=>e?.body instanceof E.Readable||"undefined"!=typeof ReadableStream&&e?.body instanceof ReadableStream,T=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,C=e=>{const t={error:e,errorType:$(e)},r=k(e.$response);return r&&(t.retryAfterHint=r),t},$=e=>(0,i.Qb)(e)?"THROTTLING":(0,i.bV)(e)?"TRANSIENT":(0,i.GQ)(e)?"SERVER_ERROR":"CLIENT_ERROR",P={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},I=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async i=>{let o=await e.retryStrategy();const a=await e.maxAttempts();if(!T(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,i);{let e=await o.acquireInitialRetryToken(r.partition_id),c=new Error,u=0,d=0;const{request:l}=i,g=s.Kd.isInstance(l);for(g&&(l.headers[n.l5]=h());;)try{g&&(l.headers[n.ok]=`attempt=${u+1}; max=${a}`);const{response:r,output:s}=await t(i);return o.recordSuccess(e),s.$metadata.attempts=u+1,s.$metadata.totalRetryDelay=d,{response:r,output:s}}catch(t){const n=C(t);if(c=f(t),g&&A(l))throw(r.logger instanceof R.N4?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=d,c}u=e.getRetryCount();const s=e.getRetryDelay();d+=s,await new Promise((e=>setTimeout(e,s)))}}})(e),P)}}),k=e=>{if(!s.cS.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)}},8029:(e,t,r)=>{r.d(t,{TM:()=>a,Ou:()=>o});const n=(e,t)=>r=>async n=>{const{response:s}=await r(n);try{return{response:s,output:await t(s,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:s}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t,void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText)}throw e}},s=(e,t)=>(r,n)=>async s=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const o=await t(s.input,{...e,endpoint:i});return r({...s,request:o})},i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},o={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function a(e,t,r){return{applyToStack:a=>{a.add(n(e,r),i),a.add(s(e,t),o)}}}},1535:(e,t,r)=>{r.d(t,{h5:()=>u,S0:()=>c,GQ:()=>g,Qb:()=>d,bV:()=>l});const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],s=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],i=["TimeoutError","RequestTimeout","RequestTimeoutException"],o=[500,502,503,504],a=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],c=e=>void 0!==e.$retryable,u=e=>n.includes(e.name),d=e=>429===e.$metadata?.httpStatusCode||s.includes(e.name)||1==e.$retryable?.throttling,l=e=>(e=>e.$metadata?.clockSkewCorrected)(e)||i.includes(e.name)||a.includes(e?.code||"")||o.includes(e.$metadata?.httpStatusCode||0),g=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!l(e)}return!1}},88226:(e,t,r)=>{r.d(t,{n:()=>s});var n=r(79896);const s=e=>{if(!e)return 0;if("string"==typeof e)return Buffer.byteLength(e);if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;if("number"==typeof e.start&&"number"==typeof e.end)return e.end+1-e.start;if("string"==typeof e.path||Buffer.isBuffer(e.path))return(0,n.lstatSync)(e.path).size;if("number"==typeof e.fd)return(0,n.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)}},12165:(e,t,r)=>{r.d(t,{I:()=>d});var n=r(20512),s=r(75854),i=r(3631);const o="AWS_REGION",a="AWS_DEFAULT_REGION",c=["in-region","cross-region","mobile","standard","legacy"],u={environmentVariableSelector:e=>e.AWS_DEFAULTS_MODE,configFileSelector:e=>e.defaults_mode,default:"legacy"},d=({region:e=(0,s.Z)(n.GG),defaultsMode:t=(0,s.Z)(u)}={})=>(0,i.Bj)((async()=>{const r="function"==typeof t?await t():t;switch(r?.toLowerCase()){case"auto":return l(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 ${c.join(", ")}, got ${r}`)}})),l=async e=>{if(e){const t="function"==typeof e?await e():e,r=await g();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},g=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env[o]||process.env[a]))return process.env[o]??process.env[a];if(!process.env.AWS_EC2_METADATA_DISABLED)try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(r.bind(r,40728)),n=await e();return(await t({...n,path:"/latest/meta-data/placement/region"})).toString()}catch(e){}}},96954:(e,t,r)=>{r.d(t,{mw:()=>a,oX:()=>s,X8:()=>o,sO:()=>$});const n=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}$"),s=e=>n.test(e)||e.startsWith("[")&&e.endsWith("]"),i=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o=(e,t=!1)=>{if(!t)return i.test(e);const r=e.split(".");for(const e of r)if(!o(e))return!1;return!0},a={},c="endpoints";function u(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${u(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(u).join(", ")})`:JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e),this.name="EndpointError"}}const d=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new EndpointError(`Path: '${e}' does not end with ']'`);const s=n.slice(t+1,-1);if(Number.isNaN(parseInt(s)))throw new EndpointError(`Invalid array index: '${s}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(s)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new EndpointError(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e);var l=r(31932);const g={[l.Ue.HTTP]:80,[l.Ue.HTTPS]:443},p={booleanEquals:(e,t)=>e===t,getAttr:d,isSet:e=>null!=e,isValidHostLabel:o,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:s="",query:i={}}=e,o=new URL(`${n}//${t}${r?`:${r}`:""}${s}`);return o.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),o}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:i,pathname:o,protocol:a,search:c}=t;if(c)return null;const u=a.slice(0,-1);if(!Object.values(l.Ue).includes(u))return null;const d=s(i);return{scheme:u,authority:`${n}${r.includes(`${n}:${g[u]}`)||"string"==typeof e&&e.includes(`${n}:${g[u]}`)?`:${g[u]}`:""}`,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:d}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},h=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const t=e.indexOf("{",s);if(-1===t){r.push(e.slice(s));break}r.push(e.slice(s,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),s=i+2);const o=e.substring(t+1,i);if(o.includes("#")){const[e,t]=o.split("#");r.push(d(n[e],t))}else r.push(n[o]);s=i+1}return r.join("")},f=(e,t,r)=>{if("string"==typeof e)return h(e,r);if(e.fn)return m(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},m=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:f(e,"arg",r))),s=e.split(".");return s[0]in a&&null!=s[1]?a[s[0]][s[1]](...n):p[e](...n)},y=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new EndpointError(`'${e}' is already defined in Reference Record.`);const n=m(t,r);return r.logger?.debug?.(`${c} evaluateCondition: ${u(t)} = ${u(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},w=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:s}=y(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};s&&(r[s.name]=s.value,t.logger?.debug?.(`${c} assign: ${s.name} := ${u(s.value)}`))}return{result:!0,referenceRecord:r}},S=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=f(e,"Header value entry",t);if("string"!=typeof n)throw new EndpointError(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),v=(e,t)=>{if(Array.isArray(e))return e.map((e=>v(e,t)));switch(typeof e){case"string":return h(e,t);case"object":if(null===e)throw new EndpointError(`Unexpected endpoint property: ${e}`);return b(e,t);case"boolean":return e;default:throw new EndpointError("Unexpected endpoint property type: "+typeof e)}},b=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:v(n,t)})),{}),R=(e,t)=>{const r=f(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new EndpointError("Endpoint URL must be a string, got "+typeof r)},E=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:s,referenceRecord:i}=w(r,t);if(!s)return;const o={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:d,headers:l}=n;return t.logger?.debug?.(`${c} Resolving endpoint from template: ${u(n)}`),{...null!=l&&{headers:S(l,o)},...null!=d&&{properties:b(d,o)},url:R(a,o)}},A=(e,t)=>{const{conditions:r,error:n}=e,{result:s,referenceRecord:i}=w(r,t);if(s)throw new EndpointError(f(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},T=(e,t)=>{const{conditions:r,rules:n}=e,{result:s,referenceRecord:i}=w(r,t);if(s)return C(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},C=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=E(r,t);if(e)return e}else if("error"===r.type)A(r,t);else{if("tree"!==r.type)throw new EndpointError(`Unknown endpoint rule: ${r}`);{const e=T(r,t);if(e)return e}}throw new EndpointError("Rules evaluation failed")},$=(e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:s,rules:i}=e;t.logger?.debug?.(`${c} Initial EndpointParams: ${u(r)}`);const o=Object.entries(s).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(o.length>0)for(const[e,t]of o)r[e]=r[e]??t;const a=Object.entries(s).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new EndpointError(`Missing required parameter: '${e}'`);const d=C(i,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;d.url.protocol=r,d.url.port=n}catch(e){}return t.logger?.debug?.(`${c} Resolved endpoint: ${u(d)}`),d}},42952:(e,t,r)=>{r.d(t,{u:()=>s,t:()=>i});var n=r(31932);const s=e=>e[n.Vf]||(e[n.Vf]={}),i=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},94134:(e,t,r)=>{var n;r.d(t,{Y:()=>AdaptiveRetryStrategy,Gz:()=>s,bp:()=>a,L0:()=>i,QJ:()=>DefaultRateLimiter,Df:()=>d,l5:()=>h,G8:()=>c,XP:()=>p,ok:()=>f,XS:()=>l,cm:()=>n,ru:()=>StandardRetryStrategy,jh:()=>u,Rn:()=>g}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(n||(n={}));const s=3,i=n.STANDARD;var o=r(1535);class DefaultRateLimiter{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??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const 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(),(0,o.Qb)(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const a=100,c=2e4,u=500,d=500,l=5,g=10,p=1,h="amz-sdk-invocation-id",f="amz-sdk-request",m=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(c,e),getRetryCost:()=>r});class StandardRetryStrategy{constructor(e){this.maxAttempts=e,this.mode=n.STANDARD,this.capacity=d,this.retryBackoffStrategy=(()=>{let e=a;return{computeNextBackoffDelay:t=>Math.floor(Math.min(c,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return m({retryDelay:a,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?u:a);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,m({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(d,this.capacity+(e.getRetryCost()??p))}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 ${s}`),s}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?g:l}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class AdaptiveRetryStrategy{constructor(e,t){this.maxAttemptsProvider=e,this.mode=n.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new DefaultRateLimiter,this.standardRetryStrategy=new StandardRetryStrategy(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)}}}};
|
package/dist/503.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=503,exports.ids=[503],exports.modules={31503:(e,t,n)=>{n.d(t,{toFormData:()=>l});var r=n(48695),a=n(79814);let i=0;const s={START_BOUNDARY:i++,HEADER_FIELD_START:i++,HEADER_FIELD:i++,HEADER_VALUE_START:i++,HEADER_VALUE:i++,HEADER_VALUE_ALMOST_DONE:i++,HEADERS_ALMOST_DONE:i++,PART_DATA_START:i++,PART_DATA:i++,END:i++};let o=1;const d=o,E=o*=2,A=e=>32|e,h=()=>{};class MultipartParser{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=h,this.onHeaderField=h,this.onHeadersEnd=h,this.onHeaderValue=h,this.onPartBegin=h,this.onPartData=h,this.onPartEnd=h,this.boundaryChars={},e="\r\n--"+e;const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=s.START_BOUNDARY}write(e){let t=0;const n=e.length;let r=this.index,{lookbehind:a,boundary:i,boundaryChars:o,index:h,state:l,flags:D}=this;const c=this.boundary.length,f=c-1,T=e.length;let _,R;const u=e=>{this[e+"Mark"]=t},H=e=>{delete this[e+"Mark"]},b=(e,t,n,r)=>{void 0!==t&&t===n||this[e](r&&r.subarray(t,n))},P=(n,r)=>{const a=n+"Mark";a in this&&(r?(b(n,this[a],t,e),delete this[a]):(b(n,this[a],e.length,e),this[a]=0))};for(t=0;t<n;t++)switch(_=e[t],l){case s.START_BOUNDARY:if(h===i.length-2){if(45===_)D|=E;else if(13!==_)return;h++;break}if(h-1==i.length-2){if(D&E&&45===_)l=s.END,D=0;else{if(D&E||10!==_)return;h=0,b("onPartBegin"),l=s.HEADER_FIELD_START}break}_!==i[h+2]&&(h=-2),_===i[h+2]&&h++;break;case s.HEADER_FIELD_START:l=s.HEADER_FIELD,u("onHeaderField"),h=0;case s.HEADER_FIELD:if(13===_){H("onHeaderField"),l=s.HEADERS_ALMOST_DONE;break}if(h++,45===_)break;if(58===_){if(1===h)return;P("onHeaderField",!0),l=s.HEADER_VALUE_START;break}if(R=A(_),R<97||R>122)return;break;case s.HEADER_VALUE_START:if(32===_)break;u("onHeaderValue"),l=s.HEADER_VALUE;case s.HEADER_VALUE:13===_&&(P("onHeaderValue",!0),b("onHeaderEnd"),l=s.HEADER_VALUE_ALMOST_DONE);break;case s.HEADER_VALUE_ALMOST_DONE:if(10!==_)return;l=s.HEADER_FIELD_START;break;case s.HEADERS_ALMOST_DONE:if(10!==_)return;b("onHeadersEnd"),l=s.PART_DATA_START;break;case s.PART_DATA_START:l=s.PART_DATA,u("onPartData");case s.PART_DATA:if(r=h,0===h){for(t+=f;t<T&&!(e[t]in o);)t+=c;t-=f,_=e[t]}if(h<i.length)i[h]===_?(0===h&&P("onPartData",!0),h++):h=0;else if(h===i.length)h++,13===_?D|=d:45===_?D|=E:h=0;else if(h-1===i.length)if(D&d){if(h=0,10===_){D&=~d,b("onPartEnd"),b("onPartBegin"),l=s.HEADER_FIELD_START;break}}else D&E&&45===_?(b("onPartEnd"),l=s.END,D=0):h=0;if(h>0)a[h-1]=_;else if(r>0){const e=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);b("onPartData",0,r,e),r=0,u("onPartData"),t--}break;case s.END:break;default:throw new Error(`Unexpected state entered: ${l}`)}P("onHeaderField"),P("onHeaderValue"),P("onPartData"),this.index=h,this.state=l,this.flags=D}end(){if(this.state===s.HEADER_FIELD_START&&0===this.index||this.state===s.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==s.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}async function l(e,t){if(!/multipart/i.test(t))throw new TypeError("Failed to fetch");const n=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new TypeError("no or bad content-type header, no multipart boundary");const i=new MultipartParser(n[1]||n[2]);let s,o,d,E,A,h;const l=[],D=new a.fS,c=e=>{d+=R.decode(e,{stream:!0})},f=e=>{l.push(e)},T=()=>{const e=new r.ZH(l,h,{type:A});D.append(E,e)},_=()=>{D.append(E,d)},R=new TextDecoder("utf-8");R.decode(),i.onPartBegin=function(){i.onPartData=c,i.onPartEnd=_,s="",o="",d="",E="",A="",h=null,l.length=0},i.onHeaderField=function(e){s+=R.decode(e,{stream:!0})},i.onHeaderValue=function(e){o+=R.decode(e,{stream:!0})},i.onHeaderEnd=function(){if(o+=R.decode(),s=s.toLowerCase(),"content-disposition"===s){const e=o.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(E=e[2]||e[3]||""),h=function(e){const t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;const n=t[2]||t[3]||"";let r=n.slice(n.lastIndexOf("\\")+1);return r=r.replace(/%22/g,'"'),r=r.replace(/&#(\d{4});/g,((e,t)=>String.fromCharCode(t))),r}(o),h&&(i.onPartData=f,i.onPartEnd=T)}else"content-type"===s&&(A=o);o="",s=""};for await(const t of e)i.write(t);return i.end(),D}}};
|
package/dist/527.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=527,exports.ids=[527],exports.modules={17527:(e,t,n)=>{n.d(t,{getDefaultRoleAssumer:()=>A,getDefaultRoleAssumerWithWebIdentity:()=>C});var s=n(25043),r=n(34546),i=n(8029),o=n(1802),c=n(39170),a=n(64355),l=n(73919);class AssumeRoleWithWebIdentityCommand extends(o.uB.classBuilder().ep({...c.S}).m((function(e,t,n,s){return[(0,i.TM)(n,this.serialize,this.deserialize),(0,r.rD)(n,e.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(a.KT,a.AA).ser(l.$3).de(l.MV).build()){}const d="us-east-1",u=e=>{if("string"==typeof e?.Arn){const t=e.Arn.split(":");if(t.length>4&&""!==t[4])return t[4]}},g=async(e,t,n)=>{const s="function"==typeof e?await e():e,r="function"==typeof t?await t():t;return n?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (provider)`,`${r} (parent client)`,`${d} (STS default)`),s??r??d},p=(e,t)=>{let n,r;return async(i,o)=>{if(r=i,!n){const{logger:s=e?.parentClientConfig?.logger,region:i,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:c}=e,a=await g(i,e?.parentClientConfig?.region,c);n=new t({credentialDefaultProvider:()=>async()=>r,region:a,requestHandler:o,logger:s})}const{Credentials:c,AssumedRoleUser:a}=await n.send(new s.Q(o));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);const l=u(a);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration,...c.CredentialScope&&{credentialScope:c.CredentialScope},...l&&{accountId:l}}}},f=(e,t)=>{let n;return async s=>{if(!n){const{logger:s=e?.parentClientConfig?.logger,region:r,requestHandler:i=e?.parentClientConfig?.requestHandler,credentialProviderLogger:o}=e,c=await g(r,e?.parentClientConfig?.region,o);n=new t({region:c,requestHandler:i,logger:s})}const{Credentials:r,AssumedRoleUser:i}=await n.send(new AssumeRoleWithWebIdentityCommand(s));if(!r||!r.AccessKeyId||!r.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);const o=u(i);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.SessionToken,expiration:r.Expiration,...r.CredentialScope&&{credentialScope:r.CredentialScope},...o&&{accountId:o}}}};var S=n(4213);const y=(e,t)=>t?class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t)this.middlewareStack.use(e)}}:e,A=(e={},t)=>p(e,y(S.i,t)),C=(e={},t)=>f(e,y(S.i,t))}};
|
package/dist/534.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=534,exports.ids=[534],exports.modules={81830:(e,t,s)=>{s.d(t,{CG:()=>r,Y2:()=>n,cJ:()=>i});var o=s(53127);const n=(e,t)=>(0,o.w)(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),r=async(e,t)=>{const s=await n(e,t);return s.message=s.message??s.Message,s},i=(e,t)=>{const s=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find((e=>e.toLowerCase()===r.toLowerCase())));var n,r;return void 0!==o?s(e.headers[o]):void 0!==t.code?s(t.code):void 0!==t.__type?s(t.__type):void 0}},98534:(e,t,s)=>{s.d(t,{GetRoleCredentialsCommand:()=>GetRoleCredentialsCommand,SSOClient:()=>SSOClient});var o=s(34546),n=s(8029),r=s(1802);const i={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class SSOServiceException extends r.TJ{constructor(e){super(e),Object.setPrototypeOf(this,SSOServiceException.prototype)}}class InvalidRequestException extends SSOServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestException.prototype)}}class ResourceNotFoundException extends SSOServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}class TooManyRequestsException extends SSOServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}class UnauthorizedException extends SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,UnauthorizedException.prototype)}}const a=e=>({...e,...e.accessToken&&{accessToken:r.$H}}),c=e=>({...e,...e.secretAccessKey&&{secretAccessKey:r.$H},...e.sessionToken&&{sessionToken:r.$H}}),d=e=>({...e,...e.roleCredentials&&{roleCredentials:c(e.roleCredentials)}});var u=s(81830),p=s(97882);const l=async(e,t)=>{const s=(0,p.lI)(e,t),o=(0,r.Tj)({},P,{[C]:e[w]});s.bp("/federation/credentials");const n=(0,r.Tj)({[R]:[,(0,r.Y0)(e[I],"roleName")],[b]:[,(0,r.Y0)(e[E],"accountId")]});return s.m("GET").h(o).q(n).b(undefined),s.build()},h=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return m(e,t);const s=(0,r.Tj)({$metadata:x(e)}),o=(0,r.Y0)((0,r.Xk)(await(0,u.Y2)(e.body,t)),"body"),n=(0,r.s)(o,{roleCredentials:r.Ss});return Object.assign(s,n),s},m=async(e,t)=>{const s={...e,body:await(0,u.CG)(e.body,t)},o=(0,u.cJ)(e,s.body);switch(o){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await g(s,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await S(s,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await f(s,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await v(s,t);default:const n=s.body;return y({output:e,parsedBody:n,errorCode:o})}},y=(0,r.jr)(SSOServiceException),g=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new InvalidRequestException({$metadata:x(e),...s});return(0,r.Mw)(i,e.body)},S=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new ResourceNotFoundException({$metadata:x(e),...s});return(0,r.Mw)(i,e.body)},f=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new TooManyRequestsException({$metadata:x(e),...s});return(0,r.Mw)(i,e.body)},v=async(e,t)=>{const s=(0,r.Tj)({}),o=e.body,n=(0,r.s)(o,{message:r.lK});Object.assign(s,n);const i=new UnauthorizedException({$metadata:x(e),...s});return(0,r.Mw)(i,e.body)},x=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"]}),P=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),E="accountId",w="accessToken",b="account_id",I="roleName",R="role_name",C="x-amz-sso_bearer_token";class GetRoleCredentialsCommand extends(r.uB.classBuilder().ep({...i}).m((function(e,t,s,r){return[(0,n.TM)(s,this.serialize,this.deserialize),(0,o.rD)(s,e.getEndpointParameterInstructions())]})).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(a,d).ser(l).de(h).build()){}var O=s(31758),k=s(46170),A=s(96692),q=s(33202),T=s(20512),z=s(51320),D=s(2103),j=s(71383),$=s(42952);const F=async(e,t,s)=>({operation:(0,$.u)(t).operation,region:await(0,$.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const M=e=>{const t=[];switch(e.operation){case"GetRoleCredentials":case"ListAccountRoles":case"ListAccounts":case"Logout":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},U="3.621.0";var N=s(68227),H=s(62438),G=s(25708),K=s(75854),L=s(3337),_=s(88226),B=s(94134),Y=s(59065),J=s(42640),Z=s(50563),V=s(67670),W=s(6775),X=s(96954);const Q="required",ee="fn",te="argv",se="ref",oe=!0,ne="isSet",re="booleanEquals",ie="error",ae="endpoint",ce="tree",de="PartitionResult",ue="getAttr",pe={[Q]:!1,type:"String"},le={[Q]:!0,default:!1,type:"Boolean"},he={[se]:"Endpoint"},me={[ee]:re,[te]:[{[se]:"UseFIPS"},!0]},ye={[ee]:re,[te]:[{[se]:"UseDualStack"},!0]},ge={},Se={[ee]:ue,[te]:[{[se]:de},"supportsFIPS"]},fe={[se]:de},ve={[ee]:re,[te]:[!0,{[ee]:ue,[te]:[fe,"supportsDualStack"]}]},xe=[me],Pe=[ye],Ee=[{[se]:"Region"}],we={version:"1.0",parameters:{Region:pe,UseDualStack:le,UseFIPS:le,Endpoint:pe},rules:[{conditions:[{[ee]:ne,[te]:[he]}],rules:[{conditions:xe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ie},{conditions:Pe,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ie},{endpoint:{url:he,properties:ge,headers:ge},type:ae}],type:ce},{conditions:[{[ee]:ne,[te]:Ee}],rules:[{conditions:[{[ee]:"aws.partition",[te]:Ee,assign:de}],rules:[{conditions:[me,ye],rules:[{conditions:[{[ee]:re,[te]:[oe,Se]},ve],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ge,headers:ge},type:ae}],type:ce},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ie}],type:ce},{conditions:xe,rules:[{conditions:[{[ee]:re,[te]:[Se,oe]}],rules:[{conditions:[{[ee]:"stringEquals",[te]:[{[ee]:ue,[te]:[fe,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:ge,headers:ge},type:ae},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ge,headers:ge},type:ae}],type:ce},{error:"FIPS is enabled but this partition does not support FIPS",type:ie}],type:ce},{conditions:Pe,rules:[{conditions:[ve],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ge,headers:ge},type:ae}],type:ce},{error:"DualStack is enabled but this partition does not support DualStack",type:ie}],type:ce},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:ge,headers:ge},type:ae}],type:ce}],type:ce},{error:"Invalid Configuration: Missing Region",type:ie}]},be=(e,t={})=>(0,X.sO)(we,{endpointParams:e,logger:t.logger});X.mw.aws=W.UF;var Ie=s(12165);const Re=e=>{(0,r.I9)(process.version);const t=(0,Ie.I)(e),s=()=>t().then(r.lT),o=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Z.E,base64Encoder:e?.base64Encoder??Z.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??be,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??M,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Y.f},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new p.mR}],logger:e?.logger??new r.N4,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??J.D,utf8Decoder:e?.utf8Decoder??V.ar,utf8Encoder:e?.utf8Encoder??V.Pq}))(e);return(0,N.I)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??_.n,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,H.mJ)({serviceId:o.serviceId,clientVersion:U}),maxAttempts:e?.maxAttempts??(0,K.Z)(D.qs),region:e?.region??(0,K.Z)(T.GG,T.zH),requestHandler:L.$c.create(e?.requestHandler??s),retryMode:e?.retryMode??(0,K.Z)({...D.kN,default:async()=>(await s()).retryMode||B.L0}),sha256:e?.sha256??G.V.bind(null,"sha256"),streamCollector:e?.streamCollector??L.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,K.Z)(T.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,K.Z)(T.Ko)}};var Ce=s(3119),Oe=s(47624);const ke=e=>{const t=e.httpAuthSchemes;let s=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const s=t.findIndex((t=>t.schemeId===e.schemeId));-1===s?t.push(e):t.splice(s,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){s=e},httpAuthSchemeProvider:()=>s,setCredentials(e){o=e},credentials:()=>o}};class SSOClient extends r.Kj{constructor(...[e]){const t=Re(e||{}),s=(n=t,{...n,useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});var n;const i=(0,T.TD)(s),a=(0,o.Co)(i),c=(0,O.OV)(a),d=(0,q.Dc)(c),u=(0,D.$z)(d);var l;const h=((e,t)=>{const s={...(0,Ce.Rq)(e),...(0,r.xA)(e),...(0,Oe.eS)(e),...ke(e)};return t.forEach((e=>e.configure(s))),{...e,...(0,Ce.$3)(s),...(0,r.uv)(s),...(0,Oe.jt)(s),...(o=s,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((l=u,{...(0,j.h)(l)}),e?.extensions||[]);super(h),this.config=h,this.middlewareStack.use((0,O.TC)(this.config)),this.middlewareStack.use((0,k.Y7)(this.config)),this.middlewareStack.use((0,A.n4)(this.config)),this.middlewareStack.use((0,q.sM)(this.config)),this.middlewareStack.use((0,D.ey)(this.config)),this.middlewareStack.use((0,z.vK)(this.config)),this.middlewareStack.use((0,p.wB)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,p.lW)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return F}getIdentityProviderConfigProvider(){return async e=>new p.h$({"aws.auth#sigv4":e.credentials})}}}};
|
package/dist/711.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=711,exports.ids=[711],exports.modules={4213:(t,e,n)=>{"use strict";n.d(e,{i:()=>STSClient});var i=n(31758),s=n(46170),o=n(96692),r=n(33202),a=n(20512),l=n(97882),c=n(51320),u=n(34546),d=n(2103),p=n(1802),h=n(71383),g=n(42952);const f=async(t,e,n)=>({operation:(0,g.u)(e).operation,region:await(0,g.t)(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const m=t=>{const e=[];switch(t.operation){case"AssumeRoleWithSAML":case"AssumeRoleWithWebIdentity":e.push({schemeId:"smithy.api#noAuth"});break;default:e.push(function(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}(t))}return e},x=t=>{const e=(n=t,{...n,stsClientCtor:STSClient});var n;return{...(0,h.h)(e)}};var b=n(39170);const E="3.621.0";var y=n(68227),v=n(59065),P=n(34054),N=n(62438),w=n(25708),T=n(75854),I=n(3337),A=n(88226),S=n(94134),O=n(42640),C=n(50563),k=n(67670),D=n(6775),$=n(96954);const j="required",R="type",M="fn",V="argv",F="ref",L=!1,_=!0,K="booleanEquals",z="stringEquals",U="sigv4",B="us-east-1",G="endpoint",W="https://sts.{Region}.{PartitionResult#dnsSuffix}",q="tree",X="error",Z="getAttr",H={[j]:!1,[R]:"String"},Y={[j]:!0,default:!1,[R]:"Boolean"},J={[F]:"Endpoint"},Q={[M]:"isSet",[V]:[{[F]:"Region"}]},tt={[F]:"Region"},et={[M]:"aws.partition",[V]:[tt],assign:"PartitionResult"},nt={[F]:"UseFIPS"},it={[F]:"UseDualStack"},st={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:U,signingName:"sts",signingRegion:B}]},headers:{}},ot={},rt={conditions:[{[M]:z,[V]:[tt,"aws-global"]}],[G]:st,[R]:G},at={[M]:K,[V]:[nt,!0]},lt={[M]:K,[V]:[it,!0]},ct={[M]:Z,[V]:[{[F]:"PartitionResult"},"supportsFIPS"]},ut={[F]:"PartitionResult"},dt={[M]:K,[V]:[!0,{[M]:Z,[V]:[ut,"supportsDualStack"]}]},pt=[{[M]:"isSet",[V]:[J]}],ht=[at],gt=[lt],ft={version:"1.0",parameters:{Region:H,UseDualStack:Y,UseFIPS:Y,Endpoint:H,UseGlobalEndpoint:Y},rules:[{conditions:[{[M]:K,[V]:[{[F]:"UseGlobalEndpoint"},_]},{[M]:"not",[V]:pt},Q,et,{[M]:K,[V]:[nt,L]},{[M]:K,[V]:[it,L]}],rules:[{conditions:[{[M]:z,[V]:[tt,"ap-northeast-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"ap-south-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"ap-southeast-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"ap-southeast-2"]}],endpoint:st,[R]:G},rt,{conditions:[{[M]:z,[V]:[tt,"ca-central-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"eu-central-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"eu-north-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"eu-west-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"eu-west-2"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"eu-west-3"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"sa-east-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,B]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"us-east-2"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"us-west-1"]}],endpoint:st,[R]:G},{conditions:[{[M]:z,[V]:[tt,"us-west-2"]}],endpoint:st,[R]:G},{endpoint:{url:W,properties:{authSchemes:[{name:U,signingName:"sts",signingRegion:"{Region}"}]},headers:ot},[R]:G}],[R]:q},{conditions:pt,rules:[{conditions:ht,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[R]:X},{conditions:gt,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[R]:X},{endpoint:{url:J,properties:ot,headers:ot},[R]:G}],[R]:q},{conditions:[Q],rules:[{conditions:[et],rules:[{conditions:[at,lt],rules:[{conditions:[{[M]:K,[V]:[_,ct]},dt],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ot,headers:ot},[R]:G}],[R]:q},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[R]:X}],[R]:q},{conditions:ht,rules:[{conditions:[{[M]:K,[V]:[ct,_]}],rules:[{conditions:[{[M]:z,[V]:[{[M]:Z,[V]:[ut,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:ot,headers:ot},[R]:G},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ot,headers:ot},[R]:G}],[R]:q},{error:"FIPS is enabled but this partition does not support FIPS",[R]:X}],[R]:q},{conditions:gt,rules:[{conditions:[dt],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ot,headers:ot},[R]:G}],[R]:q},{error:"DualStack is enabled but this partition does not support DualStack",[R]:X}],[R]:q},rt,{endpoint:{url:W,properties:ot,headers:ot},[R]:G}],[R]:q}],[R]:q},{error:"Invalid Configuration: Missing Region",[R]:X}]},mt=(t,e={})=>(0,$.sO)(ft,{endpointParams:t,logger:e.logger});$.mw.aws=D.UF;var xt=n(12165);const bt=t=>{(0,p.I9)(process.version);const e=(0,xt.I)(t),n=()=>e().then(p.lT),i=(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??C.E,base64Encoder:t?.base64Encoder??C.n,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??mt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??m,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new v.f},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l.mR}],logger:t?.logger??new p.N4,serviceId:t?.serviceId??"STS",urlParser:t?.urlParser??O.D,utf8Decoder:t?.utf8Decoder??k.ar,utf8Encoder:t?.utf8Encoder??k.Pq}))(t);return(0,y.I)(process.version),{...i,...t,runtime:"node",defaultsMode:e,bodyLengthChecker:t?.bodyLengthChecker??A.n,credentialDefaultProvider:t?.credentialDefaultProvider??P.v6,defaultUserAgentProvider:t?.defaultUserAgentProvider??(0,N.mJ)({serviceId:i.serviceId,clientVersion:E}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4")||(async t=>await(0,P.v6)(t?.__config||{})()),signer:new v.f},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l.mR}],maxAttempts:t?.maxAttempts??(0,T.Z)(d.qs),region:t?.region??(0,T.Z)(a.GG,a.zH),requestHandler:I.$c.create(t?.requestHandler??n),retryMode:t?.retryMode??(0,T.Z)({...d.kN,default:async()=>(await n()).retryMode||S.L0}),sha256:t?.sha256??w.V.bind(null,"sha256"),streamCollector:t?.streamCollector??I.kv,useDualstackEndpoint:t?.useDualstackEndpoint??(0,T.Z)(a.e$),useFipsEndpoint:t?.useFipsEndpoint??(0,T.Z)(a.Ko)}};var Et=n(3119),yt=n(47624);const vt=t=>{const e=t.httpAuthSchemes;let n=t.httpAuthSchemeProvider,i=t.credentials;return{setHttpAuthScheme(t){const n=e.findIndex((e=>e.schemeId===t.schemeId));-1===n?e.push(t):e.splice(n,1,t)},httpAuthSchemes:()=>e,setHttpAuthSchemeProvider(t){n=t},httpAuthSchemeProvider:()=>n,setCredentials(t){i=t},credentials:()=>i}};class STSClient extends p.Kj{constructor(...[t]){const e=bt(t||{}),n=(0,b.v)(e),h=(0,a.TD)(n),g=(0,u.Co)(h),f=(0,i.OV)(g),m=(0,r.Dc)(f),E=(0,d.$z)(m),y=((t,e)=>{const n={...(0,Et.Rq)(t),...(0,p.xA)(t),...(0,yt.eS)(t),...vt(t)};return e.forEach((t=>t.configure(n))),{...t,...(0,Et.$3)(n),...(0,p.uv)(n),...(0,yt.jt)(n),...(i=n,{httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()})};var i})(x(E),t?.extensions||[]);super(y),this.config=y,this.middlewareStack.use((0,i.TC)(this.config)),this.middlewareStack.use((0,s.Y7)(this.config)),this.middlewareStack.use((0,o.n4)(this.config)),this.middlewareStack.use((0,r.sM)(this.config)),this.middlewareStack.use((0,d.ey)(this.config)),this.middlewareStack.use((0,c.vK)(this.config)),this.middlewareStack.use((0,l.wB)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,l.lW)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return f}getIdentityProviderConfigProvider(){return async t=>new l.h$({"aws.auth#sigv4":t.credentials})}}},25043:(t,e,n)=>{"use strict";n.d(e,{Q:()=>AssumeRoleCommand});var i=n(34546),s=n(8029),o=n(1802),r=n(39170),a=n(64355),l=n(73919);class AssumeRoleCommand extends(o.uB.classBuilder().ep({...r.S}).m((function(t,e,n,o){return[(0,s.TM)(n,this.serialize,this.deserialize),(0,i.rD)(n,t.getEndpointParameterInstructions())]})).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,a.kl).ser(l.JC).de(l.aP).build()){}},39170:(t,e,n)=>{"use strict";n.d(e,{S:()=>s,v:()=>i});const i=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),s={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},88180:(t,e,n)=>{"use strict";n.d(e,{L:()=>STSServiceException});var i=n(1802);class STSServiceException extends i.TJ{constructor(t){super(t),Object.setPrototypeOf(this,STSServiceException.prototype)}}},64355:(t,e,n)=>{"use strict";n.d(e,{AA:()=>l,KT:()=>a,Nd:()=>IDPCommunicationErrorException,V1:()=>PackedPolicyTooLargeException,_A:()=>ExpiredTokenException,_Z:()=>MalformedPolicyDocumentException,fi:()=>IDPRejectedClaimException,kl:()=>r,po:()=>InvalidAuthorizationMessageException,wU:()=>RegionDisabledException,ye:()=>InvalidIdentityTokenException});var i=n(1802),s=n(88180);class ExpiredTokenException extends s.L{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}class MalformedPolicyDocumentException extends s.L{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}class PackedPolicyTooLargeException extends s.L{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}class RegionDisabledException extends s.L{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,RegionDisabledException.prototype)}}class IDPRejectedClaimException extends s.L{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}class InvalidIdentityTokenException extends s.L{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}class IDPCommunicationErrorException extends s.L{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}class InvalidAuthorizationMessageException extends s.L{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}const o=t=>({...t,...t.SecretAccessKey&&{SecretAccessKey:i.$H}}),r=t=>({...t,...t.Credentials&&{Credentials:o(t.Credentials)}}),a=t=>({...t,...t.WebIdentityToken&&{WebIdentityToken:i.$H}}),l=t=>({...t,...t.Credentials&&{Credentials:o(t.Credentials)}})},73919:(t,e,n)=>{"use strict";n.d(e,{aP:()=>h,MV:()=>g,JC:()=>d,$3:()=>p});var i=n(1802),s=n(12763),o=n(53127);const r=(t,e)=>(0,o.w)(t,e).then((t=>{if(t.length){const e=new s.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(t,e)=>""===e.trim()&&e.includes("\n")?"":void 0});let n;e.addEntity("#xD","\r"),e.addEntity("#10","\n");try{n=e.parse(t,!0)}catch(e){throw e&&"object"==typeof e&&Object.defineProperty(e,"$responseBodyText",{value:t}),e}const o="#text",r=Object.keys(n)[0],a=n[r];return a[o]&&(a[r]=a[o],delete a[o]),(0,i.rm)(a)}return{}})),a=async(t,e)=>{const n=await r(t,e);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n};var l=n(47624),c=n(64355),u=n(88180);const d=async(t,e)=>{const n=X;let i;return i=Dt({...w(t,e),[H]:J,[At]:Z}),q(e,n,"/",void 0,i)},p=async(t,e)=>{const n=X;let i;return i=Dt({...T(t,e),[H]:et,[At]:Z}),q(e,n,"/",void 0,i)},h=async(t,e)=>{if(t.statusCode>=300)return f(t,e);const n=await r(t.body,e);let i={};i=j(n.AssumeRoleResult,e);return{$metadata:G(t),...i}},g=async(t,e)=>{if(t.statusCode>=300)return f(t,e);const n=await r(t.body,e);let i={};i=R(n.AssumeRoleWithWebIdentityResult,e);return{$metadata:G(t),...i}},f=async(t,e)=>{const n={...t,body:await a(t.body,e)},i=$t(t,n.body);switch(i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await m(n,e);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await v(n,e);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await P(n,e);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await N(n,e);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await b(n,e);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await y(n,e);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await x(n,e);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await E(n,e);default:const s=n.body;return W({output:t,parsedBody:s.Error,errorCode:i})}},m=async(t,e)=>{const n=t.body,s=V(n.Error,e),o=new c._A({$metadata:G(t),...s});return(0,i.Mw)(o,n)},x=async(t,e)=>{const n=t.body,s=F(n.Error,e),o=new c.Nd({$metadata:G(t),...s});return(0,i.Mw)(o,n)},b=async(t,e)=>{const n=t.body,s=L(n.Error,e),o=new c.fi({$metadata:G(t),...s});return(0,i.Mw)(o,n)},E=async(t,e)=>{const n=t.body,s=_(n.Error,e),o=new c.po({$metadata:G(t),...s});return(0,i.Mw)(o,n)},y=async(t,e)=>{const n=t.body,s=K(n.Error,e),o=new c.ye({$metadata:G(t),...s});return(0,i.Mw)(o,n)},v=async(t,e)=>{const n=t.body,s=z(n.Error,e),o=new c._Z({$metadata:G(t),...s});return(0,i.Mw)(o,n)},P=async(t,e)=>{const n=t.body,s=U(n.Error,e),o=new c.V1({$metadata:G(t),...s});return(0,i.Mw)(o,n)},N=async(t,e)=>{const n=t.body,s=B(n.Error,e),o=new c.wU({$metadata:G(t),...s});return(0,i.Mw)(o,n)},w=(t,e)=>{const n={};if(null!=t[xt]&&(n[xt]=t[xt]),null!=t[bt]&&(n[bt]=t[bt]),null!=t[dt]){const i=I(t[dt],e);0===t[dt]?.length&&(n.PolicyArns=[]),Object.entries(i).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}if(null!=t[ut]&&(n[ut]=t[ut]),null!=t[rt]&&(n[rt]=t[rt]),null!=t[wt]){const i=D(t[wt],e);0===t[wt]?.length&&(n.Tags=[]),Object.entries(i).forEach((([t,e])=>{n[`Tags.${t}`]=e}))}if(null!=t[It]){const i=k(t[It],e);0===t[It]?.length&&(n.TransitiveTagKeys=[]),Object.entries(i).forEach((([t,e])=>{n[`TransitiveTagKeys.${t}`]=e}))}if(null!=t[lt]&&(n[lt]=t[lt]),null!=t[Pt]&&(n[Pt]=t[Pt]),null!=t[Tt]&&(n[Tt]=t[Tt]),null!=t[vt]&&(n[vt]=t[vt]),null!=t[ht]){const i=O(t[ht],e);0===t[ht]?.length&&(n.ProvidedContexts=[]),Object.entries(i).forEach((([t,e])=>{n[`ProvidedContexts.${t}`]=e}))}return n},T=(t,e)=>{const n={};if(null!=t[xt]&&(n[xt]=t[xt]),null!=t[bt]&&(n[bt]=t[bt]),null!=t[Ot]&&(n[Ot]=t[Ot]),null!=t[gt]&&(n[gt]=t[gt]),null!=t[dt]){const i=I(t[dt],e);0===t[dt]?.length&&(n.PolicyArns=[]),Object.entries(i).forEach((([t,e])=>{n[`PolicyArns.${t}`]=e}))}return null!=t[ut]&&(n[ut]=t[ut]),null!=t[rt]&&(n[rt]=t[rt]),n},I=(t,e)=>{const n={};let i=1;for(const s of t){if(null===s)continue;const t=A(s,e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},A=(t,e)=>{const n={};return null!=t[Ct]&&(n[Ct]=t[Ct]),n},S=(t,e)=>{const n={};return null!=t[pt]&&(n[pt]=t[pt]),null!=t[ot]&&(n[ot]=t[ot]),n},O=(t,e)=>{const n={};let i=1;for(const e of t){if(null===e)continue;const t=S(e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},C=(t,e)=>{const n={};return null!=t[ct]&&(n[ct]=t[ct]),null!=t[St]&&(n[St]=t[St]),n},k=(t,e)=>{const n={};let i=1;for(const e of t)null!==e&&(n[`member.${i}`]=e,i++);return n},D=(t,e)=>{const n={};let i=1;for(const e of t){if(null===e)continue;const t=C(e);Object.entries(t).forEach((([t,e])=>{n[`member.${i}.${t}`]=e})),i++}return n},$=(t,e)=>{const n={};return null!=t[Q]&&(n[Q]=(0,i.lK)(t[Q])),null!=t[nt]&&(n[nt]=(0,i.lK)(t[nt])),n},j=(t,e)=>{const n={};return null!=t[st]&&(n[st]=M(t[st],e)),null!=t[tt]&&(n[tt]=$(t[tt])),null!=t[ft]&&(n[ft]=(0,i.xW)(t[ft])),null!=t[vt]&&(n[vt]=(0,i.lK)(t[vt])),n},R=(t,e)=>{const n={};return null!=t[st]&&(n[st]=M(t[st],e)),null!=t[yt]&&(n[yt]=(0,i.lK)(t[yt])),null!=t[tt]&&(n[tt]=$(t[tt])),null!=t[ft]&&(n[ft]=(0,i.xW)(t[ft])),null!=t[mt]&&(n[mt]=(0,i.lK)(t[mt])),null!=t[it]&&(n[it]=(0,i.lK)(t[it])),null!=t[vt]&&(n[vt]=(0,i.lK)(t[vt])),n},M=(t,e)=>{const n={};return null!=t[Y]&&(n[Y]=(0,i.lK)(t[Y])),null!=t[Et]&&(n[Et]=(0,i.lK)(t[Et])),null!=t[Nt]&&(n[Nt]=(0,i.lK)(t[Nt])),null!=t[at]&&(n[at]=(0,i.Y0)((0,i.t_)(t[at]))),n},V=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},F=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},L=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},_=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},K=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},z=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},U=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},B=(t,e)=>{const n={};return null!=t[kt]&&(n[kt]=(0,i.lK)(t[kt])),n},G=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"]}),W=(0,i.jr)(u.L),q=async(t,e,n,i,s)=>{const{hostname:o,protocol:r="https",port:a,path:c}=await t.endpoint(),u={protocol:r,hostname:o,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:e};return void 0!==i&&(u.hostname=i),void 0!==s&&(u.body=s),new l.Kd(u)},X={"content-type":"application/x-www-form-urlencoded"},Z="2011-06-15",H="Action",Y="AccessKeyId",J="AssumeRole",Q="AssumedRoleId",tt="AssumedRoleUser",et="AssumeRoleWithWebIdentity",nt="Arn",it="Audience",st="Credentials",ot="ContextAssertion",rt="DurationSeconds",at="Expiration",lt="ExternalId",ct="Key",ut="Policy",dt="PolicyArns",pt="ProviderArn",ht="ProvidedContexts",gt="ProviderId",ft="PackedPolicySize",mt="Provider",xt="RoleArn",bt="RoleSessionName",Et="SecretAccessKey",yt="SubjectFromWebIdentityToken",vt="SourceIdentity",Pt="SerialNumber",Nt="SessionToken",wt="Tags",Tt="TokenCode",It="TransitiveTagKeys",At="Version",St="Value",Ot="WebIdentityToken",Ct="arn",kt="message",Dt=t=>Object.entries(t).map((([t,e])=>(0,i.$6)(t)+"="+(0,i.$6)(e))).join("&"),$t=(t,e)=>void 0!==e.Error?.Code?e.Error.Code:404==t.statusCode?"NotFound":void 0},12763:(t,e,n)=>{"use strict";const i=n(70919),s=n(6226),o=n(75181);t.exports={XMLParser:s,XMLValidator:i,XMLBuilder:o}},41209:(t,e)=>{"use strict";const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+n+"]["+(n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",s=new RegExp("^"+i+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,n){if(e){const i=Object.keys(e),s=i.length;for(let o=0;o<s;o++)t[i[o]]="strict"===n?[e[i[o]]]:e[i[o]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(t){const e=s.exec(t);return!(null==e)},e.getAllMatches=function(t,e){const n=[];let i=e.exec(t);for(;i;){const s=[];s.startIndex=e.lastIndex-i[0].length;const o=i.length;for(let t=0;t<o;t++)s.push(i[t]);n.push(s),i=e.exec(t)}return n},e.nameRegexp=i},70919:(t,e,n)=>{"use strict";const i=n(41209),s={allowBooleanAttributes:!1,unpairedTags:[]};function o(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function r(t,e){const n=e;for(;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{const i=t.substr(n,e-n);if(e>5&&"xml"===i)return g("InvalidXml","XML declaration allowed only at the start of the document.",m(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function a(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&(n--,0===n))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=Object.assign({},s,e);const n=[];let l=!1,c=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let s=0;s<t.length;s++)if("<"===t[s]&&"?"===t[s+1]){if(s+=2,s=r(t,s),s.err)return s}else{if("<"!==t[s]){if(o(t[s]))continue;return g("InvalidChar","char '"+t[s]+"' is not expected.",m(t,s))}{let f=s;if(s++,"!"===t[s]){s=a(t,s);continue}{let x=!1;"/"===t[s]&&(x=!0,s++);let b="";for(;s<t.length&&">"!==t[s]&&" "!==t[s]&&"\t"!==t[s]&&"\n"!==t[s]&&"\r"!==t[s];s++)b+=t[s];if(b=b.trim(),"/"===b[b.length-1]&&(b=b.substring(0,b.length-1),s--),d=b,!i.isName(d)){let e;return e=0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",g("InvalidTag",e,m(t,s))}const E=u(t,s);if(!1===E)return g("InvalidAttr","Attributes for '"+b+"' have open quote.",m(t,s));let y=E.value;if(s=E.index,"/"===y[y.length-1]){const n=s-y.length;y=y.substring(0,y.length-1);const i=p(y,e);if(!0!==i)return g(i.err.code,i.err.msg,m(t,n+i.err.line));l=!0}else if(x){if(!E.tagClosed)return g("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",m(t,s));if(y.trim().length>0)return g("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",m(t,f));if(0===n.length)return g("InvalidTag","Closing tag '"+b+"' has not been opened.",m(t,f));{const e=n.pop();if(b!==e.tagName){let n=m(t,e.tagStartPos);return g("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+b+"'.",m(t,f))}0==n.length&&(c=!0)}}else{const i=p(y,e);if(!0!==i)return g(i.err.code,i.err.msg,m(t,s-y.length+i.err.line));if(!0===c)return g("InvalidXml","Multiple possible root nodes found.",m(t,s));-1!==e.unpairedTags.indexOf(b)||n.push({tagName:b,tagStartPos:f}),l=!0}for(s++;s<t.length;s++)if("<"===t[s]){if("!"===t[s+1]){s++,s=a(t,s);continue}if("?"!==t[s+1])break;if(s=r(t,++s),s.err)return s}else if("&"===t[s]){const e=h(t,s);if(-1==e)return g("InvalidChar","char '&' is not expected.",m(t,s));s=e}else if(!0===c&&!o(t[s]))return g("InvalidXml","Extra text at the end",m(t,s));"<"===t[s]&&s--}}}var d;return l?1==n.length?g("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",m(t,n[0].tagStartPos)):!(n.length>0)||g("InvalidXml","Invalid '"+JSON.stringify(n.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):g("InvalidXml","Start tag expected.",1)};const l='"',c="'";function u(t,e){let n="",i="",s=!1;for(;e<t.length;e++){if(t[e]===l||t[e]===c)""===i?i=t[e]:i!==t[e]||(i="");else if(">"===t[e]&&""===i){s=!0;break}n+=t[e]}return""===i&&{value:n,index:e,tagClosed:s}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(t,e){const n=i.getAllMatches(t,d),s={};for(let t=0;t<n.length;t++){if(0===n[t][1].length)return g("InvalidAttr","Attribute '"+n[t][2]+"' has no space in starting.",x(n[t]));if(void 0!==n[t][3]&&void 0===n[t][4])return g("InvalidAttr","Attribute '"+n[t][2]+"' is without value.",x(n[t]));if(void 0===n[t][3]&&!e.allowBooleanAttributes)return g("InvalidAttr","boolean attribute '"+n[t][2]+"' is not allowed.",x(n[t]));const i=n[t][2];if(!f(i))return g("InvalidAttr","Attribute '"+i+"' is an invalid name.",x(n[t]));if(s.hasOwnProperty(i))return g("InvalidAttr","Attribute '"+i+"' is repeated.",x(n[t]));s[i]=1}return!0}function h(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let n=/\d/;for("x"===t[e]&&(e++,n=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(n))break}return-1}(t,++e);let n=0;for(;e<t.length;e++,n++)if(!(t[e].match(/\w/)&&n<20)){if(";"===t[e])break;return-1}return e}function g(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function f(t){return i.isName(t)}function m(t,e){const n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function x(t){return t.startIndex+t[1].length}},75181:(t,e,n)=>{"use strict";const i=n(74655),s={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function o(t){this.options=Object.assign({},s,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=r,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function r(t,e,n){const i=this.j2x(t,n+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,n):this.buildObjectNode(i.val,e,i.attrStr,n)}function a(t){return this.options.indentBy.repeat(t)}function l(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}o.prototype.build=function(t){return this.options.preserveOrder?i(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)},o.prototype.j2x=function(t,e){let n="",i="";for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s))if(void 0===t[s])this.isAttribute(s)&&(i+="");else if(null===t[s])this.isAttribute(s)?i+="":"?"===s[0]?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)i+=this.buildTextValNode(t[s],s,"",e);else if("object"!=typeof t[s]){const o=this.isAttribute(s);if(o)n+=this.buildAttrPairStr(o,""+t[s]);else if(s===this.options.textNodeName){let e=this.options.tagValueProcessor(s,""+t[s]);i+=this.replaceEntitiesValue(e)}else i+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){const n=t[s].length;let o="",r="";for(let a=0;a<n;a++){const n=t[s][a];if(void 0===n);else if(null===n)"?"===s[0]?i+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof n)if(this.options.oneListGroup){const t=this.j2x(n,e+1);o+=t.val,this.options.attributesGroupName&&n.hasOwnProperty(this.options.attributesGroupName)&&(r+=t.attrStr)}else o+=this.processTextOrObjNode(n,s,e);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(s,n);t=this.replaceEntitiesValue(t),o+=t}else o+=this.buildTextValNode(n,s,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,s,r,e)),i+=o}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const e=Object.keys(t[s]),i=e.length;for(let o=0;o<i;o++)n+=this.buildAttrPairStr(e[o],""+t[s][e[o]])}else i+=this.processTextOrObjNode(t[s],s,e);return{attrStr:n,val:i}},o.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},o.prototype.buildObjectNode=function(t,e,n,i){if(""===t)return"?"===e[0]?this.indentate(i)+"<"+e+n+"?"+this.tagEndChar:this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",s=""),!n&&""!==n||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(i)+"<"+e+n+o+this.tagEndChar+t+this.indentate(i)+s:this.indentate(i)+"<"+e+n+o+">"+t+s}},o.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},o.prototype.buildTextValNode=function(t,e,n,i){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(i)+"<"+e+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),""===s?this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+n+">"+s+"</"+e+this.tagEndChar}},o.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const n=this.options.entities[e];t=t.replace(n.regex,n.val)}return t},t.exports=o},74655:t=>{function e(t,r,a,l){let c="",u=!1;for(let d=0;d<t.length;d++){const p=t[d],h=n(p);if(void 0===h)continue;let g="";if(g=0===a.length?h:`${a}.${h}`,h===r.textNodeName){let t=p[h];s(g,r)||(t=r.tagValueProcessor(h,t),t=o(t,r)),u&&(c+=l),c+=t,u=!1;continue}if(h===r.cdataPropName){u&&(c+=l),c+=`<![CDATA[${p[h][0][r.textNodeName]}]]>`,u=!1;continue}if(h===r.commentPropName){c+=l+`\x3c!--${p[h][0][r.textNodeName]}--\x3e`,u=!0;continue}if("?"===h[0]){const t=i(p[":@"],r),e="?xml"===h?"":l;let n=p[h][0][r.textNodeName];n=0!==n.length?" "+n:"",c+=e+`<${h}${n}${t}?>`,u=!0;continue}let f=l;""!==f&&(f+=r.indentBy);const m=l+`<${h}${i(p[":@"],r)}`,x=e(p[h],r,g,f);-1!==r.unpairedTags.indexOf(h)?r.suppressUnpairedNode?c+=m+">":c+=m+"/>":x&&0!==x.length||!r.suppressEmptyNode?x&&x.endsWith(">")?c+=m+`>${x}${l}</${h}>`:(c+=m+">",x&&""!==l&&(x.includes("/>")||x.includes("</"))?c+=l+r.indentBy+x+l:c+=x,c+=`</${h}>`):c+=m+"/>",u=!0}return c}function n(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];if(t.hasOwnProperty(i)&&":@"!==i)return i}}function i(t,e){let n="";if(t&&!e.ignoreAttributes)for(let i in t){if(!t.hasOwnProperty(i))continue;let s=e.attributeValueProcessor(i,t[i]);s=o(s,e),!0===s&&e.suppressBooleanAttributes?n+=` ${i.substr(e.attributeNamePrefix.length)}`:n+=` ${i.substr(e.attributeNamePrefix.length)}="${s}"`}return n}function s(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let i in e.stopNodes)if(e.stopNodes[i]===t||e.stopNodes[i]==="*."+n)return!0;return!1}function o(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.entities.length;n++){const i=e.entities[n];t=t.replace(i.regex,i.val)}return t}t.exports=function(t,n){let i="";return n.format&&n.indentBy.length>0&&(i="\n"),e(t,n,"",i)}},23233:(t,e,n)=>{const i=n(41209);function s(t,e){let n="";for(;e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)n+=t[e];if(n=n.trim(),-1!==n.indexOf(" "))throw new Error("External entites are not supported");const i=t[e++];let s="";for(;e<t.length&&t[e]!==i;e++)s+=t[e];return[n,s,e]}function o(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}function r(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[e+4]&&"I"===t[e+5]&&"T"===t[e+6]&&"Y"===t[e+7]}function a(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[e+4]&&"M"===t[e+5]&&"E"===t[e+6]&&"N"===t[e+7]&&"T"===t[e+8]}function l(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[e+4]&&"L"===t[e+5]&&"I"===t[e+6]&&"S"===t[e+7]&&"T"===t[e+8]}function c(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[e+4]&&"A"===t[e+5]&&"T"===t[e+6]&&"I"===t[e+7]&&"O"===t[e+8]&&"N"===t[e+9]}function u(t){if(i.isName(t))return t;throw new Error(`Invalid entity name ${t}`)}t.exports=function(t,e){const n={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");{e+=9;let i=1,d=!1,p=!1,h="";for(;e<t.length;e++)if("<"!==t[e]||p)if(">"===t[e]){if(p?"-"===t[e-1]&&"-"===t[e-2]&&(p=!1,i--):i--,0===i)break}else"["===t[e]?d=!0:h+=t[e];else{if(d&&r(t,e))e+=7,[entityName,val,e]=s(t,e+1),-1===val.indexOf("&")&&(n[u(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(d&&a(t,e))e+=8;else if(d&&l(t,e))e+=8;else if(d&&c(t,e))e+=9;else{if(!o)throw new Error("Invalid DOCTYPE");p=!0}i++,h=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:e}}},67063:(t,e)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t}};e.buildOptions=function(t){return Object.assign({},n,t)},e.defaultOptions=n},5139:(t,e,n)=>{"use strict";const i=n(41209),s=n(85381),o=n(23233),r=n(78262);function a(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:t[i]}}}function l(t,e,n,i,s,o,r){if(void 0!==t&&(this.options.trimValues&&!i&&(t=t.trim()),t.length>0)){r||(t=this.replaceEntitiesValue(t));const i=this.options.tagValueProcessor(e,t,n,s,o);if(null==i)return t;if(typeof i!=typeof t||i!==t)return i;if(this.options.trimValues)return y(t,this.options.parseTagValue,this.options.numberParseOptions);return t.trim()===t?y(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function c(t){if(this.options.removeNSPrefix){const e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}const u=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(t,e,n){if(!this.options.ignoreAttributes&&"string"==typeof t){const n=i.getAllMatches(t,u),s=n.length,o={};for(let t=0;t<s;t++){const i=this.resolveNameSpace(n[t][1]);let s=n[t][4],r=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(r=this.options.transformAttributeName(r)),"__proto__"===r&&(r="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const t=this.options.attributeValueProcessor(i,s,e);o[r]=null==t?s:typeof t!=typeof s||t!==s?t:y(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(o[r]=!0)}if(!Object.keys(o).length)return;if(this.options.attributesGroupName){const t={};return t[this.options.attributesGroupName]=o,t}return o}}const p=function(t){t=t.replace(/\r\n?/g,"\n");const e=new s("!xml");let n=e,i="",r="";for(let a=0;a<t.length;a++){if("<"===t[a])if("/"===t[a+1]){const e=x(t,">",a,"Closing Tag is not closed.");let s=t.substring(a+2,e).trim();if(this.options.removeNSPrefix){const t=s.indexOf(":");-1!==t&&(s=s.substr(t+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),n&&(i=this.saveTextToParentTag(i,n,r));const o=r.substring(r.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let l=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(l=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=r.lastIndexOf("."),r=r.substring(0,l),n=this.tagsNodeStack.pop(),i="",a=e}else if("?"===t[a+1]){let e=b(t,a,!1,"?>");if(!e)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,r),this.options.ignoreDeclaration&&"?xml"===e.tagName||this.options.ignorePiTags);else{const t=new s(e.tagName);t.add(this.options.textNodeName,""),e.tagName!==e.tagExp&&e.attrExpPresent&&(t[":@"]=this.buildAttributesMap(e.tagExp,r,e.tagName)),this.addChild(n,t,r)}a=e.closeIndex+1}else if("!--"===t.substr(a+1,3)){const e=x(t,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const s=t.substring(a+4,e-2);i=this.saveTextToParentTag(i,n,r),n.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}a=e}else if("!D"===t.substr(a+1,2)){const e=o(t,a);this.docTypeEntities=e.entities,a=e.i}else if("!["===t.substr(a+1,2)){const e=x(t,"]]>",a,"CDATA is not closed.")-2,s=t.substring(a+9,e);i=this.saveTextToParentTag(i,n,r);let o=this.parseTextData(s,n.tagname,r,!0,!1,!0,!0);null==o&&(o=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]):n.add(this.options.textNodeName,o),a=e+2}else{let o=b(t,a,this.options.removeNSPrefix),l=o.tagName;const c=o.rawTagName;let u=o.tagExp,d=o.attrExpPresent,p=o.closeIndex;this.options.transformTagName&&(l=this.options.transformTagName(l)),n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,r,!1));const h=n;if(h&&-1!==this.options.unpairedTags.indexOf(h.tagname)&&(n=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),l!==e.tagname&&(r+=r?"."+l:l),this.isItStopNode(this.options.stopNodes,r,l)){let e="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)"/"===l[l.length-1]?(l=l.substr(0,l.length-1),r=r.substr(0,r.length-1),u=l):u=u.substr(0,u.length-1),a=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(l))a=o.closeIndex;else{const n=this.readStopNodeData(t,c,p+1);if(!n)throw new Error(`Unexpected end of ${c}`);a=n.i,e=n.tagContent}const i=new s(l);l!==u&&d&&(i[":@"]=this.buildAttributesMap(u,r,l)),e&&(e=this.parseTextData(e,l,r,!0,d,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),i.add(this.options.textNodeName,e),this.addChild(n,i,r)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){"/"===l[l.length-1]?(l=l.substr(0,l.length-1),r=r.substr(0,r.length-1),u=l):u=u.substr(0,u.length-1),this.options.transformTagName&&(l=this.options.transformTagName(l));const t=new s(l);l!==u&&d&&(t[":@"]=this.buildAttributesMap(u,r,l)),this.addChild(n,t,r),r=r.substr(0,r.lastIndexOf("."))}else{const t=new s(l);this.tagsNodeStack.push(n),l!==u&&d&&(t[":@"]=this.buildAttributesMap(u,r,l)),this.addChild(n,t,r),n=t}i="",a=p}}else i+=t[a]}return e.child};function h(t,e,n){const i=this.options.updateTag(e.tagname,n,e[":@"]);!1===i||("string"==typeof i?(e.tagname=i,t.addChild(e)):t.addChild(e))}const g=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const n=this.docTypeEntities[e];t=t.replace(n.regx,n.val)}for(let e in this.lastEntities){const n=this.lastEntities[e];t=t.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){const n=this.htmlEntities[e];t=t.replace(n.regex,n.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function f(t,e,n,i){return t&&(void 0===i&&(i=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,i))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function m(t,e,n){const i="*."+n;for(const n in t){const s=t[n];if(i===s||e===s)return!0}return!1}function x(t,e,n,i){const s=t.indexOf(e,n);if(-1===s)throw new Error(i);return s+e.length-1}function b(t,e,n,i=">"){const s=function(t,e,n=">"){let i,s="";for(let o=e;o<t.length;o++){let e=t[o];if(i)e===i&&(i="");else if('"'===e||"'"===e)i=e;else if(e===n[0]){if(!n[1])return{data:s,index:o};if(t[o+1]===n[1])return{data:s,index:o}}else"\t"===e&&(e=" ");s+=e}}(t,e+1,i);if(!s)return;let o=s.data;const r=s.index,a=o.search(/\s/);let l=o,c=!0;-1!==a&&(l=o.substring(0,a),o=o.substring(a+1).trimStart());const u=l;if(n){const t=l.indexOf(":");-1!==t&&(l=l.substr(t+1),c=l!==s.data.substr(t+1))}return{tagName:l,tagExp:o,closeIndex:r,attrExpPresent:c,rawTagName:u}}function E(t,e,n){const i=n;let s=1;for(;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){const o=x(t,">",n,`${e} is not closed`);if(t.substring(n+2,o).trim()===e&&(s--,0===s))return{tagContent:t.substring(i,n),i:o};n=o}else if("?"===t[n+1]){n=x(t,"?>",n+1,"StopNode is not closed.")}else if("!--"===t.substr(n+1,3)){n=x(t,"--\x3e",n+3,"StopNode is not closed.")}else if("!["===t.substr(n+1,2)){n=x(t,"]]>",n,"StopNode is not closed.")-2}else{const i=b(t,n,">");if(i){(i&&i.tagName)===e&&"/"!==i.tagExp[i.tagExp.length-1]&&s++,n=i.closeIndex}}}function y(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&r(t,n)}return i.isExist(t)?t:""}t.exports=class OrderedObjParser{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"\u20ac"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"\u20b9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>String.fromCharCode(Number.parseInt(e,16))}},this.addExternalEntities=a,this.parseXml=p,this.parseTextData=l,this.resolveNameSpace=c,this.buildAttributesMap=d,this.isItStopNode=m,this.replaceEntitiesValue=g,this.readStopNodeData=E,this.saveTextToParentTag=f,this.addChild=h}}},6226:(t,e,n)=>{const{buildOptions:i}=n(67063),s=n(5139),{prettify:o}=n(70896),r=n(70919);t.exports=class XMLParser{constructor(t){this.externalEntities={},this.options=i(t)}parse(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});const n=r.validate(t,e);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new s(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:o(i,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}},70896:(t,e)=>{"use strict";function n(t,e,r){let a;const l={};for(let c=0;c<t.length;c++){const u=t[c],d=i(u);let p="";if(p=void 0===r?d:r+"."+d,d===e.textNodeName)void 0===a?a=u[d]:a+=""+u[d];else{if(void 0===d)continue;if(u[d]){let t=n(u[d],e,p);const i=o(t,e);u[":@"]?s(t,u[":@"],p,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==l[d]&&l.hasOwnProperty(d)?(Array.isArray(l[d])||(l[d]=[l[d]]),l[d].push(t)):e.isArray(d,p,i)?l[d]=[t]:l[d]=t}}}return"string"==typeof a?a.length>0&&(l[e.textNodeName]=a):void 0!==a&&(l[e.textNodeName]=a),l}function i(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function s(t,e,n,i){if(e){const s=Object.keys(e),o=s.length;for(let r=0;r<o;r++){const o=s[r];i.isArray(o,n+"."+o,!0,!0)?t[o]=[e[o]]:t[o]=e[o]}}}function o(t,e){const{textNodeName:n}=e,i=Object.keys(t).length;return 0===i||!(1!==i||!t[n]&&"boolean"!=typeof t[n]&&0!==t[n])}e.prettify=function(t,e){return n(t,e)}},85381:t=>{"use strict";t.exports=class XmlNode{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},78262:t=>{const e=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(t,s={}){if(s=Object.assign({},i,s),!t||"string"!=typeof t)return t;let o=t.trim();if(void 0!==s.skipLike&&s.skipLike.test(o))return t;if(s.hex&&e.test(o))return Number.parseInt(o,16);{const e=n.exec(o);if(e){const n=e[1],i=e[2];let r=function(t){if(t&&-1!==t.indexOf("."))return"."===(t=t.replace(/0+$/,""))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),t;return t}(e[3]);const a=e[4]||e[6];if(!s.leadingZeros&&i.length>0&&n&&"."!==o[2])return t;if(!s.leadingZeros&&i.length>0&&!n&&"."!==o[1])return t;{const e=Number(o),l=""+e;return-1!==l.search(/[eE]/)||a?s.eNotation?e:t:-1!==o.indexOf(".")?"0"===l&&""===r||l===r||n&&l==="-"+r?e:t:i?r===l||n+r===l?e:t:o===l||o===n+l?e:t}}return t}}}};
|
package/dist/739.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=739,exports.ids=[739],exports.modules={32739:(e,t,r)=>{r.d(t,{CreateTokenCommand:()=>CreateTokenCommand,SSOOIDCClient:()=>SSOOIDCClient});var o=r(31758),n=r(46170),i=r(96692),s=r(33202),a=r(20512),c=r(97882),d=r(51320),p=r(34546),l=r(2103),u=r(1802),h=r(71383),x=r(42952);const m=async(e,t,r)=>({operation:(0,x.u)(t).operation,region:await(0,x.t)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const y=e=>{const t=[];switch(e.operation){case"CreateToken":case"RegisterClient":case"StartDeviceAuthorization":t.push({schemeId:"smithy.api#noAuth"});break;default:t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e))}return t},E={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},S="3.621.0";var v=r(68227),w=r(34054),I=r(62438),f=r(25708),g=r(75854),O=r(3337),b=r(88226),C=r(94134),P=r(59065),D=r(42640),k=r(50563),T=r(67670),$=r(6775),j=r(96954);const R="required",_="fn",A="argv",z="ref",K=!0,U="isSet",M="booleanEquals",q="error",G="endpoint",H="tree",F="PartitionResult",V="getAttr",B={[R]:!1,type:"String"},J={[R]:!0,default:!1,type:"Boolean"},L={[z]:"Endpoint"},N={[_]:M,[A]:[{[z]:"UseFIPS"},!0]},Z={[_]:M,[A]:[{[z]:"UseDualStack"},!0]},Y={},W={[_]:V,[A]:[{[z]:F},"supportsFIPS"]},X={[z]:F},Q={[_]:M,[A]:[!0,{[_]:V,[A]:[X,"supportsDualStack"]}]},ee=[N],te=[Z],re=[{[z]:"Region"}],oe={version:"1.0",parameters:{Region:B,UseDualStack:J,UseFIPS:J,Endpoint:B},rules:[{conditions:[{[_]:U,[A]:[L]}],rules:[{conditions:ee,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:q},{conditions:te,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:q},{endpoint:{url:L,properties:Y,headers:Y},type:G}],type:H},{conditions:[{[_]:U,[A]:re}],rules:[{conditions:[{[_]:"aws.partition",[A]:re,assign:F}],rules:[{conditions:[N,Z],rules:[{conditions:[{[_]:M,[A]:[K,W]},Q],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Y,headers:Y},type:G}],type:H},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:q}],type:H},{conditions:ee,rules:[{conditions:[{[_]:M,[A]:[W,K]}],rules:[{conditions:[{[_]:"stringEquals",[A]:[{[_]:V,[A]:[X,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:Y,headers:Y},type:G},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Y,headers:Y},type:G}],type:H},{error:"FIPS is enabled but this partition does not support FIPS",type:q}],type:H},{conditions:te,rules:[{conditions:[Q],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Y,headers:Y},type:G}],type:H},{error:"DualStack is enabled but this partition does not support DualStack",type:q}],type:H},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Y,headers:Y},type:G}],type:H}],type:H},{error:"Invalid Configuration: Missing Region",type:q}]},ne=(e,t={})=>(0,j.sO)(oe,{endpointParams:e,logger:t.logger});j.mw.aws=$.UF;var ie=r(12165);const se=e=>{(0,u.I9)(process.version);const t=(0,ie.I)(e),r=()=>t().then(u.lT),o=(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??k.E,base64Encoder:e?.base64Encoder??k.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ne,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??y,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new P.f},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new c.mR}],logger:e?.logger??new u.N4,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??D.D,utf8Decoder:e?.utf8Decoder??T.ar,utf8Encoder:e?.utf8Encoder??T.Pq}))(e);return(0,v.I)(process.version),{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??b.n,credentialDefaultProvider:e?.credentialDefaultProvider??w.v6,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,I.mJ)({serviceId:o.serviceId,clientVersion:S}),maxAttempts:e?.maxAttempts??(0,g.Z)(l.qs),region:e?.region??(0,g.Z)(a.GG,a.zH),requestHandler:O.$c.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,g.Z)({...l.kN,default:async()=>(await r()).retryMode||C.L0}),sha256:e?.sha256??f.V.bind(null,"sha256"),streamCollector:e?.streamCollector??O.kv,useDualstackEndpoint:e?.useDualstackEndpoint??(0,g.Z)(a.e$),useFipsEndpoint:e?.useFipsEndpoint??(0,g.Z)(a.Ko)}};var ae=r(3119),ce=r(47624);const de=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex((t=>t.schemeId===e.schemeId));-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){o=e},credentials:()=>o}};class SSOOIDCClient extends u.Kj{constructor(...[e]){const t=se(e||{}),r=(x=t,{...x,useDualstackEndpoint:x.useDualstackEndpoint??!1,useFipsEndpoint:x.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"});var x;const m=(0,a.TD)(r),y=(0,p.Co)(m),E=(0,o.OV)(y),S=(0,s.Dc)(E),v=(0,l.$z)(S);var w;const I=((e,t)=>{const r={...(0,ae.Rq)(e),...(0,u.xA)(e),...(0,ce.eS)(e),...de(e)};return t.forEach((e=>e.configure(r))),{...e,...(0,ae.$3)(r),...(0,u.uv)(r),...(0,ce.jt)(r),...(o=r,{httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials()})};var o})((w=v,{...(0,h.h)(w)}),e?.extensions||[]);super(I),this.config=I,this.middlewareStack.use((0,o.TC)(this.config)),this.middlewareStack.use((0,n.Y7)(this.config)),this.middlewareStack.use((0,i.n4)(this.config)),this.middlewareStack.use((0,s.sM)(this.config)),this.middlewareStack.use((0,l.ey)(this.config)),this.middlewareStack.use((0,d.vK)(this.config)),this.middlewareStack.use((0,c.wB)(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use((0,c.lW)(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return m}getIdentityProviderConfigProvider(){return async e=>new c.h$({"aws.auth#sigv4":e.credentials})}}var pe=r(8029);class SSOOIDCServiceException extends u.TJ{constructor(e){super(e),Object.setPrototypeOf(this,SSOOIDCServiceException.prototype)}}class AccessDeniedException extends SSOOIDCServiceException{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,AccessDeniedException.prototype),this.error=e.error,this.error_description=e.error_description}}class AuthorizationPendingException extends SSOOIDCServiceException{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,AuthorizationPendingException.prototype),this.error=e.error,this.error_description=e.error_description}}class ExpiredTokenException extends SSOOIDCServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ExpiredTokenException.prototype),this.error=e.error,this.error_description=e.error_description}}class InternalServerException extends SSOOIDCServiceException{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,InternalServerException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidClientException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,InvalidClientException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidGrantException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,InvalidGrantException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRequestException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidScopeException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,InvalidScopeException.prototype),this.error=e.error,this.error_description=e.error_description}}class SlowDownException extends SSOOIDCServiceException{constructor(e){super({name:"SlowDownException",$fault:"client",...e}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,SlowDownException.prototype),this.error=e.error,this.error_description=e.error_description}}class UnauthorizedClientException extends SSOOIDCServiceException{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,UnauthorizedClientException.prototype),this.error=e.error,this.error_description=e.error_description}}class UnsupportedGrantTypeException extends SSOOIDCServiceException{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,UnsupportedGrantTypeException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRequestRegionException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e}),this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,InvalidRequestRegionException.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class InvalidClientMetadataException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,InvalidClientMetadataException.prototype),this.error=e.error,this.error_description=e.error_description}}class InvalidRedirectUriException extends SSOOIDCServiceException{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e}),this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,InvalidRedirectUriException.prototype),this.error=e.error,this.error_description=e.error_description}}const le=e=>({...e,...e.clientSecret&&{clientSecret:u.$H},...e.refreshToken&&{refreshToken:u.$H},...e.codeVerifier&&{codeVerifier:u.$H}}),ue=e=>({...e,...e.accessToken&&{accessToken:u.$H},...e.refreshToken&&{refreshToken:u.$H},...e.idToken&&{idToken:u.$H}});var he=r(81830);const xe=async(e,t)=>{const r=(0,c.lI)(e,t);let o;return r.bp("/token"),o=JSON.stringify((0,u.s)(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>(0,u.Ss)(e)})),r.m("POST").h({"content-type":"application/json"}).b(o),r.build()},me=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return ye(e,t);const r=(0,u.Tj)({$metadata:je(e)}),o=(0,u.Y0)((0,u.Xk)(await(0,he.Y2)(e.body,t)),"body"),n=(0,u.s)(o,{accessToken:u.lK,expiresIn:u.ET,idToken:u.lK,refreshToken:u.lK,tokenType:u.lK});return Object.assign(r,n),r},ye=async(e,t)=>{const r={...e,body:await(0,he.CG)(e.body,t)},o=(0,he.cJ)(e,r.body);switch(o){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Se(r,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await ve(r,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await we(r,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ie(r,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await fe(r,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Oe(r,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ce(r,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await De(r,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await ke(r,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Te(r,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await $e(r,t);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await Pe(r,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await ge(r,t);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await be(r,t);default:const n=r.body;return Ee({output:e,parsedBody:n,errorCode:o})}},Ee=(0,u.jr)(SSOOIDCServiceException),Se=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new AccessDeniedException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},ve=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new AuthorizationPendingException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},we=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new ExpiredTokenException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},Ie=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InternalServerException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},fe=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InvalidClientException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},ge=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InvalidClientMetadataException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},Oe=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InvalidGrantException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},be=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InvalidRedirectUriException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},Ce=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InvalidRequestException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},Pe=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{endpoint:u.lK,error:u.lK,error_description:u.lK,region:u.lK});Object.assign(r,n);const i=new InvalidRequestRegionException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},De=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new InvalidScopeException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},ke=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new SlowDownException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},Te=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new UnauthorizedClientException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},$e=async(e,t)=>{const r=(0,u.Tj)({}),o=e.body,n=(0,u.s)(o,{error:u.lK,error_description:u.lK});Object.assign(r,n);const i=new UnsupportedGrantTypeException({$metadata:je(e),...r});return(0,u.Mw)(i,e.body)},je=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"]});class CreateTokenCommand extends(u.uB.classBuilder().ep({...E}).m((function(e,t,r,o){return[(0,pe.TM)(r,this.serialize,this.deserialize),(0,p.rD)(r,e.getEndpointParameterInstructions())]})).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(le,ue).ser(xe).de(me).build()){}},81830:(e,t,r)=>{r.d(t,{CG:()=>i,Y2:()=>n,cJ:()=>s});var o=r(53127);const n=(e,t)=>(0,o.w)(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),i=async(e,t)=>{const r=await n(e,t);return r.message=r.message??r.Message,r},s=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,i="x-amzn-errortype",Object.keys(n).find((e=>e.toLowerCase()===i.toLowerCase())));var n,i;return void 0!==o?r(e.headers[o]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0}}};
|