@stacksjs/buddy 0.70.21 → 0.70.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-am6xbcgg.js → chunk-0ddnkwwh.js} +1 -1
- package/dist/{chunk-hjdz5p2e.js → chunk-0x2p8v0y.js} +2 -2
- package/dist/{chunk-fk8jrqrt.js → chunk-10x00s2d.js} +1 -1
- package/dist/chunk-1db0j2x1.js +2 -0
- package/dist/{chunk-9j2yq17h.js → chunk-3aav7z7p.js} +1 -1
- package/dist/chunk-3q6hnzy0.js +2 -0
- package/dist/{chunk-2pj0cr49.js → chunk-5asbctb1.js} +1 -1
- package/dist/chunk-6ct1erv4.js +1 -0
- package/dist/{chunk-tndmgyk5.js → chunk-83fm0fkc.js} +1 -1
- package/dist/chunk-85qckawc.js +10 -0
- package/dist/{chunk-j2vy37bj.js → chunk-8yy9tk7n.js} +2 -2
- package/dist/{chunk-qgs8ygf0.js → chunk-9db6arkz.js} +159 -159
- package/dist/{chunk-68apz1e2.js → chunk-af959jta.js} +1 -1
- package/dist/chunk-caqr6vy3.js +2 -0
- package/dist/{chunk-z4zm45jz.js → chunk-ct356ajd.js} +1 -1
- package/dist/{chunk-ks9kq37e.js → chunk-f7vye9sd.js} +1 -1
- package/dist/chunk-fdxzeydh.js +1 -0
- package/dist/{chunk-x46hz7dc.js → chunk-fshxe4zp.js} +1 -1
- package/dist/{chunk-d9bheak7.js → chunk-gx994ec4.js} +2 -2
- package/dist/chunk-h124zbs5.js +6 -0
- package/dist/{chunk-whp9hjd8.js → chunk-jex4n4zt.js} +1 -1
- package/dist/chunk-nhsag58c.js +2 -0
- package/dist/{chunk-cptthhq1.js → chunk-nrk7cdfz.js} +2 -2
- package/dist/{chunk-2ddgyqnt.js → chunk-p9h1e4xh.js} +2 -2
- package/dist/chunk-qn0s5yy0.js +5 -0
- package/dist/{chunk-88nz529r.js → chunk-qw71q60g.js} +1 -1
- package/dist/chunk-tcf9cf6h.js +3 -0
- package/dist/{chunk-dmewpnnj.js → chunk-v10ahksj.js} +1 -1
- package/dist/{chunk-nec9r4e3.js → chunk-vcq7jtzy.js} +1 -1
- package/dist/{chunk-czbsbg0s.js → chunk-vsgj9f0h.js} +1 -1
- package/dist/{chunk-x0ahr107.js → chunk-wwzkw4by.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -2
- package/dist/chunk-29rpwqgr.js +0 -1
- package/dist/chunk-7v1e78ya.js +0 -2
- package/dist/chunk-90stqnfr.js +0 -6
- package/dist/chunk-dcgjjy48.js +0 -3
- package/dist/chunk-p4y8yzm3.js +0 -2
- package/dist/chunk-qwdsyzdj.js +0 -1
- package/dist/chunk-ran3mnve.js +0 -2
- package/dist/chunk-tr3hrxn5.js +0 -2
- package/dist/chunk-vm9jcwg8.js +0 -5
- package/dist/chunk-xn1pvpj0.js +0 -10
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Rc as A}from"./chunk-0x2p8v0y.js";import{Sc as C}from"./chunk-nrk7cdfz.js";import{Tc as _}from"./chunk-5asbctb1.js";var S=_(A(),1),p=_(C(),1),N="AWS_ACCESS_KEY_ID",a="AWS_SECRET_ACCESS_KEY",i="AWS_SESSION_TOKEN",I="AWS_CREDENTIAL_EXPIRATION",d="AWS_CREDENTIAL_SCOPE",v="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[N],r=process.env[a],n=process.env[i],s=process.env[I],t=process.env[d],E=process.env[v];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new p.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{T as fromEnv,i as ENV_SESSION,a as ENV_SECRET,N as ENV_KEY,I as ENV_EXPIRATION,d as ENV_CREDENTIAL_SCOPE,v as ENV_ACCOUNT_ID};export{N as Oc,a as Pc,T as Qc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ia as gr,Ja as jr,Ka as nr,La as ir,Ma as Ir,Na as ar,Oa as Se,Pa as fr,Qa as kr,Ra as Nr,Sa as we,Ta as wr,Ua as Ne,Va as Cr,Wa as Ar,Xa as Gr,Ya as Hr,Za as Lr,_a as mr}from"./chunk-tcf9cf6h.js";import{oc as Oe,pc as $r,qc as B,rc as Tr,sc as E,tc as w}from"./chunk-8yy9tk7n.js";import{Bc as Mr,vc as hr,yc as Pr,zc as Sr}from"./chunk-85qckawc.js";import"./chunk-nhsag58c.js";import"./chunk-0x2p8v0y.js";import"./chunk-nrk7cdfz.js";import{Vc as d}from"./chunk-5asbctb1.js";var H=d((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.resolveHttpAuthSchemeConfig=X.defaultSSOOIDCHttpAuthSchemeProvider=X.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var xe=w(),K=Oe(),ce=async(e,r,l)=>{return{operation:K.getSmithyContext(r).operation,region:await K.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};X.defaultSSOOIDCHttpAuthSchemeParametersProvider=ce;function oe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}var pe=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(ue(e));break}default:r.push(oe(e))}return r};X.defaultSSOOIDCHttpAuthSchemeProvider=pe;var te=(e)=>{let r=xe.resolveAwsSdkSigV4Config(e);return Object.assign(r,{})};X.resolveHttpAuthSchemeConfig=te});var p=d((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.ruleSet=void 0;var m="required",S="fn",N="argv",U="ref",J=!0,Q="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",L="PartitionResult",V="getAttr",Z={[m]:!1,type:"String"},$={[m]:!0,default:!1,type:"Boolean"},h={[U]:"Endpoint"},O={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},x={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},g={[S]:V,[N]:[{[U]:L},"supportsFIPS"]},c={[U]:L},j={[S]:k,[N]:[!0,{[S]:V,[N]:[c,"supportsDualStack"]}]},n=[O],a=[x],f=[{[U]:"Region"}],lr={version:"1.0",parameters:{Region:Z,UseDualStack:$,UseFIPS:$,Endpoint:Z},rules:[{conditions:[{[S]:Q,[N]:[h]}],rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:a,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:h,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:Q,[N]:f}],rules:[{conditions:[{[S]:"aws.partition",[N]:f,assign:L}],rules:[{conditions:[O,x],rules:[{conditions:[{[S]:k,[N]:[J,g]},j],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:n,rules:[{conditions:[{[S]:k,[N]:[g,J]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:V,[N]:[c,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:a,rules:[{conditions:[j],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};o.ruleSet=lr});var re=d((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.defaultEndpointResolver=void 0;var vr=Ir(),b=ir(),Dr=p(),qr=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yr=(e,r={})=>{return qr.get(e,()=>b.resolveEndpoint(Dr.ruleSet,{endpointParams:e,logger:r.logger}))};t.defaultEndpointResolver=yr;b.customEndpointFunctions.aws=vr.awsEndpointFunctions});var De=d((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRuntimeConfig=void 0;var Rr=w(),Er=B(),sr=E(),dr=Nr(),le=Sr(),ie=Pr(),Fr=H(),_r=re(),Ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??le.fromBase64,base64Encoder:e?.base64Encoder??le.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_r.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fr.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Rr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Er.NoAuthSigner}],logger:e?.logger??new sr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??dr.parseUrl,utf8Decoder:e?.utf8Decoder??ie.fromUtf8,utf8Encoder:e?.utf8Encoder??ie.toUtf8}};Ie.getRuntimeConfig=Ur});var se=d((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.getRuntimeConfig=void 0;var Vr=Tr(),br=Vr.__importDefault(Cr()),Br=w(),qe=Ar(),C=Se(),Wr=Gr(),ye=Ne(),M=kr(),Pe=Mr(),Yr=Hr(),Kr=wr(),Xr=De(),zr=E(),Jr=Lr(),Qr=E(),Zr=(e)=>{Qr.emitWarningIfUnsupportedVersion(process.version);let r=Jr.resolveDefaultsModeConfig(e),l=()=>r().then(zr.loadConfigsForDefaultMode),v=Xr.getRuntimeConfig(e);Br.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Yr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??qe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Pe.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Kr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Pe.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(qe.NODE_APP_ID_CONFIG_OPTIONS,I)}};Re.getRuntimeConfig=Zr});var Wl=d((Ql,je)=>{var{defineProperty:A,getOwnPropertyDescriptor:Or,getOwnPropertyNames:xr}=Object,cr=Object.prototype.hasOwnProperty,D=(e,r)=>A(e,"name",{value:r,configurable:!0}),or=(e,r)=>{for(var l in r)A(e,l,{get:r[l],enumerable:!0})},ur=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of xr(r))if(!cr.call(e,I)&&I!==l)A(e,I,{get:()=>r[I],enumerable:!(v=Or(r,I))||v.enumerable})}return e},pr=(e)=>ur(A({},"__esModule",{value:!0}),e),Ce={};or(Ce,{$Command:()=>He.Command,AccessDeniedException:()=>Le,AuthorizationPendingException:()=>Ve,CreateTokenCommand:()=>he,CreateTokenRequestFilterSensitiveLog:()=>be,CreateTokenResponseFilterSensitiveLog:()=>Be,ExpiredTokenException:()=>We,InternalServerException:()=>Ye,InvalidClientException:()=>Ke,InvalidGrantException:()=>Xe,InvalidRequestException:()=>ze,InvalidScopeException:()=>Je,SSOOIDC:()=>ge,SSOOIDCClient:()=>Ge,SSOOIDCServiceException:()=>y,SlowDownException:()=>Qe,UnauthorizedClientException:()=>Ze,UnsupportedGrantTypeException:()=>$e,__Client:()=>Ae.Client});je.exports=pr(Ce);var de=gr(),tr=jr(),el=nr(),Fe=ar(),rl=Se(),W=B(),ll=fr(),il=we(),_e=Ne(),Ae=E(),Ue=H(),Il=D((e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),vl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Dl=se(),Me=mr(),Te=hr(),ke=E(),ql=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((G)=>G.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),yl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),Pl=D((e,r)=>{let l=Object.assign(Me.getAwsRegionExtensionConfiguration(e),ke.getDefaultExtensionConfiguration(e),Te.getHttpHandlerExtensionConfiguration(e),ql(e));return r.forEach((v)=>v.configure(l)),Object.assign(e,Me.resolveAwsRegionExtensionConfiguration(l),ke.resolveDefaultRuntimeConfig(l),Te.resolveHttpHandlerRuntimeConfig(l),yl(l))},"resolveRuntimeExtensions"),Ge=class extends Ae.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=Dl.getRuntimeConfig(e||{});super(r);this.initConfig=r;let l=Il(r),v=Fe.resolveUserAgentConfig(l),I=_e.resolveRetryConfig(v),q=rl.resolveRegionConfig(I),G=de.resolveHostHeaderConfig(q),ne=il.resolveEndpointConfig(G),ae=Ue.resolveHttpAuthSchemeConfig(ne),fe=Pl(ae,e?.extensions||[]);this.config=fe,this.middlewareStack.use(Fe.getUserAgentPlugin(this.config)),this.middlewareStack.use(_e.getRetryPlugin(this.config)),this.middlewareStack.use(ll.getContentLengthPlugin(this.config)),this.middlewareStack.use(de.getHostHeaderPlugin(this.config)),this.middlewareStack.use(tr.getLoggerPlugin(this.config)),this.middlewareStack.use(el.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(W.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ue.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(me)=>new W.DefaultIdentityProviderConfig({"aws.auth#sigv4":me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(W.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Sl=E(),Nl=we(),Rl=$r(),He=E(),T=E(),El=E(),y=class e extends El.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},Le=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ve=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},be=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Be=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),We=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ye=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ke=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Y=w(),sl=B(),i=E(),dl=D(async(e,r)=>{let l=sl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),Fl=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return _l(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await Y.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),_l=D(async(e,r)=>{let l={...e,body:await Y.parseJsonErrorBody(e.body,r)},v=Y.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ml(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Tl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await kl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await wl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cl(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Al(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Gl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Hl(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ll(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Vl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await bl(l,r);default:let I=l.body;return Ul({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ul=i.withBaseException(y),Ml=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Le({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ve({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new We({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ye({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),he=class extends He.Command.classBuilder().ep(vl).m(function(e,r,l,v){return[Rl.getSerdePlugin(l,this.serialize,this.deserialize),Nl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(be,Be).ser(dl).de(Fl).build(){static{D(this,"CreateTokenCommand")}},Bl={CreateTokenCommand:he},ge=class extends Ge{static{D(this,"SSOOIDC")}};Sl.createAggregatedClient(Bl,ge)});export default Wl();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{G as D,i as C}from"./chunk-
|
|
2
|
+
import{G as D,i as C}from"./chunk-jex4n4zt.js";import"./chunk-5asbctb1.js";class E{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(c)=>this.replacement=c}}replace(c,r,f,s){if(c&&r)if(f!=null)c[r][f]=s;else c[r]=s}remove(c,r,f){if(c&&r)if(f!==null&&f!==void 0)c[r].splice(f,1);else delete c[r]}}class w extends E{constructor(c,r){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(f)=>this.replacement=f},this.enter=c,this.leave=r}visit(c,r,f,s){if(c){if(this.enter){let i=this.should_skip,I=this.should_remove,l=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let t=this.should_skip,m=this.should_remove;if(this.should_skip=i,this.should_remove=I,this.replacement=l,t)return c;if(m)return null}let a;for(a in c){let i=c[a];if(i&&typeof i==="object"){if(Array.isArray(i)){let I=i;for(let l=0;l<I.length;l+=1){let t=I[l];if(e(t)){if(!this.visit(t,c,a,l))l--}}}else if(e(i))this.visit(i,c,a,null)}}if(this.leave){let i=this.replacement,I=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let l=this.should_remove;if(this.replacement=i,this.should_remove=I,l)return null}}return c}}function e(c){return c!==null&&typeof c==="object"&&"type"in c&&typeof c.type==="string"}function b(c,{enter:r,leave:f}){return new w(r,f).visit(c,null)}async function G(c,r,f){let s=D(c),a=await r.getImportMap(),i=[],I=f?.autoImport!==!1,l=f?.transformVirtualImports!==!1&&r.options.virtualImports?.length;if(I||l){let t=C(s.original,{sourceType:"module",ecmaVersion:"latest",locations:!0}),m=y(a,r.options.virtualImports),u=V(t,l?m.walk:{});if(I){let S=u.unmatched;i.push(...Array.from(S).map((g)=>{let h=a.get(g);if(h&&!h.disabled)return h;return null}).filter(Boolean));for(let g of r.addons)i=await g.matchImports?.call(r,S,i)||i}m.ranges.forEach(([S,g])=>{s.remove(S,g)}),i.push(...m.imports)}return{s,strippedCode:c.toString(),matchedImports:i,isCJSContext:!1,firstOccurrence:0}}function V(c,r){let f=[],s=void 0,a=[];function i(t){s={node:t,parent:s,declarations:new Set,references:new Set},f.push(s),a.push(s)}function I(t){if(a.pop()?.node!==t)throw new Error("Scope mismatch");s=a[a.length-1]}i(void 0),b(c,{enter(t,m,u,S){switch(r?.enter?.call(this,t,m,u,S),t.type){case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":s.declarations.add(t.local.name);return;case"FunctionDeclaration":case"ClassDeclaration":if(t.id)s.declarations.add(t.id.name);return;case"VariableDeclarator":if(t.id.type==="Identifier")s.declarations.add(t.id.name);else b(t.id,{enter(g){if(g.type==="ObjectPattern")g.properties.forEach((h)=>{if(h.type==="Property"&&h.value.type==="Identifier")s.declarations.add(h.value.name);else if(h.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)});else if(g.type==="ArrayPattern")g.elements.forEach((h)=>{if(h?.type==="Identifier")s.declarations.add(h.name);if(h?.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)})}});return;case"BlockStatement":i(t);return;case"Identifier":switch(m?.type){case"CallExpression":if(m.callee===t||m.arguments.includes(t))s.references.add(t.name);return;case"MemberExpression":if(m.object===t)s.references.add(t.name);return;case"VariableDeclarator":if(m.init===t)s.references.add(t.name);return;case"SpreadElement":if(m.argument===t)s.references.add(t.name);return;case"ClassDeclaration":if(m.superClass===t)s.references.add(t.name);return;case"Property":if(m.value===t)s.references.add(t.name);return;case"TemplateLiteral":if(m.expressions.includes(t))s.references.add(t.name);return;case"AssignmentExpression":if(m.right===t)s.references.add(t.name);return;case"IfStatement":case"WhileStatement":case"DoWhileStatement":if(m.test===t)s.references.add(t.name);return;case"SwitchStatement":if(m.discriminant===t)s.references.add(t.name);return}if(m?.type.includes("Expression"))s.references.add(t.name)}},leave(t,m,u,S){switch(r?.leave?.call(this,t,m,u,S),t.type){case"BlockStatement":I(t)}}});let l=new Set;for(let t of f)for(let m of t.references){let u=!1,S=t;while(S){if(S.declarations.has(m)){u=!0;break}S=S?.parent}if(!u)l.add(m)}return{unmatched:l,scopes:f}}function y(c,r=[]){let f=[],s=[];return{imports:f,ranges:s,walk:{enter(a){if(a.type==="ImportDeclaration"){if(r.includes(a.source.value))s.push([a.start,a.end]),a.specifiers.forEach((i)=>{if(i.type==="ImportSpecifier"&&i.imported.type==="Identifier"){let I=c.get(i.imported.name);if(!I)throw new Error(`[unimport] failed to find "${i.imported.name}" imported from "${a.source.value}"`);f.push({from:I.from,name:I.name,as:i.local.name})}})}}}}}export{V as traveseScopes,G as detectImportsAcorn,y as createVirtualImportsAcronWalker};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Tc as a}from"./chunk-2pj0cr49.js";var s=a((j1,j$)=>{var U$={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},h$={...U$,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},A$={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};j$.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:A$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars($){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${$.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars($){return $===!0?h$:U$}}});var e=a((c$)=>{var{REGEX_BACKSLASH:d$,REGEX_REMOVE_BACKSLASH:k$,REGEX_SPECIAL_CHARS:b$,REGEX_SPECIAL_CHARS_GLOBAL:v$}=s();c$.isObject=($)=>$!==null&&typeof $==="object"&&!Array.isArray($);c$.hasRegexChars=($)=>b$.test($);c$.isRegexChar=($)=>$.length===1&&c$.hasRegexChars($);c$.escapeRegex=($)=>$.replace(v$,"\\$1");c$.toPosixSlashes=($)=>$.replace(d$,"/");c$.isWindows=()=>{if(typeof navigator!=="undefined"&&navigator.platform){let $=navigator.platform.toLowerCase();return $==="win32"||$==="windows"}if(typeof process!=="undefined"&&process.platform)return process.platform==="win32";return!1};c$.removeBackslashes=($)=>{return $.replace(k$,(Y)=>{return Y==="\\"?"":Y})};c$.escapeLast=($,Y,z)=>{let j=$.lastIndexOf(Y,z);if(j===-1)return $;if($[j-1]==="\\")return c$.escapeLast($,Y,j-1);return`${$.slice(0,j)}\\${$.slice(j)}`};c$.removePrefix=($,Y={})=>{let z=$;if(z.startsWith("./"))z=z.slice(2),Y.prefix="./";return z};c$.wrapOutput=($,Y={},z={})=>{let j=z.contains?"":"^",W=z.contains?"":"$",P=`${j}(?:${$})${W}`;if(Y.negated===!0)P=`(?:^(?!${P}).*$)`;return P};c$.basename=($,{windows:Y}={})=>{let z=$.split(Y?/[\\/]/:"/"),j=z[z.length-1];if(j==="")return z[z.length-2];return j}});var C$=a((B1,I$)=>{var K$=e(),{CHAR_ASTERISK:V$,CHAR_AT:e$,CHAR_BACKWARD_SLASH:t,CHAR_COMMA:t$,CHAR_DOT:Y$,CHAR_EXCLAMATION_MARK:W$,CHAR_FORWARD_SLASH:N$,CHAR_LEFT_CURLY_BRACE:y$,CHAR_LEFT_PARENTHESES:F$,CHAR_LEFT_SQUARE_BRACKET:$1,CHAR_PLUS:z1,CHAR_QUESTION_MARK:G$,CHAR_RIGHT_CURLY_BRACE:J1,CHAR_RIGHT_PARENTHESES:f$,CHAR_RIGHT_SQUARE_BRACKET:Z1}=s(),M$=($)=>{return $===N$||$===t},D$=($)=>{if($.isPrefix!==!0)$.depth=$.isGlobstar?1/0:1},q1=($,Y)=>{let z=Y||{},j=$.length-1,W=z.parts===!0||z.scanToEnd===!0,P=[],F=[],B=[],M=$,E=-1,K=0,S=0,x=!1,A=!1,G=!1,T=!1,r=!1,v=!1,D=!1,c=!1,n=!1,R=!1,g=0,d,y,X={value:"",depth:0,isGlob:!1},q=()=>E>=j,h=()=>M.charCodeAt(E+1),L=()=>{return d=y,M.charCodeAt(++E)};while(E<j){y=L();let f;if(y===t){if(D=X.backslashes=!0,y=L(),y===y$)v=!0;continue}if(v===!0||y===y$){g++;while(q()!==!0&&(y=L())){if(y===t){D=X.backslashes=!0,L();continue}if(y===y$){g++;continue}if(v!==!0&&y===Y$&&(y=L())===Y$){if(x=X.isBrace=!0,G=X.isGlob=!0,R=!0,W===!0)continue;break}if(v!==!0&&y===t$){if(x=X.isBrace=!0,G=X.isGlob=!0,R=!0,W===!0)continue;break}if(y===J1){if(g--,g===0){v=!1,x=X.isBrace=!0,R=!0;break}}}if(W===!0)continue;break}if(y===N$){if(P.push(E),F.push(X),X={value:"",depth:0,isGlob:!1},R===!0)continue;if(d===Y$&&E===K+1){K+=2;continue}S=E+1;continue}if(z.noext!==!0){if((y===z1||y===e$||y===V$||y===G$||y===W$)===!0&&h()===F$){if(G=X.isGlob=!0,T=X.isExtglob=!0,R=!0,y===W$&&E===K)n=!0;if(W===!0){while(q()!==!0&&(y=L())){if(y===t){D=X.backslashes=!0,y=L();continue}if(y===f$){G=X.isGlob=!0,R=!0;break}}continue}break}}if(y===V$){if(d===V$)r=X.isGlobstar=!0;if(G=X.isGlob=!0,R=!0,W===!0)continue;break}if(y===G$){if(G=X.isGlob=!0,R=!0,W===!0)continue;break}if(y===$1){while(q()!==!0&&(f=L())){if(f===t){D=X.backslashes=!0,L();continue}if(f===Z1){A=X.isBracket=!0,G=X.isGlob=!0,R=!0;break}}if(W===!0)continue;break}if(z.nonegate!==!0&&y===W$&&E===K){c=X.negated=!0,K++;continue}if(z.noparen!==!0&&y===F$){if(G=X.isGlob=!0,W===!0){while(q()!==!0&&(y=L())){if(y===F$){D=X.backslashes=!0,y=L();continue}if(y===f$){R=!0;break}}continue}break}if(G===!0){if(R=!0,W===!0)continue;break}}if(z.noext===!0)T=!1,G=!1;let O=M,J="",Z="";if(K>0)J=M.slice(0,K),M=M.slice(K),S-=K;if(O&&G===!0&&S>0)O=M.slice(0,S),Z=M.slice(S);else if(G===!0)O="",Z=M;else O=M;if(O&&O!==""&&O!=="/"&&O!==M){if(M$(O.charCodeAt(O.length-1)))O=O.slice(0,-1)}if(z.unescape===!0){if(Z)Z=K$.removeBackslashes(Z);if(O&&D===!0)O=K$.removeBackslashes(O)}let k={prefix:J,input:$,start:K,base:O,glob:Z,isBrace:x,isBracket:A,isGlob:G,isExtglob:T,isGlobstar:r,negated:c,negatedExtglob:n};if(z.tokens===!0){if(k.maxDepth=0,!M$(y))F.push(X);k.tokens=F}if(z.parts===!0||z.tokens===!0){let f;for(let I=0;I<P.length;I++){let i=f?f+1:K,b=P[I],u=$.slice(i,b);if(z.tokens){if(I===0&&K!==0)F[I].isPrefix=!0,F[I].value=J;else F[I].value=u;D$(F[I]),k.maxDepth+=F[I].depth}if(I!==0||u!=="")B.push(u);f=b}if(f&&f+1<$.length){let I=$.slice(f+1);if(B.push(I),z.tokens)F[F.length-1].value=I,D$(F[F.length-1]),k.maxDepth+=F[F.length-1].depth}k.slashes=P,k.parts=B}return k};I$.exports=q1});var x$=a((K1,H$)=>{var Z$=s(),l=e(),{MAX_LENGTH:q$,POSIX_REGEX_SOURCE:w1,REGEX_NON_SPECIAL_CHARS:V1,REGEX_SPECIAL_CHARS_BACKREF:Y1,REPLACEMENTS:O$}=Z$,W1=($,Y)=>{if(typeof Y.expandRange==="function")return Y.expandRange(...$,Y);$.sort();let z=`[${$.join("-")}]`;try{new RegExp(z)}catch(j){return $.map((W)=>l.escapeRegex(W)).join("..")}return z},o=($,Y)=>{return`Missing ${$}: "${Y}" - use "\\\\${Y}" to match literal characters`},Q$=($,Y)=>{if(typeof $!=="string")throw new TypeError("Expected a string");$=O$[$]||$;let z={...Y},j=typeof z.maxLength==="number"?Math.min(q$,z.maxLength):q$,W=$.length;if(W>j)throw new SyntaxError(`Input length: ${W}, exceeds maximum allowed length: ${j}`);let P={type:"bos",value:"",output:z.prepend||""},F=[P],B=z.capture?"":"?:",M=Z$.globChars(z.windows),E=Z$.extglobChars(M),{DOT_LITERAL:K,PLUS_LITERAL:S,SLASH_LITERAL:x,ONE_CHAR:A,DOTS_SLASH:G,NO_DOT:T,NO_DOT_SLASH:r,NO_DOTS_SLASH:v,QMARK:D,QMARK_NO_DOT:c,STAR:n,START_ANCHOR:R}=M,g=(V)=>{return`(${B}(?:(?!${R}${V.dot?G:K}).)*?)`},d=z.dot?"":T,y=z.dot?D:c,X=z.bash===!0?g(z):n;if(z.capture)X=`(${X})`;if(typeof z.noext==="boolean")z.noextglob=z.noext;let q={input:$,index:-1,start:0,dot:z.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:F};$=l.removePrefix($,q),W=$.length;let h=[],L=[],O=[],J=P,Z,k=()=>q.index===W-1,f=q.peek=(V=1)=>$[q.index+V],I=q.advance=()=>$[++q.index]||"",i=()=>$.slice(q.index+1),b=(V="",N=0)=>{q.consumed+=V,q.index+=N},u=(V)=>{q.output+=V.output!=null?V.output:V.value,b(V.value)},R$=()=>{let V=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))I(),q.start++,V++;if(V%2===0)return!1;return q.negated=!0,q.start++,!0},$$=(V)=>{q[V]++,O.push(V)},p=(V)=>{q[V]--,O.pop()},U=(V)=>{if(J.type==="globstar"){let N=q.braces>0&&(V.type==="comma"||V.type==="brace"),w=V.extglob===!0||h.length&&(V.type==="pipe"||V.type==="paren");if(V.type!=="slash"&&V.type!=="paren"&&!N&&!w)q.output=q.output.slice(0,-J.output.length),J.type="star",J.value="*",J.output=X,q.output+=J.output}if(h.length&&V.type!=="paren")h[h.length-1].inner+=V.value;if(V.value||V.output)u(V);if(J&&J.type==="text"&&V.type==="text"){J.output=(J.output||J.value)+V.value,J.value+=V.value;return}V.prev=J,F.push(V),J=V},z$=(V,N)=>{let w={...E[N],conditions:1,inner:""};w.prev=J,w.parens=q.parens,w.output=q.output;let Q=(z.capture?"(":"")+w.open;$$("parens"),U({type:V,value:N,output:q.output?"":A}),U({type:"paren",extglob:!0,value:I(),output:Q}),h.push(w)},_$=(V)=>{let N=V.close+(z.capture?")":""),w;if(V.type==="negate"){let Q=X;if(V.inner&&V.inner.length>1&&V.inner.includes("/"))Q=g(z);if(Q!==X||k()||/^\)+$/.test(i()))N=V.close=`)$))${Q}`;if(V.inner.includes("*")&&(w=i())&&/^\.[^\\/.]+$/.test(w)){let C=Q$(w,{...Y,fastpaths:!1}).output;N=V.close=`)${C})${Q})`}if(V.prev.type==="bos")q.negatedExtglob=!0}U({type:"paren",extglob:!0,value:Z,output:N}),p("parens")};if(z.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test($)){let V=!1,N=$.replace(Y1,(w,Q,C,_,m,w$)=>{if(_==="\\")return V=!0,w;if(_==="?"){if(Q)return Q+_+(m?D.repeat(m.length):"");if(w$===0)return y+(m?D.repeat(m.length):"");return D.repeat(C.length)}if(_===".")return K.repeat(C.length);if(_==="*"){if(Q)return Q+_+(m?X:"");return X}return Q?w:`\\${w}`});if(V===!0)if(z.unescape===!0)N=N.replace(/\\/g,"");else N=N.replace(/\\+/g,(w)=>{return w.length%2===0?"\\\\":w?"\\":""});if(N===$&&z.contains===!0)return q.output=$,q;return q.output=l.wrapOutput(N,q,Y),q}while(!k()){if(Z=I(),Z==="\x00")continue;if(Z==="\\"){let w=f();if(w==="/"&&z.bash!==!0)continue;if(w==="."||w===";")continue;if(!w){Z+="\\",U({type:"text",value:Z});continue}let Q=/^\\+/.exec(i()),C=0;if(Q&&Q[0].length>2){if(C=Q[0].length,q.index+=C,C%2!==0)Z+="\\"}if(z.unescape===!0)Z=I();else Z+=I();if(q.brackets===0){U({type:"text",value:Z});continue}}if(q.brackets>0&&(Z!=="]"||J.value==="["||J.value==="[^")){if(z.posix!==!1&&Z===":"){let w=J.value.slice(1);if(w.includes("[")){if(J.posix=!0,w.includes(":")){let Q=J.value.lastIndexOf("["),C=J.value.slice(0,Q),_=J.value.slice(Q+2),m=w1[_];if(m){if(J.value=C+m,q.backtrack=!0,I(),!P.output&&F.indexOf(J)===1)P.output=A;continue}}}}if(Z==="["&&f()!==":"||Z==="-"&&f()==="]")Z=`\\${Z}`;if(Z==="]"&&(J.value==="["||J.value==="[^"))Z=`\\${Z}`;if(z.posix===!0&&Z==="!"&&J.value==="[")Z="^";J.value+=Z,u({value:Z});continue}if(q.quotes===1&&Z!=='"'){Z=l.escapeRegex(Z),J.value+=Z,u({value:Z});continue}if(Z==='"'){if(q.quotes=q.quotes===1?0:1,z.keepQuotes===!0)U({type:"text",value:Z});continue}if(Z==="("){$$("parens"),U({type:"paren",value:Z});continue}if(Z===")"){if(q.parens===0&&z.strictBrackets===!0)throw new SyntaxError(o("opening","("));let w=h[h.length-1];if(w&&q.parens===w.parens+1){_$(h.pop());continue}U({type:"paren",value:Z,output:q.parens?")":"\\)"}),p("parens");continue}if(Z==="["){if(z.nobracket===!0||!i().includes("]")){if(z.nobracket!==!0&&z.strictBrackets===!0)throw new SyntaxError(o("closing","]"));Z=`\\${Z}`}else $$("brackets");U({type:"bracket",value:Z});continue}if(Z==="]"){if(z.nobracket===!0||J&&J.type==="bracket"&&J.value.length===1){U({type:"text",value:Z,output:`\\${Z}`});continue}if(q.brackets===0){if(z.strictBrackets===!0)throw new SyntaxError(o("opening","["));U({type:"text",value:Z,output:`\\${Z}`});continue}p("brackets");let w=J.value.slice(1);if(J.posix!==!0&&w[0]==="^"&&!w.includes("/"))Z=`/${Z}`;if(J.value+=Z,u({value:Z}),z.literalBrackets===!1||l.hasRegexChars(w))continue;let Q=l.escapeRegex(J.value);if(q.output=q.output.slice(0,-J.value.length),z.literalBrackets===!0){q.output+=Q,J.value=Q;continue}J.value=`(${B}${Q}|${J.value})`,q.output+=J.value;continue}if(Z==="{"&&z.nobrace!==!0){$$("braces");let w={type:"brace",value:Z,output:"(",outputIndex:q.output.length,tokensIndex:q.tokens.length};L.push(w),U(w);continue}if(Z==="}"){let w=L[L.length-1];if(z.nobrace===!0||!w){U({type:"text",value:Z,output:Z});continue}let Q=")";if(w.dots===!0){let C=F.slice(),_=[];for(let m=C.length-1;m>=0;m--){if(F.pop(),C[m].type==="brace")break;if(C[m].type!=="dots")_.unshift(C[m].value)}Q=W1(_,z),q.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let C=q.output.slice(0,w.outputIndex),_=q.tokens.slice(w.tokensIndex);w.value=w.output="\\{",Z=Q="\\}",q.output=C;for(let m of _)q.output+=m.output||m.value}U({type:"brace",value:Z,output:Q}),p("braces"),L.pop();continue}if(Z==="|"){if(h.length>0)h[h.length-1].conditions++;U({type:"text",value:Z});continue}if(Z===","){let w=Z,Q=L[L.length-1];if(Q&&O[O.length-1]==="braces")Q.comma=!0,w="|";U({type:"comma",value:Z,output:w});continue}if(Z==="/"){if(J.type==="dot"&&q.index===q.start+1){q.start=q.index+1,q.consumed="",q.output="",F.pop(),J=P;continue}U({type:"slash",value:Z,output:x});continue}if(Z==="."){if(q.braces>0&&J.type==="dot"){if(J.value===".")J.output=K;let w=L[L.length-1];J.type="dots",J.output+=Z,J.value+=Z,w.dots=!0;continue}if(q.braces+q.parens===0&&J.type!=="bos"&&J.type!=="slash"){U({type:"text",value:Z,output:K});continue}U({type:"dot",value:Z,output:K});continue}if(Z==="?"){if(!(J&&J.value==="(")&&z.noextglob!==!0&&f()==="("&&f(2)!=="?"){z$("qmark",Z);continue}if(J&&J.type==="paren"){let Q=f(),C=Z;if(J.value==="("&&!/[!=<:]/.test(Q)||Q==="<"&&!/<([!=]|\w+>)/.test(i()))C=`\\${Z}`;U({type:"text",value:Z,output:C});continue}if(z.dot!==!0&&(J.type==="slash"||J.type==="bos")){U({type:"qmark",value:Z,output:c});continue}U({type:"qmark",value:Z,output:D});continue}if(Z==="!"){if(z.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){z$("negate",Z);continue}}if(z.nonegate!==!0&&q.index===0){R$();continue}}if(Z==="+"){if(z.noextglob!==!0&&f()==="("&&f(2)!=="?"){z$("plus",Z);continue}if(J&&J.value==="("||z.regex===!1){U({type:"plus",value:Z,output:S});continue}if(J&&(J.type==="bracket"||J.type==="paren"||J.type==="brace")||q.parens>0){U({type:"plus",value:Z});continue}U({type:"plus",value:S});continue}if(Z==="@"){if(z.noextglob!==!0&&f()==="("&&f(2)!=="?"){U({type:"at",extglob:!0,value:Z,output:""});continue}U({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let w=V1.exec(i());if(w)Z+=w[0],q.index+=w[0].length;U({type:"text",value:Z});continue}if(J&&(J.type==="globstar"||J.star===!0)){J.type="star",J.star=!0,J.value+=Z,J.output=X,q.backtrack=!0,q.globstar=!0,b(Z);continue}let V=i();if(z.noextglob!==!0&&/^\([^?]/.test(V)){z$("star",Z);continue}if(J.type==="star"){if(z.noglobstar===!0){b(Z);continue}let w=J.prev,Q=w.prev,C=w.type==="slash"||w.type==="bos",_=Q&&(Q.type==="star"||Q.type==="globstar");if(z.bash===!0&&(!C||V[0]&&V[0]!=="/")){U({type:"star",value:Z,output:""});continue}let m=q.braces>0&&(w.type==="comma"||w.type==="brace"),w$=h.length&&(w.type==="pipe"||w.type==="paren");if(!C&&w.type!=="paren"&&!m&&!w$){U({type:"star",value:Z,output:""});continue}while(V.slice(0,3)==="/**"){let J$=$[q.index+4];if(J$&&J$!=="/")break;V=V.slice(3),b("/**",3)}if(w.type==="bos"&&k()){J.type="globstar",J.value+=Z,J.output=g(z),q.output=J.output,q.globstar=!0,b(Z);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!_&&k()){q.output=q.output.slice(0,-(w.output+J.output).length),w.output=`(?:${w.output}`,J.type="globstar",J.output=g(z)+(z.strictSlashes?")":"|$)"),J.value+=Z,q.globstar=!0,q.output+=w.output+J.output,b(Z);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&V[0]==="/"){let J$=V[1]!==void 0?"|$":"";q.output=q.output.slice(0,-(w.output+J.output).length),w.output=`(?:${w.output}`,J.type="globstar",J.output=`${g(z)}${x}|${x}${J$})`,J.value+=Z,q.output+=w.output+J.output,q.globstar=!0,b(Z+I()),U({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&V[0]==="/"){J.type="globstar",J.value+=Z,J.output=`(?:^|${x}|${g(z)}${x})`,q.output=J.output,q.globstar=!0,b(Z+I()),U({type:"slash",value:"/",output:""});continue}q.output=q.output.slice(0,-J.output.length),J.type="globstar",J.output=g(z),J.value+=Z,q.output+=J.output,q.globstar=!0,b(Z);continue}let N={type:"star",value:Z,output:X};if(z.bash===!0){if(N.output=".*?",J.type==="bos"||J.type==="slash")N.output=d+N.output;U(N);continue}if(J&&(J.type==="bracket"||J.type==="paren")&&z.regex===!0){N.output=Z,U(N);continue}if(q.index===q.start||J.type==="slash"||J.type==="dot"){if(J.type==="dot")q.output+=r,J.output+=r;else if(z.dot===!0)q.output+=v,J.output+=v;else q.output+=d,J.output+=d;if(f()!=="*")q.output+=A,J.output+=A}U(N)}while(q.brackets>0){if(z.strictBrackets===!0)throw new SyntaxError(o("closing","]"));q.output=l.escapeLast(q.output,"["),p("brackets")}while(q.parens>0){if(z.strictBrackets===!0)throw new SyntaxError(o("closing",")"));q.output=l.escapeLast(q.output,"("),p("parens")}while(q.braces>0){if(z.strictBrackets===!0)throw new SyntaxError(o("closing","}"));q.output=l.escapeLast(q.output,"{"),p("braces")}if(z.strictSlashes!==!0&&(J.type==="star"||J.type==="bracket"))U({type:"maybe_slash",value:"",output:`${x}?`});if(q.backtrack===!0){q.output="";for(let V of q.tokens)if(q.output+=V.output!=null?V.output:V.value,V.suffix)q.output+=V.suffix}return q};Q$.fastpaths=($,Y)=>{let z={...Y},j=typeof z.maxLength==="number"?Math.min(q$,z.maxLength):q$,W=$.length;if(W>j)throw new SyntaxError(`Input length: ${W}, exceeds maximum allowed length: ${j}`);$=O$[$]||$;let{DOT_LITERAL:P,SLASH_LITERAL:F,ONE_CHAR:B,DOTS_SLASH:M,NO_DOT:E,NO_DOTS:K,NO_DOTS_SLASH:S,STAR:x,START_ANCHOR:A}=Z$.globChars(z.windows),G=z.dot?K:E,T=z.dot?S:E,r=z.capture?"":"?:",v={negated:!1,prefix:""},D=z.bash===!0?".*?":x;if(z.capture)D=`(${D})`;let c=(d)=>{if(d.noglobstar===!0)return D;return`(${r}(?:(?!${A}${d.dot?M:P}).)*?)`},n=(d)=>{switch(d){case"*":return`${G}${B}${D}`;case".*":return`${P}${B}${D}`;case"*.*":return`${G}${D}${P}${B}${D}`;case"*/*":return`${G}${D}${F}${B}${T}${D}`;case"**":return G+c(z);case"**/*":return`(?:${G}${c(z)}${F})?${T}${B}${D}`;case"**/*.*":return`(?:${G}${c(z)}${F})?${T}${D}${P}${B}${D}`;case"**/.*":return`(?:${G}${c(z)}${F})?${P}${B}${D}`;default:{let y=/^(.*?)\.(\w+)$/.exec(d);if(!y)return;let X=n(y[1]);if(!X)return;return X+P+y[2]}}},R=l.removePrefix($,v),g=n(R);if(g&&z.strictSlashes!==!0)g+=`${F}?`;return g};H$.exports=Q$});var T$=a((G1,m$)=>{var y1=C$(),X$=x$(),L$=e(),F1=s(),Q1=($)=>$&&typeof $==="object"&&!Array.isArray($),H=($,Y,z=!1)=>{if(Array.isArray($)){let K=$.map((x)=>H(x,Y,z));return(x)=>{for(let A of K){let G=A(x);if(G)return G}return!1}}let j=Q1($)&&$.tokens&&$.input;if($===""||typeof $!=="string"&&!j)throw new TypeError("Expected pattern to be a non-empty string");let W=Y||{},P=W.windows,F=j?H.compileRe($,Y):H.makeRe($,Y,!1,!0),B=F.state;delete F.state;let M=()=>!1;if(W.ignore){let K={...Y,ignore:null,onMatch:null,onResult:null};M=H(W.ignore,K,z)}let E=(K,S=!1)=>{let{isMatch:x,match:A,output:G}=H.test(K,F,Y,{glob:$,posix:P}),T={glob:$,state:B,regex:F,posix:P,input:K,output:G,match:A,isMatch:x};if(typeof W.onResult==="function")W.onResult(T);if(x===!1)return T.isMatch=!1,S?T:!1;if(M(K)){if(typeof W.onIgnore==="function")W.onIgnore(T);return T.isMatch=!1,S?T:!1}if(typeof W.onMatch==="function")W.onMatch(T);return S?T:!0};if(z)E.state=B;return E};H.test=($,Y,z,{glob:j,posix:W}={})=>{if(typeof $!=="string")throw new TypeError("Expected input to be a string");if($==="")return{isMatch:!1,output:""};let P=z||{},F=P.format||(W?L$.toPosixSlashes:null),B=$===j,M=B&&F?F($):$;if(B===!1)M=F?F($):$,B=M===j;if(B===!1||P.capture===!0)if(P.matchBase===!0||P.basename===!0)B=H.matchBase($,Y,z,W);else B=Y.exec(M);return{isMatch:Boolean(B),match:B,output:M}};H.matchBase=($,Y,z)=>{return(Y instanceof RegExp?Y:H.makeRe(Y,z)).test(L$.basename($))};H.isMatch=($,Y,z)=>H(Y,z)($);H.parse=($,Y)=>{if(Array.isArray($))return $.map((z)=>H.parse(z,Y));return X$($,{...Y,fastpaths:!1})};H.scan=($,Y)=>y1($,Y);H.compileRe=($,Y,z=!1,j=!1)=>{if(z===!0)return $.output;let W=Y||{},P=W.contains?"":"^",F=W.contains?"":"$",B=`${P}(?:${$.output})${F}`;if($&&$.negated===!0)B=`^(?!${B}).*$`;let M=H.toRegex(B,Y);if(j===!0)M.state=$;return M};H.makeRe=($,Y={},z=!1,j=!1)=>{if(!$||typeof $!=="string")throw new TypeError("Expected a non-empty string");let W={negated:!1,fastpaths:!0};if(Y.fastpaths!==!1&&($[0]==="."||$[0]==="*"))W.output=X$.fastpaths($,Y);if(!W.output)W=X$($,Y);return H.compileRe(W,Y,z,j)};H.toRegex=($,Y)=>{try{let z=Y||{};return new RegExp($,z.flags||(z.nocase?"i":""))}catch(z){if(Y&&Y.debug===!0)throw z;return/$^/}};H.constants=F1;m$.exports=H});var U1=a((f1,S$)=>{var E$=T$(),X1=e();function g$($,Y,z=!1){if(Y&&(Y.windows===null||Y.windows===void 0))Y={...Y,windows:X1.isWindows()};return E$($,Y,z)}Object.assign(g$,E$);S$.exports=g$});
|
|
1
|
+
import{Vc as a}from"./chunk-5asbctb1.js";var s=a((j1,j$)=>{var U$={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},h$={...U$,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},A$={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};j$.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:A$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars($){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${$.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars($){return $===!0?h$:U$}}});var e=a((c$)=>{var{REGEX_BACKSLASH:d$,REGEX_REMOVE_BACKSLASH:k$,REGEX_SPECIAL_CHARS:b$,REGEX_SPECIAL_CHARS_GLOBAL:v$}=s();c$.isObject=($)=>$!==null&&typeof $==="object"&&!Array.isArray($);c$.hasRegexChars=($)=>b$.test($);c$.isRegexChar=($)=>$.length===1&&c$.hasRegexChars($);c$.escapeRegex=($)=>$.replace(v$,"\\$1");c$.toPosixSlashes=($)=>$.replace(d$,"/");c$.isWindows=()=>{if(typeof navigator!=="undefined"&&navigator.platform){let $=navigator.platform.toLowerCase();return $==="win32"||$==="windows"}if(typeof process!=="undefined"&&process.platform)return process.platform==="win32";return!1};c$.removeBackslashes=($)=>{return $.replace(k$,(Y)=>{return Y==="\\"?"":Y})};c$.escapeLast=($,Y,z)=>{let j=$.lastIndexOf(Y,z);if(j===-1)return $;if($[j-1]==="\\")return c$.escapeLast($,Y,j-1);return`${$.slice(0,j)}\\${$.slice(j)}`};c$.removePrefix=($,Y={})=>{let z=$;if(z.startsWith("./"))z=z.slice(2),Y.prefix="./";return z};c$.wrapOutput=($,Y={},z={})=>{let j=z.contains?"":"^",W=z.contains?"":"$",P=`${j}(?:${$})${W}`;if(Y.negated===!0)P=`(?:^(?!${P}).*$)`;return P};c$.basename=($,{windows:Y}={})=>{let z=$.split(Y?/[\\/]/:"/"),j=z[z.length-1];if(j==="")return z[z.length-2];return j}});var C$=a((B1,I$)=>{var K$=e(),{CHAR_ASTERISK:V$,CHAR_AT:e$,CHAR_BACKWARD_SLASH:t,CHAR_COMMA:t$,CHAR_DOT:Y$,CHAR_EXCLAMATION_MARK:W$,CHAR_FORWARD_SLASH:N$,CHAR_LEFT_CURLY_BRACE:y$,CHAR_LEFT_PARENTHESES:F$,CHAR_LEFT_SQUARE_BRACKET:$1,CHAR_PLUS:z1,CHAR_QUESTION_MARK:G$,CHAR_RIGHT_CURLY_BRACE:J1,CHAR_RIGHT_PARENTHESES:f$,CHAR_RIGHT_SQUARE_BRACKET:Z1}=s(),M$=($)=>{return $===N$||$===t},D$=($)=>{if($.isPrefix!==!0)$.depth=$.isGlobstar?1/0:1},q1=($,Y)=>{let z=Y||{},j=$.length-1,W=z.parts===!0||z.scanToEnd===!0,P=[],F=[],B=[],M=$,E=-1,K=0,S=0,x=!1,A=!1,G=!1,T=!1,r=!1,v=!1,D=!1,c=!1,n=!1,R=!1,g=0,d,y,X={value:"",depth:0,isGlob:!1},q=()=>E>=j,h=()=>M.charCodeAt(E+1),L=()=>{return d=y,M.charCodeAt(++E)};while(E<j){y=L();let f;if(y===t){if(D=X.backslashes=!0,y=L(),y===y$)v=!0;continue}if(v===!0||y===y$){g++;while(q()!==!0&&(y=L())){if(y===t){D=X.backslashes=!0,L();continue}if(y===y$){g++;continue}if(v!==!0&&y===Y$&&(y=L())===Y$){if(x=X.isBrace=!0,G=X.isGlob=!0,R=!0,W===!0)continue;break}if(v!==!0&&y===t$){if(x=X.isBrace=!0,G=X.isGlob=!0,R=!0,W===!0)continue;break}if(y===J1){if(g--,g===0){v=!1,x=X.isBrace=!0,R=!0;break}}}if(W===!0)continue;break}if(y===N$){if(P.push(E),F.push(X),X={value:"",depth:0,isGlob:!1},R===!0)continue;if(d===Y$&&E===K+1){K+=2;continue}S=E+1;continue}if(z.noext!==!0){if((y===z1||y===e$||y===V$||y===G$||y===W$)===!0&&h()===F$){if(G=X.isGlob=!0,T=X.isExtglob=!0,R=!0,y===W$&&E===K)n=!0;if(W===!0){while(q()!==!0&&(y=L())){if(y===t){D=X.backslashes=!0,y=L();continue}if(y===f$){G=X.isGlob=!0,R=!0;break}}continue}break}}if(y===V$){if(d===V$)r=X.isGlobstar=!0;if(G=X.isGlob=!0,R=!0,W===!0)continue;break}if(y===G$){if(G=X.isGlob=!0,R=!0,W===!0)continue;break}if(y===$1){while(q()!==!0&&(f=L())){if(f===t){D=X.backslashes=!0,L();continue}if(f===Z1){A=X.isBracket=!0,G=X.isGlob=!0,R=!0;break}}if(W===!0)continue;break}if(z.nonegate!==!0&&y===W$&&E===K){c=X.negated=!0,K++;continue}if(z.noparen!==!0&&y===F$){if(G=X.isGlob=!0,W===!0){while(q()!==!0&&(y=L())){if(y===F$){D=X.backslashes=!0,y=L();continue}if(y===f$){R=!0;break}}continue}break}if(G===!0){if(R=!0,W===!0)continue;break}}if(z.noext===!0)T=!1,G=!1;let O=M,J="",Z="";if(K>0)J=M.slice(0,K),M=M.slice(K),S-=K;if(O&&G===!0&&S>0)O=M.slice(0,S),Z=M.slice(S);else if(G===!0)O="",Z=M;else O=M;if(O&&O!==""&&O!=="/"&&O!==M){if(M$(O.charCodeAt(O.length-1)))O=O.slice(0,-1)}if(z.unescape===!0){if(Z)Z=K$.removeBackslashes(Z);if(O&&D===!0)O=K$.removeBackslashes(O)}let k={prefix:J,input:$,start:K,base:O,glob:Z,isBrace:x,isBracket:A,isGlob:G,isExtglob:T,isGlobstar:r,negated:c,negatedExtglob:n};if(z.tokens===!0){if(k.maxDepth=0,!M$(y))F.push(X);k.tokens=F}if(z.parts===!0||z.tokens===!0){let f;for(let I=0;I<P.length;I++){let i=f?f+1:K,b=P[I],u=$.slice(i,b);if(z.tokens){if(I===0&&K!==0)F[I].isPrefix=!0,F[I].value=J;else F[I].value=u;D$(F[I]),k.maxDepth+=F[I].depth}if(I!==0||u!=="")B.push(u);f=b}if(f&&f+1<$.length){let I=$.slice(f+1);if(B.push(I),z.tokens)F[F.length-1].value=I,D$(F[F.length-1]),k.maxDepth+=F[F.length-1].depth}k.slashes=P,k.parts=B}return k};I$.exports=q1});var x$=a((K1,H$)=>{var Z$=s(),l=e(),{MAX_LENGTH:q$,POSIX_REGEX_SOURCE:w1,REGEX_NON_SPECIAL_CHARS:V1,REGEX_SPECIAL_CHARS_BACKREF:Y1,REPLACEMENTS:O$}=Z$,W1=($,Y)=>{if(typeof Y.expandRange==="function")return Y.expandRange(...$,Y);$.sort();let z=`[${$.join("-")}]`;try{new RegExp(z)}catch(j){return $.map((W)=>l.escapeRegex(W)).join("..")}return z},o=($,Y)=>{return`Missing ${$}: "${Y}" - use "\\\\${Y}" to match literal characters`},Q$=($,Y)=>{if(typeof $!=="string")throw new TypeError("Expected a string");$=O$[$]||$;let z={...Y},j=typeof z.maxLength==="number"?Math.min(q$,z.maxLength):q$,W=$.length;if(W>j)throw new SyntaxError(`Input length: ${W}, exceeds maximum allowed length: ${j}`);let P={type:"bos",value:"",output:z.prepend||""},F=[P],B=z.capture?"":"?:",M=Z$.globChars(z.windows),E=Z$.extglobChars(M),{DOT_LITERAL:K,PLUS_LITERAL:S,SLASH_LITERAL:x,ONE_CHAR:A,DOTS_SLASH:G,NO_DOT:T,NO_DOT_SLASH:r,NO_DOTS_SLASH:v,QMARK:D,QMARK_NO_DOT:c,STAR:n,START_ANCHOR:R}=M,g=(V)=>{return`(${B}(?:(?!${R}${V.dot?G:K}).)*?)`},d=z.dot?"":T,y=z.dot?D:c,X=z.bash===!0?g(z):n;if(z.capture)X=`(${X})`;if(typeof z.noext==="boolean")z.noextglob=z.noext;let q={input:$,index:-1,start:0,dot:z.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:F};$=l.removePrefix($,q),W=$.length;let h=[],L=[],O=[],J=P,Z,k=()=>q.index===W-1,f=q.peek=(V=1)=>$[q.index+V],I=q.advance=()=>$[++q.index]||"",i=()=>$.slice(q.index+1),b=(V="",N=0)=>{q.consumed+=V,q.index+=N},u=(V)=>{q.output+=V.output!=null?V.output:V.value,b(V.value)},R$=()=>{let V=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))I(),q.start++,V++;if(V%2===0)return!1;return q.negated=!0,q.start++,!0},$$=(V)=>{q[V]++,O.push(V)},p=(V)=>{q[V]--,O.pop()},U=(V)=>{if(J.type==="globstar"){let N=q.braces>0&&(V.type==="comma"||V.type==="brace"),w=V.extglob===!0||h.length&&(V.type==="pipe"||V.type==="paren");if(V.type!=="slash"&&V.type!=="paren"&&!N&&!w)q.output=q.output.slice(0,-J.output.length),J.type="star",J.value="*",J.output=X,q.output+=J.output}if(h.length&&V.type!=="paren")h[h.length-1].inner+=V.value;if(V.value||V.output)u(V);if(J&&J.type==="text"&&V.type==="text"){J.output=(J.output||J.value)+V.value,J.value+=V.value;return}V.prev=J,F.push(V),J=V},z$=(V,N)=>{let w={...E[N],conditions:1,inner:""};w.prev=J,w.parens=q.parens,w.output=q.output;let Q=(z.capture?"(":"")+w.open;$$("parens"),U({type:V,value:N,output:q.output?"":A}),U({type:"paren",extglob:!0,value:I(),output:Q}),h.push(w)},_$=(V)=>{let N=V.close+(z.capture?")":""),w;if(V.type==="negate"){let Q=X;if(V.inner&&V.inner.length>1&&V.inner.includes("/"))Q=g(z);if(Q!==X||k()||/^\)+$/.test(i()))N=V.close=`)$))${Q}`;if(V.inner.includes("*")&&(w=i())&&/^\.[^\\/.]+$/.test(w)){let C=Q$(w,{...Y,fastpaths:!1}).output;N=V.close=`)${C})${Q})`}if(V.prev.type==="bos")q.negatedExtglob=!0}U({type:"paren",extglob:!0,value:Z,output:N}),p("parens")};if(z.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test($)){let V=!1,N=$.replace(Y1,(w,Q,C,_,m,w$)=>{if(_==="\\")return V=!0,w;if(_==="?"){if(Q)return Q+_+(m?D.repeat(m.length):"");if(w$===0)return y+(m?D.repeat(m.length):"");return D.repeat(C.length)}if(_===".")return K.repeat(C.length);if(_==="*"){if(Q)return Q+_+(m?X:"");return X}return Q?w:`\\${w}`});if(V===!0)if(z.unescape===!0)N=N.replace(/\\/g,"");else N=N.replace(/\\+/g,(w)=>{return w.length%2===0?"\\\\":w?"\\":""});if(N===$&&z.contains===!0)return q.output=$,q;return q.output=l.wrapOutput(N,q,Y),q}while(!k()){if(Z=I(),Z==="\x00")continue;if(Z==="\\"){let w=f();if(w==="/"&&z.bash!==!0)continue;if(w==="."||w===";")continue;if(!w){Z+="\\",U({type:"text",value:Z});continue}let Q=/^\\+/.exec(i()),C=0;if(Q&&Q[0].length>2){if(C=Q[0].length,q.index+=C,C%2!==0)Z+="\\"}if(z.unescape===!0)Z=I();else Z+=I();if(q.brackets===0){U({type:"text",value:Z});continue}}if(q.brackets>0&&(Z!=="]"||J.value==="["||J.value==="[^")){if(z.posix!==!1&&Z===":"){let w=J.value.slice(1);if(w.includes("[")){if(J.posix=!0,w.includes(":")){let Q=J.value.lastIndexOf("["),C=J.value.slice(0,Q),_=J.value.slice(Q+2),m=w1[_];if(m){if(J.value=C+m,q.backtrack=!0,I(),!P.output&&F.indexOf(J)===1)P.output=A;continue}}}}if(Z==="["&&f()!==":"||Z==="-"&&f()==="]")Z=`\\${Z}`;if(Z==="]"&&(J.value==="["||J.value==="[^"))Z=`\\${Z}`;if(z.posix===!0&&Z==="!"&&J.value==="[")Z="^";J.value+=Z,u({value:Z});continue}if(q.quotes===1&&Z!=='"'){Z=l.escapeRegex(Z),J.value+=Z,u({value:Z});continue}if(Z==='"'){if(q.quotes=q.quotes===1?0:1,z.keepQuotes===!0)U({type:"text",value:Z});continue}if(Z==="("){$$("parens"),U({type:"paren",value:Z});continue}if(Z===")"){if(q.parens===0&&z.strictBrackets===!0)throw new SyntaxError(o("opening","("));let w=h[h.length-1];if(w&&q.parens===w.parens+1){_$(h.pop());continue}U({type:"paren",value:Z,output:q.parens?")":"\\)"}),p("parens");continue}if(Z==="["){if(z.nobracket===!0||!i().includes("]")){if(z.nobracket!==!0&&z.strictBrackets===!0)throw new SyntaxError(o("closing","]"));Z=`\\${Z}`}else $$("brackets");U({type:"bracket",value:Z});continue}if(Z==="]"){if(z.nobracket===!0||J&&J.type==="bracket"&&J.value.length===1){U({type:"text",value:Z,output:`\\${Z}`});continue}if(q.brackets===0){if(z.strictBrackets===!0)throw new SyntaxError(o("opening","["));U({type:"text",value:Z,output:`\\${Z}`});continue}p("brackets");let w=J.value.slice(1);if(J.posix!==!0&&w[0]==="^"&&!w.includes("/"))Z=`/${Z}`;if(J.value+=Z,u({value:Z}),z.literalBrackets===!1||l.hasRegexChars(w))continue;let Q=l.escapeRegex(J.value);if(q.output=q.output.slice(0,-J.value.length),z.literalBrackets===!0){q.output+=Q,J.value=Q;continue}J.value=`(${B}${Q}|${J.value})`,q.output+=J.value;continue}if(Z==="{"&&z.nobrace!==!0){$$("braces");let w={type:"brace",value:Z,output:"(",outputIndex:q.output.length,tokensIndex:q.tokens.length};L.push(w),U(w);continue}if(Z==="}"){let w=L[L.length-1];if(z.nobrace===!0||!w){U({type:"text",value:Z,output:Z});continue}let Q=")";if(w.dots===!0){let C=F.slice(),_=[];for(let m=C.length-1;m>=0;m--){if(F.pop(),C[m].type==="brace")break;if(C[m].type!=="dots")_.unshift(C[m].value)}Q=W1(_,z),q.backtrack=!0}if(w.comma!==!0&&w.dots!==!0){let C=q.output.slice(0,w.outputIndex),_=q.tokens.slice(w.tokensIndex);w.value=w.output="\\{",Z=Q="\\}",q.output=C;for(let m of _)q.output+=m.output||m.value}U({type:"brace",value:Z,output:Q}),p("braces"),L.pop();continue}if(Z==="|"){if(h.length>0)h[h.length-1].conditions++;U({type:"text",value:Z});continue}if(Z===","){let w=Z,Q=L[L.length-1];if(Q&&O[O.length-1]==="braces")Q.comma=!0,w="|";U({type:"comma",value:Z,output:w});continue}if(Z==="/"){if(J.type==="dot"&&q.index===q.start+1){q.start=q.index+1,q.consumed="",q.output="",F.pop(),J=P;continue}U({type:"slash",value:Z,output:x});continue}if(Z==="."){if(q.braces>0&&J.type==="dot"){if(J.value===".")J.output=K;let w=L[L.length-1];J.type="dots",J.output+=Z,J.value+=Z,w.dots=!0;continue}if(q.braces+q.parens===0&&J.type!=="bos"&&J.type!=="slash"){U({type:"text",value:Z,output:K});continue}U({type:"dot",value:Z,output:K});continue}if(Z==="?"){if(!(J&&J.value==="(")&&z.noextglob!==!0&&f()==="("&&f(2)!=="?"){z$("qmark",Z);continue}if(J&&J.type==="paren"){let Q=f(),C=Z;if(J.value==="("&&!/[!=<:]/.test(Q)||Q==="<"&&!/<([!=]|\w+>)/.test(i()))C=`\\${Z}`;U({type:"text",value:Z,output:C});continue}if(z.dot!==!0&&(J.type==="slash"||J.type==="bos")){U({type:"qmark",value:Z,output:c});continue}U({type:"qmark",value:Z,output:D});continue}if(Z==="!"){if(z.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){z$("negate",Z);continue}}if(z.nonegate!==!0&&q.index===0){R$();continue}}if(Z==="+"){if(z.noextglob!==!0&&f()==="("&&f(2)!=="?"){z$("plus",Z);continue}if(J&&J.value==="("||z.regex===!1){U({type:"plus",value:Z,output:S});continue}if(J&&(J.type==="bracket"||J.type==="paren"||J.type==="brace")||q.parens>0){U({type:"plus",value:Z});continue}U({type:"plus",value:S});continue}if(Z==="@"){if(z.noextglob!==!0&&f()==="("&&f(2)!=="?"){U({type:"at",extglob:!0,value:Z,output:""});continue}U({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let w=V1.exec(i());if(w)Z+=w[0],q.index+=w[0].length;U({type:"text",value:Z});continue}if(J&&(J.type==="globstar"||J.star===!0)){J.type="star",J.star=!0,J.value+=Z,J.output=X,q.backtrack=!0,q.globstar=!0,b(Z);continue}let V=i();if(z.noextglob!==!0&&/^\([^?]/.test(V)){z$("star",Z);continue}if(J.type==="star"){if(z.noglobstar===!0){b(Z);continue}let w=J.prev,Q=w.prev,C=w.type==="slash"||w.type==="bos",_=Q&&(Q.type==="star"||Q.type==="globstar");if(z.bash===!0&&(!C||V[0]&&V[0]!=="/")){U({type:"star",value:Z,output:""});continue}let m=q.braces>0&&(w.type==="comma"||w.type==="brace"),w$=h.length&&(w.type==="pipe"||w.type==="paren");if(!C&&w.type!=="paren"&&!m&&!w$){U({type:"star",value:Z,output:""});continue}while(V.slice(0,3)==="/**"){let J$=$[q.index+4];if(J$&&J$!=="/")break;V=V.slice(3),b("/**",3)}if(w.type==="bos"&&k()){J.type="globstar",J.value+=Z,J.output=g(z),q.output=J.output,q.globstar=!0,b(Z);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&!_&&k()){q.output=q.output.slice(0,-(w.output+J.output).length),w.output=`(?:${w.output}`,J.type="globstar",J.output=g(z)+(z.strictSlashes?")":"|$)"),J.value+=Z,q.globstar=!0,q.output+=w.output+J.output,b(Z);continue}if(w.type==="slash"&&w.prev.type!=="bos"&&V[0]==="/"){let J$=V[1]!==void 0?"|$":"";q.output=q.output.slice(0,-(w.output+J.output).length),w.output=`(?:${w.output}`,J.type="globstar",J.output=`${g(z)}${x}|${x}${J$})`,J.value+=Z,q.output+=w.output+J.output,q.globstar=!0,b(Z+I()),U({type:"slash",value:"/",output:""});continue}if(w.type==="bos"&&V[0]==="/"){J.type="globstar",J.value+=Z,J.output=`(?:^|${x}|${g(z)}${x})`,q.output=J.output,q.globstar=!0,b(Z+I()),U({type:"slash",value:"/",output:""});continue}q.output=q.output.slice(0,-J.output.length),J.type="globstar",J.output=g(z),J.value+=Z,q.output+=J.output,q.globstar=!0,b(Z);continue}let N={type:"star",value:Z,output:X};if(z.bash===!0){if(N.output=".*?",J.type==="bos"||J.type==="slash")N.output=d+N.output;U(N);continue}if(J&&(J.type==="bracket"||J.type==="paren")&&z.regex===!0){N.output=Z,U(N);continue}if(q.index===q.start||J.type==="slash"||J.type==="dot"){if(J.type==="dot")q.output+=r,J.output+=r;else if(z.dot===!0)q.output+=v,J.output+=v;else q.output+=d,J.output+=d;if(f()!=="*")q.output+=A,J.output+=A}U(N)}while(q.brackets>0){if(z.strictBrackets===!0)throw new SyntaxError(o("closing","]"));q.output=l.escapeLast(q.output,"["),p("brackets")}while(q.parens>0){if(z.strictBrackets===!0)throw new SyntaxError(o("closing",")"));q.output=l.escapeLast(q.output,"("),p("parens")}while(q.braces>0){if(z.strictBrackets===!0)throw new SyntaxError(o("closing","}"));q.output=l.escapeLast(q.output,"{"),p("braces")}if(z.strictSlashes!==!0&&(J.type==="star"||J.type==="bracket"))U({type:"maybe_slash",value:"",output:`${x}?`});if(q.backtrack===!0){q.output="";for(let V of q.tokens)if(q.output+=V.output!=null?V.output:V.value,V.suffix)q.output+=V.suffix}return q};Q$.fastpaths=($,Y)=>{let z={...Y},j=typeof z.maxLength==="number"?Math.min(q$,z.maxLength):q$,W=$.length;if(W>j)throw new SyntaxError(`Input length: ${W}, exceeds maximum allowed length: ${j}`);$=O$[$]||$;let{DOT_LITERAL:P,SLASH_LITERAL:F,ONE_CHAR:B,DOTS_SLASH:M,NO_DOT:E,NO_DOTS:K,NO_DOTS_SLASH:S,STAR:x,START_ANCHOR:A}=Z$.globChars(z.windows),G=z.dot?K:E,T=z.dot?S:E,r=z.capture?"":"?:",v={negated:!1,prefix:""},D=z.bash===!0?".*?":x;if(z.capture)D=`(${D})`;let c=(d)=>{if(d.noglobstar===!0)return D;return`(${r}(?:(?!${A}${d.dot?M:P}).)*?)`},n=(d)=>{switch(d){case"*":return`${G}${B}${D}`;case".*":return`${P}${B}${D}`;case"*.*":return`${G}${D}${P}${B}${D}`;case"*/*":return`${G}${D}${F}${B}${T}${D}`;case"**":return G+c(z);case"**/*":return`(?:${G}${c(z)}${F})?${T}${B}${D}`;case"**/*.*":return`(?:${G}${c(z)}${F})?${T}${D}${P}${B}${D}`;case"**/.*":return`(?:${G}${c(z)}${F})?${P}${B}${D}`;default:{let y=/^(.*?)\.(\w+)$/.exec(d);if(!y)return;let X=n(y[1]);if(!X)return;return X+P+y[2]}}},R=l.removePrefix($,v),g=n(R);if(g&&z.strictSlashes!==!0)g+=`${F}?`;return g};H$.exports=Q$});var T$=a((G1,m$)=>{var y1=C$(),X$=x$(),L$=e(),F1=s(),Q1=($)=>$&&typeof $==="object"&&!Array.isArray($),H=($,Y,z=!1)=>{if(Array.isArray($)){let K=$.map((x)=>H(x,Y,z));return(x)=>{for(let A of K){let G=A(x);if(G)return G}return!1}}let j=Q1($)&&$.tokens&&$.input;if($===""||typeof $!=="string"&&!j)throw new TypeError("Expected pattern to be a non-empty string");let W=Y||{},P=W.windows,F=j?H.compileRe($,Y):H.makeRe($,Y,!1,!0),B=F.state;delete F.state;let M=()=>!1;if(W.ignore){let K={...Y,ignore:null,onMatch:null,onResult:null};M=H(W.ignore,K,z)}let E=(K,S=!1)=>{let{isMatch:x,match:A,output:G}=H.test(K,F,Y,{glob:$,posix:P}),T={glob:$,state:B,regex:F,posix:P,input:K,output:G,match:A,isMatch:x};if(typeof W.onResult==="function")W.onResult(T);if(x===!1)return T.isMatch=!1,S?T:!1;if(M(K)){if(typeof W.onIgnore==="function")W.onIgnore(T);return T.isMatch=!1,S?T:!1}if(typeof W.onMatch==="function")W.onMatch(T);return S?T:!0};if(z)E.state=B;return E};H.test=($,Y,z,{glob:j,posix:W}={})=>{if(typeof $!=="string")throw new TypeError("Expected input to be a string");if($==="")return{isMatch:!1,output:""};let P=z||{},F=P.format||(W?L$.toPosixSlashes:null),B=$===j,M=B&&F?F($):$;if(B===!1)M=F?F($):$,B=M===j;if(B===!1||P.capture===!0)if(P.matchBase===!0||P.basename===!0)B=H.matchBase($,Y,z,W);else B=Y.exec(M);return{isMatch:Boolean(B),match:B,output:M}};H.matchBase=($,Y,z)=>{return(Y instanceof RegExp?Y:H.makeRe(Y,z)).test(L$.basename($))};H.isMatch=($,Y,z)=>H(Y,z)($);H.parse=($,Y)=>{if(Array.isArray($))return $.map((z)=>H.parse(z,Y));return X$($,{...Y,fastpaths:!1})};H.scan=($,Y)=>y1($,Y);H.compileRe=($,Y,z=!1,j=!1)=>{if(z===!0)return $.output;let W=Y||{},P=W.contains?"":"^",F=W.contains?"":"$",B=`${P}(?:${$.output})${F}`;if($&&$.negated===!0)B=`^(?!${B}).*$`;let M=H.toRegex(B,Y);if(j===!0)M.state=$;return M};H.makeRe=($,Y={},z=!1,j=!1)=>{if(!$||typeof $!=="string")throw new TypeError("Expected a non-empty string");let W={negated:!1,fastpaths:!0};if(Y.fastpaths!==!1&&($[0]==="."||$[0]==="*"))W.output=X$.fastpaths($,Y);if(!W.output)W=X$($,Y);return H.compileRe(W,Y,z,j)};H.toRegex=($,Y)=>{try{let z=Y||{};return new RegExp($,z.flags||(z.nocase?"i":""))}catch(z){if(Y&&Y.debug===!0)throw z;return/$^/}};H.constants=F1;m$.exports=H});var U1=a((f1,S$)=>{var E$=T$(),X1=e();function g$($,Y,z=!1){if(Y&&(Y.windows===null||Y.windows===void 0))Y={...Y,windows:X1.isWindows()};return E$($,Y,z)}Object.assign(g$,E$);S$.exports=g$});
|
|
2
2
|
export{U1 as Ca};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jb as F,Kb as Ee}from"./chunk-p9h1e4xh.js";import{Nb as m,Ob as Te,ic as Nt}from"./chunk-qn0s5yy0.js";import{pc as _r,qc as be,tc as or,uc as Or}from"./chunk-8yy9tk7n.js";import{Jc as me}from"./chunk-6ct1erv4.js";import{Nc as Me}from"./chunk-nhsag58c.js";import{Sc as jr}from"./chunk-nrk7cdfz.js";import{Tc as h,Yc as Yr}from"./chunk-5asbctb1.js";function Jr(e){return e}var Gt=(e)=>(t)=>async(r)=>{if(!m.isInstance(r.request))return t(r);let{request:o}=r,{handlerProtocol:n=""}=e.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!o.headers[":authority"])delete o.headers.host,o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"");else if(!o.headers.host){let s=o.hostname;if(o.port!=null)s+=`:${o.port}`;o.headers.host=s}return t(r)},Vt={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Kr=(e)=>({applyToStack:(t)=>{t.add(Gt(e),Vt)}});var Bt=()=>(e,t)=>async(r)=>{try{let o=await e(r),{clientName:n,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:f}=a,u=c??t.inputFilterSensitiveLog,R=f??t.outputFilterSensitiveLog,{$metadata:l,...d}=o.output;return i?.info?.({clientName:n,commandName:s,input:u(r.input),output:R(d),metadata:l}),o}catch(o){let{clientName:n,commandName:s,logger:i,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c}=a,f=c??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:s,input:f(r.input),error:o,metadata:o.$metadata}),o}},Wt={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},eo=(e)=>({applyToStack:(t)=>{t.add(Bt(),Wt)}});var ne="X-Amzn-Trace-Id",Yt="AWS_LAMBDA_FUNCTION_NAME",jt="_X_AMZN_TRACE_ID",zt=(e)=>(t)=>async(r)=>{let{request:o}=r;if(!m.isInstance(o)||e.runtime!=="node")return t(r);let n=Object.keys(o.headers??{}).find((c)=>c.toLowerCase()===ne.toLowerCase())??ne;if(o.headers.hasOwnProperty(n))return t(r);let s=process.env[Yt],i=process.env[jt],a=(c)=>typeof c==="string"&&c.length>0;if(a(s)&&a(i))o.headers[ne]=i;return t({...r,request:o})},Xt={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},so=(e)=>({applyToStack:(t)=>{t.add(zt(e),Xt)}});var Ce=h(be(),1),se=void 0;function Ht(e){if(e===void 0)return!0;return typeof e==="string"&&e.length<=50}function ao(e){let t=Ce.normalizeProvider(e.userAgentAppId??se),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r==="string"?[[r]]:r,userAgentAppId:async()=>{let o=await t();if(!Ht(o)){let n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof o!=="string")n?.warn("userAgentAppId must be a string or undefined.");else if(o.length>50)n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return o}})}class qt{constructor({size:e,params:t}){if(this.data=new Map,this.parameters=[],this.capacity=e??50,t)this.parameters=t}get(e,t){let r=this.hash(e);if(r===!1)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let o=this.data.keys(),n=0;while(!0){let{value:s,done:i}=o.next();if(this.data.delete(s),i||++n>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="",{parameters:r}=this;if(r.length===0)return!1;for(let o of r){let n=String(e[o]??"");if(n.includes("|;"))return!1;t+=n+"|;"}return t}}var Zt=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),M=(e)=>Zt.test(e)||e.startsWith("[")&&e.endsWith("]");var Jt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),L=(e,t=!1)=>{if(!t)return Jt.test(e);let r=e.split(".");for(let o of r)if(!L(o))return!1;return!0};var $={};var A="endpoints";function E(e){if(typeof e!=="object"||e==null)return e;if("ref"in e)return`$${E(e.ref)}`;if("fn"in e)return`${e.fn}(${(e.argv||[]).map(E).join(", ")})`;return JSON.stringify(e,null,2)}class p extends Error{constructor(e){super(e);this.name="EndpointError"}}var De=(e,t)=>e===t;var Pe=(e)=>{let t=e.split("."),r=[];for(let o of t){let n=o.indexOf("[");if(n!==-1){if(o.indexOf("]")!==o.length-1)throw new p(`Path: '${e}' does not end with ']'`);let s=o.slice(n+1,-1);if(Number.isNaN(parseInt(s)))throw new p(`Invalid array index: '${s}' in path: '${e}'`);if(n!==0)r.push(o.slice(0,n));r.push(s)}else r.push(o)}return r};var B=(e,t)=>Pe(t).reduce((r,o)=>{if(typeof r!=="object")throw new p(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);else if(Array.isArray(r))return r[parseInt(o)];return r[o]},e);var Ue=(e)=>e!=null;var ve=(e)=>!e;var W=h(Me(),1);var ie={[W.EndpointURLScheme.HTTP]:80,[W.EndpointURLScheme.HTTPS]:443},Le=(e)=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e==="object"&&"hostname"in e){let{hostname:l,port:d,protocol:w="",path:V="",query:$t={}}=e,we=new URL(`${w}//${l}${d?`:${d}`:""}${V}`);return we.search=Object.entries($t).map(([Ft,kt])=>`${Ft}=${kt}`).join("&"),we}return new URL(e)}catch(l){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:o,hostname:n,pathname:s,protocol:i,search:a}=t;if(a)return null;let c=i.slice(0,-1);if(!Object.values(W.EndpointURLScheme).includes(c))return null;let f=M(n),u=r.includes(`${o}:${ie[c]}`)||typeof e==="string"&&e.includes(`${o}:${ie[c]}`),R=`${o}${u?`:${ie[c]}`:""}`;return{scheme:c,authority:R,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:f}};var $e=(e,t)=>e===t;var Fe=(e,t,r,o)=>{if(t>=r||e.length<r)return null;if(!o)return e.substring(t,r);return e.substring(e.length-r,e.length-t)};var ke=(e)=>encodeURIComponent(e).replace(/[!*'()]/g,(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);var Ge={booleanEquals:De,getAttr:B,isSet:Ue,isValidHostLabel:L,not:ve,parseURL:Le,stringEquals:$e,substring:Fe,uriEncode:ke};var Y=(e,t)=>{let r=[],o={...t.endpointParams,...t.referenceRecord},n=0;while(n<e.length){let s=e.indexOf("{",n);if(s===-1){r.push(e.slice(n));break}r.push(e.slice(n,s));let i=e.indexOf("}",s);if(i===-1){r.push(e.slice(s));break}if(e[s+1]==="{"&&e[i+1]==="}")r.push(e.slice(s+1,i)),n=i+2;let a=e.substring(s+1,i);if(a.includes("#")){let[c,f]=a.split("#");r.push(B(o[c],f))}else r.push(o[a]);n=i+1}return r.join("")};var Ve=({ref:e},t)=>{return{...t.endpointParams,...t.referenceRecord}[e]};var T=(e,t,r)=>{if(typeof e==="string")return Y(e,r);else if(e.fn)return j(e,r);else if(e.ref)return Ve(e,r);throw new p(`'${t}': ${String(e)} is not a string, function or reference.`)};var j=({fn:e,argv:t},r)=>{let o=t.map((s)=>["boolean","number"].includes(typeof s)?s:T(s,"arg",r)),n=e.split(".");if(n[0]in $&&n[1]!=null)return $[n[0]][n[1]](...o);return Ge[e](...o)};var Be=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new p(`'${e}' is already defined in Reference Record.`);let o=j(t,r);return r.logger?.debug?.(`${A} evaluateCondition: ${E(t)} = ${E(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};var b=(e=[],t)=>{let r={};for(let o of e){let{result:n,toAssign:s}=Be(o,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!n)return{result:n};if(s)r[s.name]=s.value,t.logger?.debug?.(`${A} assign: ${s.name} := ${E(s.value)}`)}return{result:!0,referenceRecord:r}};var We=(e,t)=>Object.entries(e).reduce((r,[o,n])=>({...r,[o]:n.map((s)=>{let i=T(s,"Header value entry",t);if(typeof i!=="string")throw new p(`Header '${o}' value '${i}' is not a string`);return i})}),{});var ae=(e,t)=>{if(Array.isArray(e))return e.map((r)=>ae(r,t));switch(typeof e){case"string":return Y(e,t);case"object":if(e===null)throw new p(`Unexpected endpoint property: ${e}`);return z(e,t);case"boolean":return e;default:throw new p(`Unexpected endpoint property type: ${typeof e}`)}};var z=(e,t)=>Object.entries(e).reduce((r,[o,n])=>({...r,[o]:ae(n,t)}),{});var Ye=(e,t)=>{let r=T(e,"Endpoint URL",t);if(typeof r==="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new p(`Endpoint URL must be a string, got ${typeof r}`)};var je=(e,t)=>{let{conditions:r,endpoint:o}=e,{result:n,referenceRecord:s}=b(r,t);if(!n)return;let i={...t,referenceRecord:{...t.referenceRecord,...s}},{url:a,properties:c,headers:f}=o;return t.logger?.debug?.(`${A} Resolving endpoint from template: ${E(o)}`),{...f!=null&&{headers:We(f,i)},...c!=null&&{properties:z(c,i)},url:Ye(a,i)}};var ze=(e,t)=>{let{conditions:r,error:o}=e,{result:n,referenceRecord:s}=b(r,t);if(!n)return;throw new p(T(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))};var Xe=(e,t)=>{let{conditions:r,rules:o}=e,{result:n,referenceRecord:s}=b(r,t);if(!n)return;return X(o,{...t,referenceRecord:{...t.referenceRecord,...s}})};var X=(e,t)=>{for(let r of e)if(r.type==="endpoint"){let o=je(r,t);if(o)return o}else if(r.type==="error")ze(r,t);else if(r.type==="tree"){let o=Xe(r,t);if(o)return o}else throw new p(`Unknown endpoint rule: ${r}`);throw new p("Rules evaluation failed")};var Kt=(e,t)=>{let{endpointParams:r,logger:o}=t,{parameters:n,rules:s}=e;t.logger?.debug?.(`${A} Initial EndpointParams: ${E(r)}`);let i=Object.entries(n).filter(([,f])=>f.default!=null).map(([f,u])=>[f,u.default]);if(i.length>0)for(let[f,u]of i)r[f]=r[f]??u;let a=Object.entries(n).filter(([,f])=>f.required).map(([f])=>f);for(let f of a)if(r[f]==null)throw new p(`Missing required parameter: '${f}'`);let c=X(s,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${A} Resolved endpoint: ${E(c)}`),c};var ce=(e,t=!1)=>{if(t){for(let r of e.split("."))if(!ce(r))return!1;return!0}if(!L(e))return!1;if(e.length<3||e.length>63)return!1;if(e!==e.toLowerCase())return!1;if(M(e))return!1;return!0};var He=(e)=>{let t=e.split(":");if(t.length<6)return null;let[r,o,n,s,i,...a]=t;if(r!=="arn"||o===""||n===""||a.join(":")==="")return null;let c=a.map((f)=>f.split("/")).flat();return{partition:o,service:n,region:s,accountId:i,resourceId:c}};var qe={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}}],version:"1.1"};var er=qe,tr="",Ze=(e)=>{let{partitions:t}=er;for(let o of t){let{regions:n,outputs:s}=o;for(let[i,a]of Object.entries(n))if(i===e)return{...s,...a}}for(let o of t){let{regionRegex:n,outputs:s}=o;if(new RegExp(n).test(e))return{...s}}let r=t.find((o)=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}};var Je=()=>tr;var rr={isVirtualHostableS3Bucket:ce,parseArn:He,partition:Ze};$.aws=rr;var x=h(or(),1),nr=/\d{12}\.ddb/;async function Ke(e,t,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")x.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M");if(typeof t.retryStrategy==="function"){let s=await t.retryStrategy();if(typeof s.acquireInitialRetryToken==="function")if(s.constructor?.name?.includes("Adaptive"))x.setFeature(e,"RETRY_MODE_ADAPTIVE","F");else x.setFeature(e,"RETRY_MODE_STANDARD","E");else x.setFeature(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode==="function"){let s=e.endpointV2;if(String(s?.url?.hostname).match(nr))x.setFeature(e,"ACCOUNT_ID_ENDPOINT","O");switch(await t.accountIdEndpointMode?.()){case"disabled":x.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":x.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":x.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){let s=n;if(s.accountId)x.setFeature(e,"RESOLVED_ACCOUNT_ID","T");for(let[i,a]of Object.entries(s.$source??{}))x.setFeature(e,i,a)}}var fe="user-agent",H="x-amz-user-agent",pe=" ",q="/",Qe=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,et=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,ue="-";function tt(e){let t="";for(let r in e){let o=e[r];if(t.length+o.length+1<=1024){if(t.length)t+=","+o;else t+=o;continue}break}return t}var sr=(e)=>(t,r)=>async(o)=>{let{request:n}=o;if(!m.isInstance(n))return t(o);let{headers:s}=n,i=r?.userAgent?.map(Z)||[],a=(await e.defaultUserAgentProvider()).map(Z);await Ke(r,e,o);let c=r;a.push(`m/${tt(Object.assign({},r.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let f=e?.customUserAgent?.map(Z)||[],u=await e.userAgentAppId();if(u)a.push(Z([`app/${u}`]));let R=Je(),l=(R?[R]:[]).concat([...a,...i,...f]).join(pe),d=[...a.filter((w)=>w.startsWith("aws-sdk-")),...f].join(pe);if(e.runtime!=="browser"){if(d)s[H]=s[H]?`${s[fe]} ${d}`:d;s[fe]=l}else s[H]=l;return t({...o,request:n})},Z=(e)=>{let t=e[0].split(q).map((i)=>i.replace(Qe,ue)).join(q),r=e[1]?.replace(et,ue),o=t.indexOf(q),n=t.substring(0,o),s=t.substring(o+1);if(n==="api")s=s.toLowerCase();return[n,s,r].filter((i)=>i&&i.length>0).reduce((i,a,c)=>{switch(c){case 0:return a;case 1:return`${i}/${a}`;default:return`${i}#${a}`}},"")},ir={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Hs=(e)=>({applyToStack:(t)=>{t.add(sr(e),ir)}});var J=(e)=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));var de=(e)=>J(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;var ni=(e)=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{if(typeof t==="string")return de(t);let o=await t();return de(o)},useFipsEndpoint:async()=>{let o=typeof t==="string"?t:await t();if(J(o))return!0;return typeof r!=="function"?Promise.resolve(!!r):r()}})};var C=(e,t,r)=>{if(!(t in e))return;if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)};var O;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(O||(O={}));var ar="AWS_USE_DUALSTACK_ENDPOINT",cr="use_dualstack_endpoint";var mi={environmentVariableSelector:(e)=>C(e,ar,O.ENV),configFileSelector:(e)=>C(e,cr,O.CONFIG),default:!1};var fr="AWS_USE_FIPS_ENDPOINT",pr="use_fips_endpoint";var xi={environmentVariableSelector:(e)=>C(e,fr,O.ENV),configFileSelector:(e)=>C(e,pr,O.CONFIG),default:!1};var le=h(Me(),1),rt=(e)=>e[le.SMITHY_CONTEXT_KEY]||(e[le.SMITHY_CONTEXT_KEY]={});var S=(e)=>{if(typeof e==="function")return e;let t=Promise.resolve(e);return()=>t};var ot={environmentVariableSelector:(e)=>e.AWS_REGION,configFileSelector:(e)=>e.region,default:()=>{throw new Error("Region is missing")}},Li={preferredFile:"credentials"};var nt="content-length";function ur(e){return(t)=>async(r)=>{let o=r.request;if(m.isInstance(o)){let{body:n,headers:s}=o;if(n&&Object.keys(s).map((i)=>i.toLowerCase()).indexOf(nt)===-1)try{let i=e(n);o.headers={...o.headers,[nt]:String(i)}}catch(i){}}return t({...r,request:o})}}var dr={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(ur(e.bodyLengthChecker),dr)}});var lt=h(_r(),1);var ut=h(be(),1);var st=async(e)=>{let t=e?.Bucket||"";if(typeof e.Bucket==="string")e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(xr(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!gr(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)e.ForcePathStyle=!0;if(e.DisableMultiRegionAccessPoints)e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0;return e},lr=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,mr=/(\d+\.){3}\d+/,Er=/\.\./;var gr=(e)=>lr.test(e)&&!mr.test(e)&&!Er.test(e),xr=(e)=>{let[t,r,o,,,n]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,i=Boolean(s&&r&&o&&n);if(s&&!i)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return i};var it=(e,t,r)=>{let o=async()=>{let n=r[e]??r[t];if(typeof n==="function")return n();return n};if(e==="credentialScope"||t==="CredentialScope")return async()=>{let n=typeof r.credentials==="function"?await r.credentials():r.credentials;return n?.credentialScope??n?.CredentialScope};if(e==="accountId"||t==="AccountId")return async()=>{let n=typeof r.credentials==="function"?await r.credentials():r.credentials;return n?.accountId??n?.AccountId};if(e==="endpoint"||t==="endpoint")return async()=>{let n=await o();if(n&&typeof n==="object"){if("url"in n)return n.url.href;if("hostname"in n){let{protocol:s,hostname:i,port:a,path:c}=n;return`${s}//${i}${a?":"+a:""}${c}`}}return n};return o};var at="AWS_ENDPOINT_URL",ct="endpoint_url",ft=(e)=>({environmentVariableSelector:(t)=>{let r=e.split(" ").map((s)=>s.toUpperCase()),o=t[[at,...r].join("_")];if(o)return o;let n=t[at];if(n)return n;return},configFileSelector:(t,r)=>{if(r&&t.services){let n=r[["services",t.services].join(me)];if(n){let s=e.split(" ").map((a)=>a.toLowerCase()),i=n[[s.join("_"),ct].join(me)];if(i)return i}}let o=t[ct];if(o)return o;return},default:void 0});var K=async(e)=>F(ft(e??""))();var Q=(e)=>{if(typeof e==="object"){if("url"in e)return Ee(e.url);return e}return Ee(e)};var pt=async(e,t,r,o)=>{if(!r.endpoint){let i;if(r.serviceConfiguredEndpoint)i=await r.serviceConfiguredEndpoint();else i=await K(r.serviceId);if(i)r.endpoint=()=>Promise.resolve(Q(i))}let n=await Rr(e,t,r);if(typeof r.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(n,o)},Rr=async(e,t,r)=>{let o={},n=t?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(n))switch(i.type){case"staticContextParams":o[s]=i.value;break;case"contextParams":o[s]=e[i.name];break;case"clientContextParams":case"builtInParams":o[s]=await it(i.name,s,r)();break;case"operationContextParams":o[s]=i.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}if(Object.keys(n).length===0)Object.assign(o,r);if(String(r.serviceId).toLowerCase()==="s3")await st(o);return o};var dt=({config:e,instructions:t})=>{return(r,o)=>async(n)=>{if(e.endpoint)ut.setFeature(o,"ENDPOINT_OVERRIDE","N");let s=await pt(n.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;let i=o.authSchemes?.[0];if(i){o.signing_region=i.signingRegion,o.signing_service=i.signingName;let c=rt(o)?.selectedHttpAuthScheme?.httpAuthOption;if(c)c.signingProperties=Object.assign(c.signingProperties||{},{signing_region:i.signingRegion,signingRegion:i.signingRegion,signing_service:i.signingName,signingName:i.signingName,signingRegionSet:i.signingRegionSet},i.properties)}return r({...n})}};var hr={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:lt.serializerMiddlewareOption.name},Da=(e,t)=>({applyToStack:(r)=>{r.addRelativeTo(dt({config:e,instructions:t}),hr)}});var La=(e)=>{let t=e.tls??!0,{endpoint:r,useDualstackEndpoint:o,useFipsEndpoint:n}=e,s=r!=null?async()=>Q(await S(r)()):void 0,a=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!r,useDualstackEndpoint:S(o??!1),useFipsEndpoint:S(n??!1)}),c=void 0;return a.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!c)c=K(e.serviceId);return c},a};var g;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(g||(g={}));var N=3,mt=g.STANDARD;var Et=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],gt=["TimeoutError","RequestTimeout","RequestTimeoutException"],xt=[500,502,503,504],Rt=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var Ar=(e)=>e.$metadata?.clockSkewCorrected,D=(e)=>e.$metadata?.httpStatusCode===429||Et.includes(e.name)||e.$retryable?.throttling==!0,k=(e,t=0)=>Ar(e)||gt.includes(e.name)||Rt.includes(e?.code||"")||xt.includes(e.$metadata?.httpStatusCode||0)||e.cause!==void 0&&t<=10&&k(e.cause,t+1),_t=(e)=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!k(e))return!0;return!1}return!1};class P{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??0.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??0.5,this.scaleConstant=e?.scaleConstant??0.4,this.smooth=e?.smooth??0.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled)return;if(this.refillTokenBucket(),e>this.currentCapacity){let t=(e-this.currentCapacity)/this.fillRate*1000;await new Promise((r)=>P.setTimeoutFn(r,t))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),D(e)){let o=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=o,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(o),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),t=Math.floor(e*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}P.setTimeoutFn=setTimeout;var y=100,G=20000,ge=500,ee=500,xe=5,Re=10,_e=1,te="amz-sdk-invocation-id",re="amz-sdk-request";var ht=()=>{let e=y;return{computeNextBackoffDelay:(o)=>{return Math.floor(Math.min(G,Math.random()*2**o*e))},setDelayBase:(o)=>{e=o}}};var he=({retryDelay:e,retryCount:t,retryCost:r})=>{return{getRetryCount:()=>t,getRetryDelay:()=>Math.min(G,e),getRetryCost:()=>r}};class U{constructor(e){this.maxAttempts=e,this.mode=g.STANDARD,this.capacity=ee,this.retryBackoffStrategy=ht(),this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return he({retryDelay:y,retryCount:0})}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){let o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?ge:y);let n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(o);return this.capacity-=i,he({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(ee,this.capacity+(e.getRetryCost()??_e))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${N}`),N}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?Re:xe}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class Ae{constructor(e,t){this.maxAttemptsProvider=e,this.mode=g.ADAPTIVE;let{rateLimiter:r}=t??{};this.rateLimiter=r??new P,this.standardRetryStrategy=new U(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}var At="AWS_MAX_ATTEMPTS",St="max_attempts",Ic={environmentVariableSelector:(e)=>{let t=e[At];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${At} mast be a number, got "${t}"`);return r},configFileSelector:(e)=>{let t=e[St];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${St} mast be a number, got "${t}"`);return r},default:N},wc=(e)=>{let{retryStrategy:t,retryMode:r,maxAttempts:o}=e,n=S(o??N);return Object.assign(e,{maxAttempts:n,retryStrategy:async()=>{if(t)return t;if(await S(r)()===g.ADAPTIVE)return new Ae(n);return new U(n)}})},Sr="AWS_RETRY_MODE",Tr="retry_mode",bc={environmentVariableSelector:(e)=>e[Sr],configFileSelector:(e)=>e[Tr],default:mt};var _=h(Or(),1),Dc=_.default.v1,Pc=_.default.v3,Tt=_.default.v4,Uc=_.default.v5,vc=_.default.NIL,Mc=_.default.version,Lc=_.default.validate,$c=_.default.stringify,Fc=_.default.parse;import{Readable as Nr}from"node:stream";var Ot=(e)=>e?.body instanceof Nr||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;var Se=(e)=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};var yr=(e)=>(t,r)=>async(o)=>{let n=await e.retryStrategy(),s=await e.maxAttempts();if(Ir(n)){n=n;let i=await n.acquireInitialRetryToken(r.partition_id),a=new Error,c=0,f=0,{request:u}=o,R=m.isInstance(u);if(R)u.headers[te]=Tt();while(!0)try{if(R)u.headers[re]=`attempt=${c+1}; max=${s}`;let{response:l,output:d}=await t(o);return n.recordSuccess(i),d.$metadata.attempts=c+1,d.$metadata.totalRetryDelay=f,{response:l,output:d}}catch(l){let d=wr(l);if(a=Se(l),R&&Ot(u))throw(r.logger instanceof Nt?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),a;try{i=await n.refreshRetryTokenForRetry(i,d)}catch(V){if(!a.$metadata)a.$metadata={};throw a.$metadata.attempts=c+1,a.$metadata.totalRetryDelay=f,a}c=i.getRetryCount();let w=i.getRetryDelay();f+=w,await new Promise((V)=>setTimeout(V,w))}}else{if(n=n,n?.mode)r.userAgent=[...r.userAgent||[],["cfg/retry-mode",n.mode]];return n.retry(t,o)}},Ir=(e)=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined",wr=(e)=>{let t={error:e,errorType:br(e)},r=Dr(e.$response);if(r)t.retryAfterHint=r;return t},br=(e)=>{if(D(e))return"THROTTLING";if(k(e))return"TRANSIENT";if(_t(e))return"SERVER_ERROR";return"CLIENT_ERROR"},Cr={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Zc=(e)=>({applyToStack:(t)=>{t.add(yr(e),Cr)}}),Dr=(e)=>{if(!Te.isInstance(e))return;let t=Object.keys(e.headers).find((s)=>s.toLowerCase()==="retry-after");if(!t)return;let r=e.headers[t],o=Number(r);if(!Number.isNaN(o))return new Date(o*1000);return new Date(r)};import{platform as Pr,release as Ur}from"node:os";import{env as It,versions as vr}from"node:process";var Oe={isCrtAvailable:!1};var yt=()=>{if(Oe.isCrtAvailable)return["md/crt-avail"];return null};var kf=({serviceId:e,clientVersion:t})=>{return async(r)=>{let o=[["aws-sdk-js",t],["ua","2.1"],[`os/${Pr()}`,Ur()],["lang/js"],["md/nodejs",`${vr.node}`]],n=yt();if(n)o.push(n);if(e)o.push([`api/${e}`,t]);if(It.AWS_EXECUTION_ENV)o.push([`exec-env/${It.AWS_EXECUTION_ENV}`]);let s=await r?.userAgentAppId?.();return s?[...o,[`app/${s}`]]:[...o]}};var Mr="AWS_SDK_UA_APP_ID",Lr="sdk_ua_app_id",$r="sdk-ua-app-id",Wf={environmentVariableSelector:(e)=>e[Mr],configFileSelector:(e)=>e[Lr]??e[$r],default:se};var wt=(e)=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";import{Buffer as Ne}from"node:buffer";var I=(e,t=0,r=e.byteLength-t)=>{if(!wt(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Ne.from(e,t,r)},v=(e,t)=>{if(typeof e!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Ne.from(e,t):Ne.from(e)};var oe=(e)=>{let t=v(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var bt=(e)=>{if(typeof e==="string")return oe(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)};var op=(e)=>{if(typeof e==="string")return e;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return I(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};import{Buffer as Fr}from"node:buffer";import{createHash as kr,createHmac as Gr}from"node:crypto";class Vr{constructor(e,t){this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(bt(Ct(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Gr(this.algorithmIdentifier,Ct(this.secret)):kr(this.algorithmIdentifier)}}function Ct(e,t){if(Fr.isBuffer(e))return e;if(typeof e==="string")return v(e,t);if(ArrayBuffer.isView(e))return I(e.buffer,e.byteOffset,e.byteLength);return I(e)}import{fstatSync as Br,lstatSync as Wr}from"node:fs";var Ep=(e)=>{if(!e)return 0;if(typeof e==="string")return Buffer.byteLength(e);else if(typeof e.byteLength==="number")return e.byteLength;else if(typeof e.size==="number")return e.size;else if(typeof e.start==="number"&&typeof e.end==="number")return e.end+1-e.start;else if(typeof e.path==="string"||Buffer.isBuffer(e.path))return Wr(e.path).size;else if(typeof e.fd==="number")return Br(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};var Lt=h(jr(),1);var Dt="AWS_EXECUTION_ENV",ye="AWS_REGION",Ie="AWS_DEFAULT_REGION",Pt="AWS_EC2_METADATA_DISABLED",Ut=["in-region","cross-region","mobile","standard","legacy"],vt="/latest/meta-data/placement/region";var Mt={environmentVariableSelector:(e)=>{return e.AWS_DEFAULTS_MODE},configFileSelector:(e)=>{return e.defaults_mode},default:"legacy"};var Np=({region:e=F(ot),defaultsMode:t=F(Mt)}={})=>Lt.memoize(async()=>{let r=typeof t==="function"?await t():t;switch(r?.toLowerCase()){case"auto":return zr(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Ut.join(", ")}, got ${r}`)}}),zr=async(e)=>{if(e){let t=typeof e==="function"?await e():e,r=await Xr();if(!r)return"standard";if(t===r)return"in-region";else return"cross-region"}return"standard"},Xr=async()=>{if(process.env[Dt]&&(process.env[ye]||process.env[Ie]))return process.env[ye]??process.env[Ie];if(!process.env[Pt])try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await import("./chunk-10x00s2d.js"),r=await e();return(await t({...r,path:vt})).toString()}catch(e){}};var bp=(e)=>{return{setRegion(t){e.region=t},region(){return e.region}}},Cp=(e)=>{return{region:e.region()}};var qr=/^[A-Za-z0-9+/]*={0,2}$/,Xp=(e)=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!qr.exec(e))throw new TypeError("Invalid base64 string.");let t=v(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};var Jp=(e)=>{let t;if(typeof e==="string")t=oe(e);else t=e;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return I(t.buffer,t.byteOffset,t.byteLength).toString("base64")};export{Jr as $a,Kr as ab,eo as bb,so as cb,ao as db,qt as eb,$ as fb,Kt as gb,rr as hb,Hs as ib,mi as jb,xi as kb,rt as lb,S as mb,ot as nb,Li as ob,ni as pb,fa as qb,Da as rb,La as sb,mt as tb,Ic as ub,wc as vb,bc as wb,Zc as xb,kf as yb,Wf as zb,oe as Ab,op as Bb,Vr as Cb,Ep as Db,Xp as Eb,Jp as Fb,Np as Gb,bp as Hb,Cp as Ib};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Tc as sJ,Vc as X,Yc as Q}from"./chunk-5asbctb1.js";var u=X((SE)=>{SE.fromCallback=function(q){return Object.defineProperty(function(...n){if(typeof n[n.length-1]==="function")q.apply(this,n);else return new Promise((E,y)=>{n.push((J,O)=>J!=null?y(J):E(O)),q.apply(this,n)})},"name",{value:q.name})};SE.fromPromise=function(q){return Object.defineProperty(function(...n){let E=n[n.length-1];if(typeof E!=="function")return q.apply(this,n);else n.pop(),q.apply(this,n).then((y)=>E(null,y),E)},"name",{value:q.name})}});var hq=X((UO,iq)=>{var f=Q("node:constants"),iE=process.cwd,Pq=null,hE=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!Pq)Pq=iE.call(process);return Pq};try{process.cwd()}catch(q){}if(typeof process.chdir==="function"){if(Aq=process.chdir,process.chdir=function(q){Pq=null,Aq.call(process,q)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,Aq)}var Aq;iq.exports=lE;function lE(q){if(f.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))n(q);if(!q.lutimes)E(q);if(q.chown=O(q.chown),q.fchown=O(q.fchown),q.lchown=O(q.lchown),q.chmod=y(q.chmod),q.fchmod=y(q.fchmod),q.lchmod=y(q.lchmod),q.chownSync=_(q.chownSync),q.fchownSync=_(q.fchownSync),q.lchownSync=_(q.lchownSync),q.chmodSync=J(q.chmodSync),q.fchmodSync=J(q.fchmodSync),q.lchmodSync=J(q.lchmodSync),q.stat=U(q.stat),q.fstat=U(q.fstat),q.lstat=U(q.lstat),q.statSync=j(q.statSync),q.fstatSync=j(q.fstatSync),q.lstatSync=j(q.lstatSync),q.chmod&&!q.lchmod)q.lchmod=function(V,A,L){if(L)process.nextTick(L)},q.lchmodSync=function(){};if(q.chown&&!q.lchown)q.lchown=function(V,A,L,K){if(K)process.nextTick(K)},q.lchownSync=function(){};if(hE==="win32")q.rename=typeof q.rename!=="function"?q.rename:function(V){function A(L,K,P){var N=Date.now(),C=0;V(L,K,function R(h){if(h&&(h.code==="EACCES"||h.code==="EPERM"||h.code==="EBUSY")&&Date.now()-N<60000){if(setTimeout(function(){q.stat(K,function(m,Jq){if(m&&m.code==="ENOENT")V(L,K,R);else P(h)})},C),C<100)C+=10;return}if(P)P(h)})}if(Object.setPrototypeOf)Object.setPrototypeOf(A,V);return A}(q.rename);q.read=typeof q.read!=="function"?q.read:function(V){function A(L,K,P,N,C,R){var h;if(R&&typeof R==="function"){var m=0;h=function(Jq,gq,bq){if(Jq&&Jq.code==="EAGAIN"&&m<10)return m++,V.call(q,L,K,P,N,C,h);R.apply(this,arguments)}}return V.call(q,L,K,P,N,C,h)}if(Object.setPrototypeOf)Object.setPrototypeOf(A,V);return A}(q.read),q.readSync=typeof q.readSync!=="function"?q.readSync:function(V){return function(A,L,K,P,N){var C=0;while(!0)try{return V.call(q,A,L,K,P,N)}catch(R){if(R.code==="EAGAIN"&&C<10){C++;continue}throw R}}}(q.readSync);function n(V){V.lchmod=function(A,L,K){V.open(A,f.O_WRONLY|f.O_SYMLINK,L,function(P,N){if(P){if(K)K(P);return}V.fchmod(N,L,function(C){V.close(N,function(R){if(K)K(C||R)})})})},V.lchmodSync=function(A,L){var K=V.openSync(A,f.O_WRONLY|f.O_SYMLINK,L),P=!0,N;try{N=V.fchmodSync(K,L),P=!1}finally{if(P)try{V.closeSync(K)}catch(C){}else V.closeSync(K)}return N}}function E(V){if(f.hasOwnProperty("O_SYMLINK")&&V.futimes)V.lutimes=function(A,L,K,P){V.open(A,f.O_SYMLINK,function(N,C){if(N){if(P)P(N);return}V.futimes(C,L,K,function(R){V.close(C,function(h){if(P)P(R||h)})})})},V.lutimesSync=function(A,L,K){var P=V.openSync(A,f.O_SYMLINK),N,C=!0;try{N=V.futimesSync(P,L,K),C=!1}finally{if(C)try{V.closeSync(P)}catch(R){}else V.closeSync(P)}return N};else if(V.futimes)V.lutimes=function(A,L,K,P){if(P)process.nextTick(P)},V.lutimesSync=function(){}}function y(V){if(!V)return V;return function(A,L,K){return V.call(q,A,L,function(P){if($(P))P=null;if(K)K.apply(this,arguments)})}}function J(V){if(!V)return V;return function(A,L){try{return V.call(q,A,L)}catch(K){if(!$(K))throw K}}}function O(V){if(!V)return V;return function(A,L,K,P){return V.call(q,A,L,K,function(N){if($(N))N=null;if(P)P.apply(this,arguments)})}}function _(V){if(!V)return V;return function(A,L,K){try{return V.call(q,A,L,K)}catch(P){if(!$(P))throw P}}}function U(V){if(!V)return V;return function(A,L,K){if(typeof L==="function")K=L,L=null;function P(N,C){if(C){if(C.uid<0)C.uid+=4294967296;if(C.gid<0)C.gid+=4294967296}if(K)K.apply(this,arguments)}return L?V.call(q,A,L,P):V.call(q,A,P)}}function j(V){if(!V)return V;return function(A,L){var K=L?V.call(q,A,L):V.call(q,A);if(K){if(K.uid<0)K.uid+=4294967296;if(K.gid<0)K.gid+=4294967296}return K}}function $(V){if(!V)return!0;if(V.code==="ENOSYS")return!0;var A=!process.getuid||process.getuid()!==0;if(A){if(V.code==="EINVAL"||V.code==="EPERM")return!0}return!1}}});var cq=X((zO,pq)=>{var lq=Q("node:stream").Stream;pq.exports=pE;function pE(q){return{ReadStream:n,WriteStream:E};function n(y,J){if(!(this instanceof n))return new n(y,J);lq.call(this);var O=this;this.path=y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,J=J||{};var _=Object.keys(J);for(var U=0,j=_.length;U<j;U++){var $=_[U];this[$]=J[$]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){O._read()});return}q.open(this.path,this.flags,this.mode,function(V,A){if(V){O.emit("error",V),O.readable=!1;return}O.fd=A,O.emit("open",A),O._read()})}function E(y,J){if(!(this instanceof E))return new E(y,J);lq.call(this),this.path=y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,J=J||{};var O=Object.keys(J);for(var _=0,U=O.length;_<U;_++){var j=O[_];this[j]=J[j]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=q.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var fq=X((LO,oq)=>{oq.exports=oE;var cE=Object.getPrototypeOf||function(q){return q.__proto__};function oE(q){if(q===null||typeof q!=="object")return q;if(q instanceof Object)var n={__proto__:cE(q)};else var n=Object.create(null);return Object.getOwnPropertyNames(q).forEach(function(E){Object.defineProperty(n,E,Object.getOwnPropertyDescriptor(q,E))}),n}});var qq=X((PO,Iq)=>{var B=Q("node:fs"),fE=hq(),dE=cq(),rE=fq(),Gq=Q("node:util"),F,Yq;if(typeof Symbol==="function"&&typeof Symbol.for==="function")F=Symbol.for("graceful-fs.queue"),Yq=Symbol.for("graceful-fs.previous");else F="___graceful-fs.queue",Yq="___graceful-fs.previous";function aE(){}function rq(q,n){Object.defineProperty(q,F,{get:function(){return n}})}var e=aE;if(Gq.debuglog)e=Gq.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))e=function(){var q=Gq.format.apply(Gq,arguments);q="GFS4: "+q.split(/\n/).join(`
|
|
3
3
|
GFS4: `),console.error(q)};if(!B[F]){if(wq=global[F]||[],rq(B,wq),B.close=function(q){function n(E,y){return q.call(B,E,function(J){if(!J)dq();if(typeof y==="function")y.apply(this,arguments)})}return Object.defineProperty(n,Yq,{value:q}),n}(B.close),B.closeSync=function(q){function n(E){q.apply(B,arguments),dq()}return Object.defineProperty(n,Yq,{value:q}),n}(B.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){e(B[F]),Q("node:assert").equal(B[F].length,0)})}var wq;if(!global[F])rq(global,B[F]);Iq.exports=Bq(rE(B));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!B.__patched)Iq.exports=Bq(B),B.__patched=!0;function Bq(q){fE(q),q.gracefulify=Bq,q.createReadStream=gq,q.createWriteStream=bq;var n=q.readFile;q.readFile=E;function E(z,Z,Y){if(typeof Z==="function")Y=Z,Z=null;return M(z,Z,Y);function M(T,I,w,D){return n(T,I,function(H){if(H&&(H.code==="EMFILE"||H.code==="ENFILE"))s([M,[T,I,w],H,D||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var y=q.writeFile;q.writeFile=J;function J(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=null;return T(z,Z,Y,M);function T(I,w,D,H,k){return y(I,w,D,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}var O=q.appendFile;if(O)q.appendFile=_;function _(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=null;return T(z,Z,Y,M);function T(I,w,D,H,k){return O(I,w,D,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}var U=q.copyFile;if(U)q.copyFile=j;function j(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=0;return T(z,Z,Y,M);function T(I,w,D,H,k){return U(I,w,D,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}var $=q.readdir;q.readdir=A;var V=/^v[0-5]\./;function A(z,Z,Y){if(typeof Z==="function")Y=Z,Z=null;var M=V.test(process.version)?function I(w,D,H,k){return $(w,T(w,D,H,k))}:function I(w,D,H,k){return $(w,D,T(w,D,H,k))};return M(z,Z,Y);function T(I,w,D,H){return function(k,x){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))s([M,[I,w,D],k,H||Date.now(),Date.now()]);else{if(x&&x.sort)x.sort();if(typeof D==="function")D.call(this,k,x)}}}}if(process.version.substr(0,4)==="v0.8"){var L=dE(q);R=L.ReadStream,m=L.WriteStream}var K=q.ReadStream;if(K)R.prototype=Object.create(K.prototype),R.prototype.open=h;var P=q.WriteStream;if(P)m.prototype=Object.create(P.prototype),m.prototype.open=Jq;Object.defineProperty(q,"ReadStream",{get:function(){return R},set:function(z){R=z},enumerable:!0,configurable:!0}),Object.defineProperty(q,"WriteStream",{get:function(){return m},set:function(z){m=z},enumerable:!0,configurable:!0});var N=R;Object.defineProperty(q,"FileReadStream",{get:function(){return N},set:function(z){N=z},enumerable:!0,configurable:!0});var C=m;Object.defineProperty(q,"FileWriteStream",{get:function(){return C},set:function(z){C=z},enumerable:!0,configurable:!0});function R(z,Z){if(this instanceof R)return K.apply(this,arguments),this;else return R.apply(Object.create(R.prototype),arguments)}function h(){var z=this;Rq(z.path,z.flags,z.mode,function(Z,Y){if(Z){if(z.autoClose)z.destroy();z.emit("error",Z)}else z.fd=Y,z.emit("open",Y),z.read()})}function m(z,Z){if(this instanceof m)return P.apply(this,arguments),this;else return m.apply(Object.create(m.prototype),arguments)}function Jq(){var z=this;Rq(z.path,z.flags,z.mode,function(Z,Y){if(Z)z.destroy(),z.emit("error",Z);else z.fd=Y,z.emit("open",Y)})}function gq(z,Z){return new q.ReadStream(z,Z)}function bq(z,Z){return new q.WriteStream(z,Z)}var mE=q.open;q.open=Rq;function Rq(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=null;return T(z,Z,Y,M);function T(I,w,D,H,k){return mE(I,w,D,function(x,VO){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}return q}function s(q){e("ENQUEUE",q[0].name,q[1]),B[F].push(q),Dq()}var Xq;function dq(){var q=Date.now();for(var n=0;n<B[F].length;++n)if(B[F][n].length>2)B[F][n][3]=q,B[F][n][4]=q;Dq()}function Dq(){if(clearTimeout(Xq),Xq=void 0,B[F].length===0)return;var q=B[F].shift(),n=q[0],E=q[1],y=q[2],J=q[3],O=q[4];if(J===void 0)e("RETRY",n.name,E),n.apply(null,E);else if(Date.now()-J>=60000){e("TIMEOUT",n.name,E);var _=E.pop();if(typeof _==="function")_.call(null,y)}else{var U=Date.now()-O,j=Math.max(O-J,1),$=Math.min(j*1.2,100);if(U>=$)e("RETRY",n.name,E),n.apply(null,E.concat([J]));else B[F].push(q)}if(Xq===void 0)Xq=setTimeout(Dq,0)}});var g=X((uq)=>{var aq=u().fromCallback,S=qq(),eE=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((q)=>{return typeof S[q]==="function"});Object.assign(uq,S);eE.forEach((q)=>{uq[q]=aq(S[q])});uq.exists=function(q,n){if(typeof n==="function")return S.exists(q,n);return new Promise((E)=>{return S.exists(q,E)})};uq.read=function(q,n,E,y,J,O){if(typeof O==="function")return S.read(q,n,E,y,J,O);return new Promise((_,U)=>{S.read(q,n,E,y,J,(j,$,V)=>{if(j)return U(j);_({bytesRead:$,buffer:V})})})};uq.write=function(q,n,...E){if(typeof E[E.length-1]==="function")return S.write(q,n,...E);return new Promise((y,J)=>{S.write(q,n,...E,(O,_,U)=>{if(O)return J(O);y({bytesWritten:_,buffer:U})})})};uq.readv=function(q,n,...E){if(typeof E[E.length-1]==="function")return S.readv(q,n,...E);return new Promise((y,J)=>{S.readv(q,n,...E,(O,_,U)=>{if(O)return J(O);y({bytesRead:_,buffers:U})})})};uq.writev=function(q,n,...E){if(typeof E[E.length-1]==="function")return S.writev(q,n,...E);return new Promise((y,J)=>{S.writev(q,n,...E,(O,_,U)=>{if(O)return J(O);y({bytesWritten:_,buffers:U})})})};if(typeof S.realpath.native==="function")uq.realpath.native=aq(S.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var tq=X((Jy,eq)=>{var yy=Q("node:path");Jy.checkPath=function q(n){if(process.platform==="win32"){if(/[<>:"|?*]/.test(n.replace(yy.parse(n).root,""))){let y=new Error(`Path contains invalid characters: ${n}`);throw y.code="EINVAL",y}}}});var En=X((_y,Qq)=>{var sq=g(),{checkPath:qn}=tq(),nn=(q)=>{let n={mode:511};if(typeof q==="number")return q;return{...n,...q}.mode};_y.makeDir=async(q,n)=>{return qn(q),sq.mkdir(q,{mode:nn(n),recursive:!0})};_y.makeDirSync=(q,n)=>{return qn(q),sq.mkdirSync(q,{mode:nn(n),recursive:!0})}});var l=X((XO,yn)=>{var Uy=u().fromPromise,{makeDir:zy,makeDirSync:Wq}=En(),Mq=Uy(zy);yn.exports={mkdirs:Mq,mkdirsSync:Wq,mkdirp:Mq,mkdirpSync:Wq,ensureDir:Mq,ensureDirSync:Wq}});var d=X((YO,On)=>{var Ly=u().fromPromise,Jn=g();function Py(q){return Jn.access(q).then(()=>!0).catch(()=>!1)}On.exports={pathExists:Ly(Py),pathExistsSync:Jn.existsSync}});var Tq=X((ZO,_n)=>{var nq=g(),Ay=u().fromPromise;async function Gy(q,n,E){let y=await nq.open(q,"r+"),J=null;try{await nq.futimes(y,n,E)}finally{try{await nq.close(y)}catch(O){J=O}}if(J)throw J}function Xy(q,n,E){let y=nq.openSync(q,"r+");return nq.futimesSync(y,n,E),nq.closeSync(y)}_n.exports={utimesMillis:Ay(Gy),utimesMillisSync:Xy}});var t=X((CO,zn)=>{var Eq=g(),W=Q("node:path"),Vn=u().fromPromise;function Yy(q,n,E){let y=E.dereference?(J)=>Eq.stat(J,{bigint:!0}):(J)=>Eq.lstat(J,{bigint:!0});return Promise.all([y(q),y(n).catch((J)=>{if(J.code==="ENOENT")return null;throw J})]).then(([J,O])=>({srcStat:J,destStat:O}))}function Zy(q,n,E){let y,J=E.dereference?(_)=>Eq.statSync(_,{bigint:!0}):(_)=>Eq.lstatSync(_,{bigint:!0}),O=J(q);try{y=J(n)}catch(_){if(_.code==="ENOENT")return{srcStat:O,destStat:null};throw _}return{srcStat:O,destStat:y}}async function Cy(q,n,E,y){let{srcStat:J,destStat:O}=await Yy(q,n,y);if(O){if(Oq(J,O)){let _=W.basename(q),U=W.basename(n);if(E==="move"&&_!==U&&_.toLowerCase()===U.toLowerCase())return{srcStat:J,destStat:O,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(J.isDirectory()&&!O.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${q}'.`);if(!J.isDirectory()&&O.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${q}'.`)}if(J.isDirectory()&&kq(q,n))throw new Error(Zq(q,n,E));return{srcStat:J,destStat:O}}function Hy(q,n,E,y){let{srcStat:J,destStat:O}=Zy(q,n,y);if(O){if(Oq(J,O)){let _=W.basename(q),U=W.basename(n);if(E==="move"&&_!==U&&_.toLowerCase()===U.toLowerCase())return{srcStat:J,destStat:O,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(J.isDirectory()&&!O.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${q}'.`);if(!J.isDirectory()&&O.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${q}'.`)}if(J.isDirectory()&&kq(q,n))throw new Error(Zq(q,n,E));return{srcStat:J,destStat:O}}async function Kn(q,n,E,y){let J=W.resolve(W.dirname(q)),O=W.resolve(W.dirname(E));if(O===J||O===W.parse(O).root)return;let _;try{_=await Eq.stat(O,{bigint:!0})}catch(U){if(U.code==="ENOENT")return;throw U}if(Oq(n,_))throw new Error(Zq(q,E,y));return Kn(q,n,O,y)}function Un(q,n,E,y){let J=W.resolve(W.dirname(q)),O=W.resolve(W.dirname(E));if(O===J||O===W.parse(O).root)return;let _;try{_=Eq.statSync(O,{bigint:!0})}catch(U){if(U.code==="ENOENT")return;throw U}if(Oq(n,_))throw new Error(Zq(q,E,y));return Un(q,n,O,y)}function Oq(q,n){return n.ino&&n.dev&&n.ino===q.ino&&n.dev===q.dev}function kq(q,n){let E=W.resolve(q).split(W.sep).filter((J)=>J),y=W.resolve(n).split(W.sep).filter((J)=>J);return E.every((J,O)=>y[O]===J)}function Zq(q,n,E){return`Cannot ${E} '${q}' to a subdirectory of itself, '${n}'.`}zn.exports={checkPaths:Vn(Cy),checkPathsSync:Hy,checkParentPaths:Vn(Kn),checkParentPathsSync:Un,isSrcSubdir:kq,areIdentical:Oq}});var Xn=X((HO,Gn)=>{var v=g(),_q=Q("node:path"),{mkdirs:Ny}=l(),{pathExists:xy}=d(),{utimesMillis:jy}=Tq(),Vq=t();async function Ry(q,n,E={}){if(typeof E==="function")E={filter:E};if(E.clobber="clobber"in E?!!E.clobber:!0,E.overwrite="overwrite"in E?!!E.overwrite:E.clobber,E.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
4
4
|
|
|
5
5
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:y,destStat:J}=await Vq.checkPaths(q,n,"copy",E);if(await Vq.checkParentPaths(q,y,n,"copy"),!await Pn(q,n,E))return;let _=_q.dirname(n);if(!await xy(_))await Ny(_);await An(J,q,n,E)}async function Pn(q,n,E){if(!E.filter)return!0;return E.filter(q,n)}async function An(q,n,E,y){let O=await(y.dereference?v.stat:v.lstat)(n);if(O.isDirectory())return Iy(O,q,n,E,y);if(O.isFile()||O.isCharacterDevice()||O.isBlockDevice())return wy(O,q,n,E,y);if(O.isSymbolicLink())return uy(q,n,E,y);if(O.isSocket())throw new Error(`Cannot copy a socket file: ${n}`);if(O.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${n}`);throw new Error(`Unknown file: ${n}`)}async function wy(q,n,E,y,J){if(!n)return Ln(q,E,y,J);if(J.overwrite)return await v.unlink(y),Ln(q,E,y,J);if(J.errorOnExist)throw new Error(`'${y}' already exists`)}async function Ln(q,n,E,y){if(await v.copyFile(n,E),y.preserveTimestamps){if(By(q.mode))await Dy(E,q.mode);let J=await v.stat(n);await jy(E,J.atime,J.mtime)}return v.chmod(E,q.mode)}function By(q){return(q&128)===0}function Dy(q,n){return v.chmod(q,n|128)}async function Iy(q,n,E,y,J){if(!n)await v.mkdir(y);let O=[];for await(let _ of await v.opendir(E)){let U=_q.join(E,_.name),j=_q.join(y,_.name);O.push(Pn(U,j,J).then(($)=>{if($)return Vq.checkPaths(U,j,"copy",J).then(({destStat:V})=>{return An(V,U,j,J)})}))}if(await Promise.all(O),!n)await v.chmod(y,q.mode)}async function uy(q,n,E,y){let J=await v.readlink(n);if(y.dereference)J=_q.resolve(process.cwd(),J);if(!q)return v.symlink(J,E);let O=null;try{O=await v.readlink(E)}catch(_){if(_.code==="EINVAL"||_.code==="UNKNOWN")return v.symlink(J,E);throw _}if(y.dereference)O=_q.resolve(process.cwd(),O);if(Vq.isSrcSubdir(J,O))throw new Error(`Cannot copy '${J}' to a subdirectory of itself, '${O}'.`);if(Vq.isSrcSubdir(O,J))throw new Error(`Cannot overwrite '${O}' with '${J}'.`);return await v.unlink(E),v.symlink(J,E)}Gn.exports=Ry});var Nn=X((NO,Hn)=>{var b=qq(),Kq=Q("node:path"),Qy=l().mkdirsSync,Wy=Tq().utimesMillisSync,Uq=t();function My(q,n,E){if(typeof E==="function")E={filter:E};if(E=E||{},E.clobber="clobber"in E?!!E.clobber:!0,E.overwrite="overwrite"in E?!!E.overwrite:E.clobber,E.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-
|
|
2
|
+
import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-jex4n4zt.js";import{Ca as l8}from"./chunk-f7vye9sd.js";import{Tc as _1,Vc as E,Yc as R}from"./chunk-5asbctb1.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("node:os"),Ay=R("node:path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
|
|
3
3
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
@@ -31,5 +31,5 @@ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J
|
|
|
31
31
|
`+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
|
|
32
32
|
`+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`
|
|
33
33
|
`+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
|
|
34
|
-
`+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"node:module";import J9,{dirname as E9,win32 as H8,join as z9}from"node:path";import _0 from"node:process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-z4zm45jz.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
|
|
34
|
+
`+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"node:module";import J9,{dirname as E9,win32 as H8,join as z9}from"node:path";import _0 from"node:process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-ct356ajd.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
|
|
35
35
|
${L0(B,$)}`;for(let W of _.addons)V=await W.declaration?.call(_,V,$)??V;return V}async function h(q,$=!0){let C=await h1(q,$);return await _.modifyDynamicImports((j)=>j.filter((V)=>V.from!==q).concat(C)),C}async function S(q=_.options.dirs||[],$=_.options.dirsScanOptions){let C=await Ey(q,$),j=new Set(C.map((V)=>V.from));return await _.modifyDynamicImports((V)=>V.filter((B)=>!j.has(B.from)).concat(C)),C}async function y(q,$,C){let j=await H6(q,$,_,{...f,...C}),V=_.getMetadata();if(V)j.imports.forEach((B)=>{if(V.injectionUsage[B.name]=V.injectionUsage[B.name]||{import:B,count:0,moduleIds:[]},V.injectionUsage[B.name].count++,$&&!V.injectionUsage[B.name].moduleIds.includes($))V.injectionUsage[B.name].moduleIds.push($)});return j}async function F(){if(_.options.dirs?.length)await S()}return{version:E0,init:F,clearDynamicImports:()=>_.clearDynamicImports(),modifyDynamicImports:(q)=>_.modifyDynamicImports(q),scanImportsFromDir:S,scanImportsFromFile:h,getImports:()=>_.getImports(),getImportMap:()=>_.getImportMap(),detectImports:(q)=>Qy(q,_),injectImports:y,generateTypeDeclarations:(q)=>w(q),getMetadata:()=>_.getMetadata(),getInternalContext:()=>_,toExports:async(q,$=!1)=>Y0(await _.getImports(),q,$)}}function A6(f){let _,w=new Map,h=v8(f);f.addons=h,f.commentsDisable=f.commentsDisable??["@unimport-disable","@imports-disable"],f.commentsDebug=f.commentsDebug??["@unimport-debug","@imports-debug"];let S;if(f.collectMeta)S={injectionUsage:{}};let y,F={version:E0,options:f,addons:h,staticImports:[...f.imports||[]].filter(Boolean),dynamicImports:[],modifyDynamicImports:$,clearDynamicImports:C,async getImports(){return await y,q()},async replaceImports(j){return F.staticImports=[...j||[]].filter(Boolean),F.invalidate(),await y,q()},async getImportMap(){return await F.getImports(),w},getMetadata(){return S},invalidate(){_=void 0},resolveId:(j,V)=>f.resolveId?.(j,V)};y=gy(f.presets||[]).then((j)=>{F.staticImports.unshift(...j),_=void 0,q()});function q(){if(!_){let j=Q0(B0([...F.staticImports,...F.dynamicImports],f.warn||console.warn));for(let V of F.addons)if(V.extendImports)j=V.extendImports.call(F,j)??j;j=j.filter((V)=>!V.disabled),w.clear();for(let V of j)if(!V.type)w.set(V.as??V.name,V);_=j}return _}async function $(j){let V=await j(F.dynamicImports);if(Array.isArray(V))F.dynamicImports=V;F.invalidate()}function C(){F.dynamicImports.length=0,F.invalidate()}return F}async function H6(f,_,w,h){let S=w1(f);if(w.options.commentsDisable?.some((C)=>S.original.includes(C)))return{s:S,get code(){return S.toString()},imports:[]};for(let C of w.addons)await C.transform?.call(w,S,_);let{isCJSContext:y,matchedImports:F,firstOccurrence:q}=await Qy(S,w,h),$=await k6(w,F,_);if(w.options.commentsDebug?.some((C)=>S.original.includes(C)))(w.options.debugLog||console.log)(`[unimport] ${$.length} imports detected in "${_}"${$.length?`: ${$.map((j)=>j.name).join(", ")}`:""}`);return{...W0(S,$,y,h?.mergeExisting,h?.injectAtEnd,q,(C)=>{for(let j of w.addons)C=j.injectImportsResolved?.call(w,C,S,_)??C;return C},(C,j)=>{for(let V of w.addons)C=V.injectImportsStringified?.call(w,C,j,S,_)??C;return C}),imports:$}}async function k6(f,_,w){let h=new Map;return(await Promise.all(_.map(async(y)=>{if(!h.has(y.from))h.set(y.from,await f.resolveId(y.from,w)||y.from);let F=h.get(y.from);if(y.from===w||!F||F==="."||F===w)return;return{...y,from:F}}))).filter(Boolean)}var P9=_1(a1(),1);async function R9(f,_={}){let{globalObject:w=globalThis,overrides:h=!1}=_;return f=Array.isArray(f)?f:await f.getImports(),await Promise.all(f.map(async(S)=>{if(S.disabled||S.type)return;let y=S.as||S.name;if(h||!(y in w)){let F=await import(S.from);w[y]=F[S.name]}})),w}export{M0 as vueTemplateAddon,E0 as version,L0 as toTypeReExports,P6 as toTypeDeclarationItems,u0 as toTypeDeclarationFile,x6 as toImports,Y0 as toExports,Z0 as stripFileExtension,V0 as stripCommentsAndStrings,l6 as stringifyImports,f1 as separatorRE,Jy as scanFilesFromDir,h1 as scanExports,Ey as scanDirExports,O0 as resolvePreset,d6 as resolveIdAbsolute,gy as resolveBuiltinPresets,Xy as normalizeScanDirs,Q0 as normalizeImports,C0 as matchRE,R9 as installGlobalAutoImports,j0 as importAsRE,R6 as getString,w1 as getMagicString,$0 as excludeRE,I as defineUnimportPreset,B0 as dedupeImports,zy as dedupeDtsExports,G6 as createUnimport,Ky as builtinPresets,W0 as addImportToCode};
|