@agentlang/lstudio 0.4.7 → 0.4.8

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.
@@ -1 +1 @@
1
- import{n as W,k as ge,E as he,r as Pe,c as Ee,p as Se,l as fe,o as ve,q as ye,s as Ae,D as xe,t as Re,u as _e,w as Ce,x as De,y as Ie,z as Te,A as be,B as ke,C as we,F as Ue,G as $e,H as Oe,I as He,J as Fe,K as Le,M as je,O as Me,P as Ne,Q as Ke,U as ze,V as Ve,T as E,W as qe,X as Ge}from"./resolveDefaultsModeConfig-Bx7XDpng.js";import{r as Be,a as We,A as Qe,b as Je,c as Xe,g as Ye,d as Ze,e as et,f as tt,h as ot,i as st,j as nt,k as it}from"./index-B5cYUcHg.js";import{b as rt,i as at,t as ct,f as dt,s as lt,F as ut}from"./normalizeProvider-CtDY37Q6.js";import"./preload-helper-BlTxHScW.js";import"./index-IWX-nwYi.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";const pt=async(e,t,a)=>({operation:ge(t).operation,region:await W(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function mt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,a)=>({signingProperties:{config:t,context:a}})}}function gt(e){return{schemeId:"smithy.api#noAuth"}}const ht=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(gt());break}default:t.push(mt(e))}return t},Pt=e=>Object.assign(e,{stsClientCtor:kt}),Et=e=>{const t=Pt(e),a=Be(t);return Object.assign(a,{authSchemePreference:W(e.authSchemePreference??[])})},St=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),ft={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"}},vt="3.975.0",yt={version:vt},Q="required",o="type",s="fn",n="argv",S="ref",F=!1,D=!0,P="booleanEquals",c="stringEquals",J="sigv4",X="sts",Y="us-east-1",r="endpoint",L="https://sts.{Region}.{PartitionResult#dnsSuffix}",g="tree",R="error",T="getAttr",j={[Q]:!1,[o]:"string"},I={[Q]:!0,default:!1,[o]:"boolean"},Z={[S]:"Endpoint"},M={[s]:"isSet",[n]:[{[S]:"Region"}]},d={[S]:"Region"},N={[s]:"aws.partition",[n]:[d],assign:"PartitionResult"},ee={[S]:"UseFIPS"},te={[S]:"UseDualStack"},l={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:J,signingName:X,signingRegion:Y}]},headers:{}},u={},K={conditions:[{[s]:c,[n]:[d,"aws-global"]}],[r]:l,[o]:r},oe={[s]:P,[n]:[ee,!0]},se={[s]:P,[n]:[te,!0]},z={[s]:T,[n]:[{[S]:"PartitionResult"},"supportsFIPS"]},ne={[S]:"PartitionResult"},V={[s]:P,[n]:[!0,{[s]:T,[n]:[ne,"supportsDualStack"]}]},q=[{[s]:"isSet",[n]:[Z]}],G=[oe],B=[se],At={parameters:{Region:j,UseDualStack:I,UseFIPS:I,Endpoint:j,UseGlobalEndpoint:I},rules:[{conditions:[{[s]:P,[n]:[{[S]:"UseGlobalEndpoint"},D]},{[s]:"not",[n]:q},M,N,{[s]:P,[n]:[ee,F]},{[s]:P,[n]:[te,F]}],rules:[{conditions:[{[s]:c,[n]:[d,"ap-northeast-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-south-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-southeast-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-southeast-2"]}],endpoint:l,[o]:r},K,{conditions:[{[s]:c,[n]:[d,"ca-central-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-central-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-north-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-2"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-3"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"sa-east-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,Y]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-east-2"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-west-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-west-2"]}],endpoint:l,[o]:r},{endpoint:{url:L,properties:{authSchemes:[{name:J,signingName:X,signingRegion:"{Region}"}]},headers:u},[o]:r}],[o]:g},{conditions:q,rules:[{conditions:G,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[o]:R},{conditions:B,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[o]:R},{endpoint:{url:Z,properties:u,headers:u},[o]:r}],[o]:g},{conditions:[M],rules:[{conditions:[N],rules:[{conditions:[oe,se],rules:[{conditions:[{[s]:P,[n]:[D,z]},V],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[o]:R}],[o]:g},{conditions:G,rules:[{conditions:[{[s]:P,[n]:[z,D]}],rules:[{conditions:[{[s]:c,[n]:[{[s]:T,[n]:[ne,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:u,headers:u},[o]:r},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"FIPS is enabled but this partition does not support FIPS",[o]:R}],[o]:g},{conditions:B,rules:[{conditions:[V],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"DualStack is enabled but this partition does not support DualStack",[o]:R}],[o]:g},K,{endpoint:{url:L,properties:u,headers:u},[o]:r}],[o]:g}],[o]:g},{error:"Invalid Configuration: Missing Region",[o]:R}]},xt=At,Rt=new he({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),_t=(e,t={})=>Rt.get(e,()=>Pe(xt,{endpointParams:e,logger:t.logger}));Ee.aws=We;const Ct=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??dt,base64Encoder:e?.base64Encoder??ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_t,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ht,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Je},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ve}],logger:e?.logger??new fe,protocol:e?.protocol??Qe,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Se,utf8Decoder:e?.utf8Decoder??at,utf8Encoder:e?.utf8Encoder??rt}),Dt=e=>{const t=ye(e),a=()=>t().then(Te),p=Ct(e);return{...p,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ce,credentialDefaultProvider:e?.credentialDefaultProvider??(m=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Xe({serviceId:p.serviceId,clientVersion:yt.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:ut.create(e?.requestHandler??a),retryMode:e?.retryMode??(async()=>(await a()).retryMode||xe),sha256:e?.sha256??Ae,streamCollector:e?.streamCollector??lt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Ie)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},It=e=>{const t=e.httpAuthSchemes;let a=e.httpAuthSchemeProvider,p=e.credentials;return{setHttpAuthScheme(m){const _=t.findIndex(C=>C.schemeId===m.schemeId);_===-1?t.push(m):t.splice(_,1,m)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(m){a=m},httpAuthSchemeProvider(){return a},setCredentials(m){p=m},credentials(){return p}}},Tt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),bt=(e,t)=>{const a=Object.assign(Ye(e),be(e),ke(e),It(e));return t.forEach(p=>p.configure(a)),Object.assign(e,Ze(a),we(a),Ue(a),Tt(a))};class kt extends $e{config;constructor(...[t]){const a=Dt(t||{});super(a),this.initConfig=a;const p=St(a),m=et(p),_=Oe(m),C=He(_),de=it(C),le=Fe(de),ue=Et(le),pe=bt(ue,t?.extensions||[]);this.config=pe,this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(Ne(this.config,{httpAuthSchemeParametersProvider:pt,identityProviderConfigProvider:async me=>new ze({"aws.auth#sigv4":me.credentials})})),this.middlewareStack.use(Ke(this.config))}destroy(){super.destroy()}}class h extends Ve{constructor(t){super(t),Object.setPrototypeOf(this,h.prototype)}}class b extends h{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,b.prototype)}}class k extends h{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,k.prototype)}}class w extends h{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,w.prototype)}}class U extends h{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class $ extends h{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,$.prototype)}}class O extends h{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,O.prototype)}}class H extends h{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}const wt="Arn",Ut="AccessKeyId",$t="AssumeRole",Ot="AssumedRoleId",Ht="AssumeRoleRequest",Ft="AssumeRoleResponse",ie="AssumedRoleUser",re="Credentials",Lt="ContextAssertion",jt="DurationSeconds",Mt="Expiration",Nt="ExternalId",Kt="ExpiredTokenException",zt="IDPCommunicationErrorException",Vt="IDPRejectedClaimException",qt="InvalidIdentityTokenException",Gt="Key",Bt="MalformedPolicyDocumentException",Wt="Policy",Qt="PolicyArns",Jt="ProviderArn",Xt="ProvidedContexts",Yt="ProvidedContextsListType",Zt="ProvidedContext",eo="PolicyDescriptorType",to="PackedPolicySize",oo="PackedPolicyTooLargeException",so="RoleArn",no="RegionDisabledException",io="RoleSessionName",ro="SecretAccessKey",ae="SourceIdentity",ao="SerialNumber",co="SessionToken",lo="Tags",uo="TokenCode",po="TransitiveTagKeys",mo="Tag",go="Value",ho="arn",Po="accessKeySecretType",f="awsQueryError",v="client",y="error",A="httpError",x="message",Eo="policyDescriptorListType",ce="smithy.ts.sdk.synthetic.com.amazonaws.sts",So="tagListType",i="com.amazonaws.sts";var fo=[0,i,Po,8,0],vo=[3,i,ie,0,[Ot,wt],[0,0],2],yo=[3,i,Ht,0,[so,io,Qt,Wt,jt,lo,po,Nt,ao,uo,ae,Xt],[0,0,()=>Oo,0,1,()=>Fo,64,0,0,0,0,()=>Ho],2],Ao=[3,i,Ft,0,[re,ie,to,ae],[[()=>xo,0],()=>vo,1,0]],xo=[3,i,re,0,[Ut,ro,co,Mt],[0,[()=>fo,0],0,4],4],Ro=[-3,i,Kt,{[f]:["ExpiredTokenException",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Ro,b);var _o=[-3,i,zt,{[f]:["IDPCommunicationError",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(_o,H);var Co=[-3,i,Vt,{[f]:["IDPRejectedClaim",403],[y]:v,[A]:403},[x],[0]];E.for(i).registerError(Co,$);var Do=[-3,i,qt,{[f]:["InvalidIdentityToken",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Do,O);var Io=[-3,i,Bt,{[f]:["MalformedPolicyDocument",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Io,k);var To=[-3,i,oo,{[f]:["PackedPolicyTooLarge",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(To,w);var bo=[3,i,eo,0,[ho],[0]],ko=[3,i,Zt,0,[Jt,Lt],[0,0]],wo=[-3,i,no,{[f]:["RegionDisabledException",403],[y]:v,[A]:403},[x],[0]];E.for(i).registerError(wo,U);var Uo=[3,i,mo,0,[Gt,go],[0,0],2],$o=[-3,ce,"STSServiceException",0,[],[]];E.for(ce).registerError($o,h);var Oo=[1,i,Eo,0,()=>bo],Ho=[1,i,Yt,0,()=>ko],Fo=[1,i,So,0,()=>Uo],Lo=[9,i,$t,0,()=>yo,()=>Ao];class ss extends qe.classBuilder().ep(ft).m(function(t,a,p,m){return[Ge(p,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Lo).build(){}export{ss as AssumeRoleCommand,kt as STSClient};
1
+ import{n as W,k as ge,E as he,r as Pe,c as Ee,p as Se,l as fe,o as ve,q as ye,s as Ae,D as xe,t as Re,u as _e,w as Ce,x as De,y as Ie,z as Te,A as be,B as ke,C as we,F as Ue,G as $e,H as Oe,I as He,J as Fe,K as Le,M as je,O as Me,P as Ne,Q as Ke,U as ze,V as Ve,T as E,W as qe,X as Ge}from"./resolveDefaultsModeConfig-Dc_krWBD.js";import{r as Be,a as We,A as Qe,b as Je,c as Xe,g as Ye,d as Ze,e as et,f as tt,h as ot,i as st,j as nt,k as it}from"./index-DdtfPfhz.js";import{b as rt,i as at,t as ct,f as dt,s as lt,F as ut}from"./normalizeProvider-CtDY37Q6.js";import"./preload-helper-BlTxHScW.js";import"./index-CVqRSHuR.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";const pt=async(e,t,a)=>({operation:ge(t).operation,region:await W(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function mt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,a)=>({signingProperties:{config:t,context:a}})}}function gt(e){return{schemeId:"smithy.api#noAuth"}}const ht=e=>{const t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(gt());break}default:t.push(mt(e))}return t},Pt=e=>Object.assign(e,{stsClientCtor:kt}),Et=e=>{const t=Pt(e),a=Be(t);return Object.assign(a,{authSchemePreference:W(e.authSchemePreference??[])})},St=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),ft={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"}},vt="3.975.0",yt={version:vt},Q="required",o="type",s="fn",n="argv",S="ref",F=!1,D=!0,P="booleanEquals",c="stringEquals",J="sigv4",X="sts",Y="us-east-1",r="endpoint",L="https://sts.{Region}.{PartitionResult#dnsSuffix}",g="tree",R="error",T="getAttr",j={[Q]:!1,[o]:"string"},I={[Q]:!0,default:!1,[o]:"boolean"},Z={[S]:"Endpoint"},M={[s]:"isSet",[n]:[{[S]:"Region"}]},d={[S]:"Region"},N={[s]:"aws.partition",[n]:[d],assign:"PartitionResult"},ee={[S]:"UseFIPS"},te={[S]:"UseDualStack"},l={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:J,signingName:X,signingRegion:Y}]},headers:{}},u={},K={conditions:[{[s]:c,[n]:[d,"aws-global"]}],[r]:l,[o]:r},oe={[s]:P,[n]:[ee,!0]},se={[s]:P,[n]:[te,!0]},z={[s]:T,[n]:[{[S]:"PartitionResult"},"supportsFIPS"]},ne={[S]:"PartitionResult"},V={[s]:P,[n]:[!0,{[s]:T,[n]:[ne,"supportsDualStack"]}]},q=[{[s]:"isSet",[n]:[Z]}],G=[oe],B=[se],At={parameters:{Region:j,UseDualStack:I,UseFIPS:I,Endpoint:j,UseGlobalEndpoint:I},rules:[{conditions:[{[s]:P,[n]:[{[S]:"UseGlobalEndpoint"},D]},{[s]:"not",[n]:q},M,N,{[s]:P,[n]:[ee,F]},{[s]:P,[n]:[te,F]}],rules:[{conditions:[{[s]:c,[n]:[d,"ap-northeast-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-south-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-southeast-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"ap-southeast-2"]}],endpoint:l,[o]:r},K,{conditions:[{[s]:c,[n]:[d,"ca-central-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-central-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-north-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-2"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"eu-west-3"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"sa-east-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,Y]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-east-2"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-west-1"]}],endpoint:l,[o]:r},{conditions:[{[s]:c,[n]:[d,"us-west-2"]}],endpoint:l,[o]:r},{endpoint:{url:L,properties:{authSchemes:[{name:J,signingName:X,signingRegion:"{Region}"}]},headers:u},[o]:r}],[o]:g},{conditions:q,rules:[{conditions:G,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[o]:R},{conditions:B,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[o]:R},{endpoint:{url:Z,properties:u,headers:u},[o]:r}],[o]:g},{conditions:[M],rules:[{conditions:[N],rules:[{conditions:[oe,se],rules:[{conditions:[{[s]:P,[n]:[D,z]},V],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[o]:R}],[o]:g},{conditions:G,rules:[{conditions:[{[s]:P,[n]:[z,D]}],rules:[{conditions:[{[s]:c,[n]:[{[s]:T,[n]:[ne,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:u,headers:u},[o]:r},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"FIPS is enabled but this partition does not support FIPS",[o]:R}],[o]:g},{conditions:B,rules:[{conditions:[V],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:u},[o]:r}],[o]:g},{error:"DualStack is enabled but this partition does not support DualStack",[o]:R}],[o]:g},K,{endpoint:{url:L,properties:u,headers:u},[o]:r}],[o]:g}],[o]:g},{error:"Invalid Configuration: Missing Region",[o]:R}]},xt=At,Rt=new he({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),_t=(e,t={})=>Rt.get(e,()=>Pe(xt,{endpointParams:e,logger:t.logger}));Ee.aws=We;const Ct=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??dt,base64Encoder:e?.base64Encoder??ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_t,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ht,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Je},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ve}],logger:e?.logger??new fe,protocol:e?.protocol??Qe,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??Se,utf8Decoder:e?.utf8Decoder??at,utf8Encoder:e?.utf8Encoder??rt}),Dt=e=>{const t=ye(e),a=()=>t().then(Te),p=Ct(e);return{...p,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ce,credentialDefaultProvider:e?.credentialDefaultProvider??(m=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Xe({serviceId:p.serviceId,clientVersion:yt.version}),maxAttempts:e?.maxAttempts??_e,region:e?.region??Re("Region is missing"),requestHandler:ut.create(e?.requestHandler??a),retryMode:e?.retryMode??(async()=>(await a()).retryMode||xe),sha256:e?.sha256??Ae,streamCollector:e?.streamCollector??lt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(Ie)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(De))}},It=e=>{const t=e.httpAuthSchemes;let a=e.httpAuthSchemeProvider,p=e.credentials;return{setHttpAuthScheme(m){const _=t.findIndex(C=>C.schemeId===m.schemeId);_===-1?t.push(m):t.splice(_,1,m)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(m){a=m},httpAuthSchemeProvider(){return a},setCredentials(m){p=m},credentials(){return p}}},Tt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),bt=(e,t)=>{const a=Object.assign(Ye(e),be(e),ke(e),It(e));return t.forEach(p=>p.configure(a)),Object.assign(e,Ze(a),we(a),Ue(a),Tt(a))};class kt extends $e{config;constructor(...[t]){const a=Dt(t||{});super(a),this.initConfig=a;const p=St(a),m=et(p),_=Oe(m),C=He(_),de=it(C),le=Fe(de),ue=Et(le),pe=bt(ue,t?.extensions||[]);this.config=pe,this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(tt(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(ot(this.config)),this.middlewareStack.use(st(this.config)),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(Ne(this.config,{httpAuthSchemeParametersProvider:pt,identityProviderConfigProvider:async me=>new ze({"aws.auth#sigv4":me.credentials})})),this.middlewareStack.use(Ke(this.config))}destroy(){super.destroy()}}class h extends Ve{constructor(t){super(t),Object.setPrototypeOf(this,h.prototype)}}class b extends h{name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,b.prototype)}}class k extends h{name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,k.prototype)}}class w extends h{name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,w.prototype)}}class U extends h{name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class $ extends h{name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,$.prototype)}}class O extends h{name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,O.prototype)}}class H extends h{name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}const wt="Arn",Ut="AccessKeyId",$t="AssumeRole",Ot="AssumedRoleId",Ht="AssumeRoleRequest",Ft="AssumeRoleResponse",ie="AssumedRoleUser",re="Credentials",Lt="ContextAssertion",jt="DurationSeconds",Mt="Expiration",Nt="ExternalId",Kt="ExpiredTokenException",zt="IDPCommunicationErrorException",Vt="IDPRejectedClaimException",qt="InvalidIdentityTokenException",Gt="Key",Bt="MalformedPolicyDocumentException",Wt="Policy",Qt="PolicyArns",Jt="ProviderArn",Xt="ProvidedContexts",Yt="ProvidedContextsListType",Zt="ProvidedContext",eo="PolicyDescriptorType",to="PackedPolicySize",oo="PackedPolicyTooLargeException",so="RoleArn",no="RegionDisabledException",io="RoleSessionName",ro="SecretAccessKey",ae="SourceIdentity",ao="SerialNumber",co="SessionToken",lo="Tags",uo="TokenCode",po="TransitiveTagKeys",mo="Tag",go="Value",ho="arn",Po="accessKeySecretType",f="awsQueryError",v="client",y="error",A="httpError",x="message",Eo="policyDescriptorListType",ce="smithy.ts.sdk.synthetic.com.amazonaws.sts",So="tagListType",i="com.amazonaws.sts";var fo=[0,i,Po,8,0],vo=[3,i,ie,0,[Ot,wt],[0,0],2],yo=[3,i,Ht,0,[so,io,Qt,Wt,jt,lo,po,Nt,ao,uo,ae,Xt],[0,0,()=>Oo,0,1,()=>Fo,64,0,0,0,0,()=>Ho],2],Ao=[3,i,Ft,0,[re,ie,to,ae],[[()=>xo,0],()=>vo,1,0]],xo=[3,i,re,0,[Ut,ro,co,Mt],[0,[()=>fo,0],0,4],4],Ro=[-3,i,Kt,{[f]:["ExpiredTokenException",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Ro,b);var _o=[-3,i,zt,{[f]:["IDPCommunicationError",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(_o,H);var Co=[-3,i,Vt,{[f]:["IDPRejectedClaim",403],[y]:v,[A]:403},[x],[0]];E.for(i).registerError(Co,$);var Do=[-3,i,qt,{[f]:["InvalidIdentityToken",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Do,O);var Io=[-3,i,Bt,{[f]:["MalformedPolicyDocument",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(Io,k);var To=[-3,i,oo,{[f]:["PackedPolicyTooLarge",400],[y]:v,[A]:400},[x],[0]];E.for(i).registerError(To,w);var bo=[3,i,eo,0,[ho],[0]],ko=[3,i,Zt,0,[Jt,Lt],[0,0]],wo=[-3,i,no,{[f]:["RegionDisabledException",403],[y]:v,[A]:403},[x],[0]];E.for(i).registerError(wo,U);var Uo=[3,i,mo,0,[Gt,go],[0,0],2],$o=[-3,ce,"STSServiceException",0,[],[]];E.for(ce).registerError($o,h);var Oo=[1,i,Eo,0,()=>bo],Ho=[1,i,Yt,0,()=>ko],Fo=[1,i,So,0,()=>Uo],Lo=[9,i,$t,0,()=>yo,()=>Ao];class ss extends qe.classBuilder().ep(ft).m(function(t,a,p,m){return[Ge(p,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Lo).build(){}export{ss as AssumeRoleCommand,kt as STSClient};
@@ -1 +1 @@
1
- import{l as o}from"./index-IWX-nwYi.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";export{o as default};
1
+ import{l as o}from"./index-CVqRSHuR.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";export{o as default};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BitrXVkV.js","assets/normalizeProvider-CtDY37Q6.js"])))=>i.map(i=>d[i]);
2
- import{i as K,f as ut,t as ht,b as dt,c as pe,H as P,a as M,j as lt,k as V}from"./normalizeProvider-CtDY37Q6.js";import{_ as ft}from"./preload-helper-BlTxHScW.js";import{_ as mt,m as pt}from"./index-IWX-nwYi.js";const yt=(t,e,r)=>{let s,n,i,a=!1;const u=async()=>{n||(n=t());try{s=await n,i=!0,a=!1}finally{n=void 0}return s};return async o=>((!i||o?.forceRefresh)&&(s=await u()),s)},Fs=t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),js=t=>({httpHandler:t.httpHandler()});var U;(function(t){t.HTTP="http",t.HTTPS="https"})(U||(U={}));var X;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(X||(X={}));const ce="__smithy_context",z=t=>typeof t=="string"?K(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),I=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const s of e)r.push(s);return r},C=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,J=()=>{let t=[],e=[],r=!1;const s=new Set,n=c=>c.sort((h,l)=>Re[l.step]-Re[h.step]||Ee[l.priority||"normal"]-Ee[h.priority||"normal"]),i=c=>{let h=!1;const l=p=>{const y=I(p.name,p.aliases);if(y.includes(c)){h=!0;for(const f of y)s.delete(f);return!1}return!0};return t=t.filter(l),e=e.filter(l),h},a=c=>{let h=!1;const l=p=>{if(p.middleware===c){h=!0;for(const y of I(p.name,p.aliases))s.delete(y);return!1}return!0};return t=t.filter(l),e=e.filter(l),h},u=c=>(t.forEach(h=>{c.add(h.middleware,{...h})}),e.forEach(h=>{c.addRelativeTo(h.middleware,{...h})}),c.identifyOnResolve?.(m.identifyOnResolve()),c),o=c=>{const h=[];return c.before.forEach(l=>{l.before.length===0&&l.after.length===0?h.push(l):h.push(...o(l))}),h.push(c),c.after.reverse().forEach(l=>{l.before.length===0&&l.after.length===0?h.push(l):h.push(...o(l))}),h},d=(c=!1)=>{const h=[],l=[],p={};return t.forEach(f=>{const g={...f,before:[],after:[]};for(const w of I(g.name,g.aliases))p[w]=g;h.push(g)}),e.forEach(f=>{const g={...f,before:[],after:[]};for(const w of I(g.name,g.aliases))p[w]=g;l.push(g)}),l.forEach(f=>{if(f.toMiddleware){const g=p[f.toMiddleware];if(g===void 0){if(c)return;throw new Error(`${f.toMiddleware} is not found when adding ${C(f.name,f.aliases)} middleware ${f.relation} ${f.toMiddleware}`)}f.relation==="after"&&g.after.push(f),f.relation==="before"&&g.before.push(f)}}),n(h).map(o).reduce((f,g)=>(f.push(...g),f),[])},m={add:(c,h={})=>{const{name:l,override:p,aliases:y}=h,f={step:"initialize",priority:"normal",middleware:c,...h},g=I(l,y);if(g.length>0){if(g.some(w=>s.has(w))){if(!p)throw new Error(`Duplicate middleware name '${C(l,y)}'`);for(const w of g){const v=t.findIndex(D=>D.name===w||D.aliases?.some(Y=>Y===w));if(v===-1)continue;const b=t[v];if(b.step!==f.step||f.priority!==b.priority)throw new Error(`"${C(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${C(l,y)}" middleware with ${f.priority} priority in ${f.step} step.`);t.splice(v,1)}}for(const w of g)s.add(w)}t.push(f)},addRelativeTo:(c,h)=>{const{name:l,override:p,aliases:y}=h,f={middleware:c,...h},g=I(l,y);if(g.length>0){if(g.some(w=>s.has(w))){if(!p)throw new Error(`Duplicate middleware name '${C(l,y)}'`);for(const w of g){const v=e.findIndex(D=>D.name===w||D.aliases?.some(Y=>Y===w));if(v===-1)continue;const b=e[v];if(b.toMiddleware!==f.toMiddleware||b.relation!==f.relation)throw new Error(`"${C(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${C(l,y)}" middleware ${f.relation} "${f.toMiddleware}" middleware.`);e.splice(v,1)}}for(const w of g)s.add(w)}e.push(f)},clone:()=>u(J()),use:c=>{c.applyToStack(m)},remove:c=>typeof c=="string"?i(c):a(c),removeByTag:c=>{let h=!1;const l=p=>{const{tags:y,name:f,aliases:g}=p;if(y&&y.includes(c)){const w=I(f,g);for(const v of w)s.delete(v);return h=!0,!1}return!0};return t=t.filter(l),e=e.filter(l),h},concat:c=>{const h=u(J());return h.use(c),h.identifyOnResolve(r||h.identifyOnResolve()||(c.identifyOnResolve?.()??!1)),h},applyToStack:u,identify:()=>d(!0).map(c=>{const h=c.step??c.relation+" "+c.toMiddleware;return C(c.name,c.aliases)+" - "+h}),identifyOnResolve(c){return typeof c=="boolean"&&(r=c),r},resolve:(c,h)=>{for(const l of d().map(p=>p.middleware).reverse())c=l(c,h);return r&&console.log(m.identify()),c}};return m},Re={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Ee={high:3,normal:2,low:1};class qs{config;middlewareStack=J();initConfig;handlers;constructor(e){this.config=e;const{protocol:r,protocolSettings:s}=e;s&&typeof r=="function"&&(e.protocol=new r(s))}send(e,r,s){const n=typeof r!="function"?r:void 0,i=typeof r=="function"?r:s,a=n===void 0&&this.config.cacheMiddleware===!0;let u;if(a){this.handlers||(this.handlers=new WeakMap);const o=this.handlers;o.has(e.constructor)?u=o.get(e.constructor):(u=e.resolveMiddleware(this.middlewareStack,this.config,n),o.set(e.constructor,u))}else delete this.handlers,u=e.resolveMiddleware(this.middlewareStack,this.config,n);if(i)u(e).then(o=>i(null,o.output),o=>i(o)).catch(()=>{});else return u(e).then(o=>o.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class $ extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?$.mutate(ut(e)):$.mutate(K(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,$.prototype),e}transformToString(e="utf-8"){return e==="base64"?ht(this):dt(this)}}const Te=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return $.mutate(t);if(!t)return $.mutate(new Uint8Array);const r=e.streamCollector(t);return $.mutate(await r)},Z=t=>typeof t=="function"?t():t,j=t=>t[ce]||(t[ce]={}),O=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},Ue=(t,e,r,s,n)=>({name:e,namespace:t,traits:r,input:s,output:n}),gt=t=>(e,r)=>async s=>{const{response:n}=await e(s),{operationSchema:i}=j(r),[,a,u,o,d,m]=i??[];try{const c=await t.protocol.deserializeResponse(Ue(a,u,o,d,m),{...t,...r},n);return{response:n,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in c)){const h="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{c.message+=`
2
+ import{i as K,f as ut,t as ht,b as dt,c as pe,H as P,a as M,j as lt,k as V}from"./normalizeProvider-CtDY37Q6.js";import{_ as ft}from"./preload-helper-BlTxHScW.js";import{_ as mt,m as pt}from"./index-CVqRSHuR.js";const yt=(t,e,r)=>{let s,n,i,a=!1;const u=async()=>{n||(n=t());try{s=await n,i=!0,a=!1}finally{n=void 0}return s};return async o=>((!i||o?.forceRefresh)&&(s=await u()),s)},Fs=t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),js=t=>({httpHandler:t.httpHandler()});var U;(function(t){t.HTTP="http",t.HTTPS="https"})(U||(U={}));var X;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(X||(X={}));const ce="__smithy_context",z=t=>typeof t=="string"?K(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),I=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const s of e)r.push(s);return r},C=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,J=()=>{let t=[],e=[],r=!1;const s=new Set,n=c=>c.sort((h,l)=>Re[l.step]-Re[h.step]||Ee[l.priority||"normal"]-Ee[h.priority||"normal"]),i=c=>{let h=!1;const l=p=>{const y=I(p.name,p.aliases);if(y.includes(c)){h=!0;for(const f of y)s.delete(f);return!1}return!0};return t=t.filter(l),e=e.filter(l),h},a=c=>{let h=!1;const l=p=>{if(p.middleware===c){h=!0;for(const y of I(p.name,p.aliases))s.delete(y);return!1}return!0};return t=t.filter(l),e=e.filter(l),h},u=c=>(t.forEach(h=>{c.add(h.middleware,{...h})}),e.forEach(h=>{c.addRelativeTo(h.middleware,{...h})}),c.identifyOnResolve?.(m.identifyOnResolve()),c),o=c=>{const h=[];return c.before.forEach(l=>{l.before.length===0&&l.after.length===0?h.push(l):h.push(...o(l))}),h.push(c),c.after.reverse().forEach(l=>{l.before.length===0&&l.after.length===0?h.push(l):h.push(...o(l))}),h},d=(c=!1)=>{const h=[],l=[],p={};return t.forEach(f=>{const g={...f,before:[],after:[]};for(const w of I(g.name,g.aliases))p[w]=g;h.push(g)}),e.forEach(f=>{const g={...f,before:[],after:[]};for(const w of I(g.name,g.aliases))p[w]=g;l.push(g)}),l.forEach(f=>{if(f.toMiddleware){const g=p[f.toMiddleware];if(g===void 0){if(c)return;throw new Error(`${f.toMiddleware} is not found when adding ${C(f.name,f.aliases)} middleware ${f.relation} ${f.toMiddleware}`)}f.relation==="after"&&g.after.push(f),f.relation==="before"&&g.before.push(f)}}),n(h).map(o).reduce((f,g)=>(f.push(...g),f),[])},m={add:(c,h={})=>{const{name:l,override:p,aliases:y}=h,f={step:"initialize",priority:"normal",middleware:c,...h},g=I(l,y);if(g.length>0){if(g.some(w=>s.has(w))){if(!p)throw new Error(`Duplicate middleware name '${C(l,y)}'`);for(const w of g){const v=t.findIndex(D=>D.name===w||D.aliases?.some(Y=>Y===w));if(v===-1)continue;const b=t[v];if(b.step!==f.step||f.priority!==b.priority)throw new Error(`"${C(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${C(l,y)}" middleware with ${f.priority} priority in ${f.step} step.`);t.splice(v,1)}}for(const w of g)s.add(w)}t.push(f)},addRelativeTo:(c,h)=>{const{name:l,override:p,aliases:y}=h,f={middleware:c,...h},g=I(l,y);if(g.length>0){if(g.some(w=>s.has(w))){if(!p)throw new Error(`Duplicate middleware name '${C(l,y)}'`);for(const w of g){const v=e.findIndex(D=>D.name===w||D.aliases?.some(Y=>Y===w));if(v===-1)continue;const b=e[v];if(b.toMiddleware!==f.toMiddleware||b.relation!==f.relation)throw new Error(`"${C(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${C(l,y)}" middleware ${f.relation} "${f.toMiddleware}" middleware.`);e.splice(v,1)}}for(const w of g)s.add(w)}e.push(f)},clone:()=>u(J()),use:c=>{c.applyToStack(m)},remove:c=>typeof c=="string"?i(c):a(c),removeByTag:c=>{let h=!1;const l=p=>{const{tags:y,name:f,aliases:g}=p;if(y&&y.includes(c)){const w=I(f,g);for(const v of w)s.delete(v);return h=!0,!1}return!0};return t=t.filter(l),e=e.filter(l),h},concat:c=>{const h=u(J());return h.use(c),h.identifyOnResolve(r||h.identifyOnResolve()||(c.identifyOnResolve?.()??!1)),h},applyToStack:u,identify:()=>d(!0).map(c=>{const h=c.step??c.relation+" "+c.toMiddleware;return C(c.name,c.aliases)+" - "+h}),identifyOnResolve(c){return typeof c=="boolean"&&(r=c),r},resolve:(c,h)=>{for(const l of d().map(p=>p.middleware).reverse())c=l(c,h);return r&&console.log(m.identify()),c}};return m},Re={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Ee={high:3,normal:2,low:1};class qs{config;middlewareStack=J();initConfig;handlers;constructor(e){this.config=e;const{protocol:r,protocolSettings:s}=e;s&&typeof r=="function"&&(e.protocol=new r(s))}send(e,r,s){const n=typeof r!="function"?r:void 0,i=typeof r=="function"?r:s,a=n===void 0&&this.config.cacheMiddleware===!0;let u;if(a){this.handlers||(this.handlers=new WeakMap);const o=this.handlers;o.has(e.constructor)?u=o.get(e.constructor):(u=e.resolveMiddleware(this.middlewareStack,this.config,n),o.set(e.constructor,u))}else delete this.handlers,u=e.resolveMiddleware(this.middlewareStack,this.config,n);if(i)u(e).then(o=>i(null,o.output),o=>i(o)).catch(()=>{});else return u(e).then(o=>o.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class $ extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?$.mutate(ut(e)):$.mutate(K(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,$.prototype),e}transformToString(e="utf-8"){return e==="base64"?ht(this):dt(this)}}const Te=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return $.mutate(t);if(!t)return $.mutate(new Uint8Array);const r=e.streamCollector(t);return $.mutate(await r)},Z=t=>typeof t=="function"?t():t,j=t=>t[ce]||(t[ce]={}),O=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},Ue=(t,e,r,s,n)=>({name:e,namespace:t,traits:r,input:s,output:n}),gt=t=>(e,r)=>async s=>{const{response:n}=await e(s),{operationSchema:i}=j(r),[,a,u,o,d,m]=i??[];try{const c=await t.protocol.deserializeResponse(Ue(a,u,o,d,m),{...t,...r},n);return{response:n,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in c)){const h="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{c.message+=`
3
3
  `+h}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(h):r.logger?.warn?.(h)}typeof c.$responseBodyText<"u"&&c.$response&&(c.$response.body=c.$responseBodyText);try{if(pe.isInstance(n)){const{headers:l={}}=n,p=Object.entries(l);c.$metadata={httpStatusCode:n.statusCode,requestId:ee(/^x-[\w-]+-request-?id$/,p),extendedRequestId:ee(/^x-[\w-]+-id-2$/,p),cfId:ee(/^x-[\w-]+-cf-id$/,p)}}}catch{}}throw c}},ee=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],wt=t=>(e,r)=>async s=>{const{operationSchema:n}=j(r),[,i,a,u,o,d]=n??[],m=r.endpointV2?.url&&t.urlParser?async()=>t.urlParser(r.endpointV2.url):t.endpoint,c=await t.protocol.serializeRequest(Ue(i,a,u,o,d),s.input,{...t,...r,endpoint:m});return e({...s,request:c})},St={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},bt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Vs(t){return{applyToStack:e=>{e.add(wt(t),bt),e.add(gt(t),St),t.protocol.setSerdeContext(t)}}}function L(t){if(typeof t=="object")return t;t=t|0;const e={};let r=0;for(const s of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[s]=1);return e}const ve={it:Symbol.for("@smithy/nor-struct-it")};class T{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=T.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;const s=[];let n=e,i=e;for(this._isMemberSchema=!1;te(n);)s.push(n[1]),n=n[0],i=Z(n),this._isMemberSchema=!0;if(s.length>0){this.memberTraits={};for(let a=s.length-1;a>=0;--a){const u=s[a];Object.assign(this.memberTraits,L(u))}}else this.memberTraits=0;if(i instanceof T){const a=this.memberTraits;Object.assign(this,i),this.memberTraits=Object.assign({},a,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??i.memberName;return}if(this.schema=Z(i),Rt(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){const r=Z(e);if(r instanceof T)return r;if(te(r)){const[s,n]=r;if(s instanceof T)return Object.assign(s.getMergedTraits(),L(n)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new T(r)}getSchema(){const e=this.schema;return e[0]===0?e[4]:e}getName(e=!1){const{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const r=this.getSchema()[0];return r===3||r===-3||r===4}isUnionSchema(){return this.getSchema()[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return L(this.memberTraits)}getOwnTraits(){return L(this.traits)}getKeySchema(){const[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const s=this.getSchema(),n=e?15:s[4]??0;return k([n,0],"key")}getValueSchema(){const e=this.getSchema(),[r,s,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e=="number"?63&e:e&&typeof e=="object"&&(s||n)?e[3+e[0]]:r?15:void 0;if(i!=null)return k([i,0],s?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){const s=r[4].indexOf(e),n=r[5][s];return k(te(n)?n:[n,0],e)}if(this.isDocumentSchema())return k([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[r,s]of this.structIterator())e[r]=s}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),r=e[4].length;let s=e[ve.it];if(s&&r===s.length){yield*s;return}s=Array(r);for(let n=0;n<r;++n){const i=e[4][n],a=k([e[5][n],0],i);yield s[n]=[i,a]}e[ve.it]=s}}function k(t,e){if(t instanceof T)return Object.assign(t,{memberName:e,_isMemberSchema:!0});const r=T;return new r(t,e)}const te=t=>Array.isArray(t)&&t.length===2,Rt=t=>Array.isArray(t)&&t.length>=5;class A{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,s=new Map){this.namespace=e,this.schemas=r,this.exceptions=s}static for(e){return A.registries.has(e)||A.registries.set(e,new A(e)),A.registries.get(e)}register(e,r){const s=this.normalizeShapeId(e);A.for(s.split("#")[0]).schemas.set(s,r)}getSchema(e){const r=this.normalizeShapeId(e);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(e,r){const s=e,n=A.for(s[1]);n.schemas.set(s[1]+"#"+s[2],s),n.exceptions.set(s,r)}getErrorCtor(e){const r=e;return A.for(r[1]).exceptions.get(r)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,r,s]=e,n=r+"#"+s;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}const Ce=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),Et=()=>{if(Ce)return Ce();const t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,S[t[0]]+S[t[1]]+S[t[2]]+S[t[3]]+"-"+S[t[4]]+S[t[5]]+"-"+S[t[6]]+S[t[7]]+"-"+S[t[8]]+S[t[9]]+"-"+S[t[10]]+S[t[11]]+S[t[12]]+S[t[13]]+S[t[14]]+S[t[15]]},N=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};N.from=t=>t&&typeof t=="object"&&(t instanceof N||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?N(String(t)):N(JSON.stringify(t));N.fromObject=N.from;const Ae=/^-?\d*(\.\d+)?$/;class ze{string;type;constructor(e,r){if(this.string=e,this.type=r,!Ae.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;const r=e;return ze.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&Ae.test(r.string)}}class Tt{serdeContext;setSerdeContext(e){this.serdeContext=e}}class vt extends Tt{options;constructor(e){super(),this.options=e}getRequestType(){return P}getResponseType(){return pe}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(const[s,n]of r.url.searchParams.entries())e.query[s]=n;return e}else return e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},e}setHostPrefix(e,r,s){if(this.serdeContext?.disableHostPrefix)return;const n=T.of(r.input),i=L(r.traits??{});if(i.endpoint){let a=i.endpoint?.[0];if(typeof a=="string"){const u=[...n.structIterator()].filter(([,o])=>o.getMergedTraits().hostLabel);for(const[o]of u){const d=s[o];if(typeof d!="string")throw new Error(`@smithy/core/schema - ${o} in input must be a string as hostLabel.`);a=a.replace(`{${o}}`,d)}e.hostname=a+e.hostname}}}deserializeMetadata(e){return{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"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await ft(async()=>{const{EventStreamSerde:r}=await import("./index-BitrXVkV.js");return{EventStreamSerde:r}},__vite__mapDeps([0,1]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,s,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class Ws extends vt{async serializeRequest(e,r,s){const n=this.serializer,i={},a={},u=await s.endpoint(),o=T.of(e?.input),d=o.getSchema();let m;const c=new P({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:i,headers:a,body:void 0});u&&(this.updateServiceEndpoint(c,u),this.setHostPrefix(c,e,r));const h={...r};if(r){const l=o.getEventStreamMember();if(l){if(h[l]){const p={};for(const[y,f]of o.structIterator())y!==l&&h[y]&&(n.write(f,h[y]),p[y]=n.flush());m=await this.serializeEventStream({eventStream:h[l],requestSchema:o,initialRequest:p})}}else n.write(d,h),m=n.flush()}return c.headers=a,c.query=i,c.body=m,c.method="POST",c}async deserializeResponse(e,r,s){const n=this.deserializer,i=T.of(e.output),a={};if(s.statusCode>=300){const o=await Te(s.body,r);throw o.byteLength>0&&Object.assign(a,await n.read(15,o)),await this.handleError(e,r,s,a,this.deserializeMetadata(s)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const o in s.headers){const d=s.headers[o];delete s.headers[o],s.headers[o.toLowerCase()]=d}const u=i.getEventStreamMember();if(u)a[u]=await this.deserializeEventStream({response:s,responseSchema:i,initialResponseContainer:a});else{const o=await Te(s.body,r);o.byteLength>0&&Object.assign(a,await n.read(i,o))}return a.$metadata=this.deserializeMetadata(s),a}}function Gs(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();const{httpLabel:r,httpPrefixHeaders:s,httpHeader:n,httpQuery:i}=t.getMergedTraits();return(e.httpBindings?typeof s=="string"||n?6:i||r?5:void 0:void 0)??e.timestampFormat.default}const re="***SensitiveInformation***";function ue(t,e){if(e==null)return e;const r=T.of(t);if(r.getMergedTraits().sensitive)return re;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return re}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return re}else if(r.isStructSchema()&&typeof e=="object"){const s=e,n={};for(const[i,a]of r.structIterator())s[i]!=null&&(n[i]=ue(a,s[i]));return n}return e}class Ct{middlewareStack=J();schema;static classBuilder(){return new At}resolveMiddlewareWithContext(e,r,s,{middlewareFn:n,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:o,smithyContext:d,additionalContext:m,CommandCtor:c}){for(const f of n.bind(this)(c,e,r,s))this.middlewareStack.use(f);const h=e.concat(this.middlewareStack),{logger:l}=r,p={logger:l,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:o,[ce]:{commandInstance:this,...d},...m},{requestHandler:y}=r;return h.resolve(f=>y.handle(f.request,s||{}),p)}}class At{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,s={}){return this._smithyContext={service:e,operation:r,...s},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=s=>s,r=s=>s){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let r;return r=class extends Ct{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[s]){super(),this.input=s??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(s,n,i){const a=e._operationSchema,u=a?.[4]??a?.input,o=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(s,n,i,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?ue.bind(null,u):d=>d),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?ue.bind(null,o):d=>d),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}class H extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const r=e;return H.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;const r=e;return this===H?H.isInstance(e):H.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}}const Ks=(t,e={})=>{Object.entries(e).filter(([,s])=>s!==void 0).forEach(([s,n])=>{(t[s]==null||t[s]==="")&&(t[s]=n)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},Xs=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},xt=t=>{const e=[];for(const r in X){const s=X[r];t[s]!==void 0&&e.push({algorithmId:()=>s,checksumConstructor:()=>t[s]})}return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},It=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Mt=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),$t=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},Js=t=>Object.assign(xt(t),Mt(t)),Qs=t=>Object.assign(It(t),$t(t));class Ot{trace(){}debug(){}info(){}warn(){}error(){}}const Pt=(t,e)=>{if(!e||e.length===0)return t;const r=[];for(const s of e)for(const n of t)n.schemeId.split("#")[1]===s&&r.push(n);for(const s of t)r.find(({schemeId:n})=>n===s.schemeId)||r.push(s);return r};function Nt(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const _t=(t,e)=>(r,s)=>async n=>{const i=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,s,n.input)),a=t.authSchemePreference?await t.authSchemePreference():[],u=Pt(i,a),o=Nt(t.httpAuthSchemes),d=j(s),m=[];for(const c of u){const h=o.get(c.schemeId);if(!h){m.push(`HttpAuthScheme \`${c.schemeId}\` was not enabled for this service.`);continue}const l=h.identityProvider(await e.identityProviderConfigProvider(t));if(!l){m.push(`HttpAuthScheme \`${c.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:p={},signingProperties:y={}}=c.propertiesExtractor?.(t,s)||{};c.identityProperties=Object.assign(c.identityProperties||{},p),c.signingProperties=Object.assign(c.signingProperties||{},y),d.selectedHttpAuthScheme={httpAuthOption:c,identity:await l(c.identityProperties),signer:h.signer};break}if(!d.selectedHttpAuthScheme)throw new Error(m.join(`
4
4
  `));return r(n)},Dt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Ys=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:s=>{s.addRelativeTo(_t(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Dt)}}),kt={name:"serializerMiddleware"},Lt=t=>e=>{throw e},Ht=(t,e)=>{},Ut=t=>(e,r)=>async s=>{if(!P.isInstance(s.request))return e(s);const i=j(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:u,signer:o}=i,d=await e({...s,request:await o.sign(s.request,u,a)}).catch((o.errorHandler||Lt)(a));return(o.successHandler||Ht)(d.response,a),d},zt={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Zs=t=>({applyToStack:e=>{e.addRelativeTo(Ut(),zt)}});function Bt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}class en{authSchemes=new Map;constructor(e){for(const[r,s]of Object.entries(e))s!==void 0&&this.authSchemes.set(r,s)}getIdentityProvider(e){return this.authSchemes.get(e)}}class tn{async sign(e,r,s){return e}}const Ft=t=>function(r){return qt(r)&&r.expiration.getTime()-Date.now()<t},jt=3e5,rn=Ft(jt),qt=t=>t.expiration!==void 0,sn=(t,e,r)=>{if(t===void 0)return;const s=typeof t!="function"?async()=>Promise.resolve(t):t;let n,i,a,u=!1;const o=async d=>{i||(i=s(d));try{n=await i,a=!0,u=!1}finally{i=void 0}return n};return e===void 0?async d=>((!a||d?.forceRefresh)&&(n=await o(d)),n):async d=>((!a||d?.forceRefresh)&&(n=await o(d)),u?n:r(n)?(e(n)&&await o(d),n):(u=!0,n))};class nn{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){const s=this.hash(e);if(s===!1)return r();if(!this.data.has(s)){if(this.data.size>this.capacity+10){const n=this.data.keys();let i=0;for(;;){const{value:a,done:u}=n.next();if(this.data.delete(a),u||++i>10)break}}this.data.set(s,r())}return this.data.get(s)}size(){return this.data.size}hash(e){let r="";const{parameters:s}=this;if(s.length===0)return!1;for(const n of s){const i=String(e[n]??"");if(i.includes("|;"))return!1;r+=i+"|;"}return r}}const Vt=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}$"),Wt=t=>Vt.test(t)||t.startsWith("[")&&t.endsWith("]"),Gt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),ye=(t,e=!1)=>{if(!e)return Gt.test(t);const r=t.split(".");for(const s of r)if(!ye(s))return!1;return!0},xe={},B="endpoints";function x(t){return typeof t!="object"||t==null?t:"ref"in t?`$${x(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(x).join(", ")})`:JSON.stringify(t,null,2)}class R extends Error{constructor(e){super(e),this.name="EndpointError"}}const Kt=(t,e)=>t===e,Xt=t=>{const e=t.split("."),r=[];for(const s of e){const n=s.indexOf("[");if(n!==-1){if(s.indexOf("]")!==s.length-1)throw new R(`Path: '${t}' does not end with ']'`);const i=s.slice(n+1,-1);if(Number.isNaN(parseInt(i)))throw new R(`Invalid array index: '${i}' in path: '${t}'`);n!==0&&r.push(s.slice(0,n)),r.push(i)}else r.push(s)}return r},Be=(t,e)=>Xt(e).reduce((r,s)=>{if(typeof r!="object")throw new R(`Index '${s}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(s)]:r[s]},t),Jt=t=>t!=null,Qt=t=>!t,se={[U.HTTP]:80,[U.HTTPS]:443},Yt=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:h,port:l,protocol:p="",path:y="",query:f={}}=t,g=new URL(`${p}//${h}${l?`:${l}`:""}${y}`);return g.search=Object.entries(f).map(([w,v])=>`${w}=${v}`).join("&"),g}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:s,hostname:n,pathname:i,protocol:a,search:u}=e;if(u)return null;const o=a.slice(0,-1);if(!Object.values(U).includes(o))return null;const d=Wt(n),m=r.includes(`${s}:${se[o]}`)||typeof t=="string"&&t.includes(`${s}:${se[o]}`),c=`${s}${m?`:${se[o]}`:""}`;return{scheme:o,authority:c,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:d}},Zt=(t,e)=>t===e,er=(t,e,r,s)=>e>=r||t.length<r?null:s?t.substring(t.length-r,t.length-e):t.substring(e,r),tr=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),rr={booleanEquals:Kt,getAttr:Be,isSet:Jt,isValidHostLabel:ye,not:Qt,parseURL:Yt,stringEquals:Zt,substring:er,uriEncode:tr},Fe=(t,e)=>{const r=[],s={...e.endpointParams,...e.referenceRecord};let n=0;for(;n<t.length;){const i=t.indexOf("{",n);if(i===-1){r.push(t.slice(n));break}r.push(t.slice(n,i));const a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),n=a+2);const u=t.substring(i+1,a);if(u.includes("#")){const[o,d]=u.split("#");r.push(Be(s[o],d))}else r.push(s[u]);n=a+1}return r.join("")},sr=({ref:t},e)=>({...e.endpointParams,...e.referenceRecord})[t],Q=(t,e,r)=>{if(typeof t=="string")return Fe(t,r);if(t.fn)return qe.callFunction(t,r);if(t.ref)return sr(t,r);throw new R(`'${e}': ${String(t)} is not a string, function or reference.`)},je=({fn:t,argv:e},r)=>{const s=e.map(i=>["boolean","number"].includes(typeof i)?i:qe.evaluateExpression(i,"arg",r)),n=t.split(".");return n[0]in xe&&n[1]!=null?xe[n[0]][n[1]](...s):rr[t](...s)},qe={evaluateExpression:Q,callFunction:je},nr=({assign:t,...e},r)=>{if(t&&t in r.referenceRecord)throw new R(`'${t}' is already defined in Reference Record.`);const s=je(e,r);return r.logger?.debug?.(`${B} evaluateCondition: ${x(e)} = ${x(s)}`),{result:s===""?!0:!!s,...t!=null&&{toAssign:{name:t,value:s}}}},ge=(t=[],e)=>{const r={};for(const s of t){const{result:n,toAssign:i}=nr(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!n)return{result:n};i&&(r[i.name]=i.value,e.logger?.debug?.(`${B} assign: ${i.name} := ${x(i.value)}`))}return{result:!0,referenceRecord:r}},ir=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:n.map(i=>{const a=Q(i,"Header value entry",e);if(typeof a!="string")throw new R(`Header '${s}' value '${a}' is not a string`);return a})}),{}),Ve=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:Ge.getEndpointProperty(n,e)}),{}),We=(t,e)=>{if(Array.isArray(t))return t.map(r=>We(r,e));switch(typeof t){case"string":return Fe(t,e);case"object":if(t===null)throw new R(`Unexpected endpoint property: ${t}`);return Ge.getEndpointProperties(t,e);case"boolean":return t;default:throw new R(`Unexpected endpoint property type: ${typeof t}`)}},Ge={getEndpointProperty:We,getEndpointProperties:Ve},ar=(t,e)=>{const r=Q(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(s){throw console.error(`Failed to construct URL with ${r}`,s),s}throw new R(`Endpoint URL must be a string, got ${typeof r}`)},or=(t,e)=>{const{conditions:r,endpoint:s}=t,{result:n,referenceRecord:i}=ge(r,e);if(!n)return;const a={...e,referenceRecord:{...e.referenceRecord,...i}},{url:u,properties:o,headers:d}=s;return e.logger?.debug?.(`${B} Resolving endpoint from template: ${x(s)}`),{...d!=null&&{headers:ir(d,a)},...o!=null&&{properties:Ve(o,a)},url:ar(u,a)}},cr=(t,e)=>{const{conditions:r,error:s}=t,{result:n,referenceRecord:i}=ge(r,e);if(n)throw new R(Q(s,"Error",{...e,referenceRecord:{...e.referenceRecord,...i}}))},Ke=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const s=or(r,e);if(s)return s}else if(r.type==="error")cr(r,e);else if(r.type==="tree"){const s=Xe.evaluateTreeRule(r,e);if(s)return s}else throw new R(`Unknown endpoint rule: ${r}`);throw new R("Rules evaluation failed")},ur=(t,e)=>{const{conditions:r,rules:s}=t,{result:n,referenceRecord:i}=ge(r,e);if(n)return Xe.evaluateRules(s,{...e,referenceRecord:{...e.referenceRecord,...i}})},Xe={evaluateRules:Ke,evaluateTreeRule:ur},an=(t,e)=>{const{endpointParams:r,logger:s}=e,{parameters:n,rules:i}=t;e.logger?.debug?.(`${B} Initial EndpointParams: ${x(r)}`);const a=Object.entries(n).filter(([,d])=>d.default!=null).map(([d,m])=>[d,m.default]);if(a.length>0)for(const[d,m]of a)r[d]=r[d]??m;const u=Object.entries(n).filter(([,d])=>d.required).map(([d])=>d);for(const d of u)if(r[d]==null)throw new R(`Missing required parameter: '${d}'`);const o=Ke(i,{endpointParams:r,logger:s,referenceRecord:{}});return e.logger?.debug?.(`${B} Resolved endpoint: ${x(o)}`),o};function hr(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[s,n=null]=r.split("=");s=decodeURIComponent(s),n&&(n=decodeURIComponent(n)),s in e?Array.isArray(e[s])?e[s].push(n):e[s]=[e[s],n]:e[s]=n}return e}const he=t=>{if(typeof t=="string")return he(new URL(t));const{hostname:e,pathname:r,port:s,protocol:n,search:i}=t;let a;return i&&(a=hr(i)),{hostname:e,port:s?parseInt(s):void 0,protocol:n,path:r,query:a}},dr="X-Amz-Algorithm",lr="X-Amz-Credential",Je="X-Amz-Date",fr="X-Amz-SignedHeaders",mr="X-Amz-Expires",Qe="X-Amz-Signature",Ye="X-Amz-Security-Token",Ze="authorization",et=Je.toLowerCase(),pr="date",yr=[Ze,et,pr],gr=Qe.toLowerCase(),de="x-amz-content-sha256",wr=Ye.toLowerCase(),Sr={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},br=/^proxy-/,Rr=/^sec-/,ne="AWS4-HMAC-SHA256",Er="AWS4-HMAC-SHA256-PAYLOAD",Tr="UNSIGNED-PAYLOAD",vr=50,tt="aws4_request",Cr=3600*24*7,q={},ie=[],ae=(t,e,r)=>`${t}/${e}/${r}/${tt}`,Ar=async(t,e,r,s,n)=>{const i=await Ie(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${s}:${n}:${M(i)}:${e.sessionToken}`;if(a in q)return q[a];for(ie.push(a);ie.length>vr;)delete q[ie.shift()];let u=`AWS4${e.secretAccessKey}`;for(const o of[r,s,n,tt])u=await Ie(t,u,o);return q[a]=u},Ie=(t,e,r)=>{const s=new t(e);return s.update(z(r)),s.digest()},Me=({headers:t},e,r)=>{const s={};for(const n of Object.keys(t).sort()){if(t[n]==null)continue;const i=n.toLowerCase();(i in Sr||e?.has(i)||br.test(i)||Rr.test(i))&&(!r||r&&!r.has(i))||(s[i]=t[n].trim().replace(/\s+/g," "))}return s},xr=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",oe=async({headers:t,body:e},r)=>{for(const s of Object.keys(t))if(s.toLowerCase()===de)return t[s];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||xr(e)){const s=new r;return s.update(z(e)),M(await s.digest())}return Tr};class Ir{format(e){const r=[];for(const i of Object.keys(e)){const a=K(i);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[i]))}const s=new Uint8Array(r.reduce((i,a)=>i+a.byteLength,0));let n=0;for(const i of r)s.set(i,n),n+=i.byteLength;return s}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 r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,e.value,!1),new Uint8Array(s.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 a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case"string":const u=K(e.value),o=new DataView(new ArrayBuffer(3+u.byteLength));o.setUint8(0,7),o.setUint16(1,u.byteLength,!1);const d=new Uint8Array(o.buffer);return d.set(u,3),d;case"timestamp":const m=new Uint8Array(9);return m[0]=8,m.set(we.fromNumber(e.value.valueOf()).bytes,1),m;case"uuid":if(!Mr.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const c=new Uint8Array(17);return c[0]=9,c.set(lt(e.value.replace(/\-/g,"")),1),c}}}var $e;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})($e||($e={}));const Mr=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class we{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let s=7,n=Math.abs(Math.round(e));s>-1&&n>0;s--,n/=256)r[s]=n;return e<0&&Oe(r),new we(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&Oe(e),parseInt(M(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function Oe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const $r=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},Or=(t,e={})=>{const{headers:r,query:s={}}=P.clone(t);for(const n of Object.keys(r)){const i=n.toLowerCase();(i.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(i)||e.hoistableHeaders?.has(i))&&(s[n]=r[n],delete r[n])}return{...t,headers:r,query:s}},Pe=t=>{t=P.clone(t);for(const e of Object.keys(t.headers))yr.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},Pr=({query:t={}})=>{const e=[],r={};for(const s of Object.keys(t)){if(s.toLowerCase()===gr)continue;const n=V(s);e.push(n);const i=t[s];typeof i=="string"?r[n]=`${n}=${V(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((a,u)=>a.concat([`${n}=${V(u)}`]),[]).sort().join("&"))}return e.sort().map(s=>r[s]).filter(s=>s).join("&")},Nr=t=>_r(t).toISOString().replace(/\.\d{3}Z$/,"Z"),_r=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class Dr{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:s,service:n,sha256:i,uriEscapePath:a=!0}){this.service=n,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=O(s),this.credentialProvider=O(r)}createCanonicalRequest(e,r,s){const n=Object.keys(r).sort();return`${e.method}
5
5
  ${this.getCanonicalPath(e)}
@@ -1,4 +1,4 @@
1
- import{d as sr,e as X,f as jr,g as wr,h as Or,i as vr,j as Br,k as Tr,c as Ir}from"./index-IWX-nwYi.js";var er={},nr={},tr,cr;function Pr(){if(cr)return tr;cr=1;var i=sr()(),p=X(),h=p("Object.prototype.toString"),l=function(u){return i&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:h(u)==="[object Arguments]"},g=function(u){return l(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&h(u)!=="[object Array]"&&"callee"in u&&h(u.callee)==="[object Function]"},d=(function(){return l(arguments)})();return l.isLegacyArguments=g,tr=d?l:g,tr}var ir,yr;function kr(){if(yr)return ir;yr=1;var i=X(),p=sr()(),h=wr(),l=jr(),g;if(p){var d=i("RegExp.prototype.exec"),A={},u=function(){throw A},m={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=u),g=function(S){if(!S||typeof S!="object")return!1;var I=l(S,"lastIndex"),B=I&&h(I,"value");if(!B)return!1;try{d(S,m)}catch(F){return F===A}}}else{var O=i("Object.prototype.toString"),E="[object RegExp]";g=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:O(S)===E}}return ir=g,ir}var or,lr;function Er(){if(lr)return or;lr=1;var i=X(),p=kr(),h=i("RegExp.prototype.exec"),l=Or();return or=function(d){if(!p(d))throw new l("`regex` must be a RegExp");return function(u){return h(d,u)!==null}},or}var fr,pr;function Fr(){if(pr)return fr;pr=1;const i=function*(){}.constructor;return fr=()=>i,fr}var ur,gr;function Rr(){if(gr)return ur;gr=1;var i=X(),p=Er(),h=p(/^\s*(?:function)?\*/),l=sr()(),g=vr(),d=i("Object.prototype.toString"),A=i("Function.prototype.toString"),u=Fr();return ur=function(O){if(typeof O!="function")return!1;if(h(A(O)))return!0;if(!l){var E=d(O);return E==="[object GeneratorFunction]"}if(!g)return!1;var w=u();return w&&g(O)===w.prototype},ur}var dr;function Dr(){return dr||(dr=1,(function(i){var p=Pr(),h=Rr(),l=Tr(),g=Br();function d(n){return n.call.bind(n)}var A=typeof BigInt<"u",u=typeof Symbol<"u",m=d(Object.prototype.toString),O=d(Number.prototype.valueOf),E=d(String.prototype.valueOf),w=d(Boolean.prototype.valueOf);if(A)var S=d(BigInt.prototype.valueOf);if(u)var I=d(Symbol.prototype.valueOf);function B(n,Sr){if(typeof n!="object")return!1;try{return Sr(n),!0}catch{return!1}}i.isArgumentsObject=p,i.isGeneratorFunction=h,i.isTypedArray=g;function F(n){return typeof Promise<"u"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}i.isPromise=F;function Y(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):g(n)||r(n)}i.isArrayBufferView=Y;function H(n){return l(n)==="Uint8Array"}i.isUint8Array=H;function C(n){return l(n)==="Uint8ClampedArray"}i.isUint8ClampedArray=C;function U(n){return l(n)==="Uint16Array"}i.isUint16Array=U;function x(n){return l(n)==="Uint32Array"}i.isUint32Array=x;function J(n){return l(n)==="Int8Array"}i.isInt8Array=J;function q(n){return l(n)==="Int16Array"}i.isInt16Array=q;function $(n){return l(n)==="Int32Array"}i.isInt32Array=$;function T(n){return l(n)==="Float32Array"}i.isFloat32Array=T;function R(n){return l(n)==="Float64Array"}i.isFloat64Array=R;function P(n){return l(n)==="BigInt64Array"}i.isBigInt64Array=P;function M(n){return l(n)==="BigUint64Array"}i.isBigUint64Array=M;function v(n){return m(n)==="[object Map]"}v.working=typeof Map<"u"&&v(new Map);function z(n){return typeof Map>"u"?!1:v.working?v(n):n instanceof Map}i.isMap=z;function G(n){return m(n)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function V(n){return typeof Set>"u"?!1:G.working?G(n):n instanceof Set}i.isSet=V;function k(n){return m(n)==="[object WeakMap]"}k.working=typeof WeakMap<"u"&&k(new WeakMap);function rr(n){return typeof WeakMap>"u"?!1:k.working?k(n):n instanceof WeakMap}i.isWeakMap=rr;function _(n){return m(n)==="[object WeakSet]"}_.working=typeof WeakSet<"u"&&_(new WeakSet);function L(n){return _(n)}i.isWeakSet=L;function j(n){return m(n)==="[object ArrayBuffer]"}j.working=typeof ArrayBuffer<"u"&&j(new ArrayBuffer);function Z(n){return typeof ArrayBuffer>"u"?!1:j.working?j(n):n instanceof ArrayBuffer}i.isArrayBuffer=Z;function N(n){return m(n)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function r(n){return typeof DataView>"u"?!1:N.working?N(n):n instanceof DataView}i.isDataView=r;var e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function t(n){return m(n)==="[object SharedArrayBuffer]"}function o(n){return typeof e>"u"?!1:(typeof t.working>"u"&&(t.working=t(new e)),t.working?t(n):n instanceof e)}i.isSharedArrayBuffer=o;function s(n){return m(n)==="[object AsyncFunction]"}i.isAsyncFunction=s;function c(n){return m(n)==="[object Map Iterator]"}i.isMapIterator=c;function f(n){return m(n)==="[object Set Iterator]"}i.isSetIterator=f;function a(n){return m(n)==="[object Generator]"}i.isGeneratorObject=a;function y(n){return m(n)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=y;function b(n){return B(n,O)}i.isNumberObject=b;function D(n){return B(n,E)}i.isStringObject=D;function K(n){return B(n,w)}i.isBooleanObject=K;function W(n){return A&&B(n,S)}i.isBigIntObject=W;function Q(n){return u&&B(n,I)}i.isSymbolObject=Q;function hr(n){return b(n)||D(n)||K(n)||W(n)||Q(n)}i.isBoxedPrimitive=hr;function Ar(n){return typeof Uint8Array<"u"&&(Z(n)||o(n))}i.isAnyArrayBuffer=Ar,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})})(nr)),nr}var ar,mr;function Ur(){return mr||(mr=1,ar=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}),ar}var br;function zr(){return br||(br=1,(function(i){var p={},h=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},s=0;s<t.length;s++)o[t[s]]=Object.getOwnPropertyDescriptor(e,t[s]);return o},l=/%[sdj%]/g;i.format=function(r){if(!q(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(u(arguments[t]));return e.join(" ")}for(var t=1,o=arguments,s=o.length,c=String(r).replace(l,function(a){if(a==="%%")return"%";if(t>=s)return a;switch(a){case"%s":return String(o[t++]);case"%d":return Number(o[t++]);case"%j":try{return JSON.stringify(o[t++])}catch{return"[Circular]"}default:return a}}),f=o[t];t<s;f=o[++t])U(f)||!P(f)?c+=" "+f:c+=" "+u(f);return c},i.deprecate=function(r,e){if(typeof process<"u"&&process.noDeprecation===!0)return r;if(typeof process>"u")return function(){return i.deprecate(r,e).apply(this,arguments)};var t=!1;function o(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return o};var g={},d=/^$/;if(p.NODE_DEBUG){var A=p.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+A+"$","i")}i.debuglog=function(r){if(r=r.toUpperCase(),!g[r])if(d.test(r)){var e=process.pid;g[r]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",r,e,t)}}else g[r]=function(){};return g[r]};function u(r,e){var t={seen:[],stylize:O};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C(e)?t.showHidden=e:e&&i._extend(t,e),T(t.showHidden)&&(t.showHidden=!1),T(t.depth)&&(t.depth=2),T(t.colors)&&(t.colors=!1),T(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m),w(t,r,t.depth)}i.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(r,e){var t=u.styles[e];return t?"\x1B["+u.colors[t][0]+"m"+r+"\x1B["+u.colors[t][1]+"m":r}function O(r,e){return r}function E(r){var e={};return r.forEach(function(t,o){e[t]=!0}),e}function w(r,e,t){if(r.customInspect&&e&&z(e.inspect)&&e.inspect!==i.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(t,r);return q(o)||(o=w(r,o,t)),o}var s=S(r,e);if(s)return s;var c=Object.keys(e),f=E(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(e)),v(e)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return I(e);if(c.length===0){if(z(e)){var a=e.name?": "+e.name:"";return r.stylize("[Function"+a+"]","special")}if(R(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(M(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return I(e)}var y="",b=!1,D=["{","}"];if(H(e)&&(b=!0,D=["[","]"]),z(e)){var K=e.name?": "+e.name:"";y=" [Function"+K+"]"}if(R(e)&&(y=" "+RegExp.prototype.toString.call(e)),M(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+I(e)),c.length===0&&(!b||e.length==0))return D[0]+y+D[1];if(t<0)return R(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var W;return b?W=B(r,e,t,f,c):W=c.map(function(Q){return F(r,e,t,f,Q,b)}),r.seen.pop(),Y(W,y,D)}function S(r,e){if(T(e))return r.stylize("undefined","undefined");if(q(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(J(e))return r.stylize(""+e,"number");if(C(e))return r.stylize(""+e,"boolean");if(U(e))return r.stylize("null","null")}function I(r){return"["+Error.prototype.toString.call(r)+"]"}function B(r,e,t,o,s){for(var c=[],f=0,a=e.length;f<a;++f)L(e,String(f))?c.push(F(r,e,t,o,String(f),!0)):c.push("");return s.forEach(function(y){y.match(/^\d+$/)||c.push(F(r,e,t,o,y,!0))}),c}function F(r,e,t,o,s,c){var f,a,y;if(y=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},y.get?y.set?a=r.stylize("[Getter/Setter]","special"):a=r.stylize("[Getter]","special"):y.set&&(a=r.stylize("[Setter]","special")),L(o,s)||(f="["+s+"]"),a||(r.seen.indexOf(y.value)<0?(U(t)?a=w(r,y.value,null):a=w(r,y.value,t-1),a.indexOf(`
1
+ import{d as sr,e as X,f as jr,g as wr,h as Or,i as vr,j as Br,k as Tr,c as Ir}from"./index-CVqRSHuR.js";var er={},nr={},tr,cr;function Pr(){if(cr)return tr;cr=1;var i=sr()(),p=X(),h=p("Object.prototype.toString"),l=function(u){return i&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:h(u)==="[object Arguments]"},g=function(u){return l(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&h(u)!=="[object Array]"&&"callee"in u&&h(u.callee)==="[object Function]"},d=(function(){return l(arguments)})();return l.isLegacyArguments=g,tr=d?l:g,tr}var ir,yr;function kr(){if(yr)return ir;yr=1;var i=X(),p=sr()(),h=wr(),l=jr(),g;if(p){var d=i("RegExp.prototype.exec"),A={},u=function(){throw A},m={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(m[Symbol.toPrimitive]=u),g=function(S){if(!S||typeof S!="object")return!1;var I=l(S,"lastIndex"),B=I&&h(I,"value");if(!B)return!1;try{d(S,m)}catch(F){return F===A}}}else{var O=i("Object.prototype.toString"),E="[object RegExp]";g=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:O(S)===E}}return ir=g,ir}var or,lr;function Er(){if(lr)return or;lr=1;var i=X(),p=kr(),h=i("RegExp.prototype.exec"),l=Or();return or=function(d){if(!p(d))throw new l("`regex` must be a RegExp");return function(u){return h(d,u)!==null}},or}var fr,pr;function Fr(){if(pr)return fr;pr=1;const i=function*(){}.constructor;return fr=()=>i,fr}var ur,gr;function Rr(){if(gr)return ur;gr=1;var i=X(),p=Er(),h=p(/^\s*(?:function)?\*/),l=sr()(),g=vr(),d=i("Object.prototype.toString"),A=i("Function.prototype.toString"),u=Fr();return ur=function(O){if(typeof O!="function")return!1;if(h(A(O)))return!0;if(!l){var E=d(O);return E==="[object GeneratorFunction]"}if(!g)return!1;var w=u();return w&&g(O)===w.prototype},ur}var dr;function Dr(){return dr||(dr=1,(function(i){var p=Pr(),h=Rr(),l=Tr(),g=Br();function d(n){return n.call.bind(n)}var A=typeof BigInt<"u",u=typeof Symbol<"u",m=d(Object.prototype.toString),O=d(Number.prototype.valueOf),E=d(String.prototype.valueOf),w=d(Boolean.prototype.valueOf);if(A)var S=d(BigInt.prototype.valueOf);if(u)var I=d(Symbol.prototype.valueOf);function B(n,Sr){if(typeof n!="object")return!1;try{return Sr(n),!0}catch{return!1}}i.isArgumentsObject=p,i.isGeneratorFunction=h,i.isTypedArray=g;function F(n){return typeof Promise<"u"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}i.isPromise=F;function Y(n){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(n):g(n)||r(n)}i.isArrayBufferView=Y;function H(n){return l(n)==="Uint8Array"}i.isUint8Array=H;function C(n){return l(n)==="Uint8ClampedArray"}i.isUint8ClampedArray=C;function U(n){return l(n)==="Uint16Array"}i.isUint16Array=U;function x(n){return l(n)==="Uint32Array"}i.isUint32Array=x;function J(n){return l(n)==="Int8Array"}i.isInt8Array=J;function q(n){return l(n)==="Int16Array"}i.isInt16Array=q;function $(n){return l(n)==="Int32Array"}i.isInt32Array=$;function T(n){return l(n)==="Float32Array"}i.isFloat32Array=T;function R(n){return l(n)==="Float64Array"}i.isFloat64Array=R;function P(n){return l(n)==="BigInt64Array"}i.isBigInt64Array=P;function M(n){return l(n)==="BigUint64Array"}i.isBigUint64Array=M;function v(n){return m(n)==="[object Map]"}v.working=typeof Map<"u"&&v(new Map);function z(n){return typeof Map>"u"?!1:v.working?v(n):n instanceof Map}i.isMap=z;function G(n){return m(n)==="[object Set]"}G.working=typeof Set<"u"&&G(new Set);function V(n){return typeof Set>"u"?!1:G.working?G(n):n instanceof Set}i.isSet=V;function k(n){return m(n)==="[object WeakMap]"}k.working=typeof WeakMap<"u"&&k(new WeakMap);function rr(n){return typeof WeakMap>"u"?!1:k.working?k(n):n instanceof WeakMap}i.isWeakMap=rr;function _(n){return m(n)==="[object WeakSet]"}_.working=typeof WeakSet<"u"&&_(new WeakSet);function L(n){return _(n)}i.isWeakSet=L;function j(n){return m(n)==="[object ArrayBuffer]"}j.working=typeof ArrayBuffer<"u"&&j(new ArrayBuffer);function Z(n){return typeof ArrayBuffer>"u"?!1:j.working?j(n):n instanceof ArrayBuffer}i.isArrayBuffer=Z;function N(n){return m(n)==="[object DataView]"}N.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&N(new DataView(new ArrayBuffer(1),0,1));function r(n){return typeof DataView>"u"?!1:N.working?N(n):n instanceof DataView}i.isDataView=r;var e=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function t(n){return m(n)==="[object SharedArrayBuffer]"}function o(n){return typeof e>"u"?!1:(typeof t.working>"u"&&(t.working=t(new e)),t.working?t(n):n instanceof e)}i.isSharedArrayBuffer=o;function s(n){return m(n)==="[object AsyncFunction]"}i.isAsyncFunction=s;function c(n){return m(n)==="[object Map Iterator]"}i.isMapIterator=c;function f(n){return m(n)==="[object Set Iterator]"}i.isSetIterator=f;function a(n){return m(n)==="[object Generator]"}i.isGeneratorObject=a;function y(n){return m(n)==="[object WebAssembly.Module]"}i.isWebAssemblyCompiledModule=y;function b(n){return B(n,O)}i.isNumberObject=b;function D(n){return B(n,E)}i.isStringObject=D;function K(n){return B(n,w)}i.isBooleanObject=K;function W(n){return A&&B(n,S)}i.isBigIntObject=W;function Q(n){return u&&B(n,I)}i.isSymbolObject=Q;function hr(n){return b(n)||D(n)||K(n)||W(n)||Q(n)}i.isBoxedPrimitive=hr;function Ar(n){return typeof Uint8Array<"u"&&(Z(n)||o(n))}i.isAnyArrayBuffer=Ar,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})})(nr)),nr}var ar,mr;function Ur(){return mr||(mr=1,ar=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}),ar}var br;function zr(){return br||(br=1,(function(i){var p={},h=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),o={},s=0;s<t.length;s++)o[t[s]]=Object.getOwnPropertyDescriptor(e,t[s]);return o},l=/%[sdj%]/g;i.format=function(r){if(!q(r)){for(var e=[],t=0;t<arguments.length;t++)e.push(u(arguments[t]));return e.join(" ")}for(var t=1,o=arguments,s=o.length,c=String(r).replace(l,function(a){if(a==="%%")return"%";if(t>=s)return a;switch(a){case"%s":return String(o[t++]);case"%d":return Number(o[t++]);case"%j":try{return JSON.stringify(o[t++])}catch{return"[Circular]"}default:return a}}),f=o[t];t<s;f=o[++t])U(f)||!P(f)?c+=" "+f:c+=" "+u(f);return c},i.deprecate=function(r,e){if(typeof process<"u"&&process.noDeprecation===!0)return r;if(typeof process>"u")return function(){return i.deprecate(r,e).apply(this,arguments)};var t=!1;function o(){if(!t){if(process.throwDeprecation)throw new Error(e);process.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return o};var g={},d=/^$/;if(p.NODE_DEBUG){var A=p.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+A+"$","i")}i.debuglog=function(r){if(r=r.toUpperCase(),!g[r])if(d.test(r)){var e=process.pid;g[r]=function(){var t=i.format.apply(i,arguments);console.error("%s %d: %s",r,e,t)}}else g[r]=function(){};return g[r]};function u(r,e){var t={seen:[],stylize:O};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C(e)?t.showHidden=e:e&&i._extend(t,e),T(t.showHidden)&&(t.showHidden=!1),T(t.depth)&&(t.depth=2),T(t.colors)&&(t.colors=!1),T(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m),w(t,r,t.depth)}i.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m(r,e){var t=u.styles[e];return t?"\x1B["+u.colors[t][0]+"m"+r+"\x1B["+u.colors[t][1]+"m":r}function O(r,e){return r}function E(r){var e={};return r.forEach(function(t,o){e[t]=!0}),e}function w(r,e,t){if(r.customInspect&&e&&z(e.inspect)&&e.inspect!==i.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(t,r);return q(o)||(o=w(r,o,t)),o}var s=S(r,e);if(s)return s;var c=Object.keys(e),f=E(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(e)),v(e)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return I(e);if(c.length===0){if(z(e)){var a=e.name?": "+e.name:"";return r.stylize("[Function"+a+"]","special")}if(R(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(M(e))return r.stylize(Date.prototype.toString.call(e),"date");if(v(e))return I(e)}var y="",b=!1,D=["{","}"];if(H(e)&&(b=!0,D=["[","]"]),z(e)){var K=e.name?": "+e.name:"";y=" [Function"+K+"]"}if(R(e)&&(y=" "+RegExp.prototype.toString.call(e)),M(e)&&(y=" "+Date.prototype.toUTCString.call(e)),v(e)&&(y=" "+I(e)),c.length===0&&(!b||e.length==0))return D[0]+y+D[1];if(t<0)return R(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var W;return b?W=B(r,e,t,f,c):W=c.map(function(Q){return F(r,e,t,f,Q,b)}),r.seen.pop(),Y(W,y,D)}function S(r,e){if(T(e))return r.stylize("undefined","undefined");if(q(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(J(e))return r.stylize(""+e,"number");if(C(e))return r.stylize(""+e,"boolean");if(U(e))return r.stylize("null","null")}function I(r){return"["+Error.prototype.toString.call(r)+"]"}function B(r,e,t,o,s){for(var c=[],f=0,a=e.length;f<a;++f)L(e,String(f))?c.push(F(r,e,t,o,String(f),!0)):c.push("");return s.forEach(function(y){y.match(/^\d+$/)||c.push(F(r,e,t,o,y,!0))}),c}function F(r,e,t,o,s,c){var f,a,y;if(y=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},y.get?y.set?a=r.stylize("[Getter/Setter]","special"):a=r.stylize("[Getter]","special"):y.set&&(a=r.stylize("[Setter]","special")),L(o,s)||(f="["+s+"]"),a||(r.seen.indexOf(y.value)<0?(U(t)?a=w(r,y.value,null):a=w(r,y.value,t-1),a.indexOf(`
2
2
  `)>-1&&(c?a=a.split(`
3
3
  `).map(function(b){return" "+b}).join(`
4
4
  `).slice(2):a=`
@@ -1,4 +1,4 @@
1
- import{g as ga}from"./_commonjsHelpers-D6-XlEtG.js";import{r as va}from"./util-BYzfkJTL.js";import{E as U,L as me}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{c as ae}from"./__vite-browser-external-DLjrMatA.js";import{D as wa,S as je,L as _a}from"./index-DsIu-45t-Bejjlpz4.js";import{l as Sa,u as ce}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{Y as Cr}from"./index-6mKfgpcs-DsgiI2lM.js";var ja=va();const se=ga(ja);var Yr={},Fe={},Ue,$r;function ie(){if($r)return Ue;$r=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(S)}function i(S,a,l){return Object.defineProperty(S,"prototype",{writable:!1}),S}function v(S,a){if(!(S instanceof a))throw new TypeError("Cannot call a class as a function")}function O(S,a,l){return a=_(a),m(S,g()?Reflect.construct(a,l||[],_(S).constructor):a.apply(S,l))}function m(S,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function d(S,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(a&&a.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),a&&R(S,a)}function u(S){var a=typeof Map=="function"?new Map:void 0;return u=function(l){if(l===null||!P(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(l))return a.get(l);a.set(l,s)}function s(){return o(l,arguments,_(this).constructor)}return s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),R(s,l)},u(S)}function o(S,a,l){if(g())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,a);var c=new(S.bind.apply(S,s));return l&&R(c,l.prototype),c}function g(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g=function(){return!!S})()}function P(S){try{return Function.toString.call(S).indexOf("[native code]")!==-1}catch{return typeof S=="function"}}function R(S,a){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,s){return l.__proto__=s,l},R(S,a)}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_(S)}var w=(function(S){function a(l){var s;return v(this,a),s=O(this,a,[`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ import{g as ga}from"./_commonjsHelpers-D6-XlEtG.js";import{r as va}from"./util-BpmfkB-j.js";import{E as U,L as me}from"./inherits_browser-nmOknR35-Bp0mvRSL.js";import{c as ae}from"./__vite-browser-external-DLjrMatA.js";import{D as wa,S as je,L as _a}from"./index-DsIu-45t-Bejjlpz4.js";import{l as Sa,u as ce}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{Y as Cr}from"./index-6mKfgpcs-DsgiI2lM.js";var ja=va();const se=ga(ja);var Yr={},Fe={},Ue,$r;function ie(){if($r)return Ue;$r=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(S)}function i(S,a,l){return Object.defineProperty(S,"prototype",{writable:!1}),S}function v(S,a){if(!(S instanceof a))throw new TypeError("Cannot call a class as a function")}function O(S,a,l){return a=_(a),m(S,g()?Reflect.construct(a,l||[],_(S).constructor):a.apply(S,l))}function m(S,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(S)}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function d(S,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(a&&a.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),a&&R(S,a)}function u(S){var a=typeof Map=="function"?new Map:void 0;return u=function(l){if(l===null||!P(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(l))return a.get(l);a.set(l,s)}function s(){return o(l,arguments,_(this).constructor)}return s.prototype=Object.create(l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),R(s,l)},u(S)}function o(S,a,l){if(g())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,a);var c=new(S.bind.apply(S,s));return l&&R(c,l.prototype),c}function g(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g=function(){return!!S})()}function P(S){try{return Function.toString.call(S).indexOf("[native code]")!==-1}catch{return typeof S=="function"}}function R(S,a){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,s){return l.__proto__=s,l},R(S,a)}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},_(S)}var w=(function(S){function a(l){var s;return v(this,a),s=O(this,a,[`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: `.concat(l.toString().split(`
3
3
  `)[0],`
4
4
  `)]),Error.captureStackTrace(s,a),s}return d(a,S),i(a)})(u(Error));return Ue=function(S){if(S.length>2)throw new w(S);function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=s}a.prototype.transform=S;function l(s){return new a(s)}return l.Format=a,l},Ue}var ke={exports:{}},Gr={exports:{}},Hr={exports:{}},Vr={exports:{}},Ur;function xa(){return Ur||(Ur=1,(function(t){var i={};t.exports=i;var v={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(v).forEach(function(O){var m=v[O],h=i[O]=[];h.open="\x1B["+m[0]+"m",h.close="\x1B["+m[1]+"m"})})(Vr)),Vr.exports}var Jr,Kr;function Ea(){return Kr||(Kr=1,Jr=function(t,i){i=i||U.argv||[];var v=i.indexOf("--"),O=/^-{1,2}/.test(t)?"":"--",m=i.indexOf(O+t);return m!==-1&&(v===-1?!0:m<v)}),Jr}var Je,Zr;function Ma(){if(Zr)return Je;Zr=1;var t=ae,i=Ea(),v=U.env,O=void 0;i("no-color")||i("no-colors")||i("color=false")?O=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(O=!0),"FORCE_COLOR"in v&&(O=v.FORCE_COLOR.length===0||parseInt(v.FORCE_COLOR,10)!==0);function m(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function h(u){if(O===!1)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(u&&!u.isTTY&&O!==!0)return 0;var o=O?1:0;if(U.platform==="win32"){var g=t.release().split(".");return Number(U.versions.node.split(".")[0])>=8&&Number(g[0])>=10&&Number(g[2])>=10586?Number(g[2])>=14931?3:2:1}if("CI"in v)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(R){return R in v})||v.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in v)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(v.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in v){var P=parseInt((v.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(v.TERM_PROGRAM){case"iTerm.app":return P>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(v.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(v.TERM)||"COLORTERM"in v?1:(v.TERM,o)}function d(u){var o=h(u);return m(o)}return Je={supportsColor:d,stdout:d(U.stdout),stderr:d(U.stderr)},Je}var Qr={exports:{}},Xr;function Oa(){return Xr||(Xr=1,(function(t){t.exports=function(i,v){var O="";i=i||"Run the trap, drop the bass",i=i.split("");var m={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return i.forEach(function(h){h=h.toLowerCase();var d=m[h]||[" "],u=Math.floor(Math.random()*d.length);typeof m[h]<"u"?O+=m[h][u]:O+=h}),O}})(Qr)),Qr.exports}var en={exports:{}},tn;function Pa(){return tn||(tn=1,(function(t){t.exports=function(i,v){i=i||" he is here ";var O={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},m=[].concat(O.up,O.down,O.mid);function h(o){var g=Math.floor(Math.random()*o);return g}function d(o){var g=!1;return m.filter(function(P){g=P===o}),g}function u(o,g){var P="",R,_;g=g||{},g.up=typeof g.up<"u"?g.up:!0,g.mid=typeof g.mid<"u"?g.mid:!0,g.down=typeof g.down<"u"?g.down:!0,g.size=typeof g.size<"u"?g.size:"maxi",o=o.split("");for(_ in o)if(!d(_)){switch(P=P+o[_],R={up:0,down:0,mid:0},g.size){case"mini":R.up=h(8),R.mid=h(2),R.down=h(8);break;case"maxi":R.up=h(16)+3,R.mid=h(4)+1,R.down=h(64)+3;break;default:R.up=h(8)+1,R.mid=h(6)/2,R.down=h(8)+1;break}var w=["up","mid","down"];for(var S in w)for(var a=w[S],l=0;l<=R[a];l++)g[a]&&(P=P+O[a][h(O[a].length)])}return P}return u(i,v)}})(en)),en.exports}var rn={exports:{}},nn;function ka(){return nn||(nn=1,(function(t){t.exports=function(i){return function(v,O,m){if(v===" ")return v;switch(O%3){case 0:return i.red(v);case 1:return i.white(v);case 2:return i.blue(v)}}}})(rn)),rn.exports}var on={exports:{}},an;function Ra(){return an||(an=1,(function(t){t.exports=function(i){return function(v,O,m){return O%2===0?v:i.inverse(v)}}})(on)),on.exports}var sn={exports:{}},un;function Ta(){return un||(un=1,(function(t){t.exports=function(i){var v=["red","yellow","green","blue","magenta"];return function(O,m,h){return O===" "?O:i[v[m++%v.length]](O)}}})(sn)),sn.exports}var ln={exports:{}},cn;function La(){return cn||(cn=1,(function(t){t.exports=function(i){var v=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(O,m,h){return O===" "?O:i[v[Math.round(Math.random()*(v.length-2))]](O)}}})(ln)),ln.exports}var fn;function Ca(){return fn||(fn=1,(function(t){var i={};t.exports=i,i.themes={};var v=se,O=i.styles=xa(),m=Object.defineProperties,h=new RegExp(/[\r\n]+/g);i.supportsColor=Ma().supportsColor,typeof i.enabled>"u"&&(i.enabled=i.supportsColor()!==!1),i.enable=function(){i.enabled=!0},i.disable=function(){i.enabled=!1},i.stripColors=i.strip=function(a){return(""+a).replace(/\x1B\[\d+m/g,"")},i.stylize=function(a,l){if(!i.enabled)return a+"";var s=O[l];return!s&&l in i?i[l](a):s.open+a+s.close};var d=/[|\\{}()[\]^$+*?.]/g,u=function(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(d,"\\$&")};function o(a){var l=function s(){return R.apply(s,arguments)};return l._styles=a,l.__proto__=P,l}var g=(function(){var a={};return O.grey=O.gray,Object.keys(O).forEach(function(l){O[l].closeRe=new RegExp(u(O[l].close),"g"),a[l]={get:function(){return o(this._styles.concat(l))}}}),a})(),P=m(function(){},g);function R(){var a=Array.prototype.slice.call(arguments),l=a.map(function(x){return x!=null&&x.constructor===String?x:v.inspect(x)}).join(" ");if(!i.enabled||!l)return l;for(var s=l.indexOf(`
@@ -1 +1 @@
1
- import{f as n}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as f}from"./winston-1qzyIKCb-DGNx4OWn.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-BYzfkJTL.js";import"./index-IWX-nwYi.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";function a(o,p){for(var e=0;e<p.length;e++){const t=p[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in o)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),z=a({__proto__:null,default:c},[m]);export{z as w};
1
+ import{f as n}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{y as f}from"./winston-1qzyIKCb-CpJAv47Z.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-BpmfkB-j.js";import"./index-CVqRSHuR.js";import"./index-ChvoNxcO.js";import"./preload-helper-BlTxHScW.js";import"./__vite-browser-external-DLjrMatA.js";import"./inherits_browser-nmOknR35-Bp0mvRSL.js";import"./index-6mKfgpcs-DsgiI2lM.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./index-69shuAsh-DF18H7zf.js";import"./index-BJBOx-Z---hbiLl7B.js";import"./index.browser-BHPvGrwi-6Mh8eUw-.js";import"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import"./_commonjs-dynamic-modules-DkOKMH7F.js";function a(o,p){for(var e=0;e<p.length;e++){const t=p[e];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in o)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(o,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),z=a({__proto__:null,default:c},[m]);export{z as w};
@@ -1,4 +1,4 @@
1
- import{r as ve}from"./util-BYzfkJTL.js";import{r as Qo,a as Se,b as Xo,c as ye}from"./index-IWX-nwYi.js";import{a as ea,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import{b as re}from"./_commonjs-dynamic-modules-DkOKMH7F.js";var gt={},De={},mt,tn;function ae(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
1
+ import{r as ve}from"./util-BpmfkB-j.js";import{r as Qo,a as Se,b as Xo,c as ye}from"./index-CVqRSHuR.js";import{a as ea,c as fe}from"./_commonjsHelpers-D6-XlEtG.js";import{b as re}from"./_commonjs-dynamic-modules-DkOKMH7F.js";var gt={},De={},mt,tn;function ae(){if(tn)return mt;tn=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},e(h)}function u(h,s,f){return Object.defineProperty(h,"prototype",{writable:!1}),h}function m(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function R(h,s,f){return s=y(s),g(h,v()?Reflect.construct(s,f||[],y(h).constructor):s.apply(h,f))}function g(h,s){if(s&&(e(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(h)}function c(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function p(h,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),s&&O(h,s)}function a(h){var s=typeof Map=="function"?new Map:void 0;return a=function(o){if(o===null||!b(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(o))return s.get(o);s.set(o,n)}function n(){return i(o,arguments,y(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,o)},a(h)}function i(h,s,f){if(v())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,s);var n=new(h.bind.apply(h,o));return f&&O(n,f.prototype),n}function v(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v=function(){return!!h})()}function b(h){try{return Function.toString.call(h).indexOf("[native code]")!==-1}catch{return typeof h=="function"}}function O(h,s){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,o){return f.__proto__=o,f},O(h,s)}function y(h){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},y(h)}var E=(function(h){function s(f){var o;return m(this,s),o=R(this,s,[`Format functions must be synchronous taking a two arguments: (info, opts)
2
2
  Found: `.concat(f.toString().split(`
3
3
  `)[0],`
4
4
  `)]),Error.captureStackTrace(o,s),o}return p(s,h),u(s)})(a(Error));return mt=function(h){if(h.length>2)throw new E(h);function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=o}s.prototype.transform=h;function f(o){return new s(o)}return f.Format=s,f},mt}var je={exports:{}},bt={exports:{}},_t={exports:{}},wt={exports:{}},rn;function ta(){return rn||(rn=1,(function(e){var u={};e.exports=u;var m={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(m).forEach(function(R){var g=m[R],c=u[R]=[];c.open="\x1B["+g[0]+"m",c.close="\x1B["+g[1]+"m"})})(wt)),wt.exports}var St,nn;function ra(){return nn||(nn=1,St=function(e,u){u=u||process.argv||[];var m=u.indexOf("--"),R=/^-{1,2}/.test(e)?"":"--",g=u.indexOf(R+e);return g!==-1&&(m===-1?!0:g<m)}),St}var Et,on;function na(){if(on)return Et;on=1;var e={},u=ra(),m=e,R=void 0;u("no-color")||u("no-colors")||u("color=false")?R=!1:(u("color")||u("colors")||u("color=true")||u("color=always"))&&(R=!0),"FORCE_COLOR"in m&&(R=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0);function g(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function c(a){if(R===!1)return 0;if(u("color=16m")||u("color=full")||u("color=truecolor"))return 3;if(u("color=256"))return 2;if(a&&!a.isTTY&&R!==!0)return 0;var i=R?1:0;if("CI"in m)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(b){return b in m})||m.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var v=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return v>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:(m.TERM==="dumb",i)}function p(a){var i=c(a);return g(i)}return Et={supportsColor:p,stdout:p(process.stdout),stderr:p(process.stderr)},Et}var Rt={exports:{}},an;function ia(){return an||(an=1,(function(e){e.exports=function(m,R){var g="";m=m||"Run the trap, drop the bass",m=m.split("");var c={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return m.forEach(function(p){p=p.toLowerCase();var a=c[p]||[" "],i=Math.floor(Math.random()*a.length);typeof c[p]<"u"?g+=c[p][i]:g+=p}),g}})(Rt)),Rt.exports}var Ot={exports:{}},un;function oa(){return un||(un=1,(function(e){e.exports=function(m,R){m=m||" he is here ";var g={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},c=[].concat(g.up,g.down,g.mid);function p(v){var b=Math.floor(Math.random()*v);return b}function a(v){var b=!1;return c.filter(function(O){b=O===v}),b}function i(v,b){var O="",y,E;b=b||{},b.up=typeof b.up<"u"?b.up:!0,b.mid=typeof b.mid<"u"?b.mid:!0,b.down=typeof b.down<"u"?b.down:!0,b.size=typeof b.size<"u"?b.size:"maxi",v=v.split("");for(E in v)if(!a(E)){switch(O=O+v[E],y={up:0,down:0,mid:0},b.size){case"mini":y.up=p(8),y.mid=p(2),y.down=p(8);break;case"maxi":y.up=p(16)+3,y.mid=p(4)+1,y.down=p(64)+3;break;default:y.up=p(8)+1,y.mid=p(6)/2,y.down=p(8)+1;break}var h=["up","mid","down"];for(var s in h)for(var f=h[s],o=0;o<=y[f];o++)b[f]&&(O=O+g[f][p(g[f].length)])}return O}return i(m,R)}})(Ot)),Ot.exports}var Pt={exports:{}},sn;function aa(){return sn||(sn=1,(function(e){e.exports=function(u){return function(m,R,g){if(m===" ")return m;switch(R%3){case 0:return u.red(m);case 1:return u.white(m);case 2:return u.blue(m)}}}})(Pt)),Pt.exports}var Tt={exports:{}},fn;function ua(){return fn||(fn=1,(function(e){e.exports=function(u){return function(m,R,g){return R%2===0?m:u.inverse(m)}}})(Tt)),Tt.exports}var jt={exports:{}},ln;function sa(){return ln||(ln=1,(function(e){e.exports=function(u){var m=["red","yellow","green","blue","magenta"];return function(R,g,c){return R===" "?R:u[m[g++%m.length]](R)}}})(jt)),jt.exports}var Mt={exports:{}},cn;function fa(){return cn||(cn=1,(function(e){e.exports=function(u){var m=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(R,g,c){return R===" "?R:u[m[Math.round(Math.random()*(m.length-2))]](R)}}})(Mt)),Mt.exports}var dn;function la(){return dn||(dn=1,(function(e){var u={};e.exports=u,u.themes={};var m=ve(),R=u.styles=ta(),g=Object.defineProperties,c=new RegExp(/[\r\n]+/g);u.supportsColor=na().supportsColor,typeof u.enabled>"u"&&(u.enabled=u.supportsColor()!==!1),u.enable=function(){u.enabled=!0},u.disable=function(){u.enabled=!1},u.stripColors=u.strip=function(s){return(""+s).replace(/\x1B\[\d+m/g,"")},u.stylize=function(f,o){if(!u.enabled)return f+"";var n=R[o];return!n&&o in u?u[o](f):n.open+f+n.close};var p=/[|\\{}()[\]^$+*?.]/g,a=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(p,"\\$&")};function i(s){var f=function o(){return O.apply(o,arguments)};return f._styles=s,f.__proto__=b,f}var v=(function(){var s={};return R.grey=R.gray,Object.keys(R).forEach(function(f){R[f].closeRe=new RegExp(a(R[f].close),"g"),s[f]={get:function(){return i(this._styles.concat(f))}}}),s})(),b=g(function(){},v);function O(){var s=Array.prototype.slice.call(arguments),f=s.map(function(_){return _!=null&&_.constructor===String?_:m.inspect(_)}).join(" ");if(!u.enabled||!f)return f;for(var o=f.indexOf(`
@@ -1 +1 @@
1
- import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{c as f}from"./winston-D4mJsFB6.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
1
+ import{g as a}from"./_commonjsHelpers-D6-XlEtG.js";import{c as f}from"./winston-TpBd5T0y.js";function c(r,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),l=c({__proto__:null,default:p},[i]);export{l as w};
package/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  <link rel="preconnect" href="https://fonts.googleapis.com">
11
11
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12
12
  <link href="https://fonts.googleapis.com/css2?family=Oxanium:wght@200..800&display=swap" rel="stylesheet">
13
- <script type="module" crossorigin src="/assets/index-IWX-nwYi.js"></script>
13
+ <script type="module" crossorigin src="/assets/index-CVqRSHuR.js"></script>
14
14
  <link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-D6-XlEtG.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/index-ChvoNxcO.js">
16
16
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-BlTxHScW.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlang/lstudio",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [