@visulima/vis 1.0.0-alpha.21 → 1.0.0-alpha.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.
Files changed (112) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/LICENSE.md +206 -141
  3. package/README.md +21 -4
  4. package/dist/config/index.d.ts +199 -6
  5. package/dist/packem_chunks/bin.js +318 -318
  6. package/dist/packem_chunks/bloom-status.js +2 -0
  7. package/dist/packem_chunks/bloom-sync.js +2 -0
  8. package/dist/packem_chunks/cache-attestation.js +1 -0
  9. package/dist/packem_chunks/config.js +15 -15
  10. package/dist/packem_chunks/fix.js +1 -1
  11. package/dist/packem_chunks/handler.js +1 -1
  12. package/dist/packem_chunks/handler10.js +2 -1
  13. package/dist/packem_chunks/handler11.js +1 -5
  14. package/dist/packem_chunks/handler12.js +5 -1
  15. package/dist/packem_chunks/handler13.js +1 -27
  16. package/dist/packem_chunks/handler14.js +28 -5
  17. package/dist/packem_chunks/handler15.js +5 -1
  18. package/dist/packem_chunks/handler16.js +1 -1
  19. package/dist/packem_chunks/handler17.js +1 -1
  20. package/dist/packem_chunks/handler18.js +1 -1
  21. package/dist/packem_chunks/handler19.js +1 -1
  22. package/dist/packem_chunks/handler2.js +4 -2
  23. package/dist/packem_chunks/handler20.js +1 -5
  24. package/dist/packem_chunks/handler21.js +5 -2
  25. package/dist/packem_chunks/handler22.js +2 -2
  26. package/dist/packem_chunks/handler23.js +2 -18
  27. package/dist/packem_chunks/handler24.js +18 -1
  28. package/dist/packem_chunks/handler25.js +1 -1
  29. package/dist/packem_chunks/handler26.js +1 -5
  30. package/dist/packem_chunks/handler27.js +5 -1
  31. package/dist/packem_chunks/handler28.js +1 -3
  32. package/dist/packem_chunks/handler29.js +3 -1
  33. package/dist/packem_chunks/handler3.js +4 -4
  34. package/dist/packem_chunks/handler30.js +1 -7
  35. package/dist/packem_chunks/handler31.js +6 -32
  36. package/dist/packem_chunks/handler32.js +33 -3
  37. package/dist/packem_chunks/handler33.js +3 -1
  38. package/dist/packem_chunks/handler34.js +1 -26
  39. package/dist/packem_chunks/handler35.js +26 -3
  40. package/dist/packem_chunks/handler36.js +5 -7
  41. package/dist/packem_chunks/handler37.js +6 -6
  42. package/dist/packem_chunks/handler38.js +1 -1
  43. package/dist/packem_chunks/handler39.js +61 -6
  44. package/dist/packem_chunks/handler4.js +6 -8
  45. package/dist/packem_chunks/handler40.js +6 -24
  46. package/dist/packem_chunks/handler41.js +215 -10
  47. package/dist/packem_chunks/handler42.js +24 -153
  48. package/dist/packem_chunks/handler43.js +153 -25
  49. package/dist/packem_chunks/handler44.js +10 -24
  50. package/dist/packem_chunks/handler45.js +25 -213
  51. package/dist/packem_chunks/handler46.js +24 -3
  52. package/dist/packem_chunks/handler47.js +3 -27
  53. package/dist/packem_chunks/handler48.js +21 -161
  54. package/dist/packem_chunks/handler49.js +173 -33
  55. package/dist/packem_chunks/handler5.js +8 -1
  56. package/dist/packem_chunks/handler50.js +34 -0
  57. package/dist/packem_chunks/handler6.js +1 -1
  58. package/dist/packem_chunks/handler7.js +1 -1
  59. package/dist/packem_chunks/handler8.js +1 -1
  60. package/dist/packem_chunks/handler9.js +1 -2
  61. package/dist/packem_chunks/heal-accept.js +1 -1
  62. package/dist/packem_chunks/heal.js +1 -1
  63. package/dist/packem_chunks/help-command.js +16 -16
  64. package/dist/packem_chunks/index.js +2 -2
  65. package/dist/packem_chunks/keys-refresh.js +1 -1
  66. package/dist/packem_chunks/list.js +1 -1
  67. package/dist/packem_chunks/loader.js +4 -1
  68. package/dist/packem_chunks/loader2.js +1 -0
  69. package/dist/packem_chunks/prune.js +1 -1
  70. package/dist/packem_chunks/run.js +1 -1
  71. package/dist/packem_chunks/status.js +1 -1
  72. package/dist/packem_chunks/sync.js +1 -1
  73. package/dist/packem_chunks/sync2.js +1 -1
  74. package/dist/packem_chunks/verify-lockfile.js +2 -0
  75. package/dist/packem_shared/{advisories-DsynpacV.js → advisories-DS8JEB_g.js} +1 -1
  76. package/dist/packem_shared/{ai-analysis-uYuTIIXi.js → ai-analysis-DGBZYlxF.js} +1 -1
  77. package/dist/packem_shared/{ai-cache-DuwHYx2O.js → ai-cache-BjlXWJtl.js} +1 -1
  78. package/dist/packem_shared/{ai-fix-DzrA-dVz.js → ai-fix-BhcTrkuW.js} +6 -6
  79. package/dist/packem_shared/cyclonedx-CO7-Y1B1.js +4 -0
  80. package/dist/packem_shared/dependency-scan-DPHTzA5r.js +1 -0
  81. package/dist/packem_shared/docker-lk0-5Z-i.js +60 -0
  82. package/dist/packem_shared/{failure-log-C3LEMmkq.js → failure-log-DF7nrFIs.js} +1 -1
  83. package/dist/packem_shared/{flakiness-Dq6K4ymq.js → flakiness-DKCOYwN7.js} +1 -1
  84. package/dist/packem_shared/index-B4gpNmrG.js +1 -0
  85. package/dist/packem_shared/license-zZU7aavK.js +1 -0
  86. package/dist/packem_shared/{lifecycle-Dv3nAtoD.js → lifecycle-boYwVQSE.js} +2 -2
  87. package/dist/packem_shared/{min-release-age-BFozFonQ.js → min-release-age-D462DvYM.js} +1 -1
  88. package/dist/packem_shared/{native-config-sync-Dvi1g2nQ.js → native-config-sync-B0_ef78M.js} +9 -9
  89. package/dist/packem_shared/osv-bloom-QSAn2Dcw.js +2 -0
  90. package/dist/packem_shared/provenance-smHa8efI.js +1 -0
  91. package/dist/packem_shared/{registry-keys-CewRFW0e.js → registry-keys-3qaVog76.js} +1 -1
  92. package/dist/packem_shared/resolve-explicit-BgFQHUEP.js +5 -0
  93. package/dist/packem_shared/{run-summary-utils-BaBGP3bo.js → run-summary-utils-DIJV_dUD.js} +1 -1
  94. package/dist/packem_shared/runtime-check-DrMx4Q9L.js +1 -0
  95. package/dist/packem_shared/s1ngularity-CwSBPB3I.js +1 -0
  96. package/dist/packem_shared/signatures-b-jJYoZd.js +2 -0
  97. package/dist/packem_shared/toolchain-OH1PXwbZ.js +5 -0
  98. package/dist/packem_shared/{typosquats-BCeR-sLf.js → typosquats-CJ4o1l7U.js} +1 -1
  99. package/dist/packem_shared/{verify-07kUNTuP.js → verify-CQbzknur.js} +1 -1
  100. package/dist/packem_shared/{vis-update-app-CFrlJ3mW.js → vis-update-app-Bnu1EIgE.js} +1 -1
  101. package/index.d.ts +78 -0
  102. package/index.js +57 -53
  103. package/package.json +22 -12
  104. package/schemas/project.schema.json +37 -7
  105. package/schemas/vis-config.schema.json +2376 -2026
  106. package/dist/packem_shared/cyclonedx-CiHXuG8M.js +0 -4
  107. package/dist/packem_shared/dependency-scan-DC3nAFHS.js +0 -1
  108. package/dist/packem_shared/docker-B-CIN_nj.js +0 -60
  109. package/dist/packem_shared/resolve-explicit-CC4Kifk5.js +0 -5
  110. package/dist/packem_shared/runtime-check-BusAwPb2.js +0 -1
  111. package/dist/packem_shared/signatures-5ZdjJ2Pu.js +0 -2
  112. package/dist/packem_shared/toolchain-Cc3cwyLP.js +0 -5
@@ -0,0 +1,2 @@
1
+ var l=Object.defineProperty;var a=(e,r)=>l(e,"name",{value:r,configurable:!0});import{p as i,e as m,E as f,I as u}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-QSAn2Dcw.js";var d=Object.defineProperty,n=a((e,r)=>d(e,"name",{value:r,configurable:!0}),"s");const c=n(e=>{if(!e)return"never";const r=Date.parse(e);if(Number.isNaN(r))return e;const t=Date.now()-r;if(t<0)return e;const o=Math.floor(t/6e4);if(o<1)return"just now";if(o<60)return`${o}m ago`;const s=Math.floor(o/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`},"formatRelative"),g=n(e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`,"formatBytes"),p=n(async({options:e,workspaceRoot:r})=>{if(!r)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const t=await $(r,e.cacheDir);if(e.format==="json"){process.stdout.write(`${JSON.stringify(t,void 0,2)}
2
+ `);return}if(i.info(`Cache: ${t.cacheDir}`),!t.present){i.warn(`No osv-bloom filter yet. Run ${m("vis advisories bloom sync")} to populate.`);return}if(t.manifest){const{manifest:o}=t;i.info(`Built: ${o.builtAtRfc3339} (${c(o.builtAtRfc3339)})`),i.info(`Fetch: ${t.fetchedAtIso??f("—")} (${c(t.fetchedAtIso)})`),i.info(`Filter: ${u(g(o.bloomByteLen))} m=${o.bloomMBits.toLocaleString()} bits k=${String(o.bloomKHashes)}`),i.info(`Set: ${o.entryCount.toLocaleString()} entries from ${o.advisoryCount.toLocaleString()} advisories (target FPR ${o.targetFpr})`),i.info(f(`Digest: ${o.setDigestSha256}`))}else i.warn("filter.bin present but manifest.json missing — `vis advisories bloom sync` will rewrite the cache.")},"execute"),w=p;export{w as advisoriesBloomStatusExecute};
@@ -0,0 +1,2 @@
1
+ var D=Object.defineProperty;var f=(o,t)=>D(o,"name",{value:t,configurable:!0});import{p as n,E as d}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-CMynp3eA.js";import{s as y,D as h}from"../packem_shared/osv-bloom-QSAn2Dcw.js";var v=Object.defineProperty,a=f((o,t)=>v(o,"name",{value:t,configurable:!0}),"s");const w=a(o=>o?.security?.audit?.advisories?.bloom??{},"readBloomConfig"),p=a(o=>o>=1e3?`${(o/1e3).toFixed(1)}s`:`${Math.round(o)}ms`,"formatDuration"),$=a(o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,"formatBytes"),B=a(async({options:o,visConfig:t,workspaceRoot:c})=>{if(!c)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const l=o.format==="json",u=w(t),m=o.source??u.source??h,s=b([{id:"bloom",label:"Sync osv-bloom prefilter"}],{live:!l});let e,r;try{s.start("bloom");const i=Date.now();e=await y({allowedHosts:u.allowedHosts,cacheDir:o.cacheDir,force:!!o.force,source:m,workspaceRoot:c}),e.upToDate?s.finish("bloom","ok",`up to date · ${p(Date.now()-i)}`):s.finish("bloom","ok",`${e.manifest.entryCount.toLocaleString()} entries · ${$(e.bytesOnDisk)} · ${p(e.durationMs)}`)}catch(i){r=i instanceof Error?i.message:String(i),s.finish("bloom","error",r)}finally{s.stop()}l?process.stdout.write(`${JSON.stringify({bytesOnDisk:e?.bytesOnDisk??0,cacheDir:e?.cacheDir??null,durationMs:e?.durationMs??0,error:r??null,manifest:e?.manifest??null,source:m,upToDate:e?.upToDate??!1},void 0,2)}
2
+ `):e&&(n.info(d(`Cache: ${e.cacheDir}`)),n.info(d(`Built: ${e.manifest.builtAtRfc3339}`)),r||n.success(e.upToDate?"osv-bloom prefilter up to date.":"osv-bloom prefilter synced.")),r&&(process.exitCode=1)},"execute"),S=B;export{S as advisoriesBloomSyncExecute};
@@ -0,0 +1 @@
1
+ var R=Object.defineProperty;var p=(e,t)=>R(e,"name",{value:t,configurable:!0});import{createRequire as I}from"node:module";import{loadOptionalSigstore as h}from"./loader.js";const b=I(import.meta.url),u=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=p(e=>{if(typeof u<"u"&&u.versions&&u.versions.node){const[t,n]=u.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return u.getBuiltinModule(e)}return b(e)},"__cjs_getBuiltinModule"),{createHash:v}=_("node:crypto"),{createReadStream:x}=_("node:fs");var O=Object.defineProperty,s=p((e,t)=>O(e,"name",{value:t,configurable:!0}),"r");const S="https://token.actions.githubusercontent.com",m=s(e=>e.replaceAll(/[$()*+.?[\\\]^{|}]/g,String.raw`\$&`),"escapeRegex"),$=s(e=>{if("github"in e){const{ref:t,repo:n,workflow:r}=e.github;return{issuer:S,sanPattern:`^${m(`https://github.com/${n}/${r}@${t}`)}$`}}return"sanRegex"in e?{issuer:e.oidcIssuer,sanPattern:e.sanRegex}:{issuer:e.oidcIssuer,sanPattern:`^${m(e.san)}$`}},"normalizeExpectedIdentity"),P=s(()=>process.env.CI==="true"||typeof process.env.ACTIONS_ID_TOKEN_REQUEST_URL=="string"||typeof process.env.SIGSTORE_ID_TOKEN=="string","hasAmbientOidc"),w=s(e=>new Promise((t,n)=>{const r=v("sha256"),a=x(e);a.on("error",n),a.on("data",i=>r.update(i)),a.on("end",()=>{t(Buffer.from(r.digest("hex")))})}),"digestFile"),A=1024,T=s(e=>{const{issuer:t,sanPattern:n}=$(e.expectedIdentity),r=new Map,a=s((i,o)=>{let f;try{f=JSON.parse(o)}catch{return Promise.resolve(!1)}return(async()=>{let c;try{c=await w(i)}catch{return!1}const l=`${c.toString("utf8")}:${v("sha256").update(o).digest("hex")}`,g=r.get(l);if(g)return g;const y=(async()=>{try{return await(await h({workspaceRoot:e.workspaceRoot})).verify(f,c,{certificateIdentityURI:n,certificateIssuer:t}),!0}catch(d){return e.onVerifyFailure?.(d instanceof Error?d.message:String(d)),!1}})();return r.size>=A&&r.clear(),r.set(l,y),y})()},"verifyOnce");return{expectedIdentity:e.expectedIdentity,onReject:e.onReject,requireOnDownload:e.requireOnDownload??!1,signArtifact:s(async({archivePath:i})=>{if(!P())return null;const o=await h({workspaceRoot:e.workspaceRoot}),f=await w(i),c=await o.sign(f);return JSON.stringify(c)},"signArtifact"),verifyArtifact:s(({archivePath:i,attestation:o})=>a(i,o),"verifyArtifact")}},"buildCacheAttestationHooks");export{T as buildCacheAttestationHooks,$ as normalizeExpectedIdentity};
@@ -1,19 +1,19 @@
1
- var ts=Object.defineProperty;var $=(e,t)=>ts(e,"name",{value:t,configurable:!0});import{createRequire as rs}from"node:module";import{createJiti as Yn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const ns=rs(import.meta.url),hr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cn=$(e=>{if(typeof hr<"u"&&hr.versions&&hr.versions.node){const[t,o]=hr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return hr.getBuiltinModule(e)}return ns(e)},"__cjs_getBuiltinModule"),{createHash:Hn}=cn("node:crypto"),{readdirSync:Xn,readFileSync:os,copyFileSync:ss,unlinkSync:is}=cn("node:fs"),{createRequire:ze}=cn("node:module");var as=Object.defineProperty,Je=$((e,t)=>as(e,"name",{value:t,configurable:!0}),"K$3"),cs=Object.defineProperty,W=Je((e,t)=>cs(e,"name",{value:t,configurable:!0}),"E");const ls=ze(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qn=W(e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,o]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return qe.getBuiltinModule(e)}return ls(e)},"__cjs_getBuiltinModule"),{existsSync:Ue}=Qn("node:fs"),{env:Ze,cwd:eo}=qe,{createRequire:He}=Qn("node:module"),to=0,Ve=2,ro=Symbol("findUpStop");var us=Object.defineProperty,fs=W((e,t)=>us(e,"name",{value:t,configurable:!0}),"t$4"),ps=Object.defineProperty,ds=fs((e,t)=>ps(e,"name",{value:t,configurable:!0}),"t"),gs=Object.defineProperty,hs=ds((e,t)=>gs(e,"name",{value:t,configurable:!0}),"n");const ln=hs(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ms=Object.defineProperty,bs=W((e,t)=>ms(e,"name",{value:t,configurable:!0}),"i$4"),ys=Object.defineProperty,$s=bs((e,t)=>ys(e,"name",{value:t,configurable:!0}),"r"),vs=Object.defineProperty,xs=$s((e,t)=>vs(e,"name",{value:t,configurable:!0}),"i");const kn=xs(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var ws=Object.defineProperty,js=W((e,t)=>ws(e,"name",{value:t,configurable:!0}),"i$3"),Os=Object.defineProperty,no=js((e,t)=>Os(e,"name",{value:t,configurable:!0}),"s");const ks=He(import.meta.url),mr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ps=no(e=>{if(typeof mr<"u"&&mr.versions&&mr.versions.node){const[t,o]=mr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return mr.getBuiltinModule(e)}return ks(e)},"__cjs_getBuiltinModule"),{lstatSync:Pn,mkdirSync:Es}=Ps("node:fs");var As=Object.defineProperty,Ss=no((e,t)=>As(e,"name",{value:t,configurable:!0}),"o");const Ts=Ss(e=>{ln(e);try{const t=Pn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(kn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Es(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Pn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(kn(o))}'`,{cause:t})}},"ensureDirSync");var zs=Object.defineProperty,b=W((e,t)=>zs(e,"name",{value:t,configurable:!0}),"s$6");let En=b(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=b((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=b((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:b(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=b(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:b(()=>Ee,"zeptomatch")});var P=b(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=b(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=b((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=b((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=b(r=>Array.from(new Set(r)),"ue"),E=b((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=b((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=b(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),Re=b(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=b(r=>typeof r=="number","de"),Qe=b(r=>typeof r=="object"&&r!==null,"xe"),et=b(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=b(r=>typeof r=="string","A"),T=b(r=>r===void 0,"f"),nt=b(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=b((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=b((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=b((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=b((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=b((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=b((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=b((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=b((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=b((r,n)=>ee(r,0,1,n),"L"),K=b((r,n)=>ee(r,0,1/0,n),"$"),ct=b((r,n)=>ee(r,1,1/0,n),"Re"),I=b((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=b((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=b((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=b((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=b(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=b(r=>r,"d"),lt=b(r=>typeof r=="string","ke"),ut=b(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=b(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=b(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=b(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=b(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=b((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=b((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=b((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=b(r=>({children:r}),"y"),D=(()=>{const r=b((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=b(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=b((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),Yr;const Ms=b((e,t)=>(Yr||(Yr=En(),En=null),Yr(e,t)),"zeptomatch"),Cs=/^[A-Z]:\//i,ie=b((e="")=>e&&e.replaceAll("\\","/").replace(Cs,t=>t.toUpperCase()),"normalizeWindowsPath"),_s=/^[/\\]{2}/,Ns=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,oo=/^[A-Z]:$/i,An=/^\/([A-Z]:)?$/i,Rs=/.(\.[^./]+)$/,Bs=/^[/\\]|^[a-z]:[/\\]/i,Is=/\/$/,Ds=b(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),so=b((e,t)=>{let o="",i=0,u=-1,f=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),Ie=b(e=>Ns.test(e),"isAbsolute"),io=b(function(e){if(e.length===0)return".";e=ie(e);const t=_s.exec(e),o=Ie(e),i=e.at(-1)==="/";return e=so(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),oo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ie(e)?`/${e}`:e)},"normalize"),ao=b((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return io(t)},"join"),le=b(function(...e){e=e.map(i=>ie(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Ds();!u||u.length===0||(t=`${u}/${t}`,o=Ie(u))}return t=so(t,!o),o&&!Ie(t)?`/${t}`:t.length>0?t:"."},"resolve");b(function(e){return ie(e)},"toNamespacedPath");const co=b(function(e){return Rs.exec(ie(e))?.[1]??""},"extname");b(function(e,t){const o=le(e).replace(An,"$1").split("/"),i=le(t).replace(An,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative");const un=b(e=>{const t=ie(e).replace(Is,"").split("/").slice(0,-1);return t.length===1&&oo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ie(e)?"/":".")},"dirname");b(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ie(e.root?le(...t):t.join("/"))},"format");const Fs=b((e,t)=>{const o=ie(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),lo=b(function(e){const t=Bs.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Fs(e),i=co(o);return{base:o,dir:un(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");b((e,t)=>Ms(t,io(e)),"matchesGlob");var Ws=Object.defineProperty,Y=W((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"i$2");const Ls=He(import.meta.url),br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qs=Y(e=>{if(typeof br<"u"&&br.versions&&br.versions.node){const[t,o]=br.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return br.getBuiltinModule(e)}return Ls(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Us}=qs("node:url");function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(Ir,"dn$1");Je(Ir,"Nr");W(Ir,"w$1");Y(Ir,"getDefaultExportFromCjs");var Sn,Tn;function Dr(){return Tn||(Tn=1,Sn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Sn}$(Dr,"gn$1");Je(Dr,"Dr");W(Dr,"y$2");Y(Dr,"requireBinaryExtensions");var Zs=Dr();const Vs=Ir(Zs),Gs=new Set(Vs),Ks=new Set(["/","\\",void 0]),zn=Symbol.for("pathe:normalizedAlias"),Js=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Hs=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Nr=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),uo=Y(e=>{if(e[zn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[i])=>Hs(o,i)));for(const o in t)for(const i in t)i===o||o.startsWith(i)||t[o].startsWith(i)&&Ks.has(t[o][i.length])&&(t[o]=t[i]+t[o].slice(i.length));return Object.defineProperty(t,zn,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=ie(e),t=uo(t);for(const[o,i]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Nr(o)?o.slice(0,-1):o;if(Nr(e[u.length]))return ao(i,e.slice(o.length))}return e},"resolveAlias");Y(e=>Js.exec(e)?.[2],"filename");Y((e,t)=>{e=ie(e),t=uo(t);for(const[o,i]of Object.entries(t).toReversed()){if(!e.startsWith(i))continue;const u=Nr(i)?i.slice(0,-1):i;if(Nr(e[u.length]))return ao(o,e.slice(i.length))}return e},"reverseResolveAlias");const Xs=/^(?:\.?\.[/\\]|\.\.\B)/,Ys=/^(?:msys|cygwin)$/;Y(e=>Xs.test(e)||e==="..","isRelative");Y(e=>Gs.has(co(e).slice(1).toLowerCase()),"isBinaryPath");const Ge=Y(e=>ie(e instanceof URL?Us(e):e),"toPath");Y(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Ys.test(e)},"isWindows");var Qs=Object.defineProperty,ei=W((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"p"),ti=Object.defineProperty,fo=ei((e,t)=>ti(e,"name",{value:t,configurable:!0}),"a");const ri=He(import.meta.url),yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,po=fo(e=>{if(typeof yr<"u"&&yr.versions&&yr.versions.node){const[t,o]=yr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return yr.getBuiltinModule(e)}return ri(e)},"__cjs_getBuiltinModule"),{stat:ni,lstat:oi}=po("node:fs/promises"),{fileURLToPath:si}=po("node:url");var ii=Object.defineProperty,Mn=fo((e,t)=>ii(e,"name",{value:t,configurable:!0}),"n");const ai=Mn(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const o=t.cwd?Ge(t.cwd):process.cwd();let i=le(o);const{root:u}=lo(i),f=Ge(t.stopAt??u),g=le(i,f),h=t.type??"file",w=Mn(async function(k){return typeof e=="function"?[await e(k)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const P=t.allowSymlinks?ni:oi;for(;i&&i!==g&&i!==u;){const k=await w(i);for(let O of k){if(O===ro)return;if(O===void 0)continue;Buffer.isBuffer(O)?O=O.toString():O instanceof URL&&(O=si(O));const N=Ie(O)?O:le(i,O);try{const C=await P(N);if(h==="file"&&C.isFile()||h==="directory"&&C.isDirectory())return N}catch{}}i=un(i)}},"findUp");var ci=Object.defineProperty,li=W((e,t)=>ci(e,"name",{value:t,configurable:!0}),"u$3"),ui=Object.defineProperty,go=li((e,t)=>ui(e,"name",{value:t,configurable:!0}),"i");const fi=He(import.meta.url),$r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ho=go(e=>{if(typeof $r<"u"&&$r.versions&&$r.versions.node){const[t,o]=$r.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return $r.getBuiltinModule(e)}return fi(e)},"__cjs_getBuiltinModule"),{statSync:pi,lstatSync:di}=ho("node:fs"),{fileURLToPath:gi}=ho("node:url");var hi=Object.defineProperty,Cn=go((e,t)=>hi(e,"name",{value:t,configurable:!0}),"o");const mi=Cn((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const o=t.cwd?Ge(t.cwd):process.cwd();let i=le(o);const{root:u}=lo(i),f=Ge(t.stopAt??u),g=le(i,f),h=t.type??"file",w=Cn(function(k){return typeof e=="function"?[e(k)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const P=t.allowSymlinks?pi:di;for(;i&&i!==g&&i!==u;){for(let k of w(i)){if(k===ro)return;if(k===void 0)continue;Buffer.isBuffer(k)?k=k.toString():k instanceof URL&&(k=gi(k));const O=Ie(k)?k:le(i,k);try{const N=P(O);if(h==="file"&&N.isFile()||h==="directory"&&N.isDirectory())return O}catch{}}i=un(i)}},"findUpSync");var bi=Object.defineProperty,mo=W((e,t)=>bi(e,"name",{value:t,configurable:!0}),"t$2"),yi=Object.defineProperty,fn=mo((e,t)=>yi(e,"name",{value:t,configurable:!0}),"s");const $i=He(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vi=fn(e=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[t,o]=vr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return vr.getBuiltinModule(e)}return $i(e)},"__cjs_getBuiltinModule"),{access:xi}=vi("node:fs/promises");var wi=Object.defineProperty,ji=fn((e,t)=>wi(e,"name",{value:t,configurable:!0}),"o");async function Se(e,t=to){ln(e),e=Ge(e);try{return await xi(e,t),!0}catch{return!1}}$(Se,"Q$3");Je(Se,"se");W(Se,"i$1");mo(Se,"d");fn(Se,"m");ji(Se,"isAccessible");var Oi=Object.defineProperty,bo=W((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"t$1"),ki=Object.defineProperty,pn=bo((e,t)=>ki(e,"name",{value:t,configurable:!0}),"t");const Pi=He(import.meta.url),xr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ei=pn(e=>{if(typeof xr<"u"&&xr.versions&&xr.versions.node){const[t,o]=xr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xr.getBuiltinModule(e)}return Pi(e)},"__cjs_getBuiltinModule"),{accessSync:Ai}=Ei("node:fs");var Si=Object.defineProperty,Ti=pn((e,t)=>Si(e,"name",{value:t,configurable:!0}),"o");function Te(e,t=to){ln(e),e=Ge(e);try{return Ai(e,t),!0}catch{return!1}}$(Te,"ee$1");Je(Te,"ie");W(Te,"i");bo(Te,"d");pn(Te,"m");Ti(Te,"isAccessibleSync");var zi=Object.defineProperty,yo=W((e,t)=>zi(e,"name",{value:t,configurable:!0}),"o"),Mi=Object.defineProperty,$o=yo((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"o"),Ci=Object.defineProperty,_i=$o((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"o");let vo=class extends Error{static{$(this,"Jn")}static{Je(this,"Xr")}static{W(this,"s")}static{yo(this,"u")}static{$o(this,"n")}static{_i(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var Ni=Object.defineProperty,Ri=W((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"$e"),Bi=Object.defineProperty,dn=Ri((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"W"),Ii=Object.defineProperty,v=dn((e,t)=>Ii(e,"name",{value:t,configurable:!0}),"u$1");let _n=v(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=v((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=v((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:v(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=v(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:v(()=>Ee,"zeptomatch")});var P=v(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=v(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=v((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=v((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=v(r=>Array.from(new Set(r)),"ue"),E=v((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=v((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=v(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=v(r=>Array.isArray(r),"j"),B=v(r=>typeof r=="function","_"),Re=v(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=v(r=>typeof r=="number","de"),Qe=v(r=>typeof r=="object"&&r!==null,"xe"),et=v(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=v(r=>typeof r=="string","A"),T=v(r=>r===void 0,"f"),nt=v(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=v((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=v((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=v((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=v((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=v((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=v((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=v((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=v((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=v((r,n)=>ee(r,0,1,n),"L"),K=v((r,n)=>ee(r,0,1/0,n),"$"),ct=v((r,n)=>ee(r,1,1/0,n),"Re"),I=v((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=v((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=v((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=v((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=v(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=v(r=>r,"d"),lt=v(r=>typeof r=="string","ke"),ut=v(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=v(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=v(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=v(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=v(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=v((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=v((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=v((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=v(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=v(r=>({children:r}),"y"),D=(()=>{const r=v((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=v(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=v(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=v((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),Qr;const Di=v((e,t)=>(Qr||(Qr=_n(),_n=null),Qr(e,t)),"default");var Fi=Object.defineProperty,Wi=dn((e,t)=>Fi(e,"name",{value:t,configurable:!0}),"t$1");const Li=/^[A-Z]:\//i,Fe=Wi((e="")=>e&&e.replaceAll("\\","/").replace(Li,t=>t.toUpperCase()),"normalizeWindowsPath");var qi=Object.defineProperty,J=dn((e,t)=>qi(e,"name",{value:t,configurable:!0}),"r");const Ui=/^[/\\]{2}/,Zi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,xo=/^[A-Z]:$/i,Nn=/^\/([A-Z]:)?$/i,Vi=/.(\.[^./]+)$/,Gi=/^[/\\]|^[a-z]:[/\\]/i,Ki=/\/$/,Ji=J(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),wo=J((e,t)=>{let o="",i=0,u=-1,f=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),Ar=J(e=>Zi.test(e),"isAbsolute"),jo=J(function(e){if(e.length===0)return".";e=Fe(e);const t=Ui.exec(e),o=Ar(e),i=e.at(-1)==="/";return e=wo(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),xo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!Ar(e)?`/${e}`:e)},"normalize"),Ae=J((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return jo(t)},"join"),nn=J(function(...e){e=e.map(i=>Fe(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Ji();!u||u.length===0||(t=`${u}/${t}`,o=Ar(u))}return t=wo(t,!o),o&&!Ar(t)?`/${t}`:t.length>0?t:"."},"resolve");J(function(e){return Fe(e)},"toNamespacedPath");const Hi=J(function(e){return Vi.exec(Fe(e))?.[1]??""},"extname");J(function(e,t){const o=nn(e).replace(Nn,"$1").split("/"),i=nn(t).replace(Nn,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative");const gn=J(e=>{const t=Fe(e).replace(Ki,"").split("/").slice(0,-1);return t.length===1&&xo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Ar(e)?"/":".")},"dirname");J(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return Fe(e.root?nn(...t):t.join("/"))},"format");const Xi=J((e,t)=>{const o=Fe(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename");J(function(e){const t=Gi.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Xi(e),i=Hi(o);return{base:o,dir:gn(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");J((e,t)=>Di(t,jo(e)),"matchesGlob");var Yi=Object.defineProperty,hn=W((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"u");const Rr=hn((e,t)=>(t?.create&&Ts(e),e),"useDirectory");hn(async(e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Rr(Ae(Ze.CACHE_DIR,e),t);const o=await ai("package.json",{cwd:t?.cwd??eo(),type:"file"});if(!o){if(t?.throwError)throw new vo("No such file or directory found.");return}const i=Ae(gn(o),"node_modules"),u=Ae(i,".cache"),f=Ae(u,e);if(!(Ue(f)&&!await Se(f,Ve))&&!(Ue(u)&&!await Se(u,Ve))&&!(Ue(i)&&!await Se(i,Ve)))return Rr(f,t)},"findCacheDirectory");const Qi=hn((e,t)=>{if(Ze.CACHE_DIR&&!["0","1","false","true"].includes(Ze.CACHE_DIR))return Rr(Ae(Ze.CACHE_DIR,e),t);const o=mi("package.json",{cwd:t?.cwd??eo(),type:"file"});if(!o){if(t?.throwError)throw new vo("No such file or directory found.");return}const i=Ae(gn(o),"node_modules"),u=Ae(i,".cache"),f=Ae(u,e);if(!(Ue(f)&&!Te(f,Ve))&&!(Ue(u)&&!Te(u,Ve))&&!(Ue(i)&&!Te(i,Ve)))return Rr(f,t)},"findCacheDirectorySync"),Oo=Qi,on=0,ko=4,Ru=Symbol("findUpStop"),Bu=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var ea=Object.defineProperty,ta=$((e,t)=>ea(e,"name",{value:t,configurable:!0}),"t$a"),ra=Object.defineProperty,na=ta((e,t)=>ra(e,"name",{value:t,configurable:!0}),"t"),oa=Object.defineProperty,sa=na((e,t)=>oa(e,"name",{value:t,configurable:!0}),"n");const Fr=sa(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ia=Object.defineProperty,aa=$((e,t)=>ia(e,"name",{value:t,configurable:!0}),"i$a"),ca=Object.defineProperty,la=aa((e,t)=>ca(e,"name",{value:t,configurable:!0}),"r"),ua=Object.defineProperty,fa=la((e,t)=>ua(e,"name",{value:t,configurable:!0}),"i");const Rn=fa(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var pa=Object.defineProperty,da=$((e,t)=>pa(e,"name",{value:t,configurable:!0}),"i$9"),ga=Object.defineProperty,Po=da((e,t)=>ga(e,"name",{value:t,configurable:!0}),"s");const ha=ze(import.meta.url),wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ma=Po(e=>{if(typeof wr<"u"&&wr.versions&&wr.versions.node){const[t,o]=wr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return wr.getBuiltinModule(e)}return ha(e)},"__cjs_getBuiltinModule"),{lstatSync:Bn,mkdirSync:ba}=ma("node:fs");var ya=Object.defineProperty,$a=Po((e,t)=>ya(e,"name",{value:t,configurable:!0}),"o");const Wr=$a(e=>{Fr(e);try{const t=Bn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Rn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{ba(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Bn(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Rn(o))}'`,{cause:t})}},"ensureDirSync");var va=Object.defineProperty,xa=$((e,t)=>va(e,"name",{value:t,configurable:!0}),"$e"),wa=Object.defineProperty,mn=xa((e,t)=>wa(e,"name",{value:t,configurable:!0}),"W"),ja=Object.defineProperty,x=mn((e,t)=>ja(e,"name",{value:t,configurable:!0}),"u$1");let In=x(()=>{var e=(()=>{var t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=x((r,n)=>{for(var s in n)t(r,s,{get:n[s],enumerable:!0})},"ne"),g=x((r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of i(n))!u.call(r,a)&&a!==s&&t(r,a,{get:x(()=>n[a],"get"),enumerable:!(c=o(n,a))||c.enumerable});return r},"ae"),h=x(r=>g(t({},"__esModule",{value:!0}),r),"oe"),w={};f(w,{zeptomatch:x(()=>Ee,"zeptomatch")});var P=x(r=>{const n=new Set,s=[r];for(let c=0;c<s.length;c++){const a=s[c];if(n.has(a))continue;n.add(a);const{children:l}=a;if(l?.length)for(let p=0,m=l.length;p<m;p++)s.push(l[p])}return Array.from(n)},"M"),k=x(r=>{let n="";const s=P(r);for(let c=0,a=s.length;c<a;c++){const l=s[c];if(!l.regex)continue;const p=l.regex.flags;if(n||(n=p),n!==p)throw new Error(`Inconsistent RegExp flags used: "${n}" and "${p}"`)}return n},"se"),O=x((r,n,s)=>{const c=s.get(r);if(c!==void 0)return c;const a=r.partial??n;let l="";if(r.regex&&(l+=a?"(?:$|":"",l+=r.regex.source),r.children?.length){const p=C(r.children.map(m=>O(m,n,s)).filter(Boolean));if(p?.length){const m=r.children.some(q=>!q.regex||!(q.partial??n)),j=p.length>1||a&&(!l.length||m);l+=j?a?"(?:$|":"(?:":"",l+=p.join("|"),l+=j?")":""}}return r.regex&&(l+=a?")":""),s.set(r,l),l},"O"),N=x((r,n)=>{const s=new Map,c=P(r);for(let a=c.length-1;a>=0;a--){const l=O(c[a],n,s);if(!(a>0))return l}return""},"ie"),C=x(r=>Array.from(new Set(r)),"ue"),E=x((r,n,s)=>E.compile(r,s).test(n),"R");E.compile=(r,n)=>{const s=n?.partial??!1,c=N(r,s),a=k(r);return new RegExp(`^(?:${c})$`,a)};var G=E,X=x((r,n)=>{const s=G.compile(r,n),c=`${s.source.slice(0,-1)}[\\\\/]?$`,a=s.flags;return new RegExp(c,a)},"le"),se=X,_e=x(r=>{const n=r.map(c=>c.source).join("|")||"$^",s=r[0]?.flags;return new RegExp(n,s)},"ve"),Ne=_e,Q=x(r=>Array.isArray(r),"j"),B=x(r=>typeof r=="function","_"),Re=x(r=>r.length===0,"he"),Be=(()=>{const{toString:r}=Function.prototype,n=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return s=>(s.length===0||s.length===1)&&n.test(r.call(s))})(),Ye=x(r=>typeof r=="number","de"),Qe=x(r=>typeof r=="object"&&r!==null,"xe"),et=x(r=>r instanceof RegExp,"me"),tt=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return n=>r.test(n.source)})(),rt=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return n=>r.test(n.source)&&!n.flags.includes("i")})(),fe=x(r=>typeof r=="string","A"),T=x(r=>r===void 0,"f"),nt=x(r=>{const n=new Map;return s=>{const c=n.get(s);if(c!==void 0)return c;const a=r(s);return n.set(s,a),a}},"ye"),pe=x((r,n,s={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:s,output:[]},a=z(n)(c),l=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${l}`)},"I"),d=x((r,n)=>Q(r)?ot(r,n):fe(r)?de(r,n):st(r,n),"i"),ot=x((r,n)=>{const s={};for(const c of r){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);s[a]=!0}return c=>{const a=c.input;let l=c.index,p=l;for(;p<a.length&&a.charCodeAt(p)in s;)p+=1;if(p>l){if(!T(n)&&!c.options.silent){const m=a.slice(l,p),j=B(n)?n(m,a,`${l}`):n;T(j)||c.output.push(j)}c.index=p}return!0}},"we"),st=x((r,n)=>{if(rt(r))return de(r.source,n);{const s=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(s,c);return tt(r)&&B(n)&&!Be(n)?it(a,n):at(a,n)}},"$e"),it=x((r,n)=>s=>{const c=s.index,a=s.input;r.lastIndex=c;const l=r.exec(a);if(l){const p=r.lastIndex;if(!s.options.silent){const m=n(...l,a,`${c}`);T(m)||s.output.push(m)}return s.index=p,!0}else return!1},"Ee"),at=x((r,n)=>s=>{const c=s.index,a=s.input;if(r.lastIndex=c,r.test(a)){const l=r.lastIndex;if(!T(n)&&!s.options.silent){const p=B(n)?n(a.slice(c,l),a,`${c}`):n;T(p)||s.output.push(p)}return s.index=l,!0}else return!1},"Ce"),de=x((r,n)=>s=>{const c=s.index,a=s.input;if(a.startsWith(r,c)){if(!T(n)&&!s.options.silent){const l=B(n)?n(r,a,`${c}`):n;T(l)||s.output.push(l)}return s.index+=r.length,!0}else return!1},"F"),ee=x((r,n,s,c)=>{const a=z(r),l=n>1;return re(te(he(p=>{let m=0;for(;m<s;){const j=p.index;if(!a(p)||(m+=1,p.index===j))break}return m>=n},l),c))},"k"),ge=x((r,n)=>ee(r,0,1,n),"L"),K=x((r,n)=>ee(r,0,1/0,n),"$"),ct=x((r,n)=>ee(r,1,1/0,n),"Re"),I=x((r,n)=>{const s=r.map(z);return re(te(he(c=>{for(let a=0,l=s.length;a<l;a++)if(!s[a](c))return!1;return!0}),n))},"x"),A=x((r,n)=>{const s=r.map(z);return re(te(c=>{for(let a=0,l=s.length;a<l;a++)if(s[a](c))return!0;return!1},n))},"p"),he=x((r,n=!0,s=!1)=>{const c=z(r);return n?a=>{const l=a.index,p=a.output.length,m=c(a);return!m&&!s&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||s)&&(a.index=l,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),te=x((r,n)=>{const s=z(r);return n?c=>{if(c.options.silent)return s(c);const a=c.output.length;if(s(c)){const l=c.output.splice(a,1/0),p=n(l);return T(p)||c.output.push(p),!0}else return!1}:s},"B"),re=(()=>{let r=0;return n=>{const s=z(n),c=r+=1;return a=>{var l;if(a.options.memoization===!1)return s(a);const p=a.index,m=(l=a.cache)[c]||(l[c]={indexMax:-1,queue:[]}),j=m.queue;if(p<=m.indexMax){const U=m.store||(m.store=new Map);if(j.length){for(let F=0,pr=j.length;F<pr;F+=2){const dr=j[F*2],gr=j[F*2+1];U.set(dr,gr)}j.length=0}const S=U.get(p);if(S===!1)return!1;if(Ye(S))return a.index=S,!0;if(S)return a.index=S.index,S.output?.length&&a.output.push(...S.output),!0}const q=a.output.length,fr=s(a);if(m.indexMax=Math.max(m.indexMax,p),fr){const U=a.index,S=a.output.length;if(S>q){const F=a.output.slice(q,S);j.push(p,{index:U,output:F})}else j.push(p,U);return!0}else return j.push(p,!1),!1}}})(),me=x(r=>{let n;return s=>(n||(n=z(r())),n(s))},"G"),z=nt(r=>{if(B(r))return Re(r)?me(r):r;if(fe(r)||et(r))return d(r);if(Q(r))return I(r);if(Qe(r))return A(Object.values(r));throw new Error("Invalid rule")}),_=x(r=>r,"d"),lt=x(r=>typeof r=="string","ke"),ut=x(r=>{const n=new WeakMap,s=new WeakMap;return(c,a)=>{const l=a?.partial?s:n,p=l.get(c);if(p!==void 0)return p;const m=r(c,a);return l.set(c,m),m}},"Be"),ft=x(r=>{const n={},s={};return(c,a)=>{const l=a?.partial?s:n;return l[c]??(l[c]=r(c,a))}},"Pe"),pt=d(/\\./,_),dt=d(/./,_),gt=d(/\*\*\*+/,"*"),ht=d(/([^/{[(!])\*\*/,(r,n)=>`${n}*`),mt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,n)=>`${n}*`),bt=K(A([pt,gt,ht,mt,dt])),yt=bt,$t=x(r=>pe(r,yt,{memoization:!1}).join(""),"Ie"),vt=$t,be="abcdefghijklmnopqrstuvwxyz",xt=x(r=>{let n="";for(;r>0;){const s=(r-1)%26;n=be[s]+n,r=Math.floor((r-1)/26)}return n},"Le"),ye=x(r=>{let n=0;for(let s=0,c=r.length;s<c;s++)n=n*26+be.indexOf(r[s])+1;return n},"V"),ne=x((r,n)=>{if(n<r)return ne(n,r);const s=[];for(;r<=n;)s.push(r++);return s},"b"),wt=x((r,n,s)=>ne(r,n).map(c=>String(c).padStart(s,"0")),"qe"),$e=x((r,n)=>ne(ye(r),ye(n)).map(xt),"W"),y=x(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),L=x(r=>({children:r}),"y"),D=(()=>{const r=x((n,s,c)=>{if(c.has(n))return;c.add(n);const{children:a}=n;if(!a.length)a.push(s);else for(let l=0,p=a.length;l<p;l++)r(a[l],s,c)},"e");return n=>{if(!n.length)return L([]);for(let s=n.length-1;s>=1;s--){const c=new Set,a=n[s-1],l=n[s];r(a,l,c)}return n[0]}})(),M=x(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),jt=d(/\\./,y),Ot=d(/[$.*+?^(){}[\]\|]/,r=>y(`\\${r}`)),kt=d(/[\\\/]/,M),Pt=d(/[^$.*+?^(){}[\]\|\\\/]+/,y),Et=d(/^(?:!!)*!(.*)$/,(r,n)=>y(`(?!^${Ee.compile(n).source}$).*?`)),At=d(/^(!!)+/),St=A([Et,At]),Tt=d(/\/(\*\*\/)+/,()=>L([D([M(),y(".+?"),M()]),M()])),zt=d(/^(\*\*\/)+/,()=>L([y("^"),D([y(".*?"),M()])])),Mt=d(/\/(\*\*)$/,()=>L([D([M(),y(".*?")]),y("$")])),Ct=d(/\*\*/,()=>y(".*?")),ve=A([Tt,zt,Mt,Ct]),_t=d(/\*\/(?!\*\*\/|\*$)/,()=>D([y("[^\\\\/]*?"),M()])),Nt=d(/\*/,()=>y("[^\\\\/]*")),xe=A([_t,Nt]),we=d("?",()=>y("[^\\\\/]")),Rt=d("[",_),Bt=d("]",_),It=d(/[!^]/,"^\\\\/"),Dt=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,_),Ft=d(/\\./,_),Wt=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Lt=d(/[\\\/]/,"\\\\/"),qt=d(/[^$.*+?^(){}[\]\|\\\/]+/,_),Ut=A([Ft,Wt,Lt,Dt,qt]),je=I([Rt,ge(It),K(Ut),Bt],r=>y(r.join(""))),Zt=d("{","(?:"),Vt=d("}",")"),Gt=d(/(\d+)\.\.(\d+)/,(r,n,s)=>wt(+n,+s,Math.min(n.length,s.length)).join("|")),Kt=d(/([a-z]+)\.\.([a-z]+)/,(r,n,s)=>$e(n,s).join("|")),Jt=d(/([A-Z]+)\.\.([A-Z]+)/,(r,n,s)=>$e(n.toLowerCase(),s.toLowerCase()).join("|").toUpperCase()),Ht=A([Gt,Kt,Jt]),Oe=I([Zt,Ht,Vt],r=>y(r.join(""))),Xt=d("{"),Yt=d("}"),Qt=d(","),er=d(/\\./,y),tr=d(/[$.*+?^(){[\]\|]/,r=>y(`\\${r}`)),rr=d(/[\\\/]/,M),nr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,y),or=me(()=>Pe),sr=d("",()=>y("(?:)")),ir=ct(A([ve,xe,we,je,Oe,or,er,tr,rr,nr]),D),ke=A([ir,sr]),Pe=I([Xt,ge(I([ke,K(I([Qt,ke]))])),Yt],L),ar=K(A([St,ve,xe,we,je,Oe,Pe,jt,Ot,kt,Pt]),D),cr=ar,lr=x(r=>pe(r,cr,{memoization:!1})[0],"kr"),ur=lr,oe=x((r,n,s)=>oe.compile(r,s).test(n),"N");oe.compile=(()=>{const r=ft((s,c)=>se(ur(vt(s)),c)),n=ut((s,c)=>Ne(s.map(a=>r(a,c))));return(s,c)=>lt(s)?r(s,c):n(s,c)})();var Ee=oe;return h(w)})();return e.default||e},"_lazyMatch"),en;const Oa=x((e,t)=>(en||(en=In(),In=null),en(e,t)),"default");var ka=Object.defineProperty,Pa=mn((e,t)=>ka(e,"name",{value:t,configurable:!0}),"t$1");const Ea=/^[A-Z]:\//i,ae=Pa((e="")=>e&&e.replaceAll("\\","/").replace(Ea,t=>t.toUpperCase()),"normalizeWindowsPath");var Aa=Object.defineProperty,H=mn((e,t)=>Aa(e,"name",{value:t,configurable:!0}),"r");const Sa=/^[/\\]{2}/,Ta=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Eo=/^[A-Z]:$/i,Dn=/^\/([A-Z]:)?$/i,za=/.(\.[^./]+)$/,Ma=/^[/\\]|^[a-z]:[/\\]/i,Ca=/\/$/,_a=/^win/i,Na=H(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Iu="/",Du=_a.test(globalThis.process?.platform??"")?";":":",Ao=H((e,t)=>{let o="",i=0,u=-1,f=0,g;for(let h=0;h<=e.length;++h){if(h<e.length)g=e[h];else{if(g==="/")break;g="/"}if(g==="/"){if(!(u===h-1||f===1))if(f===2){if(o.length<2||i!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const w=o.lastIndexOf("/");w===-1?(o="",i=0):(o=o.slice(0,w),i=o.length-1-o.lastIndexOf("/")),u=h,f=0;continue}else if(o.length>0){o="",i=0,u=h,f=0;continue}}t&&(o+=o.length>0?"/..":"..",i=2)}else o.length>0?o+=`/${e.slice(u+1,h)}`:o=e.slice(u+1,h),i=h-u-1;u=h,f=0}else g==="."&&f!==-1?++f:f=-1}return o},"normalizeString"),De=H(e=>Ta.test(e),"isAbsolute"),So=H(function(e){if(e.length===0)return".";e=ae(e);const t=Sa.exec(e),o=De(e),i=e.at(-1)==="/";return e=Ao(e,!o),e.length===0?o?"/":i?"./":".":(i&&(e+="/"),Eo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!De(e)?`/${e}`:e)},"normalize"),Z=H((...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const i=t.at(-1)==="/",u=o[0]==="/";i&&u?t+=o.slice(1):t+=i||u?o:`/${o}`}else t+=o;return So(t)},"join"),sn=H(function(...e){e=e.map(i=>ae(i));let t="",o=!1;for(let i=e.length-1;i>=-1&&!o;i--){const u=i>=0?e[i]:Na();!u||u.length===0||(t=`${u}/${t}`,o=De(u))}return t=Ao(t,!o),o&&!De(t)?`/${t}`:t.length>0?t:"."},"resolve");H(function(e){return ae(e)},"toNamespacedPath");const To=H(function(e){return za.exec(ae(e))?.[1]??""},"extname"),Fu=H(function(e,t){const o=sn(e).replace(Dn,"$1").split("/"),i=sn(t).replace(Dn,"$1").split("/");if(i[0][1]===":"&&o[0][1]===":"&&o[0]!==i[0])return i.join("/");const u=[...o];for(const f of u){if(i[0]!==f)break;o.shift(),i.shift()}return[...o.map(()=>".."),...i].join("/")},"relative"),Xe=H(e=>{const t=ae(e).replace(Ca,"").split("/").slice(0,-1);return t.length===1&&Eo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(De(e)?"/":".")},"dirname");H(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ae(e.root?sn(...t):t.join("/"))},"format");const Ra=H((e,t)=>{const o=ae(e).split("/").pop();return t&&o.endsWith(t)?o.slice(0,-t.length):o},"basename"),Wu=H(function(e){const t=Ma.exec(e)?.[0]?.replaceAll("\\","/")??"",o=Ra(e),i=To(o);return{base:o,dir:Xe(e),ext:i,name:o.slice(0,o.length-i.length),root:t}},"parse");H((e,t)=>Oa(t,So(e)),"matchesGlob");var Ba=Object.defineProperty,We=$((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"n$5"),Ia=Object.defineProperty,ue=We((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"a");const Da=ze(import.meta.url),jr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fa=ue(e=>{if(typeof jr<"u"&&jr.versions&&jr.versions.node){const[t,o]=jr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return jr.getBuiltinModule(e)}return Da(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Wa}=Fa("node:url");var La=Object.defineProperty,Ke=ue((e,t)=>La(e,"name",{value:t,configurable:!0}),"t$1");function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(Lr,"m$4");We(Lr,"d");ue(Lr,"getDefaultExportFromCjs");Ke(Lr,"getDefaultExportFromCjs");function bn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}$(bn,"h$3");We(bn,"O");ue(bn,"getDefaultExportFromNamespaceIfPresent");Ke(bn,"getDefaultExportFromNamespaceIfPresent");function yn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}$(yn,"x$3");We(yn,"P");ue(yn,"getDefaultExportFromNamespaceIfNotNamed");Ke(yn,"getDefaultExportFromNamespaceIfNotNamed");function $n(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var o=Ke(ue(We($(function i(){var u=!1;try{u=this instanceof i}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a"),"s"),"a"),"a");o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var u=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,u.get?u:{enumerable:!0,get:Ke(function(){return e[i]},"get")})}),o}$($n,"y$4");We($n,"_");ue($n,"getAugmentedNamespace");Ke($n,"getAugmentedNamespace");var Fn,Wn;function vn(){return Wn||(Wn=1,Fn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Fn}$(vn,"w$3");We(vn,"k");ue(vn,"requireBinaryExtensions");var qa=vn();const Ua=Lr(qa);var Za=Object.defineProperty,ce=ue((e,t)=>Za(e,"name",{value:t,configurable:!0}),"r");const Va=new Set(Ua),Ga=new Set(["/","\\",void 0]),Ln=Symbol.for("pathe:normalizedAlias"),Ka=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Ja=ce((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Br=ce((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),zo=ce(e=>{if(e[Ln])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([o],[i])=>Ja(o,i)));for(const o in t)for(const i in t)i===o||o.startsWith(i)||t[o].startsWith(i)&&Ga.has(t[o][i.length])&&(t[o]=t[i]+t[o].slice(i.length));return Object.defineProperty(t,Ln,{enumerable:!1,value:!0}),t},"normalizeAliases");ce((e,t)=>{e=ae(e),t=zo(t);for(const[o,i]of Object.entries(t)){if(!e.startsWith(o))continue;const u=Br(o)?o.slice(0,-1):o;if(Br(e[u.length]))return Z(i,e.slice(o.length))}return e},"resolveAlias");ce(e=>Ka.exec(e)?.[2],"filename");ce((e,t)=>{e=ae(e),t=zo(t);for(const[o,i]of Object.entries(t).toReversed()){if(!e.startsWith(i))continue;const u=Br(i)?i.slice(0,-1):i;if(Br(e[u.length]))return Z(o,e.slice(i.length))}return e},"reverseResolveAlias");const Ha=/^(?:\.?\.[/\\]|\.\.\B)/,Xa=/^(?:msys|cygwin)$/;ce(e=>Ha.test(e)||e==="..","isRelative");ce(e=>Va.has(To(e).slice(1).toLowerCase()),"isBinaryPath");const qr=ce(e=>ae(e instanceof URL?Wa(e):e),"toPath");ce(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Xa.test(e)},"isWindows");var Ya=Object.defineProperty,Mo=$((e,t)=>Ya(e,"name",{value:t,configurable:!0}),"t$8"),Qa=Object.defineProperty,xn=Mo((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"t");const ec=ze(import.meta.url),Or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tc=xn(e=>{if(typeof Or<"u"&&Or.versions&&Or.versions.node){const[t,o]=Or.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Or.getBuiltinModule(e)}return ec(e)},"__cjs_getBuiltinModule"),{accessSync:rc}=tc("node:fs");var nc=Object.defineProperty,oc=xn((e,t)=>nc(e,"name",{value:t,configurable:!0}),"o");function V(e,t=on){Fr(e),e=qr(e);try{return rc(e,t),!0}catch{return!1}}$(V,"i$7");Mo(V,"d");xn(V,"m");oc(V,"isAccessibleSync");var sc=Object.defineProperty,Co=$((e,t)=>sc(e,"name",{value:t,configurable:!0}),"t$7"),ic=Object.defineProperty,_o=Co((e,t)=>ic(e,"name",{value:t,configurable:!0}),"t"),ac=Object.defineProperty,cc=_o((e,t)=>ac(e,"name",{value:t,configurable:!0}),"o");let qn=class extends Error{static{$(this,"c")}static{Co(this,"i")}static{_o(this,"n")}static{cc(this,"PermissionError")}constructor(t){super(`EPERM: Operation not permitted, ${t}`)}get code(){return"EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}};var lc=Object.defineProperty,uc=$((e,t)=>lc(e,"name",{value:t,configurable:!0}),"a$5"),fc=Object.defineProperty,No=uc((e,t)=>fc(e,"name",{value:t,configurable:!0}),"i");const pc=ze(import.meta.url),kr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=No(e=>{if(typeof kr<"u"&&kr.versions&&kr.versions.node){const[t,o]=kr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return kr.getBuiltinModule(e)}return pc(e)},"__cjs_getBuiltinModule"),{readFileSync:dc}=Ro("node:fs"),{unzipSync:gc,brotliDecompressSync:hc}=Ro("node:zlib");var mc=Object.defineProperty,Bo=No((e,t)=>mc(e,"name",{value:t,configurable:!0}),"r");const bc={brotli:hc,gzip:gc,none:Bo(e=>e,"none")},yc=Bo((e,t)=>{if(Fr(e),e=qr(e),!V(e))throw new qn(`unable to read the non-accessible file: ${e}`);if(!V(e,ko))throw new qn(`invalid access to read file at: ${e}`);const{buffer:o,compression:i,encoding:u,flag:f}=t??{},g=dc(e,f?{encoding:u,flag:f}:{encoding:u}),h=bc[i??"none"],w=h(g);return o?w:w.toString()},"readFileSync");var $c=Object.defineProperty,vc=$((e,t)=>$c(e,"name",{value:t,configurable:!0}),"x$2"),xc=Object.defineProperty,Io=vc((e,t)=>xc(e,"name",{value:t,configurable:!0}),"$"),wc=Object.defineProperty,jc=Io((e,t)=>wc(e,"name",{value:t,configurable:!0}),"A"),Oc=Object.defineProperty,wn=jc((e,t)=>Oc(e,"name",{value:t,configurable:!0}),"$"),kc=Object.defineProperty,Pc=wn((e,t)=>kc(e,"name",{value:t,configurable:!0}),"r$1");const Ec=Pc(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
- `),"normalizeLF"),Ac=globalThis.process??Object.create(null),Un={versions:{}},Zn=new Proxy(Ac,{get(e,t){if(t in e)return e[t];if(t in Un)return Un[t]}});var Sc=Object.defineProperty,Tc=wn((e,t)=>Sc(e,"name",{value:t,configurable:!0}),"b");const zc=Tc((e,t,o,i)=>{const u={column:0,line:-1,...e.start},f={...u,...e.end},g=u.line,h=u.column,w=f.line,P=f.column;let k=Math.max(g-(o+1),0),O=Math.min(t.length,w+i);g===-1&&(k=0),w===-1&&(O=t.length);const N=w-g,C={};if(N)for(let E=0;E<=N;E++){const G=E+g;if(!h)C[G]=!0;else if(E===0){const X=t[G-1]?.length;C[G]=[h,(X??0)-h+1]}else if(E===N)C[G]=[0,P];else{const X=t[G-E]?.length;C[G]=[0,X]}}else h===P?C[g]=h?[h,0]:!0:C[g]=[h,(P??0)-(h??0)];return{end:O,markerLines:C,start:k}},"getMarkerLines");var Mc=Object.defineProperty,_r=wn((e,t)=>Mc(e,"name",{value:t,configurable:!0}),"t");const Cc=Zn.platform==="win32"&&!Zn.env?.WT_SESSION?">":"❯",_c=_r((e,t,o)=>{const i={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...o,color:{gutter:_r(E=>E,"gutter"),marker:_r(E=>E,"marker"),message:_r(E=>E,"message"),...o?.color}},u=typeof t.start.column=="number";let f=Ec(e).split(`
3
- `);typeof i.tabWidth=="number"&&(f=f.map(E=>E.replaceAll(" "," ".repeat(i.tabWidth))));const{end:g,markerLines:h,start:w}=zc(t,f,i.linesAbove,i.linesBelow),P=String(g).length,{gutter:k,marker:O,message:N}=i.color;let C=f.slice(w,g).map((E,G)=>{const X=w+1+G,se=h[X],_e=` ${String(X)}`.slice(-P),Ne=!h[X+1],Q=` ${_e}${i.showGutter?" |":""}`;if(se){let B="";if(Array.isArray(se)){const Re=E.replaceAll(/[^\t]/g," ").slice(0,Math.max(se[0]-1,0)),Be=se[1]||1;B=[`
4
- `,i.prefix+k(Q.replaceAll(/\d/g," "))," ",Re,O("^").repeat(Be)].join(""),Ne&&i.message&&(B+=` ${N(i.message)}`)}return[i.prefix+O(Cc),k(Q),E.length>0?` ${E}`:"",B].join("")}return`${i.prefix} ${k(Q)}${E.length>0?` ${E}`:""}`}).join(`
5
- `);return i.message&&!u&&(C=`${i.prefix+" ".repeat(P+1)+i.message}
6
- ${C}`),C},"codeFrame");var Nc=Object.defineProperty,Rc=Io((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"s"),Bc=Object.defineProperty,Ic=Rc((e,t)=>Bc(e,"name",{value:t,configurable:!0}),"o"),Dc=Object.defineProperty,jn=Ic((e,t)=>Dc(e,"name",{value:t,configurable:!0}),"l");const Vn=jn((e,t)=>{let o=0,i=t.length-2;for(;o<i;){const u=o+(i-o>>1);if(e<t[u])i=u-1;else if(e>=t[u+1])o=u+1;else{o=u;break}}return o},"binarySearch"),Fc=/\n|\r(?!\n)/,Wc=jn(e=>e.split(Fc).reduce((t,o)=>(t.push(t.at(-1)+o.length+1),t),[0]),"getLineStartIndexes"),Lc=jn((e,t,o)=>{const i=o?.skipChecks??!1;if(!i&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!i&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const f=Wc(e),g=Vn(t,f);return{column:t-f[g]+1,line:g+1}}const u=Vn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var qc=Object.defineProperty,Do=$((e,t)=>qc(e,"name",{value:t,configurable:!0}),"t$6"),Uc=Object.defineProperty,Fo=Do((e,t)=>Uc(e,"name",{value:t,configurable:!0}),"t"),Zc=Object.defineProperty,Vc=Fo((e,t)=>Zc(e,"name",{value:t,configurable:!0}),"i");let Gc=class extends Error{static{$(this,"m")}static{Do(this,"m")}static{Fo(this,"t")}static{Vc(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
1
+ var Jo=Object.defineProperty;var h=(e,t)=>Jo(e,"name",{value:t,configurable:!0});import{createRequire as Ho}from"node:module";import{createJiti as Hn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const Xo=Ho(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ln=h(e=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[t,r]=et.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return et.getBuiltinModule(e)}return Xo(e)},"__cjs_getBuiltinModule"),{createHash:Kn}=ln("node:crypto"),{readdirSync:Jn,readFileSync:Qo,copyFileSync:Yo,unlinkSync:es}=ln("node:fs"),{createRequire:le}=ln("node:module");var ts=Object.defineProperty,X=h((e,t)=>ts(e,"name",{value:t,configurable:!0}),"O$4"),rs=Object.defineProperty,_=X((e,t)=>rs(e,"name",{value:t,configurable:!0}),"h");const ns=le(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xn=_(e=>{if(typeof je<"u"&&je.versions&&je.versions.node){const[t,r]=je.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return je.getBuiltinModule(e)}return ns(e)},"__cjs_getBuiltinModule"),{existsSync:Oe}=Xn("node:fs"),{env:Pe,cwd:Qn}=je,{createRequire:Ae}=Xn("node:module"),Yn=0,ke=2,eo=Symbol("findUpStop");var os=Object.defineProperty,ss=_((e,t)=>os(e,"name",{value:t,configurable:!0}),"t$4"),is=Object.defineProperty,as=ss((e,t)=>is(e,"name",{value:t,configurable:!0}),"t"),cs=Object.defineProperty,us=as((e,t)=>cs(e,"name",{value:t,configurable:!0}),"n");const fn=us(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var ls=Object.defineProperty,fs=_((e,t)=>ls(e,"name",{value:t,configurable:!0}),"i$4"),ps=Object.defineProperty,ds=fs((e,t)=>ps(e,"name",{value:t,configurable:!0}),"r"),gs=Object.defineProperty,ms=ds((e,t)=>gs(e,"name",{value:t,configurable:!0}),"i");const Pn=ms(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var hs=Object.defineProperty,ys=_((e,t)=>hs(e,"name",{value:t,configurable:!0}),"i$3"),bs=Object.defineProperty,to=ys((e,t)=>bs(e,"name",{value:t,configurable:!0}),"s");const vs=Ae(import.meta.url),tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$s=to(e=>{if(typeof tt<"u"&&tt.versions&&tt.versions.node){const[t,r]=tt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return tt.getBuiltinModule(e)}return vs(e)},"__cjs_getBuiltinModule"),{lstatSync:kn,mkdirSync:xs}=$s("node:fs");var ws=Object.defineProperty,js=to((e,t)=>ws(e,"name",{value:t,configurable:!0}),"o");const Os=js(e=>{fn(e);try{const t=kn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Pn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{xs(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=kn(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Pn(r))}'`,{cause:t})}},"ensureDirSync");var Ps=Object.defineProperty,ks=_((e,t)=>Ps(e,"name",{value:t,configurable:!0}),"$e"),Es=Object.defineProperty,pn=ks((e,t)=>Es(e,"name",{value:t,configurable:!0}),"W"),Ts=Object.defineProperty,b=pn((e,t)=>Ts(e,"name",{value:t,configurable:!0}),"u$1");let En=b(()=>{var e=(()=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=b((n,o)=>{for(var i in o)t(n,i,{get:o[i],enumerable:!0})},"ne"),d=b((n,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(n,a)&&a!==i&&t(n,a,{get:b(()=>o[a],"get"),enumerable:!(c=r(o,a))||c.enumerable});return n},"ae"),m=b(n=>d(t({},"__esModule",{value:!0}),n),"oe"),$={};l($,{zeptomatch:b(()=>Ye,"zeptomatch")});var O=b(n=>{const o=new Set,i=[n];for(let c=0;c<i.length;c++){const a=i[c];if(o.has(a))continue;o.add(a);const{children:f}=a;if(f?.length)for(let p=0,y=f.length;p<y;p++)i.push(f[p])}return Array.from(o)},"M"),j=b(n=>{let o="";const i=O(n);for(let c=0,a=i.length;c<a;c++){const f=i[c];if(!f.regex)continue;const p=f.regex.flags;if(o||(o=p),o!==p)throw new Error(`Inconsistent RegExp flags used: "${o}" and "${p}"`)}return o},"se"),x=b((n,o,i)=>{const c=i.get(n);if(c!==void 0)return c;const a=n.partial??o;let f="";if(n.regex&&(f+=a?"(?:$|":"",f+=n.regex.source),n.children?.length){const p=E(n.children.map(y=>x(y,o,i)).filter(Boolean));if(p?.length){const y=n.children.some(K=>!K.regex||!(K.partial??o)),P=p.length>1||a&&(!f.length||y);f+=P?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=P?")":""}}return n.regex&&(f+=a?")":""),i.set(n,f),f},"O"),C=b((n,o)=>{const i=new Map,c=O(n);for(let a=c.length-1;a>=0;a--){const f=x(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=b(n=>Array.from(new Set(n)),"ue"),k=b((n,o,i)=>k.compile(n,i).test(o),"R");k.compile=(n,o)=>{const i=o?.partial??!1,c=C(n,i),a=j(n);return new RegExp(`^(?:${c})$`,a)};var V=k,Z=b((n,o)=>{const i=V.compile(n,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ae=Z,ze=b(n=>{const o=n.map(c=>c.source).join("|")||"$^",i=n[0]?.flags;return new RegExp(o,i)},"ve"),Me=ze,re=b(n=>Array.isArray(n),"j"),B=b(n=>typeof n=="function","_"),Ne=b(n=>n.length===0,"he"),Be=(()=>{const{toString:n}=Function.prototype,o=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return i=>(i.length===0||i.length===1)&&o.test(n.call(i))})(),It=b(n=>typeof n=="number","de"),Ft=b(n=>typeof n=="object"&&n!==null,"xe"),Wt=b(n=>n instanceof RegExp,"me"),Lt=(()=>{const n=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>n.test(o.source)})(),Ut=(()=>{const n=/^[a-zA-Z0-9_-]+$/;return o=>n.test(o.source)&&!o.flags.includes("i")})(),Re=b(n=>typeof n=="string","A"),z=b(n=>n===void 0,"f"),qt=b(n=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=n(i);return o.set(i,a),a}},"ye"),De=b((n,o,i={})=>{const c={cache:{},input:n,index:0,indexBacktrackMax:0,options:i,output:[]},a=M(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===n.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),g=b((n,o)=>re(n)?Vt(n,o):Re(n)?Ie(n,o):Zt(n,o),"i"),Vt=b((n,o)=>{const i={};for(const c of n){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);i[a]=!0}return c=>{const a=c.input;let f=c.index,p=f;for(;p<a.length&&a.charCodeAt(p)in i;)p+=1;if(p>f){if(!z(o)&&!c.options.silent){const y=a.slice(f,p),P=B(o)?o(y,a,`${f}`):o;z(P)||c.output.push(P)}c.index=p}return!0}},"we"),Zt=b((n,o)=>{if(Ut(n))return Ie(n.source,o);{const i=n.source,c=n.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return Lt(n)&&B(o)&&!Be(o)?Gt(a,o):Kt(a,o)}},"$e"),Gt=b((n,o)=>i=>{const c=i.index,a=i.input;n.lastIndex=c;const f=n.exec(a);if(f){const p=n.lastIndex;if(!i.options.silent){const y=o(...f,a,`${c}`);z(y)||i.output.push(y)}return i.index=p,!0}else return!1},"Ee"),Kt=b((n,o)=>i=>{const c=i.index,a=i.input;if(n.lastIndex=c,n.test(a)){const f=n.lastIndex;if(!z(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;z(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Ie=b((n,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(n,c)){if(!z(o)&&!i.options.silent){const f=B(o)?o(n,a,`${c}`):o;z(f)||i.output.push(f)}return i.index+=n.length,!0}else return!1},"F"),de=b((n,o,i,c)=>{const a=M(n),f=o>1;return me(ge(We(p=>{let y=0;for(;y<i;){const P=p.index;if(!a(p)||(y+=1,p.index===P))break}return y>=o},f),c))},"k"),Fe=b((n,o)=>de(n,0,1,o),"L"),ne=b((n,o)=>de(n,0,1/0,o),"$"),Jt=b((n,o)=>de(n,1,1/0,o),"Re"),L=b((n,o)=>{const i=n.map(M);return me(ge(We(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),S=b((n,o)=>{const i=n.map(M);return me(ge(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),We=b((n,o=!0,i=!1)=>{const c=M(n);return o?a=>{const f=a.index,p=a.output.length,y=c(a);return!y&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!y||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),y}:c},"q"),ge=b((n,o)=>{const i=M(n);return o?c=>{if(c.options.silent)return i(c);const a=c.output.length;if(i(c)){const f=c.output.splice(a,1/0),p=o(f);return z(p)||c.output.push(p),!0}else return!1}:i},"B"),me=(()=>{let n=0;return o=>{const i=M(o),c=n+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,y=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),P=y.queue;if(p<=y.indexMax){const J=y.store||(y.store=new Map);if(P.length){for(let q=0,Yr=P.length;q<Yr;q+=2){const en=P[q*2],tn=P[q*2+1];J.set(en,tn)}P.length=0}const A=J.get(p);if(A===!1)return!1;if(It(A))return a.index=A,!0;if(A)return a.index=A.index,A.output?.length&&a.output.push(...A.output),!0}const K=a.output.length,Qr=i(a);if(y.indexMax=Math.max(y.indexMax,p),Qr){const J=a.index,A=a.output.length;if(A>K){const q=a.output.slice(K,A);P.push(p,{index:J,output:q})}else P.push(p,J);return!0}else return P.push(p,!1),!1}}})(),Le=b(n=>{let o;return i=>(o||(o=M(n())),o(i))},"G"),M=qt(n=>{if(B(n))return Ne(n)?Le(n):n;if(Re(n)||Wt(n))return g(n);if(re(n))return L(n);if(Ft(n))return S(Object.values(n));throw new Error("Invalid rule")}),R=b(n=>n,"d"),Ht=b(n=>typeof n=="string","ke"),Xt=b(n=>{const o=new WeakMap,i=new WeakMap;return(c,a)=>{const f=a?.partial?i:o,p=f.get(c);if(p!==void 0)return p;const y=n(c,a);return f.set(c,y),y}},"Be"),Qt=b(n=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=n(c,a))}},"Pe"),Yt=g(/\\./,R),er=g(/./,R),tr=g(/\*\*\*+/,"*"),rr=g(/([^/{[(!])\*\*/,(n,o)=>`${o}*`),nr=g(/(^|.)\*\*(?=[^*/)\]}])/,(n,o)=>`${o}*`),or=ne(S([Yt,tr,rr,nr,er])),sr=or,ir=b(n=>De(n,sr,{memoization:!1}).join(""),"Ie"),ar=ir,Ue="abcdefghijklmnopqrstuvwxyz",cr=b(n=>{let o="";for(;n>0;){const i=(n-1)%26;o=Ue[i]+o,n=Math.floor((n-1)/26)}return o},"Le"),qe=b(n=>{let o=0;for(let i=0,c=n.length;i<c;i++)o=o*26+Ue.indexOf(n[i])+1;return o},"V"),he=b((n,o)=>{if(o<n)return he(o,n);const i=[];for(;n<=o;)i.push(n++);return i},"b"),ur=b((n,o,i)=>he(n,o).map(c=>String(c).padStart(i,"0")),"qe"),Ve=b((n,o)=>he(qe(n),qe(o)).map(cr),"W"),w=b(n=>({partial:!1,regex:new RegExp(n,"s"),children:[]}),"c"),G=b(n=>({children:n}),"y"),U=(()=>{const n=b((o,i,c)=>{if(c.has(o))return;c.add(o);const{children:a}=o;if(!a.length)a.push(i);else for(let f=0,p=a.length;f<p;f++)n(a[f],i,c)},"e");return o=>{if(!o.length)return G([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];n(a,f,c)}return o[0]}})(),N=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),lr=g(/\\./,w),fr=g(/[$.*+?^(){}[\]\|]/,n=>w(`\\${n}`)),pr=g(/[\\\/]/,N),dr=g(/[^$.*+?^(){}[\]\|\\\/]+/,w),gr=g(/^(?:!!)*!(.*)$/,(n,o)=>w(`(?!^${Ye.compile(o).source}$).*?`)),mr=g(/^(!!)+/),hr=S([gr,mr]),yr=g(/\/(\*\*\/)+/,()=>G([U([N(),w(".+?"),N()]),N()])),br=g(/^(\*\*\/)+/,()=>G([w("^"),U([w(".*?"),N()])])),vr=g(/\/(\*\*)$/,()=>G([U([N(),w(".*?")]),w("$")])),$r=g(/\*\*/,()=>w(".*?")),Ze=S([yr,br,vr,$r]),xr=g(/\*\/(?!\*\*\/|\*$)/,()=>U([w("[^\\\\/]*?"),N()])),wr=g(/\*/,()=>w("[^\\\\/]*")),Ge=S([xr,wr]),Ke=g("?",()=>w("[^\\\\/]")),jr=g("[",R),Or=g("]",R),Pr=g(/[!^]/,"^\\\\/"),kr=g(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),Er=g(/\\./,R),Tr=g(/[$.*+?^(){}[\|]/,n=>`\\${n}`),Sr=g(/[\\\/]/,"\\\\/"),Ar=g(/[^$.*+?^(){}[\]\|\\\/]+/,R),_r=S([Er,Tr,Sr,kr,Ar]),Je=L([jr,Fe(Pr),ne(_r),Or],n=>w(n.join(""))),Cr=g("{","(?:"),zr=g("}",")"),Mr=g(/(\d+)\.\.(\d+)/,(n,o,i)=>ur(+o,+i,Math.min(o.length,i.length)).join("|")),Nr=g(/([a-z]+)\.\.([a-z]+)/,(n,o,i)=>Ve(o,i).join("|")),Br=g(/([A-Z]+)\.\.([A-Z]+)/,(n,o,i)=>Ve(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),Rr=S([Mr,Nr,Br]),He=L([Cr,Rr,zr],n=>w(n.join(""))),Dr=g("{"),Ir=g("}"),Fr=g(","),Wr=g(/\\./,w),Lr=g(/[$.*+?^(){[\]\|]/,n=>w(`\\${n}`)),Ur=g(/[\\\/]/,N),qr=g(/[^$.*+?^(){}[\]\|\\\/,]+/,w),Vr=Le(()=>Qe),Zr=g("",()=>w("(?:)")),Gr=Jt(S([Ze,Ge,Ke,Je,He,Vr,Wr,Lr,Ur,qr]),U),Xe=S([Gr,Zr]),Qe=L([Dr,Fe(L([Xe,ne(L([Fr,Xe]))])),Ir],G),Kr=ne(S([hr,Ze,Ge,Ke,Je,He,Qe,lr,fr,pr,dr]),U),Jr=Kr,Hr=b(n=>De(n,Jr,{memoization:!1})[0],"kr"),Xr=Hr,ye=b((n,o,i)=>ye.compile(n,i).test(o),"N");ye.compile=(()=>{const n=Qt((i,c)=>ae(Xr(ar(i)),c)),o=Xt((i,c)=>Me(i.map(a=>n(a,c))));return(i,c)=>Ht(i)?n(i,c):o(i,c)})();var Ye=ye;return m($)})();return e.default||e},"_lazyMatch"),rn;const Ss=b((e,t)=>(rn||(rn=En(),En=null),rn(e,t)),"default");var As=Object.defineProperty,_s=pn((e,t)=>As(e,"name",{value:t,configurable:!0}),"t$1");const Cs=/^[A-Z]:\//i,Q=_s((e="")=>e&&e.replaceAll("\\","/").replace(Cs,t=>t.toUpperCase()),"normalizeWindowsPath");var zs=Object.defineProperty,F=pn((e,t)=>zs(e,"name",{value:t,configurable:!0}),"r");const Ms=/^[/\\]{2}/,Ns=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ro=/^[A-Z]:$/i,Tn=/^\/([A-Z]:)?$/i,Bs=/.(\.[^./]+)$/,Rs=/^[/\\]|^[a-z]:[/\\]/i,Ds=/\/$/,Is=F(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),no=F((e,t)=>{let r="",s=0,u=-1,l=0,d;for(let m=0;m<=e.length;++m){if(m<e.length)d=e[m];else{if(d==="/")break;d="/"}if(d==="/"){if(!(u===m-1||l===1))if(l===2){if(r.length<2||s!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const $=r.lastIndexOf("/");$===-1?(r="",s=0):(r=r.slice(0,$),s=r.length-1-r.lastIndexOf("/")),u=m,l=0;continue}else if(r.length>0){r="",s=0,u=m,l=0;continue}}t&&(r+=r.length>0?"/..":"..",s=2)}else r.length>0?r+=`/${e.slice(u+1,m)}`:r=e.slice(u+1,m),s=m-u-1;u=m,l=0}else d==="."&&l!==-1?++l:l=-1}return r},"normalizeString"),be=F(e=>Ns.test(e),"isAbsolute"),oo=F(function(e){if(e.length===0)return".";e=Q(e);const t=Ms.exec(e),r=be(e),s=e.at(-1)==="/";return e=no(e,!r),e.length===0?r?"/":s?"./":".":(s&&(e+="/"),ro.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!be(e)?`/${e}`:e)},"normalize"),H=F((...e)=>{let t="";for(const r of e)if(r)if(t.length>0){const s=t.at(-1)==="/",u=r[0]==="/";s&&u?t+=r.slice(1):t+=s||u?r:`/${r}`}else t+=r;return oo(t)},"join"),oe=F(function(...e){e=e.map(s=>Q(s));let t="",r=!1;for(let s=e.length-1;s>=-1&&!r;s--){const u=s>=0?e[s]:Is();!u||u.length===0||(t=`${u}/${t}`,r=be(u))}return t=no(t,!r),r&&!be(t)?`/${t}`:t.length>0?t:"."},"resolve");F(function(e){return Q(e)},"toNamespacedPath");const so=F(function(e){return Bs.exec(Q(e))?.[1]??""},"extname");F(function(e,t){const r=oe(e).replace(Tn,"$1").split("/"),s=oe(t).replace(Tn,"$1").split("/");if(s[0][1]===":"&&r[0][1]===":"&&r[0]!==s[0])return s.join("/");const u=[...r];for(const l of u){if(s[0]!==l)break;r.shift(),s.shift()}return[...r.map(()=>".."),...s].join("/")},"relative");const mt=F(e=>{const t=Q(e).replace(Ds,"").split("/").slice(0,-1);return t.length===1&&ro.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(be(e)?"/":".")},"dirname");F(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return Q(e.root?oe(...t):t.join("/"))},"format");const Fs=F((e,t)=>{const r=Q(e).split("/").pop();return t&&r.endsWith(t)?r.slice(0,-t.length):r},"basename"),io=F(function(e){const t=Rs.exec(e)?.[0]?.replaceAll("\\","/")??"",r=Fs(e),s=so(r);return{base:r,dir:mt(e),ext:s,name:r.slice(0,r.length-s.length),root:t}},"parse");F((e,t)=>Ss(t,oo(e)),"matchesGlob");var Ws=Object.defineProperty,$e=_((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"n$2"),Ls=Object.defineProperty,se=$e((e,t)=>Ls(e,"name",{value:t,configurable:!0}),"a");const Us=Ae(import.meta.url),rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qs=se(e=>{if(typeof rt<"u"&&rt.versions&&rt.versions.node){const[t,r]=rt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return rt.getBuiltinModule(e)}return Us(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Vs}=qs("node:url");var Zs=Object.defineProperty,Ee=se((e,t)=>Zs(e,"name",{value:t,configurable:!0}),"t$1");function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}h(_e,"ue");X(_e,"de");_(_e,"m$4");$e(_e,"d");se(_e,"getDefaultExportFromCjs");Ee(_e,"getDefaultExportFromCjs");function ht(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}h(ht,"me");X(ht,"je");_(ht,"h");$e(ht,"O");se(ht,"getDefaultExportFromNamespaceIfPresent");Ee(ht,"getDefaultExportFromNamespaceIfPresent");function yt(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}h(yt,"he");X(yt,"Oe");_(yt,"x");$e(yt,"P");se(yt,"getDefaultExportFromNamespaceIfNotNamed");Ee(yt,"getDefaultExportFromNamespaceIfNotNamed");function bt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=Ee(se($e(_(X(h(function s(){var u=!1;try{u=this instanceof s}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"c"),"c"),"a"),"s"),"a"),"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var u=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,u.get?u:{enumerable:!0,get:Ee(function(){return e[s]},"get")})}),r}h(bt,"ye$1");X(bt,"Pe");_(bt,"y$2");$e(bt,"_");se(bt,"getAugmentedNamespace");Ee(bt,"getAugmentedNamespace");var Sn,An;function vt(){return An||(An=1,Sn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Sn}h(vt,"be$1");X(vt,"_e");_(vt,"w$1");$e(vt,"k");se(vt,"requireBinaryExtensions");var Gs=vt();const Ks=_e(Gs);var Js=Object.defineProperty,Y=se((e,t)=>Js(e,"name",{value:t,configurable:!0}),"r");const Hs=new Set(Ks),Xs=new Set(["/","\\",void 0]),_n=Symbol.for("pathe:normalizedAlias"),Qs=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Ys=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Ot=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),ao=Y(e=>{if(e[_n])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([r],[s])=>Ys(r,s)));for(const r in t)for(const s in t)s===r||r.startsWith(s)||t[r].startsWith(s)&&Xs.has(t[r][s.length])&&(t[r]=t[s]+t[r].slice(s.length));return Object.defineProperty(t,_n,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=Q(e),t=ao(t);for(const[r,s]of Object.entries(t)){if(!e.startsWith(r))continue;const u=Ot(r)?r.slice(0,-1):r;if(Ot(e[u.length]))return H(s,e.slice(r.length))}return e},"resolveAlias");Y(e=>Qs.exec(e)?.[2],"filename");Y((e,t)=>{e=Q(e),t=ao(t);for(const[r,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=Ot(s)?s.slice(0,-1):s;if(Ot(e[u.length]))return H(r,e.slice(s.length))}return e},"reverseResolveAlias");const ei=/^(?:\.?\.[/\\]|\.\.\B)/,ti=/^(?:msys|cygwin)$/;Y(e=>ei.test(e)||e==="..","isRelative");Y(e=>Hs.has(so(e).slice(1).toLowerCase()),"isBinaryPath");const Te=Y(e=>Q(e instanceof URL?Vs(e):e),"toPath");Y(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:ti.test(e)},"isWindows");var ri=Object.defineProperty,ni=_((e,t)=>ri(e,"name",{value:t,configurable:!0}),"p"),oi=Object.defineProperty,co=ni((e,t)=>oi(e,"name",{value:t,configurable:!0}),"a");const si=Ae(import.meta.url),nt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,uo=co(e=>{if(typeof nt<"u"&&nt.versions&&nt.versions.node){const[t,r]=nt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return nt.getBuiltinModule(e)}return si(e)},"__cjs_getBuiltinModule"),{stat:ii,lstat:ai}=uo("node:fs/promises"),{fileURLToPath:ci}=uo("node:url");var ui=Object.defineProperty,Cn=co((e,t)=>ui(e,"name",{value:t,configurable:!0}),"n");const li=Cn(async(e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?Te(t.cwd):process.cwd();let s=oe(r);const{root:u}=io(s),l=Te(t.stopAt??u),d=oe(s,l),m=t.type??"file",$=Cn(async function(j){return typeof e=="function"?[await e(j)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const O=t.allowSymlinks?ii:ai;for(;s&&s!==d&&s!==u;){const j=await $(s);for(let x of j){if(x===eo)return;if(x===void 0)continue;Buffer.isBuffer(x)?x=x.toString():x instanceof URL&&(x=ci(x));const C=be(x)?x:oe(s,x);try{const E=await O(C);if(m==="file"&&E.isFile()||m==="directory"&&E.isDirectory())return C}catch{}}s=mt(s)}},"findUp");var fi=Object.defineProperty,pi=_((e,t)=>fi(e,"name",{value:t,configurable:!0}),"u$3"),di=Object.defineProperty,lo=pi((e,t)=>di(e,"name",{value:t,configurable:!0}),"i");const gi=Ae(import.meta.url),ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,fo=lo(e=>{if(typeof ot<"u"&&ot.versions&&ot.versions.node){const[t,r]=ot.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ot.getBuiltinModule(e)}return gi(e)},"__cjs_getBuiltinModule"),{statSync:mi,lstatSync:hi}=fo("node:fs"),{fileURLToPath:yi}=fo("node:url");var bi=Object.defineProperty,zn=lo((e,t)=>bi(e,"name",{value:t,configurable:!0}),"o");const vi=zn((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=t.cwd?Te(t.cwd):process.cwd();let s=oe(r);const{root:u}=io(s),l=Te(t.stopAt??u),d=oe(s,l),m=t.type??"file",$=zn(function(j){return typeof e=="function"?[e(j)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const O=t.allowSymlinks?mi:hi;for(;s&&s!==d&&s!==u;){for(let j of $(s)){if(j===eo)return;if(j===void 0)continue;Buffer.isBuffer(j)?j=j.toString():j instanceof URL&&(j=yi(j));const x=be(j)?j:oe(s,j);try{const C=O(x);if(m==="file"&&C.isFile()||m==="directory"&&C.isDirectory())return x}catch{}}s=mt(s)}},"findUpSync");var $i=Object.defineProperty,po=_((e,t)=>$i(e,"name",{value:t,configurable:!0}),"t$2"),xi=Object.defineProperty,dn=po((e,t)=>xi(e,"name",{value:t,configurable:!0}),"s");const wi=Ae(import.meta.url),st=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ji=dn(e=>{if(typeof st<"u"&&st.versions&&st.versions.node){const[t,r]=st.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return st.getBuiltinModule(e)}return wi(e)},"__cjs_getBuiltinModule"),{access:Oi}=ji("node:fs/promises");var Pi=Object.defineProperty,ki=dn((e,t)=>Pi(e,"name",{value:t,configurable:!0}),"o");async function ce(e,t=Yn){fn(e),e=Te(e);try{return await Oi(e,t),!0}catch{return!1}}h(ce,"D$3");X(ce,"G");_(ce,"i$1");po(ce,"d");dn(ce,"m");ki(ce,"isAccessible");var Ei=Object.defineProperty,go=_((e,t)=>Ei(e,"name",{value:t,configurable:!0}),"t$1"),Ti=Object.defineProperty,gn=go((e,t)=>Ti(e,"name",{value:t,configurable:!0}),"t");const Si=Ae(import.meta.url),it=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ai=gn(e=>{if(typeof it<"u"&&it.versions&&it.versions.node){const[t,r]=it.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return it.getBuiltinModule(e)}return Si(e)},"__cjs_getBuiltinModule"),{accessSync:_i}=Ai("node:fs");var Ci=Object.defineProperty,zi=gn((e,t)=>Ci(e,"name",{value:t,configurable:!0}),"o");function ue(e,t=Yn){fn(e),e=Te(e);try{return _i(e,t),!0}catch{return!1}}h(ue,"I$2");X(ue,"V");_(ue,"i");go(ue,"d");gn(ue,"m");zi(ue,"isAccessibleSync");var Mi=Object.defineProperty,mo=_((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"o"),Ni=Object.defineProperty,ho=mo((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"o"),Bi=Object.defineProperty,Ri=ho((e,t)=>Bi(e,"name",{value:t,configurable:!0}),"o");class yo extends Error{static{h(this,"$t")}static{X(this,"wt")}static{_(this,"s")}static{mo(this,"u")}static{ho(this,"n")}static{Ri(this,"NotFoundError")}constructor(t){super(`ENOENT: ${t}`)}get code(){return"ENOENT"}set code(t){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(t){throw new Error("Cannot overwrite name of NotFoundError")}}var Di=Object.defineProperty,mn=_((e,t)=>Di(e,"name",{value:t,configurable:!0}),"u");const Pt=mn((e,t)=>(t?.create&&Os(e),e),"useDirectory");mn(async(e,t)=>{if(Pe.CACHE_DIR&&!["0","1","false","true"].includes(Pe.CACHE_DIR))return Pt(H(Pe.CACHE_DIR,e),t);const r=await li("package.json",{cwd:t?.cwd??Qn(),type:"file"});if(!r){if(t?.throwError)throw new yo("No such file or directory found.");return}const s=H(mt(r),"node_modules"),u=H(s,".cache"),l=H(u,e);if(!(Oe(l)&&!await ce(l,ke))&&!(Oe(u)&&!await ce(u,ke))&&!(Oe(s)&&!await ce(s,ke)))return Pt(l,t)},"findCacheDirectory");const Ii=mn((e,t)=>{if(Pe.CACHE_DIR&&!["0","1","false","true"].includes(Pe.CACHE_DIR))return Pt(H(Pe.CACHE_DIR,e),t);const r=vi("package.json",{cwd:t?.cwd??Qn(),type:"file"});if(!r){if(t?.throwError)throw new yo("No such file or directory found.");return}const s=H(mt(r),"node_modules"),u=H(s,".cache"),l=H(u,e);if(!(Oe(l)&&!ue(l,ke))&&!(Oe(u)&&!ue(u,ke))&&!(Oe(s)&&!ue(s,ke)))return Pt(l,t)},"findCacheDirectorySync"),bo=Ii,an=0,vo=4,wl=Symbol("findUpStop"),jl=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var Fi=Object.defineProperty,Wi=h((e,t)=>Fi(e,"name",{value:t,configurable:!0}),"t$a"),Li=Object.defineProperty,Ui=Wi((e,t)=>Li(e,"name",{value:t,configurable:!0}),"t"),qi=Object.defineProperty,Vi=Ui((e,t)=>qi(e,"name",{value:t,configurable:!0}),"n");const Et=Vi(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Zi=Object.defineProperty,Gi=h((e,t)=>Zi(e,"name",{value:t,configurable:!0}),"i$a"),Ki=Object.defineProperty,Ji=Gi((e,t)=>Ki(e,"name",{value:t,configurable:!0}),"r"),Hi=Object.defineProperty,Xi=Ji((e,t)=>Hi(e,"name",{value:t,configurable:!0}),"i");const Mn=Xi(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Qi=Object.defineProperty,Yi=h((e,t)=>Qi(e,"name",{value:t,configurable:!0}),"i$9"),ea=Object.defineProperty,$o=Yi((e,t)=>ea(e,"name",{value:t,configurable:!0}),"s");const ta=le(import.meta.url),at=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ra=$o(e=>{if(typeof at<"u"&&at.versions&&at.versions.node){const[t,r]=at.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return at.getBuiltinModule(e)}return ta(e)},"__cjs_getBuiltinModule"),{lstatSync:Nn,mkdirSync:na}=ra("node:fs");var oa=Object.defineProperty,sa=$o((e,t)=>oa(e,"name",{value:t,configurable:!0}),"o");const Tt=sa(e=>{Et(e);try{const t=Nn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Mn(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{na(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=Nn(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Mn(r))}'`,{cause:t})}},"ensureDirSync");var ia=Object.defineProperty,aa=h((e,t)=>ia(e,"name",{value:t,configurable:!0}),"$e"),ca=Object.defineProperty,hn=aa((e,t)=>ca(e,"name",{value:t,configurable:!0}),"W"),ua=Object.defineProperty,v=hn((e,t)=>ua(e,"name",{value:t,configurable:!0}),"u$1");let Bn=v(()=>{var e=(()=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=v((n,o)=>{for(var i in o)t(n,i,{get:o[i],enumerable:!0})},"ne"),d=v((n,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(n,a)&&a!==i&&t(n,a,{get:v(()=>o[a],"get"),enumerable:!(c=r(o,a))||c.enumerable});return n},"ae"),m=v(n=>d(t({},"__esModule",{value:!0}),n),"oe"),$={};l($,{zeptomatch:v(()=>Ye,"zeptomatch")});var O=v(n=>{const o=new Set,i=[n];for(let c=0;c<i.length;c++){const a=i[c];if(o.has(a))continue;o.add(a);const{children:f}=a;if(f?.length)for(let p=0,y=f.length;p<y;p++)i.push(f[p])}return Array.from(o)},"M"),j=v(n=>{let o="";const i=O(n);for(let c=0,a=i.length;c<a;c++){const f=i[c];if(!f.regex)continue;const p=f.regex.flags;if(o||(o=p),o!==p)throw new Error(`Inconsistent RegExp flags used: "${o}" and "${p}"`)}return o},"se"),x=v((n,o,i)=>{const c=i.get(n);if(c!==void 0)return c;const a=n.partial??o;let f="";if(n.regex&&(f+=a?"(?:$|":"",f+=n.regex.source),n.children?.length){const p=E(n.children.map(y=>x(y,o,i)).filter(Boolean));if(p?.length){const y=n.children.some(K=>!K.regex||!(K.partial??o)),P=p.length>1||a&&(!f.length||y);f+=P?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=P?")":""}}return n.regex&&(f+=a?")":""),i.set(n,f),f},"O"),C=v((n,o)=>{const i=new Map,c=O(n);for(let a=c.length-1;a>=0;a--){const f=x(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=v(n=>Array.from(new Set(n)),"ue"),k=v((n,o,i)=>k.compile(n,i).test(o),"R");k.compile=(n,o)=>{const i=o?.partial??!1,c=C(n,i),a=j(n);return new RegExp(`^(?:${c})$`,a)};var V=k,Z=v((n,o)=>{const i=V.compile(n,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ae=Z,ze=v(n=>{const o=n.map(c=>c.source).join("|")||"$^",i=n[0]?.flags;return new RegExp(o,i)},"ve"),Me=ze,re=v(n=>Array.isArray(n),"j"),B=v(n=>typeof n=="function","_"),Ne=v(n=>n.length===0,"he"),Be=(()=>{const{toString:n}=Function.prototype,o=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return i=>(i.length===0||i.length===1)&&o.test(n.call(i))})(),It=v(n=>typeof n=="number","de"),Ft=v(n=>typeof n=="object"&&n!==null,"xe"),Wt=v(n=>n instanceof RegExp,"me"),Lt=(()=>{const n=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>n.test(o.source)})(),Ut=(()=>{const n=/^[a-zA-Z0-9_-]+$/;return o=>n.test(o.source)&&!o.flags.includes("i")})(),Re=v(n=>typeof n=="string","A"),z=v(n=>n===void 0,"f"),qt=v(n=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=n(i);return o.set(i,a),a}},"ye"),De=v((n,o,i={})=>{const c={cache:{},input:n,index:0,indexBacktrackMax:0,options:i,output:[]},a=M(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===n.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),g=v((n,o)=>re(n)?Vt(n,o):Re(n)?Ie(n,o):Zt(n,o),"i"),Vt=v((n,o)=>{const i={};for(const c of n){if(c.length!==1)throw new Error(`Invalid character: "${c}"`);const a=c.charCodeAt(0);i[a]=!0}return c=>{const a=c.input;let f=c.index,p=f;for(;p<a.length&&a.charCodeAt(p)in i;)p+=1;if(p>f){if(!z(o)&&!c.options.silent){const y=a.slice(f,p),P=B(o)?o(y,a,`${f}`):o;z(P)||c.output.push(P)}c.index=p}return!0}},"we"),Zt=v((n,o)=>{if(Ut(n))return Ie(n.source,o);{const i=n.source,c=n.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return Lt(n)&&B(o)&&!Be(o)?Gt(a,o):Kt(a,o)}},"$e"),Gt=v((n,o)=>i=>{const c=i.index,a=i.input;n.lastIndex=c;const f=n.exec(a);if(f){const p=n.lastIndex;if(!i.options.silent){const y=o(...f,a,`${c}`);z(y)||i.output.push(y)}return i.index=p,!0}else return!1},"Ee"),Kt=v((n,o)=>i=>{const c=i.index,a=i.input;if(n.lastIndex=c,n.test(a)){const f=n.lastIndex;if(!z(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;z(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Ie=v((n,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(n,c)){if(!z(o)&&!i.options.silent){const f=B(o)?o(n,a,`${c}`):o;z(f)||i.output.push(f)}return i.index+=n.length,!0}else return!1},"F"),de=v((n,o,i,c)=>{const a=M(n),f=o>1;return me(ge(We(p=>{let y=0;for(;y<i;){const P=p.index;if(!a(p)||(y+=1,p.index===P))break}return y>=o},f),c))},"k"),Fe=v((n,o)=>de(n,0,1,o),"L"),ne=v((n,o)=>de(n,0,1/0,o),"$"),Jt=v((n,o)=>de(n,1,1/0,o),"Re"),L=v((n,o)=>{const i=n.map(M);return me(ge(We(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),S=v((n,o)=>{const i=n.map(M);return me(ge(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),We=v((n,o=!0,i=!1)=>{const c=M(n);return o?a=>{const f=a.index,p=a.output.length,y=c(a);return!y&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!y||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),y}:c},"q"),ge=v((n,o)=>{const i=M(n);return o?c=>{if(c.options.silent)return i(c);const a=c.output.length;if(i(c)){const f=c.output.splice(a,1/0),p=o(f);return z(p)||c.output.push(p),!0}else return!1}:i},"B"),me=(()=>{let n=0;return o=>{const i=M(o),c=n+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,y=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),P=y.queue;if(p<=y.indexMax){const J=y.store||(y.store=new Map);if(P.length){for(let q=0,Yr=P.length;q<Yr;q+=2){const en=P[q*2],tn=P[q*2+1];J.set(en,tn)}P.length=0}const A=J.get(p);if(A===!1)return!1;if(It(A))return a.index=A,!0;if(A)return a.index=A.index,A.output?.length&&a.output.push(...A.output),!0}const K=a.output.length,Qr=i(a);if(y.indexMax=Math.max(y.indexMax,p),Qr){const J=a.index,A=a.output.length;if(A>K){const q=a.output.slice(K,A);P.push(p,{index:J,output:q})}else P.push(p,J);return!0}else return P.push(p,!1),!1}}})(),Le=v(n=>{let o;return i=>(o||(o=M(n())),o(i))},"G"),M=qt(n=>{if(B(n))return Ne(n)?Le(n):n;if(Re(n)||Wt(n))return g(n);if(re(n))return L(n);if(Ft(n))return S(Object.values(n));throw new Error("Invalid rule")}),R=v(n=>n,"d"),Ht=v(n=>typeof n=="string","ke"),Xt=v(n=>{const o=new WeakMap,i=new WeakMap;return(c,a)=>{const f=a?.partial?i:o,p=f.get(c);if(p!==void 0)return p;const y=n(c,a);return f.set(c,y),y}},"Be"),Qt=v(n=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=n(c,a))}},"Pe"),Yt=g(/\\./,R),er=g(/./,R),tr=g(/\*\*\*+/,"*"),rr=g(/([^/{[(!])\*\*/,(n,o)=>`${o}*`),nr=g(/(^|.)\*\*(?=[^*/)\]}])/,(n,o)=>`${o}*`),or=ne(S([Yt,tr,rr,nr,er])),sr=or,ir=v(n=>De(n,sr,{memoization:!1}).join(""),"Ie"),ar=ir,Ue="abcdefghijklmnopqrstuvwxyz",cr=v(n=>{let o="";for(;n>0;){const i=(n-1)%26;o=Ue[i]+o,n=Math.floor((n-1)/26)}return o},"Le"),qe=v(n=>{let o=0;for(let i=0,c=n.length;i<c;i++)o=o*26+Ue.indexOf(n[i])+1;return o},"V"),he=v((n,o)=>{if(o<n)return he(o,n);const i=[];for(;n<=o;)i.push(n++);return i},"b"),ur=v((n,o,i)=>he(n,o).map(c=>String(c).padStart(i,"0")),"qe"),Ve=v((n,o)=>he(qe(n),qe(o)).map(cr),"W"),w=v(n=>({partial:!1,regex:new RegExp(n,"s"),children:[]}),"c"),G=v(n=>({children:n}),"y"),U=(()=>{const n=v((o,i,c)=>{if(c.has(o))return;c.add(o);const{children:a}=o;if(!a.length)a.push(i);else for(let f=0,p=a.length;f<p;f++)n(a[f],i,c)},"e");return o=>{if(!o.length)return G([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];n(a,f,c)}return o[0]}})(),N=v(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),lr=g(/\\./,w),fr=g(/[$.*+?^(){}[\]\|]/,n=>w(`\\${n}`)),pr=g(/[\\\/]/,N),dr=g(/[^$.*+?^(){}[\]\|\\\/]+/,w),gr=g(/^(?:!!)*!(.*)$/,(n,o)=>w(`(?!^${Ye.compile(o).source}$).*?`)),mr=g(/^(!!)+/),hr=S([gr,mr]),yr=g(/\/(\*\*\/)+/,()=>G([U([N(),w(".+?"),N()]),N()])),br=g(/^(\*\*\/)+/,()=>G([w("^"),U([w(".*?"),N()])])),vr=g(/\/(\*\*)$/,()=>G([U([N(),w(".*?")]),w("$")])),$r=g(/\*\*/,()=>w(".*?")),Ze=S([yr,br,vr,$r]),xr=g(/\*\/(?!\*\*\/|\*$)/,()=>U([w("[^\\\\/]*?"),N()])),wr=g(/\*/,()=>w("[^\\\\/]*")),Ge=S([xr,wr]),Ke=g("?",()=>w("[^\\\\/]")),jr=g("[",R),Or=g("]",R),Pr=g(/[!^]/,"^\\\\/"),kr=g(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),Er=g(/\\./,R),Tr=g(/[$.*+?^(){}[\|]/,n=>`\\${n}`),Sr=g(/[\\\/]/,"\\\\/"),Ar=g(/[^$.*+?^(){}[\]\|\\\/]+/,R),_r=S([Er,Tr,Sr,kr,Ar]),Je=L([jr,Fe(Pr),ne(_r),Or],n=>w(n.join(""))),Cr=g("{","(?:"),zr=g("}",")"),Mr=g(/(\d+)\.\.(\d+)/,(n,o,i)=>ur(+o,+i,Math.min(o.length,i.length)).join("|")),Nr=g(/([a-z]+)\.\.([a-z]+)/,(n,o,i)=>Ve(o,i).join("|")),Br=g(/([A-Z]+)\.\.([A-Z]+)/,(n,o,i)=>Ve(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),Rr=S([Mr,Nr,Br]),He=L([Cr,Rr,zr],n=>w(n.join(""))),Dr=g("{"),Ir=g("}"),Fr=g(","),Wr=g(/\\./,w),Lr=g(/[$.*+?^(){[\]\|]/,n=>w(`\\${n}`)),Ur=g(/[\\\/]/,N),qr=g(/[^$.*+?^(){}[\]\|\\\/,]+/,w),Vr=Le(()=>Qe),Zr=g("",()=>w("(?:)")),Gr=Jt(S([Ze,Ge,Ke,Je,He,Vr,Wr,Lr,Ur,qr]),U),Xe=S([Gr,Zr]),Qe=L([Dr,Fe(L([Xe,ne(L([Fr,Xe]))])),Ir],G),Kr=ne(S([hr,Ze,Ge,Ke,Je,He,Qe,lr,fr,pr,dr]),U),Jr=Kr,Hr=v(n=>De(n,Jr,{memoization:!1})[0],"kr"),Xr=Hr,ye=v((n,o,i)=>ye.compile(n,i).test(o),"N");ye.compile=(()=>{const n=Qt((i,c)=>ae(Xr(ar(i)),c)),o=Xt((i,c)=>Me(i.map(a=>n(a,c))));return(i,c)=>Ht(i)?n(i,c):o(i,c)})();var Ye=ye;return m($)})();return e.default||e},"_lazyMatch"),nn;const la=v((e,t)=>(nn||(nn=Bn(),Bn=null),nn(e,t)),"default");var fa=Object.defineProperty,pa=hn((e,t)=>fa(e,"name",{value:t,configurable:!0}),"t$1");const da=/^[A-Z]:\//i,ee=pa((e="")=>e&&e.replaceAll("\\","/").replace(da,t=>t.toUpperCase()),"normalizeWindowsPath");var ga=Object.defineProperty,W=hn((e,t)=>ga(e,"name",{value:t,configurable:!0}),"r");const ma=/^[/\\]{2}/,ha=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,xo=/^[A-Z]:$/i,Rn=/^\/([A-Z]:)?$/i,ya=/.(\.[^./]+)$/,ba=/^[/\\]|^[a-z]:[/\\]/i,va=/\/$/,$a=/^win/i,xa=W(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Ol="/",Pl=$a.test(globalThis.process?.platform??"")?";":":",wo=W((e,t)=>{let r="",s=0,u=-1,l=0,d;for(let m=0;m<=e.length;++m){if(m<e.length)d=e[m];else{if(d==="/")break;d="/"}if(d==="/"){if(!(u===m-1||l===1))if(l===2){if(r.length<2||s!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const $=r.lastIndexOf("/");$===-1?(r="",s=0):(r=r.slice(0,$),s=r.length-1-r.lastIndexOf("/")),u=m,l=0;continue}else if(r.length>0){r="",s=0,u=m,l=0;continue}}t&&(r+=r.length>0?"/..":"..",s=2)}else r.length>0?r+=`/${e.slice(u+1,m)}`:r=e.slice(u+1,m),s=m-u-1;u=m,l=0}else d==="."&&l!==-1?++l:l=-1}return r},"normalizeString"),ve=W(e=>ha.test(e),"isAbsolute"),jo=W(function(e){if(e.length===0)return".";e=ee(e);const t=ma.exec(e),r=ve(e),s=e.at(-1)==="/";return e=wo(e,!r),e.length===0?r?"/":s?"./":".":(s&&(e+="/"),xo.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!ve(e)?`/${e}`:e)},"normalize"),D=W((...e)=>{let t="";for(const r of e)if(r)if(t.length>0){const s=t.at(-1)==="/",u=r[0]==="/";s&&u?t+=r.slice(1):t+=s||u?r:`/${r}`}else t+=r;return jo(t)},"join"),cn=W(function(...e){e=e.map(s=>ee(s));let t="",r=!1;for(let s=e.length-1;s>=-1&&!r;s--){const u=s>=0?e[s]:xa();!u||u.length===0||(t=`${u}/${t}`,r=ve(u))}return t=wo(t,!r),r&&!ve(t)?`/${t}`:t.length>0?t:"."},"resolve");W(function(e){return ee(e)},"toNamespacedPath");const Oo=W(function(e){return ya.exec(ee(e))?.[1]??""},"extname"),kl=W(function(e,t){const r=cn(e).replace(Rn,"$1").split("/"),s=cn(t).replace(Rn,"$1").split("/");if(s[0][1]===":"&&r[0][1]===":"&&r[0]!==s[0])return s.join("/");const u=[...r];for(const l of u){if(s[0]!==l)break;r.shift(),s.shift()}return[...r.map(()=>".."),...s].join("/")},"relative"),Ce=W(e=>{const t=ee(e).replace(va,"").split("/").slice(0,-1);return t.length===1&&xo.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(ve(e)?"/":".")},"dirname");W(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return ee(e.root?cn(...t):t.join("/"))},"format");const wa=W((e,t)=>{const r=ee(e).split("/").pop();return t&&r.endsWith(t)?r.slice(0,-t.length):r},"basename"),El=W(function(e){const t=ba.exec(e)?.[0]?.replaceAll("\\","/")??"",r=wa(e),s=Oo(r);return{base:r,dir:Ce(e),ext:s,name:r.slice(0,r.length-s.length),root:t}},"parse");W((e,t)=>la(t,jo(e)),"matchesGlob");var ja=Object.defineProperty,xe=h((e,t)=>ja(e,"name",{value:t,configurable:!0}),"n$5"),Oa=Object.defineProperty,ie=xe((e,t)=>Oa(e,"name",{value:t,configurable:!0}),"a");const Pa=le(import.meta.url),ct=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ka=ie(e=>{if(typeof ct<"u"&&ct.versions&&ct.versions.node){const[t,r]=ct.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ct.getBuiltinModule(e)}return Pa(e)},"__cjs_getBuiltinModule"),{fileURLToPath:Ea}=ka("node:url");var Ta=Object.defineProperty,Se=ie((e,t)=>Ta(e,"name",{value:t,configurable:!0}),"t$1");function St(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}h(St,"m$4");xe(St,"d");ie(St,"getDefaultExportFromCjs");Se(St,"getDefaultExportFromCjs");function yn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}h(yn,"h$3");xe(yn,"O");ie(yn,"getDefaultExportFromNamespaceIfPresent");Se(yn,"getDefaultExportFromNamespaceIfPresent");function bn(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}h(bn,"x$3");xe(bn,"P");ie(bn,"getDefaultExportFromNamespaceIfNotNamed");Se(bn,"getDefaultExportFromNamespaceIfNotNamed");function vn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=Se(ie(xe(h(function s(){var u=!1;try{u=this instanceof s}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a"),"s"),"a"),"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var u=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,u.get?u:{enumerable:!0,get:Se(function(){return e[s]},"get")})}),r}h(vn,"y$4");xe(vn,"_");ie(vn,"getAugmentedNamespace");Se(vn,"getAugmentedNamespace");var Dn,In;function $n(){return In||(In=1,Dn=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),Dn}h($n,"w$3");xe($n,"k");ie($n,"requireBinaryExtensions");var Sa=$n();const Aa=St(Sa);var _a=Object.defineProperty,te=ie((e,t)=>_a(e,"name",{value:t,configurable:!0}),"r");const Ca=new Set(Aa),za=new Set(["/","\\",void 0]),Fn=Symbol.for("pathe:normalizedAlias"),Ma=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Na=te((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),kt=te((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),Po=te(e=>{if(e[Fn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([r],[s])=>Na(r,s)));for(const r in t)for(const s in t)s===r||r.startsWith(s)||t[r].startsWith(s)&&za.has(t[r][s.length])&&(t[r]=t[s]+t[r].slice(s.length));return Object.defineProperty(t,Fn,{enumerable:!1,value:!0}),t},"normalizeAliases");te((e,t)=>{e=ee(e),t=Po(t);for(const[r,s]of Object.entries(t)){if(!e.startsWith(r))continue;const u=kt(r)?r.slice(0,-1):r;if(kt(e[u.length]))return D(s,e.slice(r.length))}return e},"resolveAlias");te(e=>Ma.exec(e)?.[2],"filename");te((e,t)=>{e=ee(e),t=Po(t);for(const[r,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=kt(s)?s.slice(0,-1):s;if(kt(e[u.length]))return D(r,e.slice(s.length))}return e},"reverseResolveAlias");const Ba=/^(?:\.?\.[/\\]|\.\.\B)/,Ra=/^(?:msys|cygwin)$/;te(e=>Ba.test(e)||e==="..","isRelative");te(e=>Ca.has(Oo(e).slice(1).toLowerCase()),"isBinaryPath");const At=te(e=>ee(e instanceof URL?Ea(e):e),"toPath");te(()=>{if(!globalThis.process)return!1;if(globalThis.process.platform==="win32"||globalThis.process.platform==="cygwin")return!0;const e=globalThis.process.env.OSTYPE;return typeof e!="string"?!1:Ra.test(e)},"isWindows");var Da=Object.defineProperty,ko=h((e,t)=>Da(e,"name",{value:t,configurable:!0}),"t$8"),Ia=Object.defineProperty,xn=ko((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"t");const Fa=le(import.meta.url),ut=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wa=xn(e=>{if(typeof ut<"u"&&ut.versions&&ut.versions.node){const[t,r]=ut.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ut.getBuiltinModule(e)}return Fa(e)},"__cjs_getBuiltinModule"),{accessSync:La}=Wa("node:fs");var Ua=Object.defineProperty,qa=xn((e,t)=>Ua(e,"name",{value:t,configurable:!0}),"o");function I(e,t=an){Et(e),e=At(e);try{return La(e,t),!0}catch{return!1}}h(I,"i$7");ko(I,"d");xn(I,"m");qa(I,"isAccessibleSync");var Va=Object.defineProperty,Eo=h((e,t)=>Va(e,"name",{value:t,configurable:!0}),"t$7"),Za=Object.defineProperty,To=Eo((e,t)=>Za(e,"name",{value:t,configurable:!0}),"t"),Ga=Object.defineProperty,Ka=To((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"o");let Wn=class extends Error{static{h(this,"c")}static{Eo(this,"i")}static{To(this,"n")}static{Ka(this,"PermissionError")}constructor(t){super(`EPERM: Operation not permitted, ${t}`)}get code(){return"EPERM"}set code(t){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(t){throw new Error("Cannot overwrite name of PermissionError")}};var Ja=Object.defineProperty,Ha=h((e,t)=>Ja(e,"name",{value:t,configurable:!0}),"a$5"),Xa=Object.defineProperty,So=Ha((e,t)=>Xa(e,"name",{value:t,configurable:!0}),"i");const Qa=le(import.meta.url),lt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ao=So(e=>{if(typeof lt<"u"&&lt.versions&&lt.versions.node){const[t,r]=lt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return lt.getBuiltinModule(e)}return Qa(e)},"__cjs_getBuiltinModule"),{readFileSync:Ya}=Ao("node:fs"),{unzipSync:ec,brotliDecompressSync:tc}=Ao("node:zlib");var rc=Object.defineProperty,_o=So((e,t)=>rc(e,"name",{value:t,configurable:!0}),"r");const nc={brotli:tc,gzip:ec,none:_o(e=>e,"none")},oc=_o((e,t)=>{if(Et(e),e=At(e),!I(e))throw new Wn(`unable to read the non-accessible file: ${e}`);if(!I(e,vo))throw new Wn(`invalid access to read file at: ${e}`);const{buffer:r,compression:s,encoding:u,flag:l}=t??{},d=Ya(e,l?{encoding:u,flag:l}:{encoding:u}),m=nc[s??"none"],$=m(d);return r?$:$.toString()},"readFileSync");var sc=Object.defineProperty,ic=h((e,t)=>sc(e,"name",{value:t,configurable:!0}),"x$2"),ac=Object.defineProperty,Co=ic((e,t)=>ac(e,"name",{value:t,configurable:!0}),"$"),cc=Object.defineProperty,uc=Co((e,t)=>cc(e,"name",{value:t,configurable:!0}),"A"),lc=Object.defineProperty,wn=uc((e,t)=>lc(e,"name",{value:t,configurable:!0}),"$"),fc=Object.defineProperty,pc=wn((e,t)=>fc(e,"name",{value:t,configurable:!0}),"r$1");const dc=pc(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),gc=globalThis.process??Object.create(null),Ln={versions:{}},Un=new Proxy(gc,{get(e,t){if(t in e)return e[t];if(t in Ln)return Ln[t]}});var mc=Object.defineProperty,hc=wn((e,t)=>mc(e,"name",{value:t,configurable:!0}),"b");const yc=hc((e,t,r,s)=>{const u={column:0,line:-1,...e.start},l={...u,...e.end},d=u.line,m=u.column,$=l.line,O=l.column;let j=Math.max(d-(r+1),0),x=Math.min(t.length,$+s);d===-1&&(j=0),$===-1&&(x=t.length);const C=$-d,E={};if(C)for(let k=0;k<=C;k++){const V=k+d;if(!m)E[V]=!0;else if(k===0){const Z=t[V-1]?.length;E[V]=[m,(Z??0)-m+1]}else if(k===C)E[V]=[0,O];else{const Z=t[V-k]?.length;E[V]=[0,Z]}}else m===O?E[d]=m?[m,0]:!0:E[d]=[m,(O??0)-(m??0)];return{end:x,markerLines:E,start:j}},"getMarkerLines");var bc=Object.defineProperty,jt=wn((e,t)=>bc(e,"name",{value:t,configurable:!0}),"t");const vc=Un.platform==="win32"&&!Un.env?.WT_SESSION?">":"❯",$c=jt((e,t,r)=>{const s={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:jt(k=>k,"gutter"),marker:jt(k=>k,"marker"),message:jt(k=>k,"message"),...r?.color}},u=typeof t.start.column=="number";let l=dc(e).split(`
3
+ `);typeof s.tabWidth=="number"&&(l=l.map(k=>k.replaceAll(" "," ".repeat(s.tabWidth))));const{end:d,markerLines:m,start:$}=yc(t,l,s.linesAbove,s.linesBelow),O=String(d).length,{gutter:j,marker:x,message:C}=s.color;let E=l.slice($,d).map((k,V)=>{const Z=$+1+V,ae=m[Z],ze=` ${String(Z)}`.slice(-O),Me=!m[Z+1],re=` ${ze}${s.showGutter?" |":""}`;if(ae){let B="";if(Array.isArray(ae)){const Ne=k.replaceAll(/[^\t]/g," ").slice(0,Math.max(ae[0]-1,0)),Be=ae[1]||1;B=[`
4
+ `,s.prefix+j(re.replaceAll(/\d/g," "))," ",Ne,x("^").repeat(Be)].join(""),Me&&s.message&&(B+=` ${C(s.message)}`)}return[s.prefix+x(vc),j(re),k.length>0?` ${k}`:"",B].join("")}return`${s.prefix} ${j(re)}${k.length>0?` ${k}`:""}`}).join(`
5
+ `);return s.message&&!u&&(E=`${s.prefix+" ".repeat(O+1)+s.message}
6
+ ${E}`),E},"codeFrame");var xc=Object.defineProperty,wc=Co((e,t)=>xc(e,"name",{value:t,configurable:!0}),"s"),jc=Object.defineProperty,Oc=wc((e,t)=>jc(e,"name",{value:t,configurable:!0}),"o"),Pc=Object.defineProperty,jn=Oc((e,t)=>Pc(e,"name",{value:t,configurable:!0}),"l");const qn=jn((e,t)=>{let r=0,s=t.length-2;for(;r<s;){const u=r+(s-r>>1);if(e<t[u])s=u-1;else if(e>=t[u+1])r=u+1;else{r=u;break}}return r},"binarySearch"),kc=/\n|\r(?!\n)/,Ec=jn(e=>e.split(kc).reduce((t,r)=>(t.push(t.at(-1)+r.length+1),t),[0]),"getLineStartIndexes"),Tc=jn((e,t,r)=>{const s=r?.skipChecks??!1;if(!s&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!s&&(typeof t!="number"||typeof e=="string"&&t>=e.length||Array.isArray(e)&&t+1>=e.at(-1)))return{column:0,line:0};if(typeof e=="string"){const l=Ec(e),d=qn(t,l);return{column:t-l[d]+1,line:d+1}}const u=qn(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var Sc=Object.defineProperty,zo=h((e,t)=>Sc(e,"name",{value:t,configurable:!0}),"t$6"),Ac=Object.defineProperty,Mo=zo((e,t)=>Ac(e,"name",{value:t,configurable:!0}),"t"),_c=Object.defineProperty,Cc=Mo((e,t)=>_c(e,"name",{value:t,configurable:!0}),"i");let zc=class extends Error{static{h(this,"m")}static{zo(this,"m")}static{Mo(this,"t")}static{Cc(this,"JSONError")}fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
7
7
 
8
8
  ${this.codeFrame}
9
- `:""}`}set message(t){this.#e=t}};var Kc=Object.defineProperty,Wo=$((e,t)=>Kc(e,"name",{value:t,configurable:!0}),"u$3"),Jc=Object.defineProperty,Lo=Wo((e,t)=>Jc(e,"name",{value:t,configurable:!0}),"s"),Hc=Object.defineProperty,zr=Lo((e,t)=>Hc(e,"name",{value:t,configurable:!0}),"a");const Xc=zr(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Yc=zr((e,t,o)=>_c(e,{start:t},{tabWidth:!1,...o}),"generateCodeFrame"),Qc=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,el=zr((e,t)=>{const o=Qc.exec(t);if(!o)return;const[,i,u,f]=o;if(u&&f)return{column:Number(f),line:Number(u)};let g=Number(i);return g===e.length&&(g=e.length-1),Lc(e,g)},"getErrorLocation"),tl=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,rl=zr(e=>e.replace(tl,(t,o,i)=>`"${i}"(${Xc(i)})`),"addCodePointToUnexpectedToken");function Ur(e,t,o,i){typeof t=="string"&&(typeof o=="object"&&(i=o),o=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(h){u=h.message}let f;e?(f=el(e,u),u=rl(u)):u+=" while parsing empty string";const g=new Gc(u);throw g.fileName=o,f&&(g.codeFrame=Yc(e,f,i)),g}$(Ur,"d$5");Wo(Ur,"w");Lo(Ur,"E");zr(Ur,"parseJson");var nl=Object.defineProperty,qo=$((e,t)=>nl(e,"name",{value:t,configurable:!0}),"t$5"),ol=Object.defineProperty,Uo=qo((e,t)=>ol(e,"name",{value:t,configurable:!0}),"t"),sl=Object.defineProperty,il=Uo((e,t)=>sl(e,"name",{value:t,configurable:!0}),"r");function Mr(e,t,o){typeof t=="object"&&(o=t,t=void 0);const i=yc(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(i);const{beforeParse:f,color:g}=o??{};return typeof f=="function"&&(u=f(u)),Ur(u,t,qr(e),{color:g})}$(Mr,"n$3");qo(Mr,"s");Uo(Mr,"J");il(Mr,"readJsonSync");var al=Object.defineProperty,cl=$((e,t)=>al(e,"name",{value:t,configurable:!0}),"a$3"),ll=Object.defineProperty,ul=cl((e,t)=>ll(e,"name",{value:t,configurable:!0}),"t"),fl=Object.defineProperty,pl=ul((e,t)=>fl(e,"name",{value:t,configurable:!0}),"e");const dl=pl(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var gl=Object.defineProperty,hl=$((e,t)=>gl(e,"name",{value:t,configurable:!0}),"t$3"),ml=Object.defineProperty,bl=hl((e,t)=>ml(e,"name",{value:t,configurable:!0}),"r"),yl=Object.defineProperty,$l=bl((e,t)=>yl(e,"name",{value:t,configurable:!0}),"f");const vl=new TextEncoder,xl=$l(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return vl.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var wl=Object.defineProperty,jl=$((e,t)=>wl(e,"name",{value:t,configurable:!0}),"m"),Ol=Object.defineProperty,Zo=jl((e,t)=>Ol(e,"name",{value:t,configurable:!0}),"s");const kl=ze(import.meta.url),Pr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pl=Zo(e=>{if(typeof Pr<"u"&&Pr.versions&&Pr.versions.node){const[t,o]=Pr.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pr.getBuiltinModule(e)}return kl(e)},"__cjs_getBuiltinModule"),{mkdirSync:El,writeFileSync:Al,statSync:Sl,renameSync:Gn,chownSync:Tl,chmodSync:zl,unlinkSync:Ml}=Pl("node:fs");var Cl=Object.defineProperty,_l=Zo((e,t)=>Cl(e,"name",{value:t,configurable:!0}),"f");const Nl=_l((e,t,o)=>{o={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...o},Fr(e),dl(t),e=qr(e);const i=`${e}.tmp`;try{const u=V(e,on);if(!u&&o.recursive){const g=Xe(e);V(g,on)||El(g,{recursive:!0})}let f;if(Al(i,xl(t),{encoding:o.encoding,flag:o.flag}),u&&!o.overwrite&&(f=Sl(e),o.chown??={gid:f.gid,uid:f.uid},Gn(e,`${e}.bak`)),o.chown)try{Tl(i,o.chown.uid,o.chown.gid)}catch{}zl(i,f&&!o.mode?f.mode:o.mode??438),Gn(i,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{V(i)&&Ml(`${e}.tmp`)}},"writeFileSync");var Rl=Object.defineProperty,Me=$((e,t)=>Rl(e,"name",{value:t,configurable:!0}),"i$2"),Bl=Object.defineProperty,Ce=Me((e,t)=>Bl(e,"name",{value:t,configurable:!0}),"s"),Il=Object.defineProperty,Le=Ce((e,t)=>Il(e,"name",{value:t,configurable:!0}),"i");const Dl=/^(?:( )+|\t+)/,Cr="space";function Sr(e,t,o){return e&&t===Cr&&o===1}$(Sr,"d$3");Me(Sr,"g");Ce(Sr,"I");Le(Sr,"shouldIgnoreSingleSpace");function Tr(e,t){const o=new Map;let i=0,u,f;for(const g of e.split(/\n/g)){if(!g)continue;const h=g.match(Dl);if(h===null)i=0,u="";else{const w=h[0].length,P=h[1]?Cr:"tab";if(Sr(t,P,w))continue;P!==u&&(i=0),u=P;let k=1,O=0;const N=w-i;if(i=w,N===0)k=0,O=1;else{const E=Math.abs(N);if(Sr(t,P,E))continue;f=Zr(P,E)}const C=o.get(f);o.set(f,C===void 0?[1,0]:[C[0]+k,C[1]+O])}}return o}$(Tr,"p");Me(Tr,"y");Ce(Tr,"h");Le(Tr,"makeIndentsMap");function Zr(e,t){return(e===Cr?"s":"t")+String(t)}$(Zr,"b$1");Me(Zr,"v");Ce(Zr,"m");Le(Zr,"encodeIndentsKey");function Vr(e){const t=e[0]==="s"?Cr:"tab",o=Number(e.slice(1));return{type:t,amount:o}}$(Vr,"v");Me(Vr,"M");Ce(Vr,"_");Le(Vr,"decodeIndentsKey");function Gr(e){let t,o=0,i=0;for(const[u,[f,g]]of e)(f>o||f===o&&g>i)&&(o=f,i=g,t=u);return t}$(Gr,"I");Me(Gr,"S");Ce(Gr,"k");Le(Gr,"getMostUsedKey");function Kr(e,t){return(e===Cr?" ":" ").repeat(t)}$(Kr,"h$1");Me(Kr,"k");Ce(Kr,"D");Le(Kr,"makeIndentString");function Jr(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Tr(e,!0);t.size===0&&(t=Tr(e,!1));const o=Gr(t);let i,u=0,f="";return o!==void 0&&({type:i,amount:u}=Vr(o),f=Kr(i,u)),{amount:u,type:i,indent:f}}$(Jr,"M");Me(Jr,"x");Ce(Jr,"C");Le(Jr,"detectIndent");var Fl=Object.defineProperty,Wl=$((e,t)=>Fl(e,"name",{value:t,configurable:!0}),"a$1"),Ll=Object.defineProperty,Vo=Wl((e,t)=>Ll(e,"name",{value:t,configurable:!0}),"i");const ql=ze(import.meta.url),Er=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ul=Vo(e=>{if(typeof Er<"u"&&Er.versions&&Er.versions.node){const[t,o]=Er.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Er.getBuiltinModule(e)}return ql(e)},"__cjs_getBuiltinModule"),{readFileSync:Zl}=Ul("node:fs");var Vl=Object.defineProperty,Gl=Vo((e,t)=>Vl(e,"name",{value:t,configurable:!0}),"r");const Go=Gl((e,t,o={})=>{const{detectIndent:i,indent:u,replacer:f,stringify:g=JSON.stringify,...h}={indent:" ",...o};let w=u,P=`
10
- `;if(V(e,ko))try{const O=Zl(e,"utf8");if(i){const{indent:N}=Jr(O);w=N}P=O.endsWith(`
9
+ `:""}`}set message(t){this.#e=t}};var Mc=Object.defineProperty,No=h((e,t)=>Mc(e,"name",{value:t,configurable:!0}),"u$3"),Nc=Object.defineProperty,Bo=No((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"s"),Bc=Object.defineProperty,$t=Bo((e,t)=>Bc(e,"name",{value:t,configurable:!0}),"a");const Rc=$t(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Dc=$t((e,t,r)=>$c(e,{start:t},{tabWidth:!1,...r}),"generateCodeFrame"),Ic=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Fc=$t((e,t)=>{const r=Ic.exec(t);if(!r)return;const[,s,u,l]=r;if(u&&l)return{column:Number(l),line:Number(u)};let d=Number(s);return d===e.length&&(d=e.length-1),Tc(e,d)},"getErrorLocation"),Wc=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Lc=$t(e=>e.replace(Wc,(t,r,s)=>`"${s}"(${Rc(s)})`),"addCodePointToUnexpectedToken");function _t(e,t,r,s){typeof t=="string"&&(typeof r=="object"&&(s=r),r=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(m){u=m.message}let l;e?(l=Fc(e,u),u=Lc(u)):u+=" while parsing empty string";const d=new zc(u);throw d.fileName=r,l&&(d.codeFrame=Dc(e,l,s)),d}h(_t,"d$5");No(_t,"w");Bo(_t,"E");$t(_t,"parseJson");var Uc=Object.defineProperty,Ro=h((e,t)=>Uc(e,"name",{value:t,configurable:!0}),"t$5"),qc=Object.defineProperty,Do=Ro((e,t)=>qc(e,"name",{value:t,configurable:!0}),"t"),Vc=Object.defineProperty,Zc=Do((e,t)=>Vc(e,"name",{value:t,configurable:!0}),"r");function xt(e,t,r){typeof t=="object"&&(r=t,t=void 0);const s=oc(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(s);const{beforeParse:l,color:d}=r??{};return typeof l=="function"&&(u=l(u)),_t(u,t,At(e),{color:d})}h(xt,"n$3");Ro(xt,"s");Do(xt,"J");Zc(xt,"readJsonSync");var Gc=Object.defineProperty,Kc=h((e,t)=>Gc(e,"name",{value:t,configurable:!0}),"a$3"),Jc=Object.defineProperty,Hc=Kc((e,t)=>Jc(e,"name",{value:t,configurable:!0}),"t"),Xc=Object.defineProperty,Qc=Hc((e,t)=>Xc(e,"name",{value:t,configurable:!0}),"e");const Yc=Qc(e=>{if(typeof e!="string"&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var eu=Object.defineProperty,tu=h((e,t)=>eu(e,"name",{value:t,configurable:!0}),"t$3"),ru=Object.defineProperty,nu=tu((e,t)=>ru(e,"name",{value:t,configurable:!0}),"r"),ou=Object.defineProperty,su=nu((e,t)=>ou(e,"name",{value:t,configurable:!0}),"f");const iu=new TextEncoder,au=su(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return iu.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var cu=Object.defineProperty,uu=h((e,t)=>cu(e,"name",{value:t,configurable:!0}),"m"),lu=Object.defineProperty,Io=uu((e,t)=>lu(e,"name",{value:t,configurable:!0}),"s");const fu=le(import.meta.url),ft=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pu=Io(e=>{if(typeof ft<"u"&&ft.versions&&ft.versions.node){const[t,r]=ft.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ft.getBuiltinModule(e)}return fu(e)},"__cjs_getBuiltinModule"),{mkdirSync:du,writeFileSync:gu,statSync:mu,renameSync:Vn,chownSync:hu,chmodSync:yu,unlinkSync:bu}=pu("node:fs");var vu=Object.defineProperty,$u=Io((e,t)=>vu(e,"name",{value:t,configurable:!0}),"f");const xu=$u((e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},Et(e),Yc(t),e=At(e);const s=`${e}.tmp`;try{const u=I(e,an);if(!u&&r.recursive){const d=Ce(e);I(d,an)||du(d,{recursive:!0})}let l;if(gu(s,au(t),{encoding:r.encoding,flag:r.flag}),u&&!r.overwrite&&(l=mu(e),r.chown??={gid:l.gid,uid:l.uid},Vn(e,`${e}.bak`)),r.chown)try{hu(s,r.chown.uid,r.chown.gid)}catch{}yu(s,l&&!r.mode?l.mode:r.mode??438),Vn(s,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{I(s)&&bu(`${e}.tmp`)}},"writeFileSync");var wu=Object.defineProperty,fe=h((e,t)=>wu(e,"name",{value:t,configurable:!0}),"i$2"),ju=Object.defineProperty,pe=fe((e,t)=>ju(e,"name",{value:t,configurable:!0}),"s"),Ou=Object.defineProperty,we=pe((e,t)=>Ou(e,"name",{value:t,configurable:!0}),"i");const Pu=/^(?:( )+|\t+)/,wt="space";function dt(e,t,r){return e&&t===wt&&r===1}h(dt,"d$3");fe(dt,"g");pe(dt,"I");we(dt,"shouldIgnoreSingleSpace");function gt(e,t){const r=new Map;let s=0,u,l;for(const d of e.split(/\n/g)){if(!d)continue;const m=d.match(Pu);if(m===null)s=0,u="";else{const $=m[0].length,O=m[1]?wt:"tab";if(dt(t,O,$))continue;O!==u&&(s=0),u=O;let j=1,x=0;const C=$-s;if(s=$,C===0)j=0,x=1;else{const k=Math.abs(C);if(dt(t,O,k))continue;l=Ct(O,k)}const E=r.get(l);r.set(l,E===void 0?[1,0]:[E[0]+j,E[1]+x])}}return r}h(gt,"p");fe(gt,"y");pe(gt,"h");we(gt,"makeIndentsMap");function Ct(e,t){return(e===wt?"s":"t")+String(t)}h(Ct,"b$1");fe(Ct,"v");pe(Ct,"m");we(Ct,"encodeIndentsKey");function zt(e){const t=e[0]==="s"?wt:"tab",r=Number(e.slice(1));return{type:t,amount:r}}h(zt,"v");fe(zt,"M");pe(zt,"_");we(zt,"decodeIndentsKey");function Mt(e){let t,r=0,s=0;for(const[u,[l,d]]of e)(l>r||l===r&&d>s)&&(r=l,s=d,t=u);return t}h(Mt,"I");fe(Mt,"S");pe(Mt,"k");we(Mt,"getMostUsedKey");function Nt(e,t){return(e===wt?" ":" ").repeat(t)}h(Nt,"h$1");fe(Nt,"k");pe(Nt,"D");we(Nt,"makeIndentString");function Bt(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=gt(e,!0);t.size===0&&(t=gt(e,!1));const r=Mt(t);let s,u=0,l="";return r!==void 0&&({type:s,amount:u}=zt(r),l=Nt(s,u)),{amount:u,type:s,indent:l}}h(Bt,"M");fe(Bt,"x");pe(Bt,"C");we(Bt,"detectIndent");var ku=Object.defineProperty,Eu=h((e,t)=>ku(e,"name",{value:t,configurable:!0}),"a$1"),Tu=Object.defineProperty,Fo=Eu((e,t)=>Tu(e,"name",{value:t,configurable:!0}),"i");const Su=le(import.meta.url),pt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Au=Fo(e=>{if(typeof pt<"u"&&pt.versions&&pt.versions.node){const[t,r]=pt.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return pt.getBuiltinModule(e)}return Su(e)},"__cjs_getBuiltinModule"),{readFileSync:_u}=Au("node:fs");var Cu=Object.defineProperty,zu=Fo((e,t)=>Cu(e,"name",{value:t,configurable:!0}),"r");const Wo=zu((e,t,r={})=>{const{detectIndent:s,indent:u,replacer:l,stringify:d=JSON.stringify,...m}={indent:" ",...r};let $=u,O=`
10
+ `;if(I(e,vo))try{const x=_u(e,"utf8");if(s){const{indent:C}=Bt(x);$=C}O=x.endsWith(`
11
11
  `)?`
12
- `:""}catch(O){if(O.code!=="ENOENT")throw O}const k=g(t,f,w);Nl(e,`${k}${P}`,h)},"writeJsonSync");var Kl=Object.defineProperty,Jl=$((e,t)=>Kl(e,"name",{value:t,configurable:!0}),"s$1");class Hr extends Error{static{$(this,"VisConfigError")}static{Jl(this,"VisConfigError")}chain;constructor(t,o,i){super(t,i),this.name=this.constructor.name,this.chain=o}}var Hl=Object.defineProperty,Xl=$((e,t)=>Hl(e,"name",{value:t,configurable:!0}),"e");class Yl extends Hr{static{$(this,"VisConfigCycleError")}static{Xl(this,"VisConfigCycleError")}constructor(t,o){const i=[...o,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${i}`,o)}}var Ql=Object.defineProperty,eu=$((e,t)=>Ql(e,"name",{value:t,configurable:!0}),"s");class Ko extends Hr{static{$(this,"VisConfigDeprecatedKeyError")}static{eu(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,o,i){const u=[`${t} uses removed keys.`,""];for(const f of i){const g=f.location?` (at ${f.location})`:"";u.push(` • ${f.name}${g} → renamed to \`${f.renamedTo}\``);for(const h of f.children??[])u.push(` ↳ ${h.name} → renamed to \`${h.renamedTo}\``)}u.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(u.join(`
13
- `),o),this.filePath=t,this.removedKeys=i}}var tu=Object.defineProperty,ru=$((e,t)=>tu(e,"name",{value:t,configurable:!0}),"t$1");class Kn extends Hr{static{$(this,"VisConfigLoadError")}static{ru(this,"VisConfigLoadError")}constructor(t,o,i){const u=i instanceof Error?i.message:String(i),f=o.length>0?`
14
- Chain: ${o.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${f}`,o,{cause:i})}}var nu=Object.defineProperty,Jo=$((e,t)=>nu(e,"name",{value:t,configurable:!0}),"t");const ou=Jo(e=>e.join(" → "),"formatChain");class tn extends Hr{static{$(this,"VisConfigNotFoundError")}static{Jo(this,"VisConfigNotFoundError")}constructor(t,o,i){const u=o.length>0?o[o.length-1]:"<unknown>",f=i.length>0?`
12
+ `:""}catch(x){if(x.code!=="ENOENT")throw x}const j=d(t,l,$);xu(e,`${j}${O}`,m)},"writeJsonSync");var Mu=Object.defineProperty,Nu=h((e,t)=>Mu(e,"name",{value:t,configurable:!0}),"s$1");class Rt extends Error{static{h(this,"VisConfigError")}static{Nu(this,"VisConfigError")}chain;constructor(t,r,s){super(t,s),this.name=this.constructor.name,this.chain=r}}var Bu=Object.defineProperty,Ru=h((e,t)=>Bu(e,"name",{value:t,configurable:!0}),"e");class Du extends Rt{static{h(this,"VisConfigCycleError")}static{Ru(this,"VisConfigCycleError")}constructor(t,r){const s=[...r,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${s}`,r)}}var Iu=Object.defineProperty,Fu=h((e,t)=>Iu(e,"name",{value:t,configurable:!0}),"s");class Lo extends Rt{static{h(this,"VisConfigDeprecatedKeyError")}static{Fu(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,r,s){const u=[`${t} uses removed keys.`,""];for(const l of s){const d=l.location?` (at ${l.location})`:"";u.push(` • ${l.name}${d} → renamed to \`${l.renamedTo}\``);for(const m of l.children??[])u.push(` ↳ ${m.name} → renamed to \`${m.renamedTo}\``)}u.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(u.join(`
13
+ `),r),this.filePath=t,this.removedKeys=s}}var Wu=Object.defineProperty,Lu=h((e,t)=>Wu(e,"name",{value:t,configurable:!0}),"t$1");class Zn extends Rt{static{h(this,"VisConfigLoadError")}static{Lu(this,"VisConfigLoadError")}constructor(t,r,s){const u=s instanceof Error?s.message:String(s),l=r.length>0?`
14
+ Chain: ${r.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${l}`,r,{cause:s})}}var Uu=Object.defineProperty,Uo=h((e,t)=>Uu(e,"name",{value:t,configurable:!0}),"t");const qu=Uo(e=>e.join(" → "),"formatChain");class on extends Rt{static{h(this,"VisConfigNotFoundError")}static{Uo(this,"VisConfigNotFoundError")}constructor(t,r,s){const u=r.length>0?r[r.length-1]:"<unknown>",l=s.length>0?`
15
15
  Tried:
16
- ${i.join(`
17
- `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${f}
18
- Chain: ${ou(o)}`,o)}}var su=Object.defineProperty,Ho=$((e,t)=>su(e,"name",{value:t,configurable:!0}),"i$1");const Jn="@inherit",iu=["aliases","dependsOn","inputs","outputs"],au=Ho((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Jn))return[...t];const o=[];for(const i of t){if(i===Jn){e!==void 0&&o.push(...e);continue}o.push(i)}return o},"mergeArrayWithInherit"),cu=Ho((e,t)=>{const o={...e,...t};for(const i of iu){const u=e?.[i],f=t?.[i],g=au(u,f);g===void 0?delete o[i]:o[i]=g}return o},"mergeTargetWithInherit");var lu=Object.defineProperty,Xr=$((e,t)=>lu(e,"name",{value:t,configurable:!0}),"o");const uu=Xr(e=>{const t=[];if(Object.hasOwn(e,"targetDefaults")&&t.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(e,"taskRunnerOptions")&&t.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(e,"taskDefaults")){const{taskDefaults:o}=e,i=[];if(Array.isArray(o))for(const[u,f]of o.entries())f&&typeof f=="object"&&(Object.hasOwn(f,"scope")&&i.push({location:`taskDefaults[${u}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(f,"targets")&&i.push({location:`taskDefaults[${u}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:i.length>0?i:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[o,i]of e.scopedTasks.entries())i&&typeof i=="object"&&(Object.hasOwn(i,"scope")&&t.push({location:`scopedTasks[${o}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(i,"targets")&&t.push({location:`scopedTasks[${o}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),fu=Xr(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),pu=Xr((e,t,o)=>{if(!o||typeof o!="object")return;const i=uu(o);if(i.length>0)throw new Ko(e,t,i)},"assertNoDeprecatedConfigKeys"),du=Xr((e,t,o)=>{if(!o||typeof o!="object")return;const i=fu(o);if(i.length>0)throw new Ko(e,t,i)},"assertNoDeprecatedTaskKeys");var gu=Object.defineProperty,R=$((e,t)=>gu(e,"name",{value:t,configurable:!0}),"r");const Xo=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],hu=new Set(Xo),Yo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],mu=new Set(Yo),Uu=2880,rn={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},bu=R(e=>{if(!e)return{...rn};const t=rn.policies??{},o=e.policies??{},i={...t,...o};for(const u of Object.keys(t)){const f=t[u],g=o[u];f!==void 0&&g!==void 0&&(i[u]={...f,...g})}return{...rn,...e,policies:i}},"mergeSecurityDefaults"),an=R(e=>({...e,security:bu(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),yu=R(e=>{let t;try{t=Xn(e)}catch{return}const o=new Set(t.filter(i=>hu.has(i)));for(const i of Xo)if(o.has(i))return Z(e,i)},"findVisConfigFile"),$u=R(e=>{let t;try{t=Xn(e)}catch{return}const o=new Set(t.filter(i=>mu.has(i)));for(const i of Yo)if(o.has(i))return Z(e,i)},"findVisTaskConfigFile"),On=R(e=>Hn("sha256").update(os(e)).digest("hex"),"hashFileContents"),vu=R(e=>{const t=Hn("sha256"),o=[...e].sort();for(const i of o)t.update(i),t.update(":"),t.update(On(i)),t.update(`
19
- `);return t.digest("hex")},"hashConfigChain"),xu=R(e=>{const t=Z(e,"node_modules");if(V(t)){const i=Z(t,".cache","vis");return Wr(i),Z(i,"vis-config-cache.json")}const o=Oo("vis",{create:!0,cwd:e});return o?Z(o,"vis-config-cache.json"):void 0},"getConfigCachePath"),wu=R((e,t)=>{if(V(e))try{const o=Mr(e);if(o.hash===t)return o.config}catch{}},"readConfigCache"),ju=R((e,t,o)=>{try{Wr(Xe(e)),Go(e,{config:o,hash:t})}catch{}},"writeConfigCache"),Ou=R(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),ku=R((e,t,o)=>{if(De(e))throw new tn(e,[...o,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const i=[];if(e.startsWith("./")||e.startsWith("../")){const u=Xe(t),f=Z(u,e);if(i.push(f),V(f))return f;throw new tn(e,[...o,t],i)}try{return ze(t).resolve(e)}catch{throw i.push(`require.resolve("${e}") from ${t}`),new tn(e,[...o,t],i)}},"resolveExtendsSpecifier"),Qo=R(async(e,t,o)=>{const i=On(t),u=t.slice(t.lastIndexOf(".")),f=Z(Xe(t),`.vis-config-tmp-${i}${u}`);ss(t,f);let g;try{g=await e.import(f,{default:!0,try:!0})??{}}catch(h){throw new Kn(t,o,h)}finally{try{is(f)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new Kn(t,o,h)}},"loadRawConfig"),Pu=R((e,t)=>{const o={...e,...t};if(e.tasks||t.tasks){const i=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),u={};for(const f of i)u[f]=cu(e.tasks?.[f],t.tasks?.[f]);o.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(o.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(o.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(o.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const i=e.security?.policies??{},u=t.security?.policies??{},f={...i,...u};for(const g of Object.keys(i)){const h=i[g],w=u[g];h!==void 0&&w!==void 0&&(f[g]={...h,...w})}o.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:f}}return(e.update||t.update)&&(o.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(o.taskRunner={...e.taskRunner,...t.taskRunner}),delete o.extends,o},"mergeVisConfigs"),es=R(async(e,t,o,i,u,f)=>{if(i.has(t))throw new Yl(t,o);if(!u.has(t)){i.add(t);try{const g=await Qo(e,t,o);pu(t,o,g);const h=Ou(g.extends);for(const w of h){const P=ku(w,t,o);await es(e,P,[...o,t],i,u,f)}u.set(t,g),f.push(t)}finally{i.delete(t)}}},"resolveConfigChain"),Zu=R(async(e,t)=>{let o;if(t?.explicitConfigPath){const O=De(t.explicitConfigPath)?t.explicitConfigPath:Z(e,t.explicitConfigPath);if(!V(O))throw new Error(`Cannot find config file at ${O}`);o=O}else o=yu(e);if(!o)return an({});const i=Yn(e,{fsCache:!1,moduleCache:!1}),u=new Set,f=new Map,g=[];await es(i,o,[],u,f,g);const h=vu(g),w=xu(e);if(w){const O=wu(w,h);if(O)return O}let P={};for(const O of g)P=Pu(P,f.get(O));const k=an(P);return w&&ju(w,h,k),k},"loadVisConfig"),Eu=R(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),Au=R((e,t)=>{const o=Z(e,"node_modules"),i=Eu(t);if(V(o)){const f=Z(o,".cache","vis","task-configs");return Wr(f),Z(f,`${i}.json`)}const u=Oo("vis",{create:!0,cwd:e});return u?Z(u,"task-configs",`${i}.json`):void 0},"getVisTaskCachePath"),Su=R((e,t)=>{if(V(e))try{const o=Mr(e);if(o.hash===t)return o.config}catch{}},"readVisTaskCache"),Tu=R((e,t,o)=>{try{Wr(Xe(e)),Go(e,{config:o,hash:t})}catch{}},"writeVisTaskCache"),Vu=R(async(e,t,o)=>{const i=$u(t);if(!i)return;const u=On(i),f=Au(e,o);if(f){const P=Su(f,u);if(P)return P}const g=Yn(t,{fsCache:!1,moduleCache:!1}),h=await Qo(g,i,[]);du(i,[],h);const w=h;return f&&Tu(f,u,w),w},"loadVisTaskConfig"),Gu=R(e=>e,"defineTaskConfig"),Ku=R(e=>an(e),"defineConfig");export{yc as $,Jr as A,Nl as B,sn as C,cu as D,$u as G,Uu as H,Oo as K,So as L,Z as M,De as O,Ra as Q,qr as U,Yo as V,on as _,Gu as a,Wr as b,Ku as c,Du as d,Zu as e,Iu as f,Xe as g,Xo as h,V as i,yu as j,Wu as k,rn as l,Fr as m,Mr as n,Rn as o,Bu as p,Ru as q,Vu as r,qn as s,ko as t,Ur as u,dl as v,Go as w,xl as x,an as y,Fu as z};
16
+ ${s.join(`
17
+ `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${l}
18
+ Chain: ${qu(r)}`,r)}}var Vu=Object.defineProperty,qo=h((e,t)=>Vu(e,"name",{value:t,configurable:!0}),"i$1");const Gn="@inherit",Zu=["aliases","dependsOn","inputs","outputs"],Gu=qo((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Gn))return[...t];const r=[];for(const s of t){if(s===Gn){e!==void 0&&r.push(...e);continue}r.push(s)}return r},"mergeArrayWithInherit"),Ku=qo((e,t)=>{const r={...e,...t};for(const s of Zu){const u=e?.[s],l=t?.[s],d=Gu(u,l);d===void 0?delete r[s]:r[s]=d}return r},"mergeTargetWithInherit");var Ju=Object.defineProperty,Dt=h((e,t)=>Ju(e,"name",{value:t,configurable:!0}),"o");const Hu=Dt(e=>{const t=[];if(Object.hasOwn(e,"targetDefaults")&&t.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(e,"taskRunnerOptions")&&t.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(e,"taskDefaults")){const{taskDefaults:r}=e,s=[];if(Array.isArray(r))for(const[u,l]of r.entries())l&&typeof l=="object"&&(Object.hasOwn(l,"scope")&&s.push({location:`taskDefaults[${u}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(l,"targets")&&s.push({location:`taskDefaults[${u}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:s.length>0?s:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[r,s]of e.scopedTasks.entries())s&&typeof s=="object"&&(Object.hasOwn(s,"scope")&&t.push({location:`scopedTasks[${r}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(s,"targets")&&t.push({location:`scopedTasks[${r}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),Xu=Dt(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),Qu=Dt((e,t,r)=>{if(!r||typeof r!="object")return;const s=Hu(r);if(s.length>0)throw new Lo(e,t,s)},"assertNoDeprecatedConfigKeys"),Yu=Dt((e,t,r)=>{if(!r||typeof r!="object")return;const s=Xu(r);if(s.length>0)throw new Lo(e,t,s)},"assertNoDeprecatedTaskKeys");var el=Object.defineProperty,T=h((e,t)=>el(e,"name",{value:t,configurable:!0}),"r");const Vo=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],tl=new Set(Vo),Zo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],rl=new Set(Zo),Al=2880,sn={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},nl=T(e=>{if(!e)return{...sn};const t=sn.policies??{},r=e.policies??{},s={...t,...r};for(const u of Object.keys(t)){const l=t[u],d=r[u];l!==void 0&&d!==void 0&&(s[u]={...l,...d})}return{...sn,...e,policies:s}},"mergeSecurityDefaults"),un=T(e=>({...e,security:nl(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),ol=T(e=>{let t;try{t=Jn(e)}catch{return}const r=new Set(t.filter(s=>tl.has(s)));for(const s of Vo)if(r.has(s))return D(e,s)},"findVisConfigFile"),sl=T(e=>{let t;try{t=Jn(e)}catch{return}const r=new Set(t.filter(s=>rl.has(s)));for(const s of Zo)if(r.has(s))return D(e,s)},"findVisTaskConfigFile"),On=T(e=>Kn("sha256").update(Qo(e)).digest("hex"),"hashFileContents"),il=T(e=>{const t=Kn("sha256"),r=[...e].sort();for(const s of r)t.update(s),t.update(":"),t.update(On(s)),t.update(`
19
+ `);return t.digest("hex")},"hashConfigChain"),al=T(e=>{const t=D(e,"node_modules");if(I(t)){const s=D(t,".cache","vis");return Tt(s),D(s,"vis-config-cache.json")}const r=bo("vis",{create:!0,cwd:e});return r?D(r,"vis-config-cache.json"):void 0},"getConfigCachePath"),cl=T((e,t)=>{if(I(e))try{const r=xt(e);if(r.hash===t)return r.config}catch{}},"readConfigCache"),ul=T((e,t,r)=>{try{Tt(Ce(e)),Wo(e,{config:r,hash:t})}catch{}},"writeConfigCache"),ll=T(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),fl=T((e,t,r)=>{if(ve(e))throw new on(e,[...r,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const s=[];if(e.startsWith("./")||e.startsWith("../")){const u=Ce(t),l=D(u,e);if(s.push(l),I(l))return l;throw new on(e,[...r,t],s)}try{return le(t).resolve(e)}catch{throw s.push(`require.resolve("${e}") from ${t}`),new on(e,[...r,t],s)}},"resolveExtendsSpecifier"),Go=T(async(e,t,r)=>{const s=On(t),u=t.slice(t.lastIndexOf(".")),l=D(Ce(t),`.vis-config-tmp-${s}${u}`);Yo(t,l);let d;try{d=await e.import(l,{default:!0,try:!0})??{}}catch(m){throw new Zn(t,r,m)}finally{try{es(l)}catch{}}try{return(typeof d=="function"?await d()??{}:d)??{}}catch(m){throw new Zn(t,r,m)}},"loadRawConfig"),pl=T((e,t)=>{const r={...e,...t};if(e.tasks||t.tasks){const s=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),u={};for(const l of s)u[l]=Ku(e.tasks?.[l],t.tasks?.[l]);r.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(r.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(r.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(r.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const s=e.security?.policies??{},u=t.security?.policies??{},l={...s,...u};for(const d of Object.keys(s)){const m=s[d],$=u[d];m!==void 0&&$!==void 0&&(l[d]={...m,...$})}r.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:l}}return(e.update||t.update)&&(r.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(r.taskRunner={...e.taskRunner,...t.taskRunner}),delete r.extends,r},"mergeVisConfigs"),Ko=T(async(e,t,r,s,u,l)=>{if(s.has(t))throw new Du(t,r);if(!u.has(t)){s.add(t);try{const d=await Go(e,t,r);Qu(t,r,d);const m=ll(d.extends);for(const $ of m){const O=fl($,t,r);await Ko(e,O,[...r,t],s,u,l)}u.set(t,d),l.push(t)}finally{s.delete(t)}}},"resolveConfigChain"),_l=T(async(e,t)=>{let r;if(t?.explicitConfigPath){const x=ve(t.explicitConfigPath)?t.explicitConfigPath:D(e,t.explicitConfigPath);if(!I(x))throw new Error(`Cannot find config file at ${x}`);r=x}else r=ol(e);if(!r)return un({});const s=Hn(e,{fsCache:!1,moduleCache:!1}),u=new Set,l=new Map,d=[];await Ko(s,r,[],u,l,d);const m=il(d),$=al(e);if($){const x=cl($,m);if(x)return x}let O={};for(const x of d)O=pl(O,l.get(x));const j=un(O);return $&&ul($,m,j),j},"loadVisConfig"),dl=T(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),gl=T((e,t)=>{const r=D(e,"node_modules"),s=dl(t);if(I(r)){const l=D(r,".cache","vis","task-configs");return Tt(l),D(l,`${s}.json`)}const u=bo("vis",{create:!0,cwd:e});return u?D(u,"task-configs",`${s}.json`):void 0},"getVisTaskCachePath"),ml=T((e,t)=>{if(I(e))try{const r=xt(e);if(r.hash===t)return r.config}catch{}},"readVisTaskCache"),hl=T((e,t,r)=>{try{Tt(Ce(e)),Wo(e,{config:r,hash:t})}catch{}},"writeVisTaskCache"),Cl=T(async(e,t,r)=>{const s=sl(t);if(!s)return;const u=On(s),l=gl(e,r);if(l){const O=ml(l,u);if(O)return O}const d=Hn(t,{fsCache:!1,moduleCache:!1}),m=await Go(d,s,[]);Yu(s,[],m);const $=m;return l&&hl(l,u,$),$},"loadVisTaskConfig"),zl=T(e=>e,"defineTaskConfig"),Ml=T(e=>un(e),"defineConfig");export{oc as $,Ku as A,xu as B,cn as C,bo as D,sl as G,Al as H,Ce as K,jo as L,D as M,ve as O,wa as Q,At as U,Zo as V,an as _,zl as a,Tt as b,Ml as c,Pl as d,_l as e,Ol as f,El as g,Vo as h,I as i,ol as j,Et as k,sn as l,Mn as m,xt as n,jl as o,wl as p,Wn as q,Cl as r,vo as s,_t as t,Yc as u,au as v,Wo as w,Bt as x,un as y,kl as z};
@@ -1,4 +1,4 @@
1
- var T=Object.defineProperty;var v=(e,t)=>T(e,"name",{value:t,configurable:!0});import{createRequire as q}from"node:module";import{j as $,E as P,e as R,q as D,a as j,I,p}from"./bin.js";import{z as _}from"./config.js";import{r as W,a as B,b as L,c as w}from"../packem_shared/ai-fix-DzrA-dVz.js";import{l as N}from"../packem_shared/failure-log-C3LEMmkq.js";const A=q(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,J=v(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[t,r]=m.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return m.getBuiltinModule(e)}return A(e)},"__cjs_getBuiltinModule"),{createInterface:z}=J("node:readline");var M=Object.defineProperty,l=v((e,t)=>M(e,"name",{value:t,configurable:!0}),"c");const U={"ambiguous-match":"ambiguous match",applied:"applied",error:"error","missing-file":"missing file","no-match":"no match","outside-workspace":"outside workspace"},S=l((e,t,r)=>{const o=W(e,t,r),s=_(e,o);return s===""||s.startsWith("..")?o:s},"formatDisplayPath"),E=l((e,t,r)=>{const o=[$(`Fix proposal (${e.provider}, confidence: ${e.confidence})`),"",e.explanation||P("<no explanation>")];if(e.cannotFix)return o.push(""),o.push(R(`Cannot fix automatically: ${e.cannotFix}`)),o.join(`
1
+ var T=Object.defineProperty;var v=(e,t)=>T(e,"name",{value:t,configurable:!0});import{createRequire as q}from"node:module";import{j as $,E as P,e as R,q as D,a as j,I,p}from"./bin.js";import{z as _}from"./config.js";import{r as W,a as B,b as L,c as w}from"../packem_shared/ai-fix-BhcTrkuW.js";import{l as N}from"../packem_shared/failure-log-DF7nrFIs.js";const A=q(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,J=v(e=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[t,r]=m.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return m.getBuiltinModule(e)}return A(e)},"__cjs_getBuiltinModule"),{createInterface:z}=J("node:readline");var M=Object.defineProperty,l=v((e,t)=>M(e,"name",{value:t,configurable:!0}),"c");const U={"ambiguous-match":"ambiguous match",applied:"applied",error:"error","missing-file":"missing file","no-match":"no match","outside-workspace":"outside workspace"},S=l((e,t,r)=>{const o=W(e,t,r),s=_(e,o);return s===""||s.startsWith("..")?o:s},"formatDisplayPath"),E=l((e,t,r)=>{const o=[$(`Fix proposal (${e.provider}, confidence: ${e.confidence})`),"",e.explanation||P("<no explanation>")];if(e.cannotFix)return o.push(""),o.push(R(`Cannot fix automatically: ${e.cannotFix}`)),o.join(`
2
2
  `);if(e.patches.length===0)return o.push(""),o.push(R("No patches were proposed.")),o.join(`
3
3
  `);o.push(""),o.push($(`Patches (${String(e.patches.length)}):`));for(const[s,i]of e.patches.entries()){const a=S(t,r,i.file);o.push(""),o.push(D(`[${String(s+1)}] ${a}`)),i.reason&&o.push(P(` reason: ${i.reason}`));for(const c of i.oldString.split(`
4
4
  `))o.push(j(` - ${c}`));for(const c of i.newString.split(`
@@ -1 +1 @@
1
- var O=Object.defineProperty;var w=(t,e)=>O(t,"name",{value:e,configurable:!0});import{createTaskGraph as b}from"@visulima/task-runner";import{y as E,m as R}from"./bin.js";import{r as x,f as G}from"../packem_shared/selectors-B2ISH581.js";var J=Object.defineProperty,m=w((t,e)=>J(t,"name",{value:e,configurable:!0}),"u");const P=m((t,e,n)=>{const c=[],o=new Set,l=m((r,f)=>{if(o.has(r))return;o.add(r);const s=e[r]??[];for(const i of s)l(i,f+1);const d=n[r],u=" ".repeat(f);c.push(`${u}${r}${d?.cache===!1?" (no-cache)":""}`)},"walk");for(const r of t)l(r,0);return c},"renderPlan"),S=m((t,e,n)=>({roots:t,tasks:Object.fromEntries(Object.entries(n).map(([c,o])=>[c,{cache:o.cache,dependsOn:e[c]??[],outputs:o.outputs,parallelism:o.parallelism,projectRoot:o.projectRoot,target:o.target}]))}),"toJson"),B=m(async({argument:t,logger:e,options:n,visConfig:c,workspaceRoot:o})=>{const l=t[0];if(!l)throw new Error("Missing selector. Usage: vis action-graph <selector>");if(!o)throw new Error("Could not determine workspace root. Run inside a monorepo.");const{config:r,packageJsons:f,workspace:s}=E(o,c),d=R(o,s,f),u=await x(l,s,process.cwd(),o),{target:i}=u;let h=u.projects;n.query&&(h=G(h,s,n.query));const j=h.filter(p=>s.projects[p]?.targets?.[i]!==void 0);if(j.length===0){e.info(`No projects have a "${i}" target.`);return}const y=j.map(p=>{const k=s.projects[p],g=k.targets?.[i],$={project:p,target:i};return{cache:g?.cache,id:`${p}:${i}`,outputs:g?.outputs??[],overrides:{command:g?.command},parallelism:g?.parallelism,projectRoot:k.root,target:$}}),a=b(y,{projectGraph:d,targetDefaults:r.tasks,workspace:s});if(n.json){e.info(JSON.stringify(S(a.roots,a.dependencies,a.tasks),null,2));return}const v=P(a.roots,a.dependencies,a.tasks);e.info(`Execution plan (${Object.keys(a.tasks).length} task(s), ${a.roots.length} root(s)):`),e.info("");for(const p of v)e.info(p)},"execute");export{B as default};
1
+ var $=Object.defineProperty;var w=(t,e)=>$(t,"name",{value:e,configurable:!0});import{createTaskGraph as b}from"@visulima/task-runner";import{C as E,O as R}from"./bin.js";import{r as C,f as x}from"../packem_shared/selectors-B2ISH581.js";var G=Object.defineProperty,d=w((t,e)=>G(t,"name",{value:e,configurable:!0}),"u");const J=d((t,e,n)=>{const c=[],o=new Set,l=d((r,f)=>{if(o.has(r))return;o.add(r);const s=e[r]??[];for(const i of s)l(i,f+1);const m=n[r],u=" ".repeat(f);c.push(`${u}${r}${m?.cache===!1?" (no-cache)":""}`)},"walk");for(const r of t)l(r,0);return c},"renderPlan"),P=d((t,e,n)=>({roots:t,tasks:Object.fromEntries(Object.entries(n).map(([c,o])=>[c,{cache:o.cache,dependsOn:e[c]??[],outputs:o.outputs,parallelism:o.parallelism,projectRoot:o.projectRoot,target:o.target}]))}),"toJson"),B=d(async({argument:t,logger:e,options:n,visConfig:c,workspaceRoot:o})=>{const l=t[0];if(!l)throw new Error("Missing selector. Usage: vis action-graph <selector>");if(!o)throw new Error("Could not determine workspace root. Run inside a monorepo.");const{config:r,packageJsons:f,workspace:s}=E(o,c),m=R(o,s,f),u=await C(l,s,process.cwd(),o),{target:i}=u;let h=u.projects;n.query&&(h=x(h,s,n.query));const j=h.filter(p=>s.projects[p]?.targets?.[i]!==void 0);if(j.length===0){e.info(`No projects have a "${i}" target.`);return}const v=j.map(p=>{const k=s.projects[p],g=k.targets?.[i],O={project:p,target:i};return{cache:g?.cache,id:`${p}:${i}`,outputs:g?.outputs??[],overrides:{command:g?.command},parallelism:g?.parallelism,projectRoot:k.root,target:O}}),a=b(v,{projectGraph:m,targetDefaults:r.tasks,workspace:s});if(n.json){e.info(JSON.stringify(P(a.roots,a.dependencies,a.tasks),null,2));return}const y=J(a.roots,a.dependencies,a.tasks);e.info(`Execution plan (${Object.keys(a.tasks).length} task(s), ${a.roots.length} root(s)):`),e.info("");for(const p of y)e.info(p)},"execute");export{B as default};