@visulima/vis 1.0.0-alpha.26 → 1.0.0-alpha.28

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 (116) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE.md +3213 -95
  3. package/README.md +24 -22
  4. package/dist/bin.js +1 -1
  5. package/dist/binx.js +1 -1
  6. package/dist/config/index.d.ts +176 -16
  7. package/dist/packem_chunks/bin.js +468 -364
  8. package/dist/packem_chunks/bloom-status.js +1 -1
  9. package/dist/packem_chunks/bloom-sync.js +1 -1
  10. package/dist/packem_chunks/config.js +15 -15
  11. package/dist/packem_chunks/devtools.js +82 -0
  12. package/dist/packem_chunks/doctor-probe.js +1 -1
  13. package/dist/packem_chunks/fix.js +1 -1
  14. package/dist/packem_chunks/handler10.js +1 -1
  15. package/dist/packem_chunks/handler11.js +1 -1
  16. package/dist/packem_chunks/handler12.js +1 -1
  17. package/dist/packem_chunks/handler13.js +1 -1
  18. package/dist/packem_chunks/handler14.js +8 -9
  19. package/dist/packem_chunks/handler15.js +1 -1
  20. package/dist/packem_chunks/handler16.js +1 -1
  21. package/dist/packem_chunks/handler17.js +1 -1
  22. package/dist/packem_chunks/handler18.js +1 -1
  23. package/dist/packem_chunks/handler19.js +1 -1
  24. package/dist/packem_chunks/handler2.js +1 -1
  25. package/dist/packem_chunks/handler20.js +1 -1
  26. package/dist/packem_chunks/handler21.js +3 -3
  27. package/dist/packem_chunks/handler22.js +1 -1
  28. package/dist/packem_chunks/handler23.js +2 -2
  29. package/dist/packem_chunks/handler24.js +1 -1
  30. package/dist/packem_chunks/handler26.js +1 -1
  31. package/dist/packem_chunks/handler27.js +1 -1
  32. package/dist/packem_chunks/handler28.js +1 -1
  33. package/dist/packem_chunks/handler29.js +1 -1
  34. package/dist/packem_chunks/handler3.js +1 -1
  35. package/dist/packem_chunks/handler30.js +6 -6
  36. package/dist/packem_chunks/handler31.js +1 -1
  37. package/dist/packem_chunks/handler33.js +1 -1
  38. package/dist/packem_chunks/handler34.js +4 -4
  39. package/dist/packem_chunks/handler35.js +3 -22
  40. package/dist/packem_chunks/handler36.js +21 -60
  41. package/dist/packem_chunks/handler37.js +61 -6
  42. package/dist/packem_chunks/handler38.js +3 -24
  43. package/dist/packem_chunks/handler39.js +6 -153
  44. package/dist/packem_chunks/handler4.js +5 -5
  45. package/dist/packem_chunks/handler40.js +24 -10
  46. package/dist/packem_chunks/handler41.js +153 -25
  47. package/dist/packem_chunks/handler42.js +25 -708
  48. package/dist/packem_chunks/handler43.js +10 -24
  49. package/dist/packem_chunks/handler44.js +659 -273
  50. package/dist/packem_chunks/handler45.js +24 -46
  51. package/dist/packem_chunks/handler46.js +322 -3
  52. package/dist/packem_chunks/handler47.js +48 -27
  53. package/dist/packem_chunks/handler48.js +3 -187
  54. package/dist/packem_chunks/handler49.js +23 -30
  55. package/dist/packem_chunks/handler5.js +7 -7
  56. package/dist/packem_chunks/handler50.js +195 -0
  57. package/dist/packem_chunks/handler51.js +34 -0
  58. package/dist/packem_chunks/handler8.js +1 -1
  59. package/dist/packem_chunks/handler9.js +1 -1
  60. package/dist/packem_chunks/heal-accept.js +1 -1
  61. package/dist/packem_chunks/heal.js +1 -1
  62. package/dist/packem_chunks/help-command.js +7 -17
  63. package/dist/packem_chunks/index.js +3 -3
  64. package/dist/packem_chunks/keys-refresh.js +1 -1
  65. package/dist/packem_chunks/list.js +2 -2
  66. package/dist/packem_chunks/loader.js +1 -1
  67. package/dist/packem_chunks/prune.js +1 -1
  68. package/dist/packem_chunks/run.js +1 -1
  69. package/dist/packem_chunks/status.js +1 -1
  70. package/dist/packem_chunks/sync.js +1 -1
  71. package/dist/packem_chunks/sync2.js +1 -1
  72. package/dist/packem_chunks/tripwire.js +1 -1
  73. package/dist/packem_chunks/verify-lockfile.js +1 -1
  74. package/dist/packem_shared/Table-CwC2kW07-EjFLNV0q.js +12 -0
  75. package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
  76. package/dist/packem_shared/{advisories-DS8JEB_g.js → advisories-BxXiKFbL.js} +1 -1
  77. package/dist/packem_shared/{ai-analysis-Csn82p17.js → ai-analysis-BnmDFqc8.js} +5 -5
  78. package/dist/packem_shared/{ai-fix-BlYyz5bI.js → ai-fix-BGbnrWCz.js} +7 -7
  79. package/dist/packem_shared/{cyclonedx-ja1cbU69.js → cyclonedx-C2k2HmvI.js} +1 -1
  80. package/dist/packem_shared/{dependency-scan-s2MD0vi-.js → dependency-scan-Bki15Yi-.js} +1 -1
  81. package/dist/packem_shared/{docker-Bw9gKo69.js → docker-k-Sl8b-w.js} +1 -1
  82. package/dist/packem_shared/{failure-log-B0Uh-65U.js → failure-log-C3bG1bCA.js} +1 -1
  83. package/dist/packem_shared/index-2r730kXY.js +29 -0
  84. package/dist/packem_shared/{index-88UK-tt_.js → index-DBq4TVu5.js} +1 -1
  85. package/dist/packem_shared/{lifecycle-ChCFTm5Q.js → lifecycle-B91p_ra8.js} +2 -2
  86. package/dist/packem_shared/{lockfile-BG1HvBzH.js → lockfile-DmDfgKaT.js} +1 -1
  87. package/dist/packem_shared/{min-release-age-heJgeP7o.js → min-release-age-B1Jm1_JY.js} +1 -1
  88. package/dist/packem_shared/{native-config-sync-BOeuyrBj.js → native-config-sync-Cnpj2xcn.js} +6 -6
  89. package/dist/packem_shared/{osv-bloom-QSAn2Dcw.js → osv-bloom-ep8GlDGT.js} +2 -2
  90. package/dist/packem_shared/pm-runner-COoPLGKi.js +1 -0
  91. package/dist/packem_shared/{provenance-BsBn1f5S.js → provenance-DbkJRDqt.js} +1 -1
  92. package/dist/packem_shared/{registry-keys-pemEkRM9.js → registry-keys-SylX07bs.js} +1 -1
  93. package/dist/packem_shared/{resolve-explicit-CBPr617N.js → resolve-explicit-CJ_5wYSu.js} +1 -1
  94. package/dist/packem_shared/s1ngularity-DlS-4a6K.js +1 -0
  95. package/dist/packem_shared/scan-progress-CU4ttEHQ.js +2 -0
  96. package/dist/packem_shared/{signatures-CaXzNuEn.js → signatures-B-1u4t-c.js} +1 -1
  97. package/dist/packem_shared/spinner-B9ZPv1iT.js +1 -0
  98. package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
  99. package/dist/packem_shared/tabs-C-qFIoUv.js +1 -0
  100. package/dist/packem_shared/typosquats-BxCOUvTJ.js +1 -0
  101. package/dist/packem_shared/use-measured-height-kIDCuc76.js +1 -0
  102. package/dist/packem_shared/vis-update-app-COYmjGKv.js +1 -0
  103. package/dist/packem_shared/watch-BSVsZ_1I.js +1 -0
  104. package/dist/packem_shared/watch-loop-CP318TfG.js +11 -0
  105. package/index.js +751 -567
  106. package/package.json +11 -11
  107. package/schemas/project.schema.json +86 -1
  108. package/schemas/vis-config.schema.json +255 -7
  109. package/dist/packem_shared/index-CS6a2wFB.js +0 -29
  110. package/dist/packem_shared/index.server-B7ETiT4C.js +0 -2
  111. package/dist/packem_shared/pm-runner-BzGZmzYs.js +0 -1
  112. package/dist/packem_shared/s1ngularity-j_ArCZAs.js +0 -1
  113. package/dist/packem_shared/scan-progress-EbvmIh4i.js +0 -2
  114. package/dist/packem_shared/typosquats-C1e6RNjF.js +0 -1
  115. package/dist/packem_shared/use-measured-height-DjYgUOKk.js +0 -1
  116. package/dist/packem_shared/vis-update-app-qhQPV97i.js +0 -1
@@ -1,2 +1,2 @@
1
- var m=Object.defineProperty;var a=(o,r)=>m(o,"name",{value:r,configurable:!0});import{e as l,E as f,I as u}from"../packem_shared/index.server-B7ETiT4C.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-QSAn2Dcw.js";var d=Object.defineProperty,n=a((o,r)=>d(o,"name",{value:r,configurable:!0}),"s");const c=n(o=>{if(!o)return"never";const r=Date.parse(o);if(Number.isNaN(r))return o;const t=Date.now()-r;if(t<0)return o;const e=Math.floor(t/6e4);if(e<1)return"just now";if(e<60)return`${e}m ago`;const s=Math.floor(e/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`},"formatRelative"),p=n(o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,"formatBytes"),g=n(async({options:o,workspaceRoot:r})=>{if(!r)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const t=await $(r,o.cacheDir);if(o.format==="json"){process.stdout.write(`${JSON.stringify(t,void 0,2)}
1
+ var m=Object.defineProperty;var a=(o,r)=>m(o,"name",{value:r,configurable:!0});import{e as l,E as f,I as u}from"../packem_shared/Table-CwC2kW07-EjFLNV0q.js";import{p as i}from"./bin.js";import{g as $}from"../packem_shared/osv-bloom-ep8GlDGT.js";var d=Object.defineProperty,n=a((o,r)=>d(o,"name",{value:r,configurable:!0}),"s");const c=n(o=>{if(!o)return"never";const r=Date.parse(o);if(Number.isNaN(r))return o;const t=Date.now()-r;if(t<0)return o;const e=Math.floor(t/6e4);if(e<1)return"just now";if(e<60)return`${e}m ago`;const s=Math.floor(e/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`},"formatRelative"),p=n(o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,"formatBytes"),g=n(async({options:o,workspaceRoot:r})=>{if(!r)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const t=await $(r,o.cacheDir);if(o.format==="json"){process.stdout.write(`${JSON.stringify(t,void 0,2)}
2
2
  `);return}if(i.info(`Cache: ${t.cacheDir}`),!t.present){i.warn(`No osv-bloom filter yet. Run ${l("vis advisories bloom sync")} to populate.`);return}if(t.manifest){const{manifest:e}=t;i.info(`Built: ${e.builtAtRfc3339} (${c(e.builtAtRfc3339)})`),i.info(`Fetch: ${t.fetchedAtIso??f("—")} (${c(t.fetchedAtIso)})`),i.info(`Filter: ${u(p(e.bloomByteLen))} m=${e.bloomMBits.toLocaleString()} bits k=${String(e.bloomKHashes)}`),i.info(`Set: ${e.entryCount.toLocaleString()} entries from ${e.advisoryCount.toLocaleString()} advisories (target FPR ${e.targetFpr})`),i.info(f(`Digest: ${e.setDigestSha256}`))}else i.warn("filter.bin present but manifest.json missing — `vis advisories bloom sync` will rewrite the cache.")},"execute"),y=g;export{y as advisoriesBloomStatusExecute};
@@ -1,2 +1,2 @@
1
- var D=Object.defineProperty;var f=(o,t)=>D(o,"name",{value:t,configurable:!0});import{E as d}from"../packem_shared/index.server-B7ETiT4C.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-EbvmIh4i.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",m=w(t),u=o.source??m.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:m.allowedHosts,cacheDir:o.cacheDir,force:!!o.force,source:u,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:u,upToDate:e?.upToDate??!1},void 0,2)}
1
+ var D=Object.defineProperty;var f=(o,t)=>D(o,"name",{value:t,configurable:!0});import{E as d}from"../packem_shared/Table-CwC2kW07-EjFLNV0q.js";import{p as n}from"./bin.js";import{s as b}from"../packem_shared/scan-progress-CU4ttEHQ.js";import{s as y,D as h}from"../packem_shared/osv-bloom-ep8GlDGT.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",m=w(t),u=o.source??m.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:m.allowedHosts,cacheDir:o.cacheDir,force:!!o.force,source:u,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:u,upToDate:e?.upToDate??!1},void 0,2)}
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"),x=B;export{x as advisoriesBloomSyncExecute};
@@ -1,19 +1,19 @@
1
- var lo=Object.defineProperty;var m=(e,t)=>lo(e,"name",{value:t,configurable:!0});import{createRequire as fo}from"node:module";import{f as nr,$ as yo,U as or,i as D,_ as Dt,K as Ce,s as bo,M as A,a as sr}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{createJiti as ir}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const po=fo(import.meta.url),ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lt=m(e=>{if(typeof ye<"u"&&ye.versions&&ye.versions.node){const[t,r]=ye.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ye.getBuiltinModule(e)}return po(e)},"__cjs_getBuiltinModule"),{createHash:tr}=lt("node:crypto"),{readdirSync:rr,readFileSync:go,copyFileSync:mo,unlinkSync:ho}=lt("node:fs"),{createRequire:Se}=lt("node:module");var vo=Object.defineProperty,z=m((e,t)=>vo(e,"name",{value:t,configurable:!0}),"O$2"),$o=Object.defineProperty,k=z((e,t)=>$o(e,"name",{value:t,configurable:!0}),"h");const wo=Se(import.meta.url),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=k(e=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[t,r]=ie.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ie.getBuiltinModule(e)}return wo(e)},"__cjs_getBuiltinModule"),{existsSync:ae}=ar("node:fs"),{env:ce,cwd:cr}=ie,{createRequire:pe}=ar("node:module"),ur=0,ue=2,lr=Symbol("findUpStop");var jo=Object.defineProperty,xo=k((e,t)=>jo(e,"name",{value:t,configurable:!0}),"t$4"),Oo=Object.defineProperty,ko=xo((e,t)=>Oo(e,"name",{value:t,configurable:!0}),"t"),Po=Object.defineProperty,To=ko((e,t)=>Po(e,"name",{value:t,configurable:!0}),"n");const ft=To(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Eo=Object.defineProperty,So=k((e,t)=>Eo(e,"name",{value:t,configurable:!0}),"i$4"),Co=Object.defineProperty,Ao=So((e,t)=>Co(e,"name",{value:t,configurable:!0}),"r"),_o=Object.defineProperty,No=Ao((e,t)=>_o(e,"name",{value:t,configurable:!0}),"i");const zt=No(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Mo=Object.defineProperty,Bo=k((e,t)=>Mo(e,"name",{value:t,configurable:!0}),"i$3"),Do=Object.defineProperty,fr=Bo((e,t)=>Do(e,"name",{value:t,configurable:!0}),"s");const zo=pe(import.meta.url),be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=fr(e=>{if(typeof be<"u"&&be.versions&&be.versions.node){const[t,r]=be.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return be.getBuiltinModule(e)}return zo(e)},"__cjs_getBuiltinModule"),{lstatSync:Rt,mkdirSync:Io}=Ro("node:fs");var Fo=Object.defineProperty,Lo=fr((e,t)=>Fo(e,"name",{value:t,configurable:!0}),"o");const Wo=Lo(e=>{ft(e);try{const t=Rt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(zt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Io(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=Rt(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(zt(r))}'`,{cause:t})}},"ensureDirSync");var Uo=Object.defineProperty,Vo=k((e,t)=>Uo(e,"name",{value:t,configurable:!0}),"$e"),qo=Object.defineProperty,pt=Vo((e,t)=>qo(e,"name",{value:t,configurable:!0}),"W"),Ko=Object.defineProperty,g=pt((e,t)=>Ko(e,"name",{value:t,configurable:!0}),"u$1");let It=g(()=>{var e=(()=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,c=g((o,s)=>{for(var a in s)t(o,a,{get:s[a],enumerable:!0})},"ne"),f=g((o,s,a,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let u of n(s))!i.call(o,u)&&u!==a&&t(o,u,{get:g(()=>s[u],"get"),enumerable:!(l=r(s,u))||l.enumerable});return o},"ae"),d=g(o=>f(t({},"__esModule",{value:!0}),o),"oe"),v={};c(v,{zeptomatch:g(()=>Bt,"zeptomatch")});var w=g(o=>{const s=new Set,a=[o];for(let l=0;l<a.length;l++){const u=a[l];if(s.has(u))continue;s.add(u);const{children:p}=u;if(p?.length)for(let h=0,j=p.length;h<j;h++)a.push(p[h])}return Array.from(s)},"M"),$=g(o=>{let s="";const a=w(o);for(let l=0,u=a.length;l<u;l++){const p=a[l];if(!p.regex)continue;const h=p.regex.flags;if(s||(s=h),s!==h)throw new Error(`Inconsistent RegExp flags used: "${s}" and "${h}"`)}return s},"se"),y=g((o,s,a)=>{const l=a.get(o);if(l!==void 0)return l;const u=o.partial??s;let p="";if(o.regex&&(p+=u?"(?:$|":"",p+=o.regex.source),o.children?.length){const h=P(o.children.map(j=>y(j,s,a)).filter(Boolean));if(h?.length){const j=o.children.some(me=>!me.regex||!(me.partial??s)),S=h.length>1||u&&(!p.length||j);p+=S?u?"(?:$|":"(?:":"",p+=h.join("|"),p+=S?")":""}}return o.regex&&(p+=u?")":""),a.set(o,p),p},"O"),E=g((o,s)=>{const a=new Map,l=w(o);for(let u=l.length-1;u>=0;u--){const p=y(l[u],s,a);if(!(u>0))return p}return""},"ie"),P=g(o=>Array.from(new Set(o)),"ue"),x=g((o,s,a)=>x.compile(o,a).test(s),"R");x.compile=(o,s)=>{const a=s?.partial??!1,l=E(o,a),u=$(o);return new RegExp(`^(?:${l})$`,u)};var _=x,F=g((o,s)=>{const a=_.compile(o,s),l=`${a.source.slice(0,-1)}[\\\\/]?$`,u=a.flags;return new RegExp(l,u)},"le"),te=F,Qe=g(o=>{const s=o.map(l=>l.source).join("|")||"$^",a=o[0]?.flags;return new RegExp(s,a)},"ve"),Ye=Qe,re=g(o=>Array.isArray(o),"j"),L=g(o=>typeof o=="function","_"),et=g(o=>o.length===0,"he"),tt=(()=>{const{toString:o}=Function.prototype,s=/(?:^\(\s*(?:[^,.()]|\.(?!\.\.))*\s*\)\s*=>|^\s*[a-zA-Z$_][a-zA-Z0-9$_]*\s*=>)/;return a=>(a.length===0||a.length===1)&&s.test(o.call(a))})(),Kr=g(o=>typeof o=="number","de"),Gr=g(o=>typeof o=="object"&&o!==null,"xe"),Jr=g(o=>o instanceof RegExp,"me"),Zr=(()=>{const o=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return s=>o.test(s.source)})(),Hr=(()=>{const o=/^[a-zA-Z0-9_-]+$/;return s=>o.test(s.source)&&!s.flags.includes("i")})(),vt=g(o=>typeof o=="string","A"),V=g(o=>o===void 0,"f"),Xr=g(o=>{const s=new Map;return a=>{const l=s.get(a);if(l!==void 0)return l;const u=o(a);return s.set(a,u),u}},"ye"),$t=g((o,s,a={})=>{const l={cache:{},input:o,index:0,indexBacktrackMax:0,options:a,output:[]},u=q(s)(l),p=Math.max(l.index,l.indexBacktrackMax);if(u&&l.index===o.length)return l.output;throw new Error(`Failed to parse at index ${p}`)},"I"),b=g((o,s)=>re(o)?Qr(o,s):vt(o)?wt(o,s):Yr(o,s),"i"),Qr=g((o,s)=>{const a={};for(const l of o){if(l.length!==1)throw new Error(`Invalid character: "${l}"`);const u=l.charCodeAt(0);a[u]=!0}return l=>{const u=l.input;let p=l.index,h=p;for(;h<u.length&&u.charCodeAt(h)in a;)h+=1;if(h>p){if(!V(s)&&!l.options.silent){const j=u.slice(p,h),S=L(s)?s(j,u,`${p}`):s;V(S)||l.output.push(S)}l.index=h}return!0}},"we"),Yr=g((o,s)=>{if(Hr(o))return wt(o.source,s);{const a=o.source,l=o.flags.replace(/y|$/,"y"),u=new RegExp(a,l);return Zr(o)&&L(s)&&!tt(s)?en(u,s):tn(u,s)}},"$e"),en=g((o,s)=>a=>{const l=a.index,u=a.input;o.lastIndex=l;const p=o.exec(u);if(p){const h=o.lastIndex;if(!a.options.silent){const j=s(...p,u,`${l}`);V(j)||a.output.push(j)}return a.index=h,!0}else return!1},"Ee"),tn=g((o,s)=>a=>{const l=a.index,u=a.input;if(o.lastIndex=l,o.test(u)){const p=o.lastIndex;if(!V(s)&&!a.options.silent){const h=L(s)?s(u.slice(l,p),u,`${l}`):s;V(h)||a.output.push(h)}return a.index=p,!0}else return!1},"Ce"),wt=g((o,s)=>a=>{const l=a.index,u=a.input;if(u.startsWith(o,l)){if(!V(s)&&!a.options.silent){const p=L(s)?s(o,u,`${l}`):s;V(p)||a.output.push(p)}return a.index+=o.length,!0}else return!1},"F"),rt=g((o,s,a,l)=>{const u=q(o),p=s>1;return ot(nt(xt(h=>{let j=0;for(;j<a;){const S=h.index;if(!u(h)||(j+=1,h.index===S))break}return j>=s},p),l))},"k"),jt=g((o,s)=>rt(o,0,1,s),"L"),Ie=g((o,s)=>rt(o,0,1/0,s),"$"),rn=g((o,s)=>rt(o,1,1/0,s),"Re"),ne=g((o,s)=>{const a=o.map(q);return ot(nt(xt(l=>{for(let u=0,p=a.length;u<p;u++)if(!a[u](l))return!1;return!0}),s))},"x"),N=g((o,s)=>{const a=o.map(q);return ot(nt(l=>{for(let u=0,p=a.length;u<p;u++)if(a[u](l))return!0;return!1},s))},"p"),xt=g((o,s=!0,a=!1)=>{const l=q(o);return s?u=>{const p=u.index,h=u.output.length,j=l(u);return!j&&!a&&(u.indexBacktrackMax=Math.max(u.indexBacktrackMax,u.index)),(!j||a)&&(u.index=p,u.output.length!==h&&(u.output.length=h)),j}:l},"q"),nt=g((o,s)=>{const a=q(o);return s?l=>{if(l.options.silent)return a(l);const u=l.output.length;if(a(l)){const p=l.output.splice(u,1/0),h=s(p);return V(h)||l.output.push(h),!0}else return!1}:a},"B"),ot=(()=>{let o=0;return s=>{const a=q(s),l=o+=1;return u=>{var p;if(u.options.memoization===!1)return a(u);const h=u.index,j=(p=u.cache)[l]||(p[l]={indexMax:-1,queue:[]}),S=j.queue;if(h<=j.indexMax){const he=j.store||(j.store=new Map);if(S.length){for(let se=0,ao=S.length;se<ao;se+=2){const co=S[se*2],uo=S[se*2+1];he.set(co,uo)}S.length=0}const M=he.get(h);if(M===!1)return!1;if(Kr(M))return u.index=M,!0;if(M)return u.index=M.index,M.output?.length&&u.output.push(...M.output),!0}const me=u.output.length,io=a(u);if(j.indexMax=Math.max(j.indexMax,h),io){const he=u.index,M=u.output.length;if(M>me){const se=u.output.slice(me,M);S.push(h,{index:he,output:se})}else S.push(h,he);return!0}else return S.push(h,!1),!1}}})(),Ot=g(o=>{let s;return a=>(s||(s=q(o())),s(a))},"G"),q=Xr(o=>{if(L(o))return et(o)?Ot(o):o;if(vt(o)||Jr(o))return b(o);if(re(o))return ne(o);if(Gr(o))return N(Object.values(o));throw new Error("Invalid rule")}),X=g(o=>o,"d"),nn=g(o=>typeof o=="string","ke"),on=g(o=>{const s=new WeakMap,a=new WeakMap;return(l,u)=>{const p=u?.partial?a:s,h=p.get(l);if(h!==void 0)return h;const j=o(l,u);return p.set(l,j),j}},"Be"),sn=g(o=>{const s={},a={};return(l,u)=>{const p=u?.partial?a:s;return p[l]??(p[l]=o(l,u))}},"Pe"),an=b(/\\./,X),cn=b(/./,X),un=b(/\*\*\*+/,"*"),ln=b(/([^/{[(!])\*\*/,(o,s)=>`${s}*`),fn=b(/(^|.)\*\*(?=[^*/)\]}])/,(o,s)=>`${s}*`),pn=Ie(N([an,un,ln,fn,cn])),dn=pn,gn=g(o=>$t(o,dn,{memoization:!1}).join(""),"Ie"),mn=gn,kt="abcdefghijklmnopqrstuvwxyz",hn=g(o=>{let s="";for(;o>0;){const a=(o-1)%26;s=kt[a]+s,o=Math.floor((o-1)/26)}return s},"Le"),Pt=g(o=>{let s=0;for(let a=0,l=o.length;a<l;a++)s=s*26+kt.indexOf(o[a])+1;return s},"V"),st=g((o,s)=>{if(s<o)return st(s,o);const a=[];for(;o<=s;)a.push(o++);return a},"b"),yn=g((o,s,a)=>st(o,s).map(l=>String(l).padStart(a,"0")),"qe"),Tt=g((o,s)=>st(Pt(o),Pt(s)).map(hn),"W"),T=g(o=>({partial:!1,regex:new RegExp(o,"s"),children:[]}),"c"),ge=g(o=>({children:o}),"y"),oe=(()=>{const o=g((s,a,l)=>{if(l.has(s))return;l.add(s);const{children:u}=s;if(!u.length)u.push(a);else for(let p=0,h=u.length;p<h;p++)o(u[p],a,l)},"e");return s=>{if(!s.length)return ge([]);for(let a=s.length-1;a>=1;a--){const l=new Set,u=s[a-1],p=s[a];o(u,p,l)}return s[0]}})(),K=g(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),bn=b(/\\./,T),vn=b(/[$.*+?^(){}[\]\|]/,o=>T(`\\${o}`)),$n=b(/[\\\/]/,K),wn=b(/[^$.*+?^(){}[\]\|\\\/]+/,T),jn=b(/^(?:!!)*!(.*)$/,(o,s)=>T(`(?!^${Bt.compile(s).source}$).*?`)),xn=b(/^(!!)+/),On=N([jn,xn]),kn=b(/\/(\*\*\/)+/,()=>ge([oe([K(),T(".+?"),K()]),K()])),Pn=b(/^(\*\*\/)+/,()=>ge([T("^"),oe([T(".*?"),K()])])),Tn=b(/\/(\*\*)$/,()=>ge([oe([K(),T(".*?")]),T("$")])),En=b(/\*\*/,()=>T(".*?")),Et=N([kn,Pn,Tn,En]),Sn=b(/\*\/(?!\*\*\/|\*$)/,()=>oe([T("[^\\\\/]*?"),K()])),Cn=b(/\*/,()=>T("[^\\\\/]*")),St=N([Sn,Cn]),Ct=b("?",()=>T("[^\\\\/]")),An=b("[",X),_n=b("]",X),Nn=b(/[!^]/,"^\\\\/"),Mn=b(/[a-z]-[a-z]|[0-9]-[0-9]/i,X),Bn=b(/\\./,X),Dn=b(/[$.*+?^(){}[\|]/,o=>`\\${o}`),zn=b(/[\\\/]/,"\\\\/"),Rn=b(/[^$.*+?^(){}[\]\|\\\/]+/,X),In=N([Bn,Dn,zn,Mn,Rn]),At=ne([An,jt(Nn),Ie(In),_n],o=>T(o.join(""))),Fn=b("{","(?:"),Ln=b("}",")"),Wn=b(/(\d+)\.\.(\d+)/,(o,s,a)=>yn(+s,+a,Math.min(s.length,a.length)).join("|")),Un=b(/([a-z]+)\.\.([a-z]+)/,(o,s,a)=>Tt(s,a).join("|")),Vn=b(/([A-Z]+)\.\.([A-Z]+)/,(o,s,a)=>Tt(s.toLowerCase(),a.toLowerCase()).join("|").toUpperCase()),qn=N([Wn,Un,Vn]),_t=ne([Fn,qn,Ln],o=>T(o.join(""))),Kn=b("{"),Gn=b("}"),Jn=b(","),Zn=b(/\\./,T),Hn=b(/[$.*+?^(){[\]\|]/,o=>T(`\\${o}`)),Xn=b(/[\\\/]/,K),Qn=b(/[^$.*+?^(){}[\]\|\\\/,]+/,T),Yn=Ot(()=>Mt),eo=b("",()=>T("(?:)")),to=rn(N([Et,St,Ct,At,_t,Yn,Zn,Hn,Xn,Qn]),oe),Nt=N([to,eo]),Mt=ne([Kn,jt(ne([Nt,Ie(ne([Jn,Nt]))])),Gn],ge),ro=Ie(N([On,Et,St,Ct,At,_t,Mt,bn,vn,$n,wn]),oe),no=ro,oo=g(o=>$t(o,no,{memoization:!1})[0],"kr"),so=oo,it=g((o,s,a)=>it.compile(o,a).test(s),"N");it.compile=(()=>{const o=sn((a,l)=>te(so(mn(a)),l)),s=on((a,l)=>Ye(a.map(u=>o(u,l))));return(a,l)=>nn(a)?o(a,l):s(a,l)})();var Bt=it;return d(v)})();return e.default||e},"_lazyMatch"),at;const Go=g((e,t)=>(at||(at=It(),It=null),at(e,t)),"default");var Jo=Object.defineProperty,Zo=pt((e,t)=>Jo(e,"name",{value:t,configurable:!0}),"t$1");const Ho=/^[A-Z]:\//i,R=Zo((e="")=>e&&e.replaceAll("\\","/").replace(Ho,t=>t.toUpperCase()),"normalizeWindowsPath");var Xo=Object.defineProperty,C=pt((e,t)=>Xo(e,"name",{value:t,configurable:!0}),"r");const Qo=/^[/\\]{2}/,Yo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,pr=/^[A-Z]:$/i,Ft=/^\/([A-Z]:)?$/i,es=/.(\.[^./]+)$/,ts=/^[/\\]|^[a-z]:[/\\]/i,rs=/\/$/,ns=C(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),dr=C((e,t)=>{let r="",n=0,i=-1,c=0,f;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(i===d-1||c===1))if(c===2){if(r.length<2||n!==2||!r.endsWith(".")||r.at(-2)!=="."){if(r.length>2){const v=r.lastIndexOf("/");v===-1?(r="",n=0):(r=r.slice(0,v),n=r.length-1-r.lastIndexOf("/")),i=d,c=0;continue}else if(r.length>0){r="",n=0,i=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${e.slice(i+1,d)}`:r=e.slice(i+1,d),n=d-i-1;i=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r},"normalizeString"),Q=C(e=>Yo.test(e),"isAbsolute"),gr=C(function(e){if(e.length===0)return".";e=R(e);const t=Qo.exec(e),r=Q(e),n=e.at(-1)==="/";return e=dr(e,!r),e.length===0?r?"/":n?"./":".":(n&&(e+="/"),pr.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!Q(e)?`/${e}`:e)},"normalize"),B=C((...e)=>{let t="";for(const r of e)if(r)if(t.length>0){const n=t.at(-1)==="/",i=r[0]==="/";n&&i?t+=r.slice(1):t+=n||i?r:`/${r}`}else t+=r;return gr(t)},"join"),W=C(function(...e){e=e.map(n=>R(n));let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:ns();!i||i.length===0||(t=`${i}/${t}`,r=Q(i))}return t=dr(t,!r),r&&!Q(t)?`/${t}`:t.length>0?t:"."},"resolve");C(function(e){return R(e)},"toNamespacedPath");const mr=C(function(e){return es.exec(R(e))?.[1]??""},"extname");C(function(e,t){const r=W(e).replace(Ft,"$1").split("/"),n=W(t).replace(Ft,"$1").split("/");if(n[0][1]===":"&&r[0][1]===":"&&r[0]!==n[0])return n.join("/");const i=[...r];for(const c of i){if(n[0]!==c)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")},"relative");const Ae=C(e=>{const t=R(e).replace(rs,"").split("/").slice(0,-1);return t.length===1&&pr.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(Q(e)?"/":".")},"dirname");C(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return R(e.root?W(...t):t.join("/"))},"format");const os=C((e,t)=>{const r=R(e).split("/").pop();return t&&r.endsWith(t)?r.slice(0,-t.length):r},"basename"),hr=C(function(e){const t=ts.exec(e)?.[0]?.replaceAll("\\","/")??"",r=os(e),n=mr(r);return{base:r,dir:Ae(e),ext:n,name:r.slice(0,r.length-n.length),root:t}},"parse");C((e,t)=>Go(t,gr(e)),"matchesGlob");var ss=Object.defineProperty,Y=k((e,t)=>ss(e,"name",{value:t,configurable:!0}),"n$2"),is=Object.defineProperty,U=Y((e,t)=>is(e,"name",{value:t,configurable:!0}),"a");const as=pe(import.meta.url),ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,cs=U(e=>{if(typeof ve<"u"&&ve.versions&&ve.versions.node){const[t,r]=ve.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ve.getBuiltinModule(e)}return as(e)},"__cjs_getBuiltinModule"),{fileURLToPath:us}=cs("node:url");var ls=Object.defineProperty,le=U((e,t)=>ls(e,"name",{value:t,configurable:!0}),"t$1");function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}m(de,"ue");z(de,"de");k(de,"m$4");Y(de,"d");U(de,"getDefaultExportFromCjs");le(de,"getDefaultExportFromCjs");function _e(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}m(_e,"me");z(_e,"je");k(_e,"h");Y(_e,"O");U(_e,"getDefaultExportFromNamespaceIfPresent");le(_e,"getDefaultExportFromNamespaceIfPresent");function Ne(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}m(Ne,"he");z(Ne,"Oe");k(Ne,"x");Y(Ne,"P");U(Ne,"getDefaultExportFromNamespaceIfNotNamed");le(Ne,"getDefaultExportFromNamespaceIfNotNamed");function Me(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=le(U(Y(k(z(m(function n(){var i=!1;try{i=this instanceof n}catch{}return i?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(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:le(function(){return e[n]},"get")})}),r}m(Me,"ye");z(Me,"Pe");k(Me,"y$2");Y(Me,"_");U(Me,"getAugmentedNamespace");le(Me,"getAugmentedNamespace");var Lt,Wt;function Be(){return Wt||(Wt=1,Lt=["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"]),Lt}m(Be,"be");z(Be,"_e");k(Be,"w$1");Y(Be,"k");U(Be,"requireBinaryExtensions");var fs=Be();const ps=de(fs);var ds=Object.defineProperty,I=U((e,t)=>ds(e,"name",{value:t,configurable:!0}),"r");const gs=new Set(ps),ms=new Set(["/","\\",void 0]),Ut=Symbol.for("pathe:normalizedAlias"),hs=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,ys=I((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),Le=I((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),yr=I(e=>{if(e[Ut])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([r],[n])=>ys(r,n)));for(const r in t)for(const n in t)n===r||r.startsWith(n)||t[r].startsWith(n)&&ms.has(t[r][n.length])&&(t[r]=t[n]+t[r].slice(n.length));return Object.defineProperty(t,Ut,{enumerable:!1,value:!0}),t},"normalizeAliases");I((e,t)=>{e=R(e),t=yr(t);for(const[r,n]of Object.entries(t)){if(!e.startsWith(r))continue;const i=Le(r)?r.slice(0,-1):r;if(Le(e[i.length]))return B(n,e.slice(r.length))}return e},"resolveAlias");I(e=>hs.exec(e)?.[2],"filename");I((e,t)=>{e=R(e),t=yr(t);for(const[r,n]of Object.entries(t).toReversed()){if(!e.startsWith(n))continue;const i=Le(n)?n.slice(0,-1):n;if(Le(e[i.length]))return B(r,e.slice(n.length))}return e},"reverseResolveAlias");const bs=/^(?:\.?\.[/\\]|\.\.\B)/,vs=/^(?:msys|cygwin)$/;I(e=>bs.test(e)||e==="..","isRelative");I(e=>gs.has(mr(e).slice(1).toLowerCase()),"isBinaryPath");const fe=I(e=>R(e instanceof URL?us(e):e),"toPath");I(()=>{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:vs.test(e)},"isWindows");var $s=Object.defineProperty,ws=k((e,t)=>$s(e,"name",{value:t,configurable:!0}),"p"),js=Object.defineProperty,br=ws((e,t)=>js(e,"name",{value:t,configurable:!0}),"a");const xs=pe(import.meta.url),$e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vr=br(e=>{if(typeof $e<"u"&&$e.versions&&$e.versions.node){const[t,r]=$e.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return $e.getBuiltinModule(e)}return xs(e)},"__cjs_getBuiltinModule"),{stat:Os,lstat:ks}=vr("node:fs/promises"),{fileURLToPath:Ps}=vr("node:url");var Ts=Object.defineProperty,Vt=br((e,t)=>Ts(e,"name",{value:t,configurable:!0}),"n");const Es=Vt(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?fe(t.cwd):process.cwd();let n=W(r);const{root:i}=hr(n),c=fe(t.stopAt??i),f=W(n,c),d=t.type??"file",v=Vt(async function($){return typeof e=="function"?[await e($)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const w=t.allowSymlinks?Os:ks;for(;n&&n!==f&&n!==i;){const $=await v(n);for(let y of $){if(y===lr)return;if(y===void 0)continue;Buffer.isBuffer(y)?y=y.toString():y instanceof URL&&(y=Ps(y));const E=Q(y)?y:W(n,y);try{const P=await w(E);if(d==="file"&&P.isFile()||d==="directory"&&P.isDirectory())return E}catch{}}n=Ae(n)}},"findUp");var Ss=Object.defineProperty,Cs=k((e,t)=>Ss(e,"name",{value:t,configurable:!0}),"u$3"),As=Object.defineProperty,$r=Cs((e,t)=>As(e,"name",{value:t,configurable:!0}),"i");const _s=pe(import.meta.url),we=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wr=$r(e=>{if(typeof we<"u"&&we.versions&&we.versions.node){const[t,r]=we.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return we.getBuiltinModule(e)}return _s(e)},"__cjs_getBuiltinModule"),{statSync:Ns,lstatSync:Ms}=wr("node:fs"),{fileURLToPath:Bs}=wr("node:url");var Ds=Object.defineProperty,qt=$r((e,t)=>Ds(e,"name",{value:t,configurable:!0}),"o");const zs=qt((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?fe(t.cwd):process.cwd();let n=W(r);const{root:i}=hr(n),c=fe(t.stopAt??i),f=W(n,c),d=t.type??"file",v=qt(function($){return typeof e=="function"?[e($)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const w=t.allowSymlinks?Ns:Ms;for(;n&&n!==f&&n!==i;){for(let $ of v(n)){if($===lr)return;if($===void 0)continue;Buffer.isBuffer($)?$=$.toString():$ instanceof URL&&($=Bs($));const y=Q($)?$:W(n,$);try{const E=w(y);if(d==="file"&&E.isFile()||d==="directory"&&E.isDirectory())return y}catch{}}n=Ae(n)}},"findUpSync");var Rs=Object.defineProperty,jr=k((e,t)=>Rs(e,"name",{value:t,configurable:!0}),"t$2"),Is=Object.defineProperty,dt=jr((e,t)=>Is(e,"name",{value:t,configurable:!0}),"s");const Fs=pe(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ls=dt(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 Fs(e)},"__cjs_getBuiltinModule"),{access:Ws}=Ls("node:fs/promises");var Us=Object.defineProperty,Vs=dt((e,t)=>Us(e,"name",{value:t,configurable:!0}),"o");async function G(e,t=ur){ft(e),e=fe(e);try{return await Ws(e,t),!0}catch{return!1}}m(G,"D$2");z(G,"G");k(G,"i$1");jr(G,"d");dt(G,"m");Vs(G,"isAccessible");var qs=Object.defineProperty,xr=k((e,t)=>qs(e,"name",{value:t,configurable:!0}),"t$1"),Ks=Object.defineProperty,gt=xr((e,t)=>Ks(e,"name",{value:t,configurable:!0}),"t");const Gs=pe(import.meta.url),xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Js=gt(e=>{if(typeof xe<"u"&&xe.versions&&xe.versions.node){const[t,r]=xe.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return xe.getBuiltinModule(e)}return Gs(e)},"__cjs_getBuiltinModule"),{accessSync:Zs}=Js("node:fs");var Hs=Object.defineProperty,Xs=gt((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"o");function J(e,t=ur){ft(e),e=fe(e);try{return Zs(e,t),!0}catch{return!1}}m(J,"I$2");z(J,"V");k(J,"i");xr(J,"d");gt(J,"m");Xs(J,"isAccessibleSync");var Qs=Object.defineProperty,Or=k((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"o"),Ys=Object.defineProperty,kr=Or((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"o"),ei=Object.defineProperty,ti=kr((e,t)=>ei(e,"name",{value:t,configurable:!0}),"o");class Pr extends Error{static{m(this,"$t")}static{z(this,"wt")}static{k(this,"s")}static{Or(this,"u")}static{kr(this,"n")}static{ti(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 ri=Object.defineProperty,mt=k((e,t)=>ri(e,"name",{value:t,configurable:!0}),"u");const We=mt((e,t)=>(t?.create&&Wo(e),e),"useDirectory");mt(async(e,t)=>{if(ce.CACHE_DIR&&!["0","1","false","true"].includes(ce.CACHE_DIR))return We(B(ce.CACHE_DIR,e),t);const r=await Es("package.json",{cwd:t?.cwd??cr(),type:"file"});if(!r){if(t?.throwError)throw new Pr("No such file or directory found.");return}const n=B(Ae(r),"node_modules"),i=B(n,".cache"),c=B(i,e);if(!(ae(c)&&!await G(c,ue))&&!(ae(i)&&!await G(i,ue))&&!(ae(n)&&!await G(n,ue)))return We(c,t)},"findCacheDirectory");const ni=mt((e,t)=>{if(ce.CACHE_DIR&&!["0","1","false","true"].includes(ce.CACHE_DIR))return We(B(ce.CACHE_DIR,e),t);const r=zs("package.json",{cwd:t?.cwd??cr(),type:"file"});if(!r){if(t?.throwError)throw new Pr("No such file or directory found.");return}const n=B(Ae(r),"node_modules"),i=B(n,".cache"),c=B(i,e);if(!(ae(c)&&!J(c,ue))&&!(ae(i)&&!J(i,ue))&&!(ae(n)&&!J(n,ue)))return We(c,t)},"findCacheDirectorySync"),Tr=ni;var oi=Object.defineProperty,si=m((e,t)=>oi(e,"name",{value:t,configurable:!0}),"i$7"),ii=Object.defineProperty,ai=si((e,t)=>ii(e,"name",{value:t,configurable:!0}),"r"),ci=Object.defineProperty,ui=ai((e,t)=>ci(e,"name",{value:t,configurable:!0}),"i");const Kt=ui(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var li=Object.defineProperty,fi=m((e,t)=>li(e,"name",{value:t,configurable:!0}),"i$6"),pi=Object.defineProperty,Er=fi((e,t)=>pi(e,"name",{value:t,configurable:!0}),"s");const di=Se(import.meta.url),Oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gi=Er(e=>{if(typeof Oe<"u"&&Oe.versions&&Oe.versions.node){const[t,r]=Oe.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Oe.getBuiltinModule(e)}return di(e)},"__cjs_getBuiltinModule"),{lstatSync:Gt,mkdirSync:mi}=gi("node:fs");var hi=Object.defineProperty,yi=Er((e,t)=>hi(e,"name",{value:t,configurable:!0}),"o");const Ue=yi(e=>{nr(e);try{const t=Gt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Kt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{mi(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const r=Gt(e);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Kt(r))}'`,{cause:t})}},"ensureDirSync");var bi=Object.defineProperty,vi=m((e,t)=>bi(e,"name",{value:t,configurable:!0}),"x$2"),$i=Object.defineProperty,Sr=vi((e,t)=>$i(e,"name",{value:t,configurable:!0}),"$"),wi=Object.defineProperty,ji=Sr((e,t)=>wi(e,"name",{value:t,configurable:!0}),"A"),xi=Object.defineProperty,ht=ji((e,t)=>xi(e,"name",{value:t,configurable:!0}),"$"),Oi=Object.defineProperty,ki=ht((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"r$1");const Pi=ki(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
- `),"normalizeLF"),Ti=globalThis.process??Object.create(null),Jt={versions:{}},Zt=new Proxy(Ti,{get(e,t){if(t in e)return e[t];if(t in Jt)return Jt[t]}});var Ei=Object.defineProperty,Si=ht((e,t)=>Ei(e,"name",{value:t,configurable:!0}),"b");const Ci=Si((e,t,r,n)=>{const i={column:0,line:-1,...e.start},c={...i,...e.end},f=i.line,d=i.column,v=c.line,w=c.column;let $=Math.max(f-(r+1),0),y=Math.min(t.length,v+n);f===-1&&($=0),v===-1&&(y=t.length);const E=v-f,P={};if(E)for(let x=0;x<=E;x++){const _=x+f;if(!d)P[_]=!0;else if(x===0){const F=t[_-1]?.length;P[_]=[d,(F??0)-d+1]}else if(x===E)P[_]=[0,w];else{const F=t[_-x]?.length;P[_]=[0,F]}}else d===w?P[f]=d?[d,0]:!0:P[f]=[d,(w??0)-(d??0)];return{end:y,markerLines:P,start:$}},"getMarkerLines");var Ai=Object.defineProperty,Fe=ht((e,t)=>Ai(e,"name",{value:t,configurable:!0}),"t");const _i=Zt.platform==="win32"&&!Zt.env?.WT_SESSION?">":"❯",Ni=Fe((e,t,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:Fe(x=>x,"gutter"),marker:Fe(x=>x,"marker"),message:Fe(x=>x,"message"),...r?.color}},i=typeof t.start.column=="number";let c=Pi(e).split(`
3
- `);typeof n.tabWidth=="number"&&(c=c.map(x=>x.replaceAll(" "," ".repeat(n.tabWidth))));const{end:f,markerLines:d,start:v}=Ci(t,c,n.linesAbove,n.linesBelow),w=String(f).length,{gutter:$,marker:y,message:E}=n.color;let P=c.slice(v,f).map((x,_)=>{const F=v+1+_,te=d[F],Qe=` ${String(F)}`.slice(-w),Ye=!d[F+1],re=` ${Qe}${n.showGutter?" |":""}`;if(te){let L="";if(Array.isArray(te)){const et=x.replaceAll(/[^\t]/g," ").slice(0,Math.max(te[0]-1,0)),tt=te[1]||1;L=[`
4
- `,n.prefix+$(re.replaceAll(/\d/g," "))," ",et,y("^").repeat(tt)].join(""),Ye&&n.message&&(L+=` ${E(n.message)}`)}return[n.prefix+y(_i),$(re),x.length>0?` ${x}`:"",L].join("")}return`${n.prefix} ${$(re)}${x.length>0?` ${x}`:""}`}).join(`
5
- `);return n.message&&!i&&(P=`${n.prefix+" ".repeat(w+1)+n.message}
6
- ${P}`),P},"codeFrame");var Mi=Object.defineProperty,Bi=Sr((e,t)=>Mi(e,"name",{value:t,configurable:!0}),"s"),Di=Object.defineProperty,zi=Bi((e,t)=>Di(e,"name",{value:t,configurable:!0}),"o"),Ri=Object.defineProperty,yt=zi((e,t)=>Ri(e,"name",{value:t,configurable:!0}),"l");const Ht=yt((e,t)=>{let r=0,n=t.length-2;for(;r<n;){const i=r+(n-r>>1);if(e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return r},"binarySearch"),Ii=/\n|\r(?!\n)/,Fi=yt(e=>e.split(Ii).reduce((t,r)=>(t.push(t.at(-1)+r.length+1),t),[0]),"getLineStartIndexes"),Li=yt((e,t,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(e)&&typeof e!="string"||(typeof e=="string"||Array.isArray(e))&&e.length===0))return{column:0,line:0};if(!n&&(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 c=Fi(e),f=Ht(t,c);return{column:t-c[f]+1,line:f+1}}const i=Ht(t,e);return{column:t-e[i]+1,line:i+1}},"indexToLineColumn");var Wi=Object.defineProperty,Cr=m((e,t)=>Wi(e,"name",{value:t,configurable:!0}),"t$6"),Ui=Object.defineProperty,Ar=Cr((e,t)=>Ui(e,"name",{value:t,configurable:!0}),"t"),Vi=Object.defineProperty,qi=Ar((e,t)=>Vi(e,"name",{value:t,configurable:!0}),"i");let Ki=class extends Error{static{m(this,"m")}static{Cr(this,"m")}static{Ar(this,"t")}static{qi(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 ko=Object.defineProperty;var v=(e,t)=>ko(e,"name",{value:t,configurable:!0});import{createRequire as Po}from"node:module";import{f as Cn,$ as Co,U as Mn,i as J,_ as cn,K as at,s as Mo,M as q,a as _n}from"../packem_shared/readFileSync-CGmzMUF2-D6rUjGDn.js";import{createJiti as zn}from"jiti";import"../packem_shared/otelPlugin-CJR2T_lk.js";import"../packem_shared/definePlugin-CWm4Dv_t.js";const Eo=Po(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Jr=v(e=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[t,n]=Ke.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ke.getBuiltinModule(e)}return Eo(e)},"__cjs_getBuiltinModule"),{createHash:Tn}=Jr("node:crypto"),{readdirSync:Sn,readFileSync:Ao,copyFileSync:To,unlinkSync:So}=Jr("node:fs"),{createRequire:it}=Jr("node:module");var _o=Object.defineProperty,H=v((e,t)=>_o(e,"name",{value:t,configurable:!0}),"L"),zo=Object.defineProperty,A=H((e,t)=>zo(e,"name",{value:t,configurable:!0}),"y");const No=it(import.meta.url),be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Nn=A(e=>{if(typeof be<"u"&&be.versions&&be.versions.node){const[t,n]=be.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return be.getBuiltinModule(e)}return No(e)},"__cjs_getBuiltinModule"),{existsSync:ve}=Nn("node:fs"),{env:$e,cwd:Bn}=be,{createRequire:Oe}=Nn("node:module"),Rn=0,xe=2,In=Symbol("findUpStop");var Bo=Object.defineProperty,Ro=A((e,t)=>Bo(e,"name",{value:t,configurable:!0}),"t$4"),Io=Object.defineProperty,Do=Ro((e,t)=>Io(e,"name",{value:t,configurable:!0}),"t"),Fo=Object.defineProperty,Wo=Do((e,t)=>Fo(e,"name",{value:t,configurable:!0}),"n");const Hr=Wo(e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var Lo=Object.defineProperty,qo=A((e,t)=>Lo(e,"name",{value:t,configurable:!0}),"i$4"),Uo=Object.defineProperty,Vo=qo((e,t)=>Uo(e,"name",{value:t,configurable:!0}),"r"),Zo=Object.defineProperty,Ko=Vo((e,t)=>Zo(e,"name",{value:t,configurable:!0}),"i");const un=Ko(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Go=Object.defineProperty,Jo=A((e,t)=>Go(e,"name",{value:t,configurable:!0}),"i$3"),Ho=Object.defineProperty,Dn=Jo((e,t)=>Ho(e,"name",{value:t,configurable:!0}),"s");const Xo=Oe(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yo=Dn(e=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[t,n]=Ge.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ge.getBuiltinModule(e)}return Xo(e)},"__cjs_getBuiltinModule"),{lstatSync:ln,mkdirSync:Qo}=Yo("node:fs");var es=Object.defineProperty,ts=Dn((e,t)=>es(e,"name",{value:t,configurable:!0}),"o");const rs=ts(e=>{Hr(e);try{const t=ln(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(un(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Qo(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=ln(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(un(n))}'`,{cause:t})}},"ensureDirSync");var ns=Object.defineProperty,os=A((e,t)=>ns(e,"name",{value:t,configurable:!0}),"$e$1"),ss=Object.defineProperty,Xr=os((e,t)=>ss(e,"name",{value:t,configurable:!0}),"W"),is=Object.defineProperty,y=Xr((e,t)=>is(e,"name",{value:t,configurable:!0}),"u$1");let fn=y(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=y((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=y((r,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(r,a)&&a!==i&&t(r,a,{get:y(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=y(r=>g(t({},"__esModule",{value:!0}),r),"oe"),x={};l(x,{zeptomatch:y(()=>Ze,"zeptomatch")});var O=y(r=>{const o=new Set,i=[r];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,m=f.length;p<m;p++)i.push(f[p])}return Array.from(o)},"M"),j=y(r=>{let o="";const i=O(r);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"),$=y((r,o,i)=>{const c=i.get(r);if(c!==void 0)return c;const a=r.partial??o;let f="";if(r.regex&&(f+=a?"(?:$|":"",f+=r.regex.source),r.children?.length){const p=E(r.children.map(m=>$(m,o,i)).filter(Boolean));if(p?.length){const m=r.children.some(K=>!K.regex||!(K.partial??o)),k=p.length>1||a&&(!f.length||m);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),M=y((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=$(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=y(r=>Array.from(new Set(r)),"ue"),P=y((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=M(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,V=y((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ne=V,Pe=y(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),Ee=Pe,Q=y(r=>Array.isArray(r),"j"),B=y(r=>typeof r=="function","_"),Ae=y(r=>r.length===0,"he"),Te=(()=>{const{toString:r}=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(r.call(i))})(),Et=y(r=>typeof r=="number","de"),At=y(r=>typeof r=="object"&&r!==null,"xe"),Tt=y(r=>r instanceof RegExp,"me"),St=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ct=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),Se=y(r=>typeof r=="string","A"),_=y(r=>r===void 0,"f"),Mt=y(r=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=r(i);return o.set(i,a),a}},"ye"),Ce=y((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=z(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),d=y((r,o)=>Q(r)?_t(r,o):Se(r)?Me(r,o):zt(r,o),"i"),_t=y((r,o)=>{const i={};for(const c of r){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(!_(o)&&!c.options.silent){const m=a.slice(f,p),k=B(o)?o(m,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),zt=y((r,o)=>{if(Ct(r))return Me(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return St(r)&&B(o)&&!Te(o)?Nt(a,o):Bt(a,o)}},"$e"),Nt=y((r,o)=>i=>{const c=i.index,a=i.input;r.lastIndex=c;const f=r.exec(a);if(f){const p=r.lastIndex;if(!i.options.silent){const m=o(...f,a,`${c}`);_(m)||i.output.push(m)}return i.index=p,!0}else return!1},"Ee"),Bt=y((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!_(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;_(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Me=y((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!_(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;_(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ue=y((r,o,i,c)=>{const a=z(r),f=o>1;return fe(le(ze(p=>{let m=0;for(;m<i;){const k=p.index;if(!a(p)||(m+=1,p.index===k))break}return m>=o},f),c))},"k"),_e=y((r,o)=>ue(r,0,1,o),"L"),ee=y((r,o)=>ue(r,0,1/0,o),"$"),Rt=y((r,o)=>ue(r,1,1/0,o),"Re"),F=y((r,o)=>{const i=r.map(z);return fe(le(ze(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),S=y((r,o)=>{const i=r.map(z);return fe(le(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),ze=y((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,m=c(a);return!m&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),le=y((r,o)=>{const i=z(r);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 _(p)||c.output.push(p),!0}else return!1}:i},"B"),fe=(()=>{let r=0;return o=>{const i=z(o),c=r+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,m=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=m.queue;if(p<=m.indexMax){const G=m.store||(m.store=new Map);if(k.length){for(let L=0,Wr=k.length;L<Wr;L+=2){const Lr=k[L*2],qr=k[L*2+1];G.set(Lr,qr)}k.length=0}const C=G.get(p);if(C===!1)return!1;if(Et(C))return a.index=C,!0;if(C)return a.index=C.index,C.output?.length&&a.output.push(...C.output),!0}const K=a.output.length,Fr=i(a);if(m.indexMax=Math.max(m.indexMax,p),Fr){const G=a.index,C=a.output.length;if(C>K){const L=a.output.slice(K,C);k.push(p,{index:G,output:L})}else k.push(p,G);return!0}else return k.push(p,!1),!1}}})(),Ne=y(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=Mt(r=>{if(B(r))return Ae(r)?Ne(r):r;if(Se(r)||Tt(r))return d(r);if(Q(r))return F(r);if(At(r))return S(Object.values(r));throw new Error("Invalid rule")}),R=y(r=>r,"d"),It=y(r=>typeof r=="string","ke"),Dt=y(r=>{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 m=r(c,a);return f.set(c,m),m}},"Be"),Ft=y(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),Wt=d(/\\./,R),Lt=d(/./,R),qt=d(/\*\*\*+/,"*"),Ut=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),Vt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Zt=ee(S([Wt,qt,Ut,Vt,Lt])),Kt=Zt,Gt=y(r=>Ce(r,Kt,{memoization:!1}).join(""),"Ie"),Jt=Gt,Be="abcdefghijklmnopqrstuvwxyz",Ht=y(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Be[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Re=y(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Be.indexOf(r[i])+1;return o},"V"),pe=y((r,o)=>{if(o<r)return pe(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Xt=y((r,o,i)=>pe(r,o).map(c=>String(c).padStart(i,"0")),"qe"),Ie=y((r,o)=>pe(Re(r),Re(o)).map(Ht),"W"),w=y(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=y(r=>({children:r}),"y"),W=(()=>{const r=y((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++)r(a[f],i,c)},"e");return o=>{if(!o.length)return Z([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];r(a,f,c)}return o[0]}})(),N=y(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Yt=d(/\\./,w),Qt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),er=d(/[\\\/]/,N),tr=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),rr=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${Ze.compile(o).source}$).*?`)),nr=d(/^(!!)+/),or=S([rr,nr]),sr=d(/\/(\*\*\/)+/,()=>Z([W([N(),w(".+?"),N()]),N()])),ir=d(/^(\*\*\/)+/,()=>Z([w("^"),W([w(".*?"),N()])])),ar=d(/\/(\*\*)$/,()=>Z([W([N(),w(".*?")]),w("$")])),cr=d(/\*\*/,()=>w(".*?")),De=S([sr,ir,ar,cr]),ur=d(/\*\/(?!\*\*\/|\*$)/,()=>W([w("[^\\\\/]*?"),N()])),lr=d(/\*/,()=>w("[^\\\\/]*")),Fe=S([ur,lr]),We=d("?",()=>w("[^\\\\/]")),fr=d("[",R),pr=d("]",R),dr=d(/[!^]/,"^\\\\/"),gr=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),hr=d(/\\./,R),mr=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),yr=d(/[\\\/]/,"\\\\/"),br=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),vr=S([hr,mr,yr,gr,br]),Le=F([fr,_e(dr),ee(vr),pr],r=>w(r.join(""))),$r=d("{","(?:"),xr=d("}",")"),wr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Xt(+o,+i,Math.min(o.length,i.length)).join("|")),jr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>Ie(o,i).join("|")),Or=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>Ie(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),kr=S([wr,jr,Or]),qe=F([$r,kr,xr],r=>w(r.join(""))),Pr=d("{"),Er=d("}"),Ar=d(","),Tr=d(/\\./,w),Sr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Cr=d(/[\\\/]/,N),Mr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),_r=Ne(()=>Ve),zr=d("",()=>w("(?:)")),Nr=Rt(S([De,Fe,We,Le,qe,_r,Tr,Sr,Cr,Mr]),W),Ue=S([Nr,zr]),Ve=F([Pr,_e(F([Ue,ee(F([Ar,Ue]))])),Er],Z),Br=ee(S([or,De,Fe,We,Le,qe,Ve,Yt,Qt,er,tr]),W),Rr=Br,Ir=y(r=>Ce(r,Rr,{memoization:!1})[0],"kr"),Dr=Ir,de=y((r,o,i)=>de.compile(r,i).test(o),"N");de.compile=(()=>{const r=Ft((i,c)=>ne(Dr(Jt(i)),c)),o=Dt((i,c)=>Ee(i.map(a=>r(a,c))));return(i,c)=>It(i)?r(i,c):o(i,c)})();var Ze=de;return h(x)})();return e.default||e},"_lazyMatch"),Ur;const as=y((e,t)=>(Ur||(Ur=fn(),fn=null),Ur(e,t)),"default");var cs=Object.defineProperty,us=Xr((e,t)=>cs(e,"name",{value:t,configurable:!0}),"t$1");const ls=/^[A-Z]:\//i,X=us((e="")=>e&&e.replaceAll("\\","/").replace(ls,t=>t.toUpperCase()),"normalizeWindowsPath");var fs=Object.defineProperty,I=Xr((e,t)=>fs(e,"name",{value:t,configurable:!0}),"r");const ps=/^[/\\]{2}/,ds=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Fn=/^[A-Z]:$/i,pn=/^\/([A-Z]:)?$/i,gs=/.(\.[^./]+)$/,hs=/^[/\\]|^[a-z]:[/\\]/i,ms=/\/$/,ys=I(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),Wn=I((e,t)=>{let n="",s=0,u=-1,l=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||l===1))if(l===2){if(n.length<2||s!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const x=n.lastIndexOf("/");x===-1?(n="",s=0):(n=n.slice(0,x),s=n.length-1-n.lastIndexOf("/")),u=h,l=0;continue}else if(n.length>0){n="",s=0,u=h,l=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(u+1,h)}`:n=e.slice(u+1,h),s=h-u-1;u=h,l=0}else g==="."&&l!==-1?++l:l=-1}return n},"normalizeString"),ge=I(e=>ds.test(e),"isAbsolute"),Ln=I(function(e){if(e.length===0)return".";e=X(e);const t=ps.exec(e),n=ge(e),s=e.at(-1)==="/";return e=Wn(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),Fn.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!ge(e)?`/${e}`:e)},"normalize"),qn=I((...e)=>{let t="";for(const n of e)if(n)if(t.length>0){const s=t.at(-1)==="/",u=n[0]==="/";s&&u?t+=n.slice(1):t+=s||u?n:`/${n}`}else t+=n;return Ln(t)},"join"),te=I(function(...e){e=e.map(s=>X(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:ys();!u||u.length===0||(t=`${u}/${t}`,n=ge(u))}return t=Wn(t,!n),n&&!ge(t)?`/${t}`:t.length>0?t:"."},"resolve");I(function(e){return X(e)},"toNamespacedPath");const Un=I(function(e){return gs.exec(X(e))?.[1]??""},"extname");I(function(e,t){const n=te(e).replace(pn,"$1").split("/"),s=te(t).replace(pn,"$1").split("/");if(s[0][1]===":"&&n[0][1]===":"&&n[0]!==s[0])return s.join("/");const u=[...n];for(const l of u){if(s[0]!==l)break;n.shift(),s.shift()}return[...n.map(()=>".."),...s].join("/")},"relative");const Yr=I(e=>{const t=X(e).replace(ms,"").split("/").slice(0,-1);return t.length===1&&Fn.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(ge(e)?"/":".")},"dirname");I(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return X(e.root?te(...t):t.join("/"))},"format");const bs=I((e,t)=>{const n=X(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename"),Vn=I(function(e){const t=hs.exec(e)?.[0]?.replaceAll("\\","/")??"",n=bs(e),s=Un(n);return{base:n,dir:Yr(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");I((e,t)=>as(t,Ln(e)),"matchesGlob");var vs=Object.defineProperty,he=A((e,t)=>vs(e,"name",{value:t,configurable:!0}),"n$2"),$s=Object.defineProperty,re=he((e,t)=>$s(e,"name",{value:t,configurable:!0}),"a");const xs=Oe(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ws=re(e=>{if(typeof Je<"u"&&Je.versions&&Je.versions.node){const[t,n]=Je.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Je.getBuiltinModule(e)}return xs(e)},"__cjs_getBuiltinModule"),{fileURLToPath:js}=ws("node:url");var Os=Object.defineProperty,we=re((e,t)=>Os(e,"name",{value:t,configurable:!0}),"t$1");function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}v(ke,"De");H(ke,"Fe");A(ke,"m$5");he(ke,"d");re(ke,"getDefaultExportFromCjs");we(ke,"getDefaultExportFromCjs");function ct(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}v(ct,"Fe");H(ct,"$r");A(ct,"h");he(ct,"O");re(ct,"getDefaultExportFromNamespaceIfPresent");we(ct,"getDefaultExportFromNamespaceIfPresent");function ut(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e.default:e}v(ut,"Ze");H(ut,"br");A(ut,"x");he(ut,"P");re(ut,"getDefaultExportFromNamespaceIfNotNamed");we(ut,"getDefaultExportFromNamespaceIfNotNamed");function lt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=we(re(he(A(H(v(function s(){var u=!1;try{u=this instanceof s}catch{}return u?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"l"),"l"),"a"),"s"),"a"),"a");n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var u=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:we(function(){return e[s]},"get")})}),n}v(lt,"qe");H(lt,"xr");A(lt,"y$2");he(lt,"_");re(lt,"getAugmentedNamespace");we(lt,"getAugmentedNamespace");var dn,gn;function ft(){return gn||(gn=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}v(ft,"Ue");H(ft,"yr");A(ft,"w$1");he(ft,"k");re(ft,"requireBinaryExtensions");var ks=ft();const Ps=ke(ks);var Es=Object.defineProperty,Y=re((e,t)=>Es(e,"name",{value:t,configurable:!0}),"r");const As=new Set(Ps),Ts=new Set(["/","\\",void 0]),hn=Symbol.for("pathe:normalizedAlias"),Ss=/(^|[/\\])([^/\\]+?)(?=(?:\.[^.]+)?$)/,Cs=Y((e,t)=>t.split("/").length-e.split("/").length,"compareAliases"),mt=Y((e="/")=>{const t=e.at(-1);return t==="/"||t==="\\"},"hasTrailingSlash"),Zn=Y(e=>{if(e[hn])return e;const t=Object.fromEntries(Object.entries(e).toSorted(([n],[s])=>Cs(n,s)));for(const n in t)for(const s in t)s===n||n.startsWith(s)||t[n].startsWith(s)&&Ts.has(t[n][s.length])&&(t[n]=t[s]+t[n].slice(s.length));return Object.defineProperty(t,hn,{enumerable:!1,value:!0}),t},"normalizeAliases");Y((e,t)=>{e=X(e),t=Zn(t);for(const[n,s]of Object.entries(t)){if(!e.startsWith(n))continue;const u=mt(n)?n.slice(0,-1):n;if(mt(e[u.length]))return qn(s,e.slice(n.length))}return e},"resolveAlias");Y(e=>Ss.exec(e)?.[2],"filename");Y((e,t)=>{e=X(e),t=Zn(t);for(const[n,s]of Object.entries(t).toReversed()){if(!e.startsWith(s))continue;const u=mt(s)?s.slice(0,-1):s;if(mt(e[u.length]))return qn(n,e.slice(s.length))}return e},"reverseResolveAlias");const Ms=/^(?:\.?\.[/\\]|\.\.\B)/,_s=/^(?:msys|cygwin)$/;Y(e=>Ms.test(e)||e==="..","isRelative");Y(e=>As.has(Un(e).slice(1).toLowerCase()),"isBinaryPath");const je=Y(e=>X(e instanceof URL?js(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:_s.test(e)},"isWindows");var zs=Object.defineProperty,Ns=A((e,t)=>zs(e,"name",{value:t,configurable:!0}),"p"),Bs=Object.defineProperty,Kn=Ns((e,t)=>Bs(e,"name",{value:t,configurable:!0}),"a");const Rs=Oe(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gn=Kn(e=>{if(typeof He<"u"&&He.versions&&He.versions.node){const[t,n]=He.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return He.getBuiltinModule(e)}return Rs(e)},"__cjs_getBuiltinModule"),{stat:Is,lstat:Ds}=Gn("node:fs/promises"),{fileURLToPath:Fs}=Gn("node:url");var Ws=Object.defineProperty,mn=Kn((e,t)=>Ws(e,"name",{value:t,configurable:!0}),"n");const Ls=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 n=t.cwd?je(t.cwd):process.cwd();let s=te(n);const{root:u}=Vn(s),l=je(t.stopAt??u),g=te(s,l),h=t.type??"file",x=mn(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?Is:Ds;for(;s&&s!==g&&s!==u;){const j=await x(s);for(let $ of j){if($===In)return;if($===void 0)continue;Buffer.isBuffer($)?$=$.toString():$ instanceof URL&&($=Fs($));const M=ge($)?$:te(s,$);try{const E=await O(M);if(h==="file"&&E.isFile()||h==="directory"&&E.isDirectory())return M}catch{}}s=Yr(s)}},"findUp");var qs=Object.defineProperty,Us=A((e,t)=>qs(e,"name",{value:t,configurable:!0}),"u$3"),Vs=Object.defineProperty,Jn=Us((e,t)=>Vs(e,"name",{value:t,configurable:!0}),"i");const Zs=Oe(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Hn=Jn(e=>{if(typeof Xe<"u"&&Xe.versions&&Xe.versions.node){const[t,n]=Xe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Xe.getBuiltinModule(e)}return Zs(e)},"__cjs_getBuiltinModule"),{statSync:Ks,lstatSync:Gs}=Hn("node:fs"),{fileURLToPath:Js}=Hn("node:url");var Hs=Object.defineProperty,yn=Jn((e,t)=>Hs(e,"name",{value:t,configurable:!0}),"o");const Xs=yn((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 n=t.cwd?je(t.cwd):process.cwd();let s=te(n);const{root:u}=Vn(s),l=je(t.stopAt??u),g=te(s,l),h=t.type??"file",x=yn(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?Ks:Gs;for(;s&&s!==g&&s!==u;){for(let j of x(s)){if(j===In)return;if(j===void 0)continue;Buffer.isBuffer(j)?j=j.toString():j instanceof URL&&(j=Js(j));const $=ge(j)?j:te(s,j);try{const M=O($);if(h==="file"&&M.isFile()||h==="directory"&&M.isDirectory())return $}catch{}}s=Yr(s)}},"findUpSync");var Ys=Object.defineProperty,Xn=A((e,t)=>Ys(e,"name",{value:t,configurable:!0}),"t$2"),Qs=Object.defineProperty,Qr=Xn((e,t)=>Qs(e,"name",{value:t,configurable:!0}),"s");const ei=Oe(import.meta.url),Ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ti=Qr(e=>{if(typeof Ye<"u"&&Ye.versions&&Ye.versions.node){const[t,n]=Ye.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Ye.getBuiltinModule(e)}return ei(e)},"__cjs_getBuiltinModule"),{access:ri}=ti("node:fs/promises");var ni=Object.defineProperty,oi=Qr((e,t)=>ni(e,"name",{value:t,configurable:!0}),"o");async function se(e,t=Rn){Hr(e),e=je(e);try{return await ri(e,t),!0}catch{return!1}}v(se,"te");H(se,"ue");A(se,"i$1");Xn(se,"d");Qr(se,"m");oi(se,"isAccessible");var si=Object.defineProperty,Yn=A((e,t)=>si(e,"name",{value:t,configurable:!0}),"t$1"),ii=Object.defineProperty,en=Yn((e,t)=>ii(e,"name",{value:t,configurable:!0}),"t");const ai=Oe(import.meta.url),Qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ci=en(e=>{if(typeof Qe<"u"&&Qe.versions&&Qe.versions.node){const[t,n]=Qe.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return Qe.getBuiltinModule(e)}return ai(e)},"__cjs_getBuiltinModule"),{accessSync:ui}=ci("node:fs");var li=Object.defineProperty,fi=en((e,t)=>li(e,"name",{value:t,configurable:!0}),"o");function ie(e,t=Rn){Hr(e),e=je(e);try{return ui(e,t),!0}catch{return!1}}v(ie,"ne");H(ie,"le");A(ie,"i");Yn(ie,"d");en(ie,"m");fi(ie,"isAccessibleSync");var pi=Object.defineProperty,Qn=A((e,t)=>pi(e,"name",{value:t,configurable:!0}),"o"),di=Object.defineProperty,eo=Qn((e,t)=>di(e,"name",{value:t,configurable:!0}),"o"),gi=Object.defineProperty,hi=eo((e,t)=>gi(e,"name",{value:t,configurable:!0}),"o");let to=class extends Error{static{v(this,"ir")}static{H(this,"nn")}static{A(this,"s")}static{Qn(this,"u")}static{eo(this,"n")}static{hi(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 mi=Object.defineProperty,yi=A((e,t)=>mi(e,"name",{value:t,configurable:!0}),"$e"),bi=Object.defineProperty,tn=yi((e,t)=>bi(e,"name",{value:t,configurable:!0}),"W"),vi=Object.defineProperty,b=tn((e,t)=>vi(e,"name",{value:t,configurable:!0}),"u$1");let bn=b(()=>{var e=(()=>{var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=b((r,o)=>{for(var i in o)t(r,i,{get:o[i],enumerable:!0})},"ne"),g=b((r,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of s(o))!u.call(r,a)&&a!==i&&t(r,a,{get:b(()=>o[a],"get"),enumerable:!(c=n(o,a))||c.enumerable});return r},"ae"),h=b(r=>g(t({},"__esModule",{value:!0}),r),"oe"),x={};l(x,{zeptomatch:b(()=>Ze,"zeptomatch")});var O=b(r=>{const o=new Set,i=[r];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,m=f.length;p<m;p++)i.push(f[p])}return Array.from(o)},"M"),j=b(r=>{let o="";const i=O(r);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"),$=b((r,o,i)=>{const c=i.get(r);if(c!==void 0)return c;const a=r.partial??o;let f="";if(r.regex&&(f+=a?"(?:$|":"",f+=r.regex.source),r.children?.length){const p=E(r.children.map(m=>$(m,o,i)).filter(Boolean));if(p?.length){const m=r.children.some(K=>!K.regex||!(K.partial??o)),k=p.length>1||a&&(!f.length||m);f+=k?a?"(?:$|":"(?:":"",f+=p.join("|"),f+=k?")":""}}return r.regex&&(f+=a?")":""),i.set(r,f),f},"O"),M=b((r,o)=>{const i=new Map,c=O(r);for(let a=c.length-1;a>=0;a--){const f=$(c[a],o,i);if(!(a>0))return f}return""},"ie"),E=b(r=>Array.from(new Set(r)),"ue"),P=b((r,o,i)=>P.compile(r,i).test(o),"R");P.compile=(r,o)=>{const i=o?.partial??!1,c=M(r,i),a=j(r);return new RegExp(`^(?:${c})$`,a)};var U=P,V=b((r,o)=>{const i=U.compile(r,o),c=`${i.source.slice(0,-1)}[\\\\/]?$`,a=i.flags;return new RegExp(c,a)},"le"),ne=V,Pe=b(r=>{const o=r.map(c=>c.source).join("|")||"$^",i=r[0]?.flags;return new RegExp(o,i)},"ve"),Ee=Pe,Q=b(r=>Array.isArray(r),"j"),B=b(r=>typeof r=="function","_"),Ae=b(r=>r.length===0,"he"),Te=(()=>{const{toString:r}=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(r.call(i))})(),Et=b(r=>typeof r=="number","de"),At=b(r=>typeof r=="object"&&r!==null,"xe"),Tt=b(r=>r instanceof RegExp,"me"),St=(()=>{const r=/\\\(|\((?!\?(?::|=|!|<=|<!))/;return o=>r.test(o.source)})(),Ct=(()=>{const r=/^[a-zA-Z0-9_-]+$/;return o=>r.test(o.source)&&!o.flags.includes("i")})(),Se=b(r=>typeof r=="string","A"),_=b(r=>r===void 0,"f"),Mt=b(r=>{const o=new Map;return i=>{const c=o.get(i);if(c!==void 0)return c;const a=r(i);return o.set(i,a),a}},"ye"),Ce=b((r,o,i={})=>{const c={cache:{},input:r,index:0,indexBacktrackMax:0,options:i,output:[]},a=z(o)(c),f=Math.max(c.index,c.indexBacktrackMax);if(a&&c.index===r.length)return c.output;throw new Error(`Failed to parse at index ${f}`)},"I"),d=b((r,o)=>Q(r)?_t(r,o):Se(r)?Me(r,o):zt(r,o),"i"),_t=b((r,o)=>{const i={};for(const c of r){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(!_(o)&&!c.options.silent){const m=a.slice(f,p),k=B(o)?o(m,a,`${f}`):o;_(k)||c.output.push(k)}c.index=p}return!0}},"we"),zt=b((r,o)=>{if(Ct(r))return Me(r.source,o);{const i=r.source,c=r.flags.replace(/y|$/,"y"),a=new RegExp(i,c);return St(r)&&B(o)&&!Te(o)?Nt(a,o):Bt(a,o)}},"$e"),Nt=b((r,o)=>i=>{const c=i.index,a=i.input;r.lastIndex=c;const f=r.exec(a);if(f){const p=r.lastIndex;if(!i.options.silent){const m=o(...f,a,`${c}`);_(m)||i.output.push(m)}return i.index=p,!0}else return!1},"Ee"),Bt=b((r,o)=>i=>{const c=i.index,a=i.input;if(r.lastIndex=c,r.test(a)){const f=r.lastIndex;if(!_(o)&&!i.options.silent){const p=B(o)?o(a.slice(c,f),a,`${c}`):o;_(p)||i.output.push(p)}return i.index=f,!0}else return!1},"Ce"),Me=b((r,o)=>i=>{const c=i.index,a=i.input;if(a.startsWith(r,c)){if(!_(o)&&!i.options.silent){const f=B(o)?o(r,a,`${c}`):o;_(f)||i.output.push(f)}return i.index+=r.length,!0}else return!1},"F"),ue=b((r,o,i,c)=>{const a=z(r),f=o>1;return fe(le(ze(p=>{let m=0;for(;m<i;){const k=p.index;if(!a(p)||(m+=1,p.index===k))break}return m>=o},f),c))},"k"),_e=b((r,o)=>ue(r,0,1,o),"L"),ee=b((r,o)=>ue(r,0,1/0,o),"$"),Rt=b((r,o)=>ue(r,1,1/0,o),"Re"),F=b((r,o)=>{const i=r.map(z);return fe(le(ze(c=>{for(let a=0,f=i.length;a<f;a++)if(!i[a](c))return!1;return!0}),o))},"x"),S=b((r,o)=>{const i=r.map(z);return fe(le(c=>{for(let a=0,f=i.length;a<f;a++)if(i[a](c))return!0;return!1},o))},"p"),ze=b((r,o=!0,i=!1)=>{const c=z(r);return o?a=>{const f=a.index,p=a.output.length,m=c(a);return!m&&!i&&(a.indexBacktrackMax=Math.max(a.indexBacktrackMax,a.index)),(!m||i)&&(a.index=f,a.output.length!==p&&(a.output.length=p)),m}:c},"q"),le=b((r,o)=>{const i=z(r);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 _(p)||c.output.push(p),!0}else return!1}:i},"B"),fe=(()=>{let r=0;return o=>{const i=z(o),c=r+=1;return a=>{var f;if(a.options.memoization===!1)return i(a);const p=a.index,m=(f=a.cache)[c]||(f[c]={indexMax:-1,queue:[]}),k=m.queue;if(p<=m.indexMax){const G=m.store||(m.store=new Map);if(k.length){for(let L=0,Wr=k.length;L<Wr;L+=2){const Lr=k[L*2],qr=k[L*2+1];G.set(Lr,qr)}k.length=0}const C=G.get(p);if(C===!1)return!1;if(Et(C))return a.index=C,!0;if(C)return a.index=C.index,C.output?.length&&a.output.push(...C.output),!0}const K=a.output.length,Fr=i(a);if(m.indexMax=Math.max(m.indexMax,p),Fr){const G=a.index,C=a.output.length;if(C>K){const L=a.output.slice(K,C);k.push(p,{index:G,output:L})}else k.push(p,G);return!0}else return k.push(p,!1),!1}}})(),Ne=b(r=>{let o;return i=>(o||(o=z(r())),o(i))},"G"),z=Mt(r=>{if(B(r))return Ae(r)?Ne(r):r;if(Se(r)||Tt(r))return d(r);if(Q(r))return F(r);if(At(r))return S(Object.values(r));throw new Error("Invalid rule")}),R=b(r=>r,"d"),It=b(r=>typeof r=="string","ke"),Dt=b(r=>{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 m=r(c,a);return f.set(c,m),m}},"Be"),Ft=b(r=>{const o={},i={};return(c,a)=>{const f=a?.partial?i:o;return f[c]??(f[c]=r(c,a))}},"Pe"),Wt=d(/\\./,R),Lt=d(/./,R),qt=d(/\*\*\*+/,"*"),Ut=d(/([^/{[(!])\*\*/,(r,o)=>`${o}*`),Vt=d(/(^|.)\*\*(?=[^*/)\]}])/,(r,o)=>`${o}*`),Zt=ee(S([Wt,qt,Ut,Vt,Lt])),Kt=Zt,Gt=b(r=>Ce(r,Kt,{memoization:!1}).join(""),"Ie"),Jt=Gt,Be="abcdefghijklmnopqrstuvwxyz",Ht=b(r=>{let o="";for(;r>0;){const i=(r-1)%26;o=Be[i]+o,r=Math.floor((r-1)/26)}return o},"Le"),Re=b(r=>{let o=0;for(let i=0,c=r.length;i<c;i++)o=o*26+Be.indexOf(r[i])+1;return o},"V"),pe=b((r,o)=>{if(o<r)return pe(o,r);const i=[];for(;r<=o;)i.push(r++);return i},"b"),Xt=b((r,o,i)=>pe(r,o).map(c=>String(c).padStart(i,"0")),"qe"),Ie=b((r,o)=>pe(Re(r),Re(o)).map(Ht),"W"),w=b(r=>({partial:!1,regex:new RegExp(r,"s"),children:[]}),"c"),Z=b(r=>({children:r}),"y"),W=(()=>{const r=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++)r(a[f],i,c)},"e");return o=>{if(!o.length)return Z([]);for(let i=o.length-1;i>=1;i--){const c=new Set,a=o[i-1],f=o[i];r(a,f,c)}return o[0]}})(),N=b(()=>({regex:new RegExp("[\\\\/]","s"),children:[]}),"g"),Yt=d(/\\./,w),Qt=d(/[$.*+?^(){}[\]\|]/,r=>w(`\\${r}`)),er=d(/[\\\/]/,N),tr=d(/[^$.*+?^(){}[\]\|\\\/]+/,w),rr=d(/^(?:!!)*!(.*)$/,(r,o)=>w(`(?!^${Ze.compile(o).source}$).*?`)),nr=d(/^(!!)+/),or=S([rr,nr]),sr=d(/\/(\*\*\/)+/,()=>Z([W([N(),w(".+?"),N()]),N()])),ir=d(/^(\*\*\/)+/,()=>Z([w("^"),W([w(".*?"),N()])])),ar=d(/\/(\*\*)$/,()=>Z([W([N(),w(".*?")]),w("$")])),cr=d(/\*\*/,()=>w(".*?")),De=S([sr,ir,ar,cr]),ur=d(/\*\/(?!\*\*\/|\*$)/,()=>W([w("[^\\\\/]*?"),N()])),lr=d(/\*/,()=>w("[^\\\\/]*")),Fe=S([ur,lr]),We=d("?",()=>w("[^\\\\/]")),fr=d("[",R),pr=d("]",R),dr=d(/[!^]/,"^\\\\/"),gr=d(/[a-z]-[a-z]|[0-9]-[0-9]/i,R),hr=d(/\\./,R),mr=d(/[$.*+?^(){}[\|]/,r=>`\\${r}`),yr=d(/[\\\/]/,"\\\\/"),br=d(/[^$.*+?^(){}[\]\|\\\/]+/,R),vr=S([hr,mr,yr,gr,br]),Le=F([fr,_e(dr),ee(vr),pr],r=>w(r.join(""))),$r=d("{","(?:"),xr=d("}",")"),wr=d(/(\d+)\.\.(\d+)/,(r,o,i)=>Xt(+o,+i,Math.min(o.length,i.length)).join("|")),jr=d(/([a-z]+)\.\.([a-z]+)/,(r,o,i)=>Ie(o,i).join("|")),Or=d(/([A-Z]+)\.\.([A-Z]+)/,(r,o,i)=>Ie(o.toLowerCase(),i.toLowerCase()).join("|").toUpperCase()),kr=S([wr,jr,Or]),qe=F([$r,kr,xr],r=>w(r.join(""))),Pr=d("{"),Er=d("}"),Ar=d(","),Tr=d(/\\./,w),Sr=d(/[$.*+?^(){[\]\|]/,r=>w(`\\${r}`)),Cr=d(/[\\\/]/,N),Mr=d(/[^$.*+?^(){}[\]\|\\\/,]+/,w),_r=Ne(()=>Ve),zr=d("",()=>w("(?:)")),Nr=Rt(S([De,Fe,We,Le,qe,_r,Tr,Sr,Cr,Mr]),W),Ue=S([Nr,zr]),Ve=F([Pr,_e(F([Ue,ee(F([Ar,Ue]))])),Er],Z),Br=ee(S([or,De,Fe,We,Le,qe,Ve,Yt,Qt,er,tr]),W),Rr=Br,Ir=b(r=>Ce(r,Rr,{memoization:!1})[0],"kr"),Dr=Ir,de=b((r,o,i)=>de.compile(r,i).test(o),"N");de.compile=(()=>{const r=Ft((i,c)=>ne(Dr(Jt(i)),c)),o=Dt((i,c)=>Ee(i.map(a=>r(a,c))));return(i,c)=>It(i)?r(i,c):o(i,c)})();var Ze=de;return h(x)})();return e.default||e},"_lazyMatch"),Vr;const $i=b((e,t)=>(Vr||(Vr=bn(),bn=null),Vr(e,t)),"default");var xi=Object.defineProperty,wi=tn((e,t)=>xi(e,"name",{value:t,configurable:!0}),"t$1");const ji=/^[A-Z]:\//i,me=wi((e="")=>e&&e.replaceAll("\\","/").replace(ji,t=>t.toUpperCase()),"normalizeWindowsPath");var Oi=Object.defineProperty,D=tn((e,t)=>Oi(e,"name",{value:t,configurable:!0}),"r");const ki=/^[/\\]{2}/,Pi=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,ro=/^[A-Z]:$/i,vn=/^\/([A-Z]:)?$/i,Ei=/.(\.[^./]+)$/,Ai=/^[/\\]|^[a-z]:[/\\]/i,Ti=/\/$/,Si=D(()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/","cwd"),no=D((e,t)=>{let n="",s=0,u=-1,l=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||l===1))if(l===2){if(n.length<2||s!==2||!n.endsWith(".")||n.at(-2)!=="."){if(n.length>2){const x=n.lastIndexOf("/");x===-1?(n="",s=0):(n=n.slice(0,x),s=n.length-1-n.lastIndexOf("/")),u=h,l=0;continue}else if(n.length>0){n="",s=0,u=h,l=0;continue}}t&&(n+=n.length>0?"/..":"..",s=2)}else n.length>0?n+=`/${e.slice(u+1,h)}`:n=e.slice(u+1,h),s=h-u-1;u=h,l=0}else g==="."&&l!==-1?++l:l=-1}return n},"normalizeString"),nt=D(e=>Pi.test(e),"isAbsolute"),oo=D(function(e){if(e.length===0)return".";e=me(e);const t=ki.exec(e),n=nt(e),s=e.at(-1)==="/";return e=no(e,!n),e.length===0?n?"/":s?"./":".":(s&&(e+="/"),ro.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!nt(e)?`/${e}`:e)},"normalize"),oe=D((...e)=>{let t="";for(const n of e)if(n)if(t.length>0){const s=t.at(-1)==="/",u=n[0]==="/";s&&u?t+=n.slice(1):t+=s||u?n:`/${n}`}else t+=n;return oo(t)},"join"),Gr=D(function(...e){e=e.map(s=>me(s));let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const u=s>=0?e[s]:Si();!u||u.length===0||(t=`${u}/${t}`,n=nt(u))}return t=no(t,!n),n&&!nt(t)?`/${t}`:t.length>0?t:"."},"resolve");D(function(e){return me(e)},"toNamespacedPath");const Ci=D(function(e){return Ei.exec(me(e))?.[1]??""},"extname");D(function(e,t){const n=Gr(e).replace(vn,"$1").split("/"),s=Gr(t).replace(vn,"$1").split("/");if(s[0][1]===":"&&n[0][1]===":"&&n[0]!==s[0])return s.join("/");const u=[...n];for(const l of u){if(s[0]!==l)break;n.shift(),s.shift()}return[...n.map(()=>".."),...s].join("/")},"relative");const rn=D(e=>{const t=me(e).replace(Ti,"").split("/").slice(0,-1);return t.length===1&&ro.test(t[0])&&(t[0]=`${t[0]}/`),t.join("/")||(nt(e)?"/":".")},"dirname");D(function(e){const t=[e.root,e.dir,e.base??e.name+e.ext].filter(Boolean);return me(e.root?Gr(...t):t.join("/"))},"format");const Mi=D((e,t)=>{const n=me(e).split("/").pop();return t&&n.endsWith(t)?n.slice(0,-t.length):n},"basename");D(function(e){const t=Ai.exec(e)?.[0]?.replaceAll("\\","/")??"",n=Mi(e),s=Ci(n);return{base:n,dir:rn(e),ext:s,name:n.slice(0,n.length-s.length),root:t}},"parse");D((e,t)=>$i(t,oo(e)),"matchesGlob");var _i=Object.defineProperty,nn=A((e,t)=>_i(e,"name",{value:t,configurable:!0}),"u");const yt=nn((e,t)=>(t?.create&&rs(e),e),"useDirectory");nn(async(e,t)=>{if($e.CACHE_DIR&&!["0","1","false","true"].includes($e.CACHE_DIR))return yt(oe($e.CACHE_DIR,e),t);const n=await Ls("package.json",{cwd:t?.cwd??Bn(),type:"file"});if(!n){if(t?.throwError)throw new to("No such file or directory found.");return}const s=oe(rn(n),"node_modules"),u=oe(s,".cache"),l=oe(u,e);if(!(ve(l)&&!await se(l,xe))&&!(ve(u)&&!await se(u,xe))&&!(ve(s)&&!await se(s,xe)))return yt(l,t)},"findCacheDirectory");const zi=nn((e,t)=>{if($e.CACHE_DIR&&!["0","1","false","true"].includes($e.CACHE_DIR))return yt(oe($e.CACHE_DIR,e),t);const n=Xs("package.json",{cwd:t?.cwd??Bn(),type:"file"});if(!n){if(t?.throwError)throw new to("No such file or directory found.");return}const s=oe(rn(n),"node_modules"),u=oe(s,".cache"),l=oe(u,e);if(!(ve(l)&&!ie(l,xe))&&!(ve(u)&&!ie(u,xe))&&!(ve(s)&&!ie(s,xe)))return yt(l,t)},"findCacheDirectorySync"),so=zi;var Ni=Object.defineProperty,Bi=v((e,t)=>Ni(e,"name",{value:t,configurable:!0}),"i$7"),Ri=Object.defineProperty,Ii=Bi((e,t)=>Ri(e,"name",{value:t,configurable:!0}),"r"),Di=Object.defineProperty,Fi=Ii((e,t)=>Di(e,"name",{value:t,configurable:!0}),"i");const $n=Fi(e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},"getFileInfoType");var Wi=Object.defineProperty,Li=v((e,t)=>Wi(e,"name",{value:t,configurable:!0}),"i$6"),qi=Object.defineProperty,io=Li((e,t)=>qi(e,"name",{value:t,configurable:!0}),"s");const Ui=it(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vi=io(e=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[t,n]=et.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return et.getBuiltinModule(e)}return Ui(e)},"__cjs_getBuiltinModule"),{lstatSync:xn,mkdirSync:Zi}=Vi("node:fs");var Ki=Object.defineProperty,Gi=io((e,t)=>Ki(e,"name",{value:t,configurable:!0}),"o");const bt=Gi(e=>{Cn(e);try{const t=xn(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String($n(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Zi(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const n=xn(e);if(!n.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String($n(n))}'`,{cause:t})}},"ensureDirSync");var Ji=Object.defineProperty,Hi=v((e,t)=>Ji(e,"name",{value:t,configurable:!0}),"x$2"),Xi=Object.defineProperty,ao=Hi((e,t)=>Xi(e,"name",{value:t,configurable:!0}),"$"),Yi=Object.defineProperty,Qi=ao((e,t)=>Yi(e,"name",{value:t,configurable:!0}),"A"),ea=Object.defineProperty,on=Qi((e,t)=>ea(e,"name",{value:t,configurable:!0}),"$"),ta=Object.defineProperty,ra=on((e,t)=>ta(e,"name",{value:t,configurable:!0}),"r$1");const na=ra(e=>e.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),"normalizeLF"),oa=globalThis.process??Object.create(null),wn={versions:{}},jn=new Proxy(oa,{get(e,t){if(t in e)return e[t];if(t in wn)return wn[t]}});var sa=Object.defineProperty,ia=on((e,t)=>sa(e,"name",{value:t,configurable:!0}),"b");const aa=ia((e,t,n,s)=>{const u={column:0,line:-1,...e.start},l={...u,...e.end},g=u.line,h=u.column,x=l.line,O=l.column;let j=Math.max(g-(n+1),0),$=Math.min(t.length,x+s);g===-1&&(j=0),x===-1&&($=t.length);const M=x-g,E={};if(M)for(let P=0;P<=M;P++){const U=P+g;if(!h)E[U]=!0;else if(P===0){const V=t[U-1]?.length;E[U]=[h,(V??0)-h+1]}else if(P===M)E[U]=[0,O];else{const V=t[U-P]?.length;E[U]=[0,V]}}else h===O?E[g]=h?[h,0]:!0:E[g]=[h,(O??0)-(h??0)];return{end:$,markerLines:E,start:j}},"getMarkerLines");var ca=Object.defineProperty,ht=on((e,t)=>ca(e,"name",{value:t,configurable:!0}),"t");const ua=jn.platform==="win32"&&!jn.env?.WT_SESSION?">":"❯",la=ht((e,t,n)=>{const s={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...n,color:{gutter:ht(P=>P,"gutter"),marker:ht(P=>P,"marker"),message:ht(P=>P,"message"),...n?.color}},u=typeof t.start.column=="number";let l=na(e).split(`
3
+ `);typeof s.tabWidth=="number"&&(l=l.map(P=>P.replaceAll(" "," ".repeat(s.tabWidth))));const{end:g,markerLines:h,start:x}=aa(t,l,s.linesAbove,s.linesBelow),O=String(g).length,{gutter:j,marker:$,message:M}=s.color;let E=l.slice(x,g).map((P,U)=>{const V=x+1+U,ne=h[V],Pe=` ${String(V)}`.slice(-O),Ee=!h[V+1],Q=` ${Pe}${s.showGutter?" |":""}`;if(ne){let B="";if(Array.isArray(ne)){const Ae=P.replaceAll(/[^\t]/g," ").slice(0,Math.max(ne[0]-1,0)),Te=ne[1]||1;B=[`
4
+ `,s.prefix+j(Q.replaceAll(/\d/g," "))," ",Ae,$("^").repeat(Te)].join(""),Ee&&s.message&&(B+=` ${M(s.message)}`)}return[s.prefix+$(ua),j(Q),P.length>0?` ${P}`:"",B].join("")}return`${s.prefix} ${j(Q)}${P.length>0?` ${P}`:""}`}).join(`
5
+ `);return s.message&&!u&&(E=`${s.prefix+" ".repeat(O+1)+s.message}
6
+ ${E}`),E},"codeFrame");var fa=Object.defineProperty,pa=ao((e,t)=>fa(e,"name",{value:t,configurable:!0}),"s"),da=Object.defineProperty,ga=pa((e,t)=>da(e,"name",{value:t,configurable:!0}),"o"),ha=Object.defineProperty,sn=ga((e,t)=>ha(e,"name",{value:t,configurable:!0}),"l");const On=sn((e,t)=>{let n=0,s=t.length-2;for(;n<s;){const u=n+(s-n>>1);if(e<t[u])s=u-1;else if(e>=t[u+1])n=u+1;else{n=u;break}}return n},"binarySearch"),ma=/\n|\r(?!\n)/,ya=sn(e=>e.split(ma).reduce((t,n)=>(t.push(t.at(-1)+n.length+1),t),[0]),"getLineStartIndexes"),ba=sn((e,t,n)=>{const s=n?.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=ya(e),g=On(t,l);return{column:t-l[g]+1,line:g+1}}const u=On(t,e);return{column:t-e[u]+1,line:u+1}},"indexToLineColumn");var va=Object.defineProperty,co=v((e,t)=>va(e,"name",{value:t,configurable:!0}),"t$6"),$a=Object.defineProperty,uo=co((e,t)=>$a(e,"name",{value:t,configurable:!0}),"t"),xa=Object.defineProperty,wa=uo((e,t)=>xa(e,"name",{value:t,configurable:!0}),"i");let ja=class extends Error{static{v(this,"m")}static{co(this,"m")}static{uo(this,"t")}static{wa(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 Gi=Object.defineProperty,_r=m((e,t)=>Gi(e,"name",{value:t,configurable:!0}),"u$3"),Ji=Object.defineProperty,Nr=_r((e,t)=>Ji(e,"name",{value:t,configurable:!0}),"s"),Zi=Object.defineProperty,De=Nr((e,t)=>Zi(e,"name",{value:t,configurable:!0}),"a");const Hi=De(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Xi=De((e,t,r)=>Ni(e,{start:t},{tabWidth:!1,...r}),"generateCodeFrame"),Qi=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Yi=De((e,t)=>{const r=Qi.exec(t);if(!r)return;const[,n,i,c]=r;if(i&&c)return{column:Number(c),line:Number(i)};let f=Number(n);return f===e.length&&(f=e.length-1),Li(e,f)},"getErrorLocation"),ea=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,ta=De(e=>e.replace(ea,(t,r,n)=>`"${n}"(${Hi(n)})`),"addCodePointToUnexpectedToken");function Ve(e,t,r,n){typeof t=="string"&&(typeof r=="object"&&(n=r),r=t,t=void 0);let i;try{return JSON.parse(e,t)}catch(d){i=d.message}let c;e?(c=Yi(e,i),i=ta(i)):i+=" while parsing empty string";const f=new Ki(i);throw f.fileName=r,c&&(f.codeFrame=Xi(e,c,n)),f}m(Ve,"d$5");_r(Ve,"w");Nr(Ve,"E");De(Ve,"parseJson");var ra=Object.defineProperty,Mr=m((e,t)=>ra(e,"name",{value:t,configurable:!0}),"t$5"),na=Object.defineProperty,Br=Mr((e,t)=>na(e,"name",{value:t,configurable:!0}),"t"),oa=Object.defineProperty,sa=Br((e,t)=>oa(e,"name",{value:t,configurable:!0}),"r");function ze(e,t,r){typeof t=="object"&&(r=t,t=void 0);const n=yo(e,{buffer:!0,encoding:void 0});let i=new TextDecoder().decode(n);const{beforeParse:c,color:f}=r??{};return typeof c=="function"&&(i=c(i)),Ve(i,t,or(e),{color:f})}m(ze,"n$3");Mr(ze,"s");Br(ze,"J");sa(ze,"readJsonSync");var ia=Object.defineProperty,aa=m((e,t)=>ia(e,"name",{value:t,configurable:!0}),"a$3"),ca=Object.defineProperty,ua=aa((e,t)=>ca(e,"name",{value:t,configurable:!0}),"t"),la=Object.defineProperty,fa=ua((e,t)=>la(e,"name",{value:t,configurable:!0}),"e");const pa=fa(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 da=Object.defineProperty,ga=m((e,t)=>da(e,"name",{value:t,configurable:!0}),"t$3"),ma=Object.defineProperty,ha=ga((e,t)=>ma(e,"name",{value:t,configurable:!0}),"r"),ya=Object.defineProperty,ba=ha((e,t)=>ya(e,"name",{value:t,configurable:!0}),"f");const va=new TextEncoder,$a=ba(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return va.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 wa=Object.defineProperty,ja=m((e,t)=>wa(e,"name",{value:t,configurable:!0}),"m$1"),xa=Object.defineProperty,Dr=ja((e,t)=>xa(e,"name",{value:t,configurable:!0}),"s");const Oa=Se(import.meta.url),ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ka=Dr(e=>{if(typeof ke<"u"&&ke.versions&&ke.versions.node){const[t,r]=ke.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return ke.getBuiltinModule(e)}return Oa(e)},"__cjs_getBuiltinModule"),{mkdirSync:Pa,writeFileSync:Ta,statSync:Ea,renameSync:Xt,chownSync:Sa,chmodSync:Ca,unlinkSync:Aa}=ka("node:fs");var _a=Object.defineProperty,Na=Dr((e,t)=>_a(e,"name",{value:t,configurable:!0}),"f");const Ma=Na((e,t,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},nr(e),pa(t),e=or(e);const n=`${e}.tmp`;try{const i=D(e,Dt);if(!i&&r.recursive){const f=Ce(e);D(f,Dt)||Pa(f,{recursive:!0})}let c;if(Ta(n,$a(t),{encoding:r.encoding,flag:r.flag}),i&&!r.overwrite&&(c=Ea(e),r.chown??={gid:c.gid,uid:c.uid},Xt(e,`${e}.bak`)),r.chown)try{Sa(n,r.chown.uid,r.chown.gid)}catch{}Ca(n,c&&!r.mode?c.mode:r.mode??438),Xt(n,e)}catch(i){throw new Error(`Failed to write file at: ${e} - ${i.message}`,{cause:i})}finally{D(n)&&Aa(`${e}.tmp`)}},"writeFileSync");var Ba=Object.defineProperty,Z=m((e,t)=>Ba(e,"name",{value:t,configurable:!0}),"i$2"),Da=Object.defineProperty,H=Z((e,t)=>Da(e,"name",{value:t,configurable:!0}),"s"),za=Object.defineProperty,ee=H((e,t)=>za(e,"name",{value:t,configurable:!0}),"i");const Ra=/^(?:( )+|\t+)/,Re="space";function Te(e,t,r){return e&&t===Re&&r===1}m(Te,"d$3");Z(Te,"g");H(Te,"I");ee(Te,"shouldIgnoreSingleSpace");function Ee(e,t){const r=new Map;let n=0,i,c;for(const f of e.split(/\n/g)){if(!f)continue;const d=f.match(Ra);if(d===null)n=0,i="";else{const v=d[0].length,w=d[1]?Re:"tab";if(Te(t,w,v))continue;w!==i&&(n=0),i=w;let $=1,y=0;const E=v-n;if(n=v,E===0)$=0,y=1;else{const x=Math.abs(E);if(Te(t,w,x))continue;c=qe(w,x)}const P=r.get(c);r.set(c,P===void 0?[1,0]:[P[0]+$,P[1]+y])}}return r}m(Ee,"p");Z(Ee,"y");H(Ee,"h");ee(Ee,"makeIndentsMap");function qe(e,t){return(e===Re?"s":"t")+String(t)}m(qe,"b$1");Z(qe,"v");H(qe,"m");ee(qe,"encodeIndentsKey");function Ke(e){const t=e[0]==="s"?Re:"tab",r=Number(e.slice(1));return{type:t,amount:r}}m(Ke,"v");Z(Ke,"M");H(Ke,"_");ee(Ke,"decodeIndentsKey");function Ge(e){let t,r=0,n=0;for(const[i,[c,f]]of e)(c>r||c===r&&f>n)&&(r=c,n=f,t=i);return t}m(Ge,"I");Z(Ge,"S");H(Ge,"k");ee(Ge,"getMostUsedKey");function Je(e,t){return(e===Re?" ":" ").repeat(t)}m(Je,"h$1");Z(Je,"k");H(Je,"D");ee(Je,"makeIndentString");function Ze(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=Ee(e,!0);t.size===0&&(t=Ee(e,!1));const r=Ge(t);let n,i=0,c="";return r!==void 0&&({type:n,amount:i}=Ke(r),c=Je(n,i)),{amount:i,type:n,indent:c}}m(Ze,"M");Z(Ze,"x");H(Ze,"C");ee(Ze,"detectIndent");var Ia=Object.defineProperty,Fa=m((e,t)=>Ia(e,"name",{value:t,configurable:!0}),"a$1"),La=Object.defineProperty,zr=Fa((e,t)=>La(e,"name",{value:t,configurable:!0}),"i");const Wa=Se(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ua=zr(e=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[t,r]=Pe.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return Pe.getBuiltinModule(e)}return Wa(e)},"__cjs_getBuiltinModule"),{readFileSync:Va}=Ua("node:fs");var qa=Object.defineProperty,Ka=zr((e,t)=>qa(e,"name",{value:t,configurable:!0}),"r");const Rr=Ka((e,t,r={})=>{const{detectIndent:n,indent:i,replacer:c,stringify:f=JSON.stringify,...d}={indent:" ",...r};let v=i,w=`
10
- `;if(D(e,bo))try{const y=Va(e,"utf8");if(n){const{indent:E}=Ze(y);v=E}w=y.endsWith(`
9
+ `:""}`}set message(t){this.#e=t}};var Oa=Object.defineProperty,lo=v((e,t)=>Oa(e,"name",{value:t,configurable:!0}),"u$3"),ka=Object.defineProperty,fo=lo((e,t)=>ka(e,"name",{value:t,configurable:!0}),"s"),Pa=Object.defineProperty,pt=fo((e,t)=>Pa(e,"name",{value:t,configurable:!0}),"a");const Ea=pt(e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,"getCodePoint"),Aa=pt((e,t,n)=>la(e,{start:t},{tabWidth:!1,...n}),"generateCodeFrame"),Ta=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Sa=pt((e,t)=>{const n=Ta.exec(t);if(!n)return;const[,s,u,l]=n;if(u&&l)return{column:Number(l),line:Number(u)};let g=Number(s);return g===e.length&&(g=e.length-1),ba(e,g)},"getErrorLocation"),Ca=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Ma=pt(e=>e.replace(Ca,(t,n,s)=>`"${s}"(${Ea(s)})`),"addCodePointToUnexpectedToken");function vt(e,t,n,s){typeof t=="string"&&(typeof n=="object"&&(s=n),n=t,t=void 0);let u;try{return JSON.parse(e,t)}catch(h){u=h.message}let l;e?(l=Sa(e,u),u=Ma(u)):u+=" while parsing empty string";const g=new ja(u);throw g.fileName=n,l&&(g.codeFrame=Aa(e,l,s)),g}v(vt,"d$5");lo(vt,"w");fo(vt,"E");pt(vt,"parseJson");var _a=Object.defineProperty,po=v((e,t)=>_a(e,"name",{value:t,configurable:!0}),"t$5"),za=Object.defineProperty,go=po((e,t)=>za(e,"name",{value:t,configurable:!0}),"t"),Na=Object.defineProperty,Ba=go((e,t)=>Na(e,"name",{value:t,configurable:!0}),"r");function dt(e,t,n){typeof t=="object"&&(n=t,t=void 0);const s=Co(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(s);const{beforeParse:l,color:g}=n??{};return typeof l=="function"&&(u=l(u)),vt(u,t,Mn(e),{color:g})}v(dt,"n$3");po(dt,"s");go(dt,"J");Ba(dt,"readJsonSync");var Ra=Object.defineProperty,Ia=v((e,t)=>Ra(e,"name",{value:t,configurable:!0}),"a$3"),Da=Object.defineProperty,Fa=Ia((e,t)=>Da(e,"name",{value:t,configurable:!0}),"t"),Wa=Object.defineProperty,La=Fa((e,t)=>Wa(e,"name",{value:t,configurable:!0}),"e");const qa=La(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 Ua=Object.defineProperty,Va=v((e,t)=>Ua(e,"name",{value:t,configurable:!0}),"t$3"),Za=Object.defineProperty,Ka=Va((e,t)=>Za(e,"name",{value:t,configurable:!0}),"r"),Ga=Object.defineProperty,Ja=Ka((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"f");const Ha=new TextEncoder,Xa=Ja(e=>{if(e instanceof Uint8Array)return e;if(typeof e=="string")return Ha.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 Ya=Object.defineProperty,Qa=v((e,t)=>Ya(e,"name",{value:t,configurable:!0}),"m$1"),ec=Object.defineProperty,ho=Qa((e,t)=>ec(e,"name",{value:t,configurable:!0}),"s");const tc=it(import.meta.url),tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rc=ho(e=>{if(typeof tt<"u"&&tt.versions&&tt.versions.node){const[t,n]=tt.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return tt.getBuiltinModule(e)}return tc(e)},"__cjs_getBuiltinModule"),{mkdirSync:nc,writeFileSync:oc,statSync:sc,renameSync:kn,chownSync:ic,chmodSync:ac,unlinkSync:cc}=rc("node:fs");var uc=Object.defineProperty,lc=ho((e,t)=>uc(e,"name",{value:t,configurable:!0}),"f");const fc=lc((e,t,n)=>{n={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...n},Cn(e),qa(t),e=Mn(e);const s=`${e}.tmp`;try{const u=J(e,cn);if(!u&&n.recursive){const g=at(e);J(g,cn)||nc(g,{recursive:!0})}let l;if(oc(s,Xa(t),{encoding:n.encoding,flag:n.flag}),u&&!n.overwrite&&(l=sc(e),n.chown??={gid:l.gid,uid:l.uid},kn(e,`${e}.bak`)),n.chown)try{ic(s,n.chown.uid,n.chown.gid)}catch{}ac(s,l&&!n.mode?l.mode:n.mode??438),kn(s,e)}catch(u){throw new Error(`Failed to write file at: ${e} - ${u.message}`,{cause:u})}finally{J(s)&&cc(`${e}.tmp`)}},"writeFileSync");var pc=Object.defineProperty,ae=v((e,t)=>pc(e,"name",{value:t,configurable:!0}),"i$2"),dc=Object.defineProperty,ce=ae((e,t)=>dc(e,"name",{value:t,configurable:!0}),"s"),gc=Object.defineProperty,ye=ce((e,t)=>gc(e,"name",{value:t,configurable:!0}),"i");const hc=/^(?:( )+|\t+)/,gt="space";function ot(e,t,n){return e&&t===gt&&n===1}v(ot,"d$3");ae(ot,"g");ce(ot,"I");ye(ot,"shouldIgnoreSingleSpace");function st(e,t){const n=new Map;let s=0,u,l;for(const g of e.split(/\n/g)){if(!g)continue;const h=g.match(hc);if(h===null)s=0,u="";else{const x=h[0].length,O=h[1]?gt:"tab";if(ot(t,O,x))continue;O!==u&&(s=0),u=O;let j=1,$=0;const M=x-s;if(s=x,M===0)j=0,$=1;else{const P=Math.abs(M);if(ot(t,O,P))continue;l=$t(O,P)}const E=n.get(l);n.set(l,E===void 0?[1,0]:[E[0]+j,E[1]+$])}}return n}v(st,"p");ae(st,"y");ce(st,"h");ye(st,"makeIndentsMap");function $t(e,t){return(e===gt?"s":"t")+String(t)}v($t,"b$1");ae($t,"v");ce($t,"m");ye($t,"encodeIndentsKey");function xt(e){const t=e[0]==="s"?gt:"tab",n=Number(e.slice(1));return{type:t,amount:n}}v(xt,"v");ae(xt,"M");ce(xt,"_");ye(xt,"decodeIndentsKey");function wt(e){let t,n=0,s=0;for(const[u,[l,g]]of e)(l>n||l===n&&g>s)&&(n=l,s=g,t=u);return t}v(wt,"I");ae(wt,"S");ce(wt,"k");ye(wt,"getMostUsedKey");function jt(e,t){return(e===gt?" ":" ").repeat(t)}v(jt,"h$1");ae(jt,"k");ce(jt,"D");ye(jt,"makeIndentString");function Ot(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=st(e,!0);t.size===0&&(t=st(e,!1));const n=wt(t);let s,u=0,l="";return n!==void 0&&({type:s,amount:u}=xt(n),l=jt(s,u)),{amount:u,type:s,indent:l}}v(Ot,"M");ae(Ot,"x");ce(Ot,"C");ye(Ot,"detectIndent");var mc=Object.defineProperty,yc=v((e,t)=>mc(e,"name",{value:t,configurable:!0}),"a$1"),bc=Object.defineProperty,mo=yc((e,t)=>bc(e,"name",{value:t,configurable:!0}),"i");const vc=it(import.meta.url),rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$c=mo(e=>{if(typeof rt<"u"&&rt.versions&&rt.versions.node){const[t,n]=rt.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return rt.getBuiltinModule(e)}return vc(e)},"__cjs_getBuiltinModule"),{readFileSync:xc}=$c("node:fs");var wc=Object.defineProperty,jc=mo((e,t)=>wc(e,"name",{value:t,configurable:!0}),"r");const yo=jc((e,t,n={})=>{const{detectIndent:s,indent:u,replacer:l,stringify:g=JSON.stringify,...h}={indent:" ",...n};let x=u,O=`
10
+ `;if(J(e,Mo))try{const $=xc(e,"utf8");if(s){const{indent:M}=Ot($);x=M}O=$.endsWith(`
11
11
  `)?`
12
- `:""}catch(y){if(y.code!=="ENOENT")throw y}const $=f(t,c,v);Ma(e,`${$}${w}`,d)},"writeJsonSync");var Ga=Object.defineProperty,Ja=m((e,t)=>Ga(e,"name",{value:t,configurable:!0}),"s$1");class He extends Error{static{m(this,"VisConfigError")}static{Ja(this,"VisConfigError")}chain;constructor(t,r,n){super(t,n),this.name=this.constructor.name,this.chain=r}}var Za=Object.defineProperty,Ha=m((e,t)=>Za(e,"name",{value:t,configurable:!0}),"e");class Xa extends He{static{m(this,"VisConfigCycleError")}static{Ha(this,"VisConfigCycleError")}constructor(t,r){const n=[...r,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${n}`,r)}}var Qa=Object.defineProperty,Ya=m((e,t)=>Qa(e,"name",{value:t,configurable:!0}),"s");class Ir extends He{static{m(this,"VisConfigDeprecatedKeyError")}static{Ya(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,r,n){const i=[`${t} uses removed keys.`,""];for(const c of n){const f=c.location?` (at ${c.location})`:"";i.push(` • ${c.name}${f} → renamed to \`${c.renamedTo}\``);for(const d of c.children??[])i.push(` ↳ ${d.name} → renamed to \`${d.renamedTo}\``)}i.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(i.join(`
13
- `),r),this.filePath=t,this.removedKeys=n}}var ec=Object.defineProperty,tc=m((e,t)=>ec(e,"name",{value:t,configurable:!0}),"t$1");class Qt extends He{static{m(this,"VisConfigLoadError")}static{tc(this,"VisConfigLoadError")}constructor(t,r,n){const i=n instanceof Error?n.message:String(n),c=r.length>0?`
14
- Chain: ${r.join(" → ")}`:"";super(`Failed to load ${t}: ${i}${c}`,r,{cause:n})}}var rc=Object.defineProperty,Fr=m((e,t)=>rc(e,"name",{value:t,configurable:!0}),"t");const nc=Fr(e=>e.join(" → "),"formatChain");class ct extends He{static{m(this,"VisConfigNotFoundError")}static{Fr(this,"VisConfigNotFoundError")}constructor(t,r,n){const i=r.length>0?r[r.length-1]:"<unknown>",c=n.length>0?`
12
+ `:""}catch($){if($.code!=="ENOENT")throw $}const j=g(t,l,x);fc(e,`${j}${O}`,h)},"writeJsonSync");var Oc=Object.defineProperty,kc=v((e,t)=>Oc(e,"name",{value:t,configurable:!0}),"s$1");class kt extends Error{static{v(this,"VisConfigError")}static{kc(this,"VisConfigError")}chain;constructor(t,n,s){super(t,s),this.name=this.constructor.name,this.chain=n}}var Pc=Object.defineProperty,Ec=v((e,t)=>Pc(e,"name",{value:t,configurable:!0}),"e");class Ac extends kt{static{v(this,"VisConfigCycleError")}static{Ec(this,"VisConfigCycleError")}constructor(t,n){const s=[...n,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${s}`,n)}}var Tc=Object.defineProperty,Sc=v((e,t)=>Tc(e,"name",{value:t,configurable:!0}),"s");class bo extends kt{static{v(this,"VisConfigDeprecatedKeyError")}static{Sc(this,"VisConfigDeprecatedKeyError")}filePath;removedKeys;constructor(t,n,s){const u=[`${t} uses removed keys.`,""];for(const l of s){const g=l.location?` (at ${l.location})`:"";u.push(` • ${l.name}${g} → renamed to \`${l.renamedTo}\``);for(const h of l.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
+ `),n),this.filePath=t,this.removedKeys=s}}var Cc=Object.defineProperty,Mc=v((e,t)=>Cc(e,"name",{value:t,configurable:!0}),"t$1");class Pn extends kt{static{v(this,"VisConfigLoadError")}static{Mc(this,"VisConfigLoadError")}constructor(t,n,s){const u=s instanceof Error?s.message:String(s),l=n.length>0?`
14
+ Chain: ${n.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${l}`,n,{cause:s})}}var _c=Object.defineProperty,vo=v((e,t)=>_c(e,"name",{value:t,configurable:!0}),"t");const zc=vo(e=>e.join(" → "),"formatChain");class Zr extends kt{static{v(this,"VisConfigNotFoundError")}static{vo(this,"VisConfigNotFoundError")}constructor(t,n,s){const u=n.length>0?n[n.length-1]:"<unknown>",l=s.length>0?`
15
15
  Tried:
16
- ${n.join(`
17
- `)}`:"";super(`Cannot resolve "${t}" extended from ${i}.${c}
18
- Chain: ${nc(r)}`,r)}}var oc=Object.defineProperty,Lr=m((e,t)=>oc(e,"name",{value:t,configurable:!0}),"i$1");const Yt="@inherit",sc=["aliases","dependsOn","inputs","outputs"],ic=Lr((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Yt))return[...t];const r=[];for(const n of t){if(n===Yt){e!==void 0&&r.push(...e);continue}r.push(n)}return r},"mergeArrayWithInherit"),ac=Lr((e,t)=>{const r={...e,...t};for(const n of sc){const i=e?.[n],c=t?.[n],f=ic(i,c);f===void 0?delete r[n]:r[n]=f}return r},"mergeTargetWithInherit");var cc=Object.defineProperty,Xe=m((e,t)=>cc(e,"name",{value:t,configurable:!0}),"o");const uc=Xe(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,n=[];if(Array.isArray(r))for(const[i,c]of r.entries())c&&typeof c=="object"&&(Object.hasOwn(c,"scope")&&n.push({location:`taskDefaults[${i}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(c,"targets")&&n.push({location:`taskDefaults[${i}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:n.length>0?n:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[r,n]of e.scopedTasks.entries())n&&typeof n=="object"&&(Object.hasOwn(n,"scope")&&t.push({location:`scopedTasks[${r}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(n,"targets")&&t.push({location:`scopedTasks[${r}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),lc=Xe(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),fc=Xe((e,t,r)=>{if(!r||typeof r!="object")return;const n=uc(r);if(n.length>0)throw new Ir(e,t,n)},"assertNoDeprecatedConfigKeys"),pc=Xe((e,t,r)=>{if(!r||typeof r!="object")return;const n=lc(r);if(n.length>0)throw new Ir(e,t,n)},"assertNoDeprecatedTaskKeys");var dc=Object.defineProperty,O=m((e,t)=>dc(e,"name",{value:t,configurable:!0}),"r");const Wr=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],gc=new Set(Wr),Ur=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],mc=new Set(Ur),zc=2880,ut={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},hc=O(e=>{if(!e)return{...ut};const t=ut.policies??{},r=e.policies??{},n={...t,...r};for(const i of Object.keys(t)){const c=t[i],f=r[i];c!==void 0&&f!==void 0&&(n[i]={...c,...f})}return{...ut,...e,policies:n}},"mergeSecurityDefaults"),er=O(e=>({...e,security:hc(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),yc=O(e=>{let t;try{t=rr(e)}catch{return}const r=new Set(t.filter(n=>gc.has(n)));for(const n of Wr)if(r.has(n))return A(e,n)},"findVisConfigFile"),bc=O(e=>{let t;try{t=rr(e)}catch{return}const r=new Set(t.filter(n=>mc.has(n)));for(const n of Ur)if(r.has(n))return A(e,n)},"findVisTaskConfigFile"),bt=O(e=>tr("sha256").update(go(e)).digest("hex"),"hashFileContents"),vc=O(e=>{const t=tr("sha256"),r=[...e].sort();for(const n of r)t.update(n),t.update(":"),t.update(bt(n)),t.update(`
19
- `);return t.digest("hex")},"hashConfigChain"),$c=O(e=>{const t=A(e,"node_modules");if(D(t)){const n=A(t,".cache","vis");return Ue(n),A(n,"vis-config-cache.json")}const r=Tr("vis",{create:!0,cwd:e});return r?A(r,"vis-config-cache.json"):void 0},"getConfigCachePath"),wc=O((e,t)=>{if(D(e))try{const r=ze(e);if(r.hash===t)return r.config}catch{}},"readConfigCache"),jc=O((e,t,r)=>{try{Ue(Ce(e)),Rr(e,{config:r,hash:t})}catch{}},"writeConfigCache"),xc=O(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),Oc=O((e,t,r)=>{if(sr(e))throw new ct(e,[...r,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const n=[];if(e.startsWith("./")||e.startsWith("../")){const i=Ce(t),c=A(i,e);if(n.push(c),D(c))return c;throw new ct(e,[...r,t],n)}try{return Se(t).resolve(e)}catch{throw n.push(`require.resolve("${e}") from ${t}`),new ct(e,[...r,t],n)}},"resolveExtendsSpecifier"),Vr=O(async(e,t,r)=>{const n=bt(t),i=t.slice(t.lastIndexOf(".")),c=A(Ce(t),`.vis-config-tmp-${n}${i}`);mo(t,c);let f;try{f=await e.import(c,{default:!0,try:!0})??{}}catch(d){throw new Qt(t,r,d)}finally{try{ho(c)}catch{}}try{return(typeof f=="function"?await f()??{}:f)??{}}catch(d){throw new Qt(t,r,d)}},"loadRawConfig"),kc=O((e,t)=>{const r={...e,...t};if(e.tasks||t.tasks){const n=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),i={};for(const c of n)i[c]=ac(e.tasks?.[c],t.tasks?.[c]);r.tasks=i}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 n=e.security?.policies??{},i=t.security?.policies??{},c={...n,...i};for(const f of Object.keys(n)){const d=n[f],v=i[f];d!==void 0&&v!==void 0&&(c[f]={...d,...v})}r.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:c}}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"),qr=O(async(e,t,r,n,i,c)=>{if(n.has(t))throw new Xa(t,r);if(!i.has(t)){n.add(t);try{const f=await Vr(e,t,r);fc(t,r,f);const d=xc(f.extends);for(const v of d){const w=Oc(v,t,r);await qr(e,w,[...r,t],n,i,c)}i.set(t,f),c.push(t)}finally{n.delete(t)}}},"resolveConfigChain"),Rc=O(async(e,t)=>{let r;if(t?.explicitConfigPath){const y=sr(t.explicitConfigPath)?t.explicitConfigPath:A(e,t.explicitConfigPath);if(!D(y))throw new Error(`Cannot find config file at ${y}`);r=y}else r=yc(e);if(!r)return er({});const n=ir(e,{fsCache:!1,moduleCache:!1}),i=new Set,c=new Map,f=[];await qr(n,r,[],i,c,f);const d=vc(f),v=$c(e);if(v){const y=wc(v,d);if(y)return y}let w={};for(const y of f)w=kc(w,c.get(y));const $=er(w);return v&&jc(v,d,$),$},"loadVisConfig"),Pc=O(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),Tc=O((e,t)=>{const r=A(e,"node_modules"),n=Pc(t);if(D(r)){const c=A(r,".cache","vis","task-configs");return Ue(c),A(c,`${n}.json`)}const i=Tr("vis",{create:!0,cwd:e});return i?A(i,"task-configs",`${n}.json`):void 0},"getVisTaskCachePath"),Ec=O((e,t)=>{if(D(e))try{const r=ze(e);if(r.hash===t)return r.config}catch{}},"readVisTaskCache"),Sc=O((e,t,r)=>{try{Ue(Ce(e)),Rr(e,{config:r,hash:t})}catch{}},"writeVisTaskCache"),Ic=O(async(e,t,r)=>{const n=bc(t);if(!n)return;const i=bt(n),c=Tc(e,r);if(c){const w=Ec(c,i);if(w)return w}const f=ir(t,{fsCache:!1,moduleCache:!1}),d=await Vr(f,n,[]);pc(n,[],d);const v=d;return c&&Sc(c,i,v),v},"loadVisTaskConfig"),Fc=O(e=>e,"defineTaskConfig"),Lc=O(e=>e,"defineConfig");export{Ma as B,Tr as D,bc as G,zc as H,Ze as M,Ur as V,Fc as a,Ue as b,Lc as c,Kt as d,Rc as e,Ve as f,$a as g,Wr as h,ac as i,yc as j,ut as l,er as m,ze as n,Ic as r,pa as s,Rr as w};
16
+ ${s.join(`
17
+ `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${l}
18
+ Chain: ${zc(n)}`,n)}}var Nc=Object.defineProperty,$o=v((e,t)=>Nc(e,"name",{value:t,configurable:!0}),"i$1");const En="@inherit",Bc=["aliases","dependsOn","inputs","outputs"],Rc=$o((e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(En))return[...t];const n=[];for(const s of t){if(s===En){e!==void 0&&n.push(...e);continue}n.push(s)}return n},"mergeArrayWithInherit"),Ic=$o((e,t)=>{const n={...e,...t};for(const s of Bc){const u=e?.[s],l=t?.[s],g=Rc(u,l);g===void 0?delete n[s]:n[s]=g}return n},"mergeTargetWithInherit");var Dc=Object.defineProperty,Pt=v((e,t)=>Dc(e,"name",{value:t,configurable:!0}),"o");const Fc=Pt(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:n}=e,s=[];if(Array.isArray(n))for(const[u,l]of n.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[n,s]of e.scopedTasks.entries())s&&typeof s=="object"&&(Object.hasOwn(s,"scope")&&t.push({location:`scopedTasks[${n}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(s,"targets")&&t.push({location:`scopedTasks[${n}].targets`,name:"targets",renamedTo:"tasks"}));return t},"detectDeprecatedConfigKeys"),Wc=Pt(e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],"detectDeprecatedTaskKeys"),Lc=Pt((e,t,n)=>{if(!n||typeof n!="object")return;const s=Fc(n);if(s.length>0)throw new bo(e,t,s)},"assertNoDeprecatedConfigKeys"),qc=Pt((e,t,n)=>{if(!n||typeof n!="object")return;const s=Wc(n);if(s.length>0)throw new bo(e,t,s)},"assertNoDeprecatedTaskKeys");var Uc=Object.defineProperty,T=v((e,t)=>Uc(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"],Vc=new Set(xo),wo=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],Zc=new Set(wo),gu=2880,Kr={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},Kc=T(e=>{if(!e)return{...Kr};const t=Kr.policies??{},n=e.policies??{},s={...t,...n};for(const u of Object.keys(t)){const l=t[u],g=n[u];l!==void 0&&g!==void 0&&(s[u]={...l,...g})}return{...Kr,...e,policies:s}},"mergeSecurityDefaults"),An=T(e=>({...e,security:Kc(e.security),update:{security:!0,target:"minor",...e.update}}),"applyDefaults"),Gc=T(e=>{let t;try{t=Sn(e)}catch{return}const n=new Set(t.filter(s=>Vc.has(s)));for(const s of xo)if(n.has(s))return q(e,s)},"findVisConfigFile"),Jc=T(e=>{let t;try{t=Sn(e)}catch{return}const n=new Set(t.filter(s=>Zc.has(s)));for(const s of wo)if(n.has(s))return q(e,s)},"findVisTaskConfigFile"),an=T(e=>Tn("sha256").update(Ao(e)).digest("hex"),"hashFileContents"),Hc=T(e=>{const t=Tn("sha256"),n=[...e].sort();for(const s of n)t.update(s),t.update(":"),t.update(an(s)),t.update(`
19
+ `);return t.digest("hex")},"hashConfigChain"),Xc=T(e=>{const t=q(e,"node_modules");if(J(t)){const s=q(t,".cache","vis");return bt(s),q(s,"vis-config-cache.json")}const n=so("vis",{create:!0,cwd:e});return n?q(n,"vis-config-cache.json"):void 0},"getConfigCachePath"),Yc=T((e,t)=>{if(J(e))try{const n=dt(e);if(n.hash===t)return n.config}catch{}},"readConfigCache"),Qc=T((e,t,n)=>{try{bt(at(e)),yo(e,{config:n,hash:t})}catch{}},"writeConfigCache"),eu=T(e=>e===void 0?[]:Array.isArray(e)?e:[e],"normalizeExtends"),tu=T((e,t,n)=>{if(_n(e))throw new Zr(e,[...n,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=at(t),l=q(u,e);if(s.push(l),J(l))return l;throw new Zr(e,[...n,t],s)}try{return it(t).resolve(e)}catch{throw s.push(`require.resolve("${e}") from ${t}`),new Zr(e,[...n,t],s)}},"resolveExtendsSpecifier"),jo=T(async(e,t,n)=>{const s=an(t),u=t.slice(t.lastIndexOf(".")),l=q(at(t),`.vis-config-tmp-${s}${u}`);To(t,l);let g;try{g=await e.import(l,{default:!0,try:!0})??{}}catch(h){throw new Pn(t,n,h)}finally{try{So(l)}catch{}}try{return(typeof g=="function"?await g()??{}:g)??{}}catch(h){throw new Pn(t,n,h)}},"loadRawConfig"),ru=T((e,t)=>{const n={...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]=Ic(e.tasks?.[l],t.tasks?.[l]);n.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(n.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(n.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(n.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const s=e.security?.policies??{},u=t.security?.policies??{},l={...s,...u};for(const g of Object.keys(s)){const h=s[g],x=u[g];h!==void 0&&x!==void 0&&(l[g]={...h,...x})}n.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:l}}return(e.update||t.update)&&(n.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(n.taskRunner={...e.taskRunner,...t.taskRunner}),delete n.extends,n},"mergeVisConfigs"),Oo=T(async(e,t,n,s,u,l)=>{if(s.has(t))throw new Ac(t,n);if(!u.has(t)){s.add(t);try{const g=await jo(e,t,n);Lc(t,n,g);const h=eu(g.extends);for(const x of h){const O=tu(x,t,n);await Oo(e,O,[...n,t],s,u,l)}u.set(t,g),l.push(t)}finally{s.delete(t)}}},"resolveConfigChain"),hu=T(async(e,t)=>{let n;if(t?.explicitConfigPath){const $=_n(t.explicitConfigPath)?t.explicitConfigPath:q(e,t.explicitConfigPath);if(!J($))throw new Error(`Cannot find config file at ${$}`);n=$}else n=Gc(e);if(!n)return An({});const s=zn(e,{fsCache:!1,moduleCache:!1}),u=new Set,l=new Map,g=[];await Oo(s,n,[],u,l,g);const h=Hc(g),x=Xc(e);if(x){const $=Yc(x,h);if($)return $}let O={};for(const $ of g)O=ru(O,l.get($));const j=An(O);return x&&Qc(x,h,j),j},"loadVisConfig"),nu=T(e=>e.replaceAll(/[^\w.-]+/g,"_"),"sanitizeProjectName"),ou=T((e,t)=>{const n=q(e,"node_modules"),s=nu(t);if(J(n)){const l=q(n,".cache","vis","task-configs");return bt(l),q(l,`${s}.json`)}const u=so("vis",{create:!0,cwd:e});return u?q(u,"task-configs",`${s}.json`):void 0},"getVisTaskCachePath"),su=T((e,t)=>{if(J(e))try{const n=dt(e);if(n.hash===t)return n.config}catch{}},"readVisTaskCache"),iu=T((e,t,n)=>{try{bt(at(e)),yo(e,{config:n,hash:t})}catch{}},"writeVisTaskCache"),mu=T(async(e,t,n)=>{const s=Jc(t);if(!s)return;const u=an(s),l=ou(e,n);if(l){const O=su(l,u);if(O)return O}const g=zn(t,{fsCache:!1,moduleCache:!1}),h=await jo(g,s,[]);qc(s,[],h);const x=h;return l&&iu(l,u,x),x},"loadVisTaskConfig"),yu=T(e=>e,"defineTaskConfig"),bu=T(e=>e,"defineConfig");export{fc as B,Jc as G,gu as H,Ot as M,wo as V,yu as a,so as b,bu as c,bt as d,hu as e,$n as f,vt as g,xo as h,Xa as i,Gc as j,Ic as k,Kr as l,An as m,dt as n,mu as r,qa as s,yo as w};