@visulima/vis 1.0.0-alpha.41 → 1.0.0-alpha.42

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 (199) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE.md +265 -35
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +2 -2
  5. package/dist/config/index.d.ts +1 -1
  6. package/dist/config/index.js +1 -1
  7. package/dist/packem_chunks/bloom-status.js +1 -1
  8. package/dist/packem_chunks/bloom-sync.js +1 -1
  9. package/dist/packem_chunks/cli-exec.js +1 -0
  10. package/dist/packem_chunks/{bin.js → cli-main.js} +282 -274
  11. package/dist/packem_chunks/config.js +8 -11
  12. package/dist/packem_chunks/devtools.js +1 -78
  13. package/dist/packem_chunks/dispatch.js +4 -0
  14. package/dist/packem_chunks/doctor-probe.js +1 -1
  15. package/dist/packem_chunks/fix.js +1 -1
  16. package/dist/packem_chunks/handler.js +1 -1
  17. package/dist/packem_chunks/handler10.js +1 -1
  18. package/dist/packem_chunks/handler11.js +1 -1
  19. package/dist/packem_chunks/handler12.js +1 -1
  20. package/dist/packem_chunks/handler13.js +3 -3
  21. package/dist/packem_chunks/handler14.js +1 -1
  22. package/dist/packem_chunks/handler15.js +1 -1
  23. package/dist/packem_chunks/handler16.js +1 -1
  24. package/dist/packem_chunks/handler17.js +1 -1
  25. package/dist/packem_chunks/handler18.js +1 -1
  26. package/dist/packem_chunks/handler19.js +1 -1
  27. package/dist/packem_chunks/handler2.js +1 -4
  28. package/dist/packem_chunks/handler20.js +1 -1
  29. package/dist/packem_chunks/handler21.js +1 -1
  30. package/dist/packem_chunks/handler22.js +2 -2
  31. package/dist/packem_chunks/handler23.js +5 -1
  32. package/dist/packem_chunks/handler24.js +1 -1
  33. package/dist/packem_chunks/handler25.js +1 -1
  34. package/dist/packem_chunks/handler26.js +1 -5
  35. package/dist/packem_chunks/handler27.js +5 -1
  36. package/dist/packem_chunks/handler28.js +1 -3
  37. package/dist/packem_chunks/handler29.js +3 -1
  38. package/dist/packem_chunks/handler3.js +1 -4
  39. package/dist/packem_chunks/handler30.js +1 -1
  40. package/dist/packem_chunks/handler31.js +1 -2
  41. package/dist/packem_chunks/handler32.js +2 -2
  42. package/dist/packem_chunks/handler33.js +2 -2
  43. package/dist/packem_chunks/handler34.js +2 -3
  44. package/dist/packem_chunks/handler35.js +3 -6
  45. package/dist/packem_chunks/handler36.js +6 -1
  46. package/dist/packem_chunks/handler37.js +1 -42
  47. package/dist/packem_chunks/handler38.js +42 -8
  48. package/dist/packem_chunks/handler39.js +8 -9
  49. package/dist/packem_chunks/handler4.js +4 -6
  50. package/dist/packem_chunks/handler40.js +9 -75
  51. package/dist/packem_chunks/handler41.js +75 -5
  52. package/dist/packem_chunks/handler42.js +5 -4
  53. package/dist/packem_chunks/handler43.js +4 -3
  54. package/dist/packem_chunks/handler44.js +3 -2
  55. package/dist/packem_chunks/handler45.js +2 -1
  56. package/dist/packem_chunks/handler46.js +1 -1
  57. package/dist/packem_chunks/handler47.js +1 -1
  58. package/dist/packem_chunks/handler48.js +1 -3
  59. package/dist/packem_chunks/handler49.js +3 -1
  60. package/dist/packem_chunks/handler5.js +4 -8
  61. package/dist/packem_chunks/handler50.js +1 -7
  62. package/dist/packem_chunks/handler51.js +6 -32
  63. package/dist/packem_chunks/handler52.js +33 -3
  64. package/dist/packem_chunks/handler53.js +3 -8
  65. package/dist/packem_chunks/handler54.js +6 -2
  66. package/dist/packem_chunks/handler55.js +4 -1
  67. package/dist/packem_chunks/handler56.js +1 -12
  68. package/dist/packem_chunks/handler57.js +11 -6
  69. package/dist/packem_chunks/handler58.js +3 -3
  70. package/dist/packem_chunks/handler59.js +5 -5
  71. package/dist/packem_chunks/handler6.js +6 -1
  72. package/dist/packem_chunks/handler60.js +2 -2
  73. package/dist/packem_chunks/handler61.js +1 -1
  74. package/dist/packem_chunks/handler62.js +4 -4
  75. package/dist/packem_chunks/handler63.js +3 -3
  76. package/dist/packem_chunks/handler64.js +4 -4
  77. package/dist/packem_chunks/handler65.js +9 -708
  78. package/dist/packem_chunks/handler66.js +6 -6
  79. package/dist/packem_chunks/handler67.js +4 -4
  80. package/dist/packem_chunks/handler68.js +1 -1
  81. package/dist/packem_chunks/handler69.js +5 -5
  82. package/dist/packem_chunks/handler7.js +8 -1
  83. package/dist/packem_chunks/handler70.js +6 -6
  84. package/dist/packem_chunks/handler71.js +9 -9
  85. package/dist/packem_chunks/handler72.js +708 -48
  86. package/dist/packem_chunks/handler73.js +48 -27
  87. package/dist/packem_chunks/handler74.js +27 -3
  88. package/dist/packem_chunks/handler75.js +3 -190
  89. package/dist/packem_chunks/handler76.js +189 -37
  90. package/dist/packem_chunks/handler77.js +38 -0
  91. package/dist/packem_chunks/handler8.js +1 -1
  92. package/dist/packem_chunks/handler9.js +1 -1
  93. package/dist/packem_chunks/heal-accept.js +1 -1
  94. package/dist/packem_chunks/heal.js +1 -1
  95. package/dist/packem_chunks/help-command.js +4 -4
  96. package/dist/packem_chunks/index2.js +1 -1
  97. package/dist/packem_chunks/index3.js +135 -0
  98. package/dist/packem_chunks/index4.js +74 -0
  99. package/dist/packem_chunks/keys-refresh.js +1 -1
  100. package/dist/packem_chunks/lean.js +4 -0
  101. package/dist/packem_chunks/list.js +1 -1
  102. package/dist/packem_chunks/loader.js +1 -1
  103. package/dist/packem_chunks/loader2.js +1 -1
  104. package/dist/packem_chunks/orchestrator.js +3 -3
  105. package/dist/packem_chunks/prompts.js +1 -1
  106. package/dist/packem_chunks/prune.js +1 -1
  107. package/dist/packem_chunks/registry.js +2 -2
  108. package/dist/packem_chunks/run.js +1 -1
  109. package/dist/packem_chunks/shell-runner.js +1 -1
  110. package/dist/packem_chunks/status.js +1 -1
  111. package/dist/packem_chunks/sync.js +1 -1
  112. package/dist/packem_chunks/sync2.js +1 -1
  113. package/dist/packem_chunks/tar.js +1 -1
  114. package/dist/packem_chunks/tripwire.js +1 -1
  115. package/dist/packem_chunks/ts-loader.js +2 -0
  116. package/dist/packem_chunks/verify-lockfile.js +1 -1
  117. package/dist/packem_chunks/version-resolver.js +2 -2
  118. package/dist/packem_shared/CONFIG_FILES-MsOntfYT.js +1 -0
  119. package/dist/packem_shared/{Table-CcVkyULl-B_ef6zfS.js → Table-CcVkyULl-DLWu6XHL.js} +25 -26
  120. package/dist/packem_shared/{advisories-DLeO5KMN.js → advisories-aiDtubZQ.js} +1 -1
  121. package/dist/packem_shared/{affected-shas-cVnX8-zs.js → affected-shas-C1XuRlvo.js} +1 -1
  122. package/dist/packem_shared/{ai-analysis-BUeX2J2H.js → ai-analysis-CubpCxZJ.js} +4 -4
  123. package/dist/packem_shared/{ai-fix-9Vzlp6XU.js → ai-fix-Btd5AnSr.js} +2 -2
  124. package/dist/packem_shared/augment-8fIWWGSc.js +3 -0
  125. package/dist/packem_shared/bin-CnDBuLh3.js +2 -0
  126. package/dist/packem_shared/build-scripts-Doxce2VM.js +1 -0
  127. package/dist/packem_shared/command-runtime-RiCMa2C8.js +1 -0
  128. package/dist/packem_shared/compile-cache-B_Vf_WxT.js +3 -0
  129. package/dist/packem_shared/{cyclonedx-Cadls41z.js → cyclonedx-NUJ9R2GQ.js} +1 -1
  130. package/dist/packem_shared/dependency-scan-B0HV_qeB.js +1 -0
  131. package/dist/packem_shared/{docker-BMLrNtWm.js → docker-DKlF-gk3.js} +1 -1
  132. package/dist/packem_shared/failure-log-C7r6UZLP.js +2 -0
  133. package/dist/packem_shared/{giget-DHY1sQZC.js → giget-DVTFJlbR.js} +2 -2
  134. package/dist/packem_shared/glob-fqg4KepW-7Bs2kZuM.js +1 -0
  135. package/dist/packem_shared/index-BKFEWXU_.js +1 -0
  136. package/dist/packem_shared/index-CPhv-r4c.js +28 -0
  137. package/dist/packem_shared/{index-DGSsjmpV.js → index-Cb4x6lWY.js} +1 -1
  138. package/dist/packem_shared/index-DjTWo3sH.js +1 -0
  139. package/dist/packem_shared/{index-BDmTbWX1.js → index-OQZQyN5R.js} +1 -1
  140. package/dist/packem_shared/index.server-J83sowC4.js +2 -0
  141. package/dist/packem_shared/{lifecycle-4z9hHE5b.js → lifecycle-D5roTh0a.js} +2 -2
  142. package/dist/packem_shared/{lockfile-C8Q1_4KK.js → lockfile-DIGyLfmF.js} +1 -1
  143. package/dist/packem_shared/main-B3juSU5z.js +1 -0
  144. package/dist/packem_shared/manifests-pLwnVmCN.js +1 -0
  145. package/dist/packem_shared/{min-release-age-D1alDE3K.js → min-release-age-pUAqTiv3.js} +3 -3
  146. package/dist/packem_shared/missing-package-json-DhYzuKhD.js +1 -0
  147. package/dist/packem_shared/{native-config-sync-BEkJW7g3.js → native-config-sync-4K9wWTj5.js} +1 -1
  148. package/dist/packem_shared/{osv-bloom-B03tUWf3.js → osv-bloom-OuTfu_LE.js} +1 -1
  149. package/dist/packem_shared/{pm-runner-BKZQo7Ts.js → pm-runner-Dws_Bw1y.js} +1 -1
  150. package/dist/packem_shared/provenance-C0P-UYOM.js +1 -0
  151. package/dist/packem_shared/readJsonSync-CvkZyKmL-CY7PZob_.js +4 -0
  152. package/dist/packem_shared/registry-keys-D4chF-Wj.js +1 -0
  153. package/dist/packem_shared/{resolve-explicit-C6WM-I2u.js → resolve-explicit-Cgheka3B.js} +3 -3
  154. package/dist/packem_shared/resolve-runtime-CJSWV-K8.js +1 -0
  155. package/dist/packem_shared/run-file-B4TqKa0X.js +1 -0
  156. package/dist/packem_shared/runtime-check-0lUJvgKt.js +1 -0
  157. package/dist/packem_shared/runtime-process-Dmz0vCJy-DUwTvH1J.js +1 -0
  158. package/dist/packem_shared/s1ngularity-Du1NnSFP.js +1 -0
  159. package/dist/packem_shared/scan-progress-CN9ONR0y.js +2 -0
  160. package/dist/packem_shared/{selectors-GCJIe342.js → selectors-UmnAuc26.js} +1 -1
  161. package/dist/packem_shared/{signatures-Xpd6HjG_.js → signatures-BOUhghTv.js} +1 -1
  162. package/dist/packem_shared/{spinner-CV3WVJLv.js → spinner-lhXugSx3.js} +1 -1
  163. package/dist/packem_shared/tabs-DTiU3usb.js +1 -0
  164. package/dist/packem_shared/target-options-ChWcK60i.js +1 -0
  165. package/dist/packem_shared/toolchain-DyCKnGch.js +5 -0
  166. package/dist/packem_shared/typosquats-DBOvXwph.js +1 -0
  167. package/dist/packem_shared/use-measured-height-CK2Co3XI.js +1 -0
  168. package/dist/packem_shared/verify-CVPYlUrF.js +1 -0
  169. package/dist/packem_shared/vis-update-app-DtHkwBca.js +1 -0
  170. package/dist/packem_shared/watch-Bkp_AAbc.js +1 -0
  171. package/dist/packem_shared/watch-loop-D9zbXzRd.js +11 -0
  172. package/dist/runtime/preload.d.ts +1 -0
  173. package/dist/runtime/preload.js +1 -0
  174. package/index.d.ts +215 -201
  175. package/index.js +28 -27
  176. package/package.json +17 -26
  177. package/dist/packem_shared/CONFIG_FILES-BfaR0jKT.js +0 -1
  178. package/dist/packem_shared/build-scripts-CCCi8U66.js +0 -1
  179. package/dist/packem_shared/command-runtime-CR70qSUM.js +0 -1
  180. package/dist/packem_shared/dependency-scan-DnTgYleU.js +0 -1
  181. package/dist/packem_shared/failure-log-CEWP3bP0.js +0 -2
  182. package/dist/packem_shared/glob-fqg4KepW-B7EjLRvw.js +0 -1
  183. package/dist/packem_shared/index-3jMNqQom.js +0 -1
  184. package/dist/packem_shared/index-Bt521H5J.js +0 -30
  185. package/dist/packem_shared/manifests-Dj3pRKBT.js +0 -1
  186. package/dist/packem_shared/missing-package-json-8vNHwbqw.js +0 -1
  187. package/dist/packem_shared/provenance-BFEwKgI3.js +0 -1
  188. package/dist/packem_shared/registry-keys-BfFto6vI.js +0 -1
  189. package/dist/packem_shared/runtime-check-Stc9AI78.js +0 -1
  190. package/dist/packem_shared/s1ngularity-DCPmPE5M.js +0 -1
  191. package/dist/packem_shared/scan-progress-CFhc0CMj.js +0 -2
  192. package/dist/packem_shared/tabs-BuTy5gPV.js +0 -1
  193. package/dist/packem_shared/toolchain-pR7AJ-tB.js +0 -5
  194. package/dist/packem_shared/typosquats-DN78xx1x.js +0 -1
  195. package/dist/packem_shared/use-measured-height-_eVGWtWt.js +0 -1
  196. package/dist/packem_shared/verify-6WCmFmy8.js +0 -1
  197. package/dist/packem_shared/vis-update-app-k3fDxech.js +0 -1
  198. package/dist/packem_shared/watch-BvIwLG4N.js +0 -1
  199. package/dist/packem_shared/watch-loop-DWkvv2tK.js +0 -11
@@ -1,21 +1,18 @@
1
- import{createRequire as Ho}from"node:module";import{d as Do,U as Go,v as jo,L as Po,m as ee,A as uo,f as ye,a as lt,H as ct,O as io}from"../packem_shared/index-BDmTbWX1.js";import{createJiti as ao}from"jiti";import"../packem_shared/otelPlugin-DmKDBaPo.js";import"../packem_shared/definePlugin-DoUcoYSy.js";const Lo=Ho(import.meta.url),Ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wt=e=>{if(typeof Ae<"u"&&Ae.versions&&Ae.versions.node){const[t,o]=Ae.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ae.getBuiltinModule(e)}return Lo(e)},{createHash:so}=wt("node:crypto"),{readdirSync:ro,copyFileSync:Bo,unlinkSync:Mo,readFileSync:Io}=wt("node:fs"),{createRequire:no}=wt("node:module");class Uo extends Error{fileName;codeFrame;name="JSONError";#e;constructor(t){super(),this.#e=t}get message(){return`${this.#e}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
2
-
3
- ${this.codeFrame}
4
- `:""}`}set message(t){this.#e=t}}const Fo=e=>String.raw`\u{${e.codePointAt(0).toString(16)}}`,Ko=(e,t,o)=>Go(e,{start:t},{tabWidth:!1,...o}),zo=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Xo=(e,t)=>{const o=zo.exec(t);if(!o)return;const[,r,u,s]=o;if(u&&s)return{column:Number(s),line:Number(u)};let n=Number(r);return n===e.length&&(n=e.length-1),Do(e,n)},Wo=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,qo=e=>e.replace(Wo,(t,o,r)=>`"${r}"(${Fo(r)})`);function Qo(e,t,o,r){let u;try{return JSON.parse(e,t)}catch(c){u=c.message}let s;e?(s=Xo(e,u),u=qo(u)):u+=" while parsing empty string";const n=new Uo(u);throw n.fileName=o,s&&(n.codeFrame=Ko(e,s,r)),n}function lo(e,t,o){const r=jo(e,{buffer:!0,encoding:void 0});let u=new TextDecoder().decode(r);const{beforeParse:s,color:n}={};return typeof s=="function"&&(u=s(u)),Qo(u,t,Po(e),{color:n})}const Mt="@inherit",Zo=["aliases","dependsOn","inputs","outputs"],Vo=(e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Mt))return[...t];const o=[];for(const r of t){if(r===Mt){e!==void 0&&o.push(...e);continue}o.push(r)}return o},Yo=(e,t)=>{const o={...e,...t};for(const r of Zo){const u=e?.[r],s=t?.[r],n=Vo(u,s);n===void 0?delete o[r]:o[r]=n}return o},Jo=no(import.meta.url),me=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,co=e=>{if(typeof me<"u"&&me.versions&&me.versions.node){const[t,o]=me.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return me.getBuiltinModule(e)}return Jo(e)},{homedir:es,tmpdir:gt}=co("node:os"),{env:rt,cwd:ts,platform:It}=me,{createRequire:w}=co("node:module"),os=0,po=2,ss=Symbol("findUpStop"),rs=/^[A-Z]:\//i,ve=(e="")=>e&&e.replaceAll("\\","/").replace(rs,t=>t.toUpperCase()),ns=/^[/\\]{2}/,us=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,fo=/^[A-Z]:$/i,is=/.(\.[^./]+)$/,as=/^[/\\]|^[a-z]:[/\\]/i,ls=/\/$/,cs=()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",dt="/",ho=(e,t)=>{let o="",r=0,u=-1,s=0,n;for(let c=0;c<=e.length;++c){if(c<e.length)n=e[c];else{if(n==="/")break;n="/"}if(n==="/"){if(!(u===c-1||s===1))if(s===2){if(o.length<2||r!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const f=o.lastIndexOf("/");f===-1?(o="",r=0):(o=o.slice(0,f),r=o.length-1-o.lastIndexOf("/")),u=c,s=0;continue}else if(o.length>0){o="",r=0,u=c,s=0;continue}}t&&(o+=o.length>0?"/..":"..",r=2)}else o.length>0?o+=`/${e.slice(u+1,c)}`:o=e.slice(u+1,c),r=c-u-1;u=c,s=0}else n==="."&&s!==-1?++s:s=-1}return o},be=e=>us.test(e),go=function(e){if(e.length===0)return".";e=ve(e);const t=ns.exec(e),o=be(e),r=e.at(-1)==="/";return e=ho(e,!o),e.length===0?o?"/":r?"./":".":(r&&(e+="/"),fo.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!be(e)?`/${e}`:e)},se=(...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const r=t.at(-1)==="/",u=o[0]==="/";r&&u?t+=o.slice(1):t+=r||u?o:`/${o}`}else t+=o;return go(t)},bt=function(...e){e=e.map(r=>ve(r));let t="",o=!1;for(let r=e.length-1;r>=-1&&!o;r--){const u=r>=0?e[r]:cs();!u||u.length===0||(t=`${u}/${t}`,o=be(u))}return t=ho(t,!o),o&&!be(t)?`/${t}`:t.length>0?t:"."},ps=function(e){return is.exec(ve(e))?.[1]??""},Ot=e=>{const t=ve(e).replace(ls,""),o=t.lastIndexOf("/");if(o===-1)return be(e)?"/":".";const r=t.slice(0,o);return fo.test(r)?`${r}/`:r||(be(e)?"/":".")},fs=(e,t)=>{const o=ve(e);return o.slice(o.lastIndexOf("/")+1)},hs=function(e){const t=as.exec(e)?.[0]?.replaceAll("\\","/")??"",o=fs(e),r=ps(o);return{base:o,dir:Ot(e),ext:r,name:o.slice(0,o.length-r.length),root:t}},gs=w(import.meta.url),Re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ds=e=>{if(typeof Re<"u"&&Re.versions&&Re.versions.node){const[t,o]=Re.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Re.getBuiltinModule(e)}return gs(e)},{fileURLToPath:bs}=ds("node:url");function ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dt,Gt;function ys(){return Gt||(Gt=1,Dt=["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"]),Dt}var vs=ys();const As=ms(vs);new Set(As);const at=e=>ve(e instanceof URL?bs(e):e),bo=e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},Rs=w(import.meta.url),Ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Es=e=>{if(typeof Ee<"u"&&Ee.versions&&Ee.versions.node){const[t,o]=Ee.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ee.getBuiltinModule(e)}return Rs(e)};Es("node:fs/promises");const Ts=w(import.meta.url),Te=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xs=e=>{if(typeof Te<"u"&&Te.versions&&Te.versions.node){const[t,o]=Te.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Te.getBuiltinModule(e)}return Ts(e)};xs("node:fs");const jt=e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},_s=w(import.meta.url),xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$s=e=>{if(typeof xe<"u"&&xe.versions&&xe.versions.node){const[t,o]=xe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xe.getBuiltinModule(e)}return _s(e)};$s("node:fs/promises");const ks=w(import.meta.url),_e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Cs=e=>{if(typeof _e<"u"&&_e.versions&&_e.versions.node){const[t,o]=_e.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return _e.getBuiltinModule(e)}return ks(e)},{lstatSync:Pt,mkdirSync:Ss}=Cs("node:fs"),$e=e=>{bo(e);try{const t=Pt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(jt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{Ss(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Pt(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(jt(o))}'`,{cause:t})}},ws=w(import.meta.url),ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Os=e=>{if(typeof ke<"u"&&ke.versions&&ke.versions.node){const[t,o]=ke.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ke.getBuiltinModule(e)}return ws(e)};Os("node:fs/promises");const Ns=w(import.meta.url),Ce=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Hs=e=>{if(typeof Ce<"u"&&Ce.versions&&Ce.versions.node){const[t,o]=Ce.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ce.getBuiltinModule(e)}return Ns(e)};Hs("node:fs");const Ls=w(import.meta.url),Se=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bs=e=>{if(typeof Se<"u"&&Se.versions&&Se.versions.node){const[t,o]=Se.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Se.getBuiltinModule(e)}return Ls(e)};Bs("node:fs/promises");const Ms=w(import.meta.url),we=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Is=e=>{if(typeof we<"u"&&we.versions&&we.versions.node){const[t,o]=we.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return we.getBuiltinModule(e)}return Ms(e)};Is("node:fs");const Ds=w(import.meta.url),Oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gs=e=>{if(typeof Oe<"u"&&Oe.versions&&Oe.versions.node){const[t,o]=Oe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Oe.getBuiltinModule(e)}return Ds(e)};Gs("node:fs/promises");const js=w(import.meta.url),Ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ps=e=>{if(typeof Ne<"u"&&Ne.versions&&Ne.versions.node){const[t,o]=Ne.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ne.getBuiltinModule(e)}return js(e)};Ps("node:fs");w(import.meta.url);const Us=w(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fs=e=>{if(typeof He<"u"&&He.versions&&He.versions.node){const[t,o]=He.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return He.getBuiltinModule(e)}return Us(e)};Fs("node:fs/promises");const Ks=w(import.meta.url),Le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,zs=e=>{if(typeof Le<"u"&&Le.versions&&Le.versions.node){const[t,o]=Le.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Le.getBuiltinModule(e)}return Ks(e)};zs("node:fs");const Xs=w(import.meta.url),Be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ws=e=>{if(typeof Be<"u"&&Be.versions&&Be.versions.node){const[t,o]=Be.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Be.getBuiltinModule(e)}return Xs(e)};Ws("node:fs/promises");const qs=w(import.meta.url),Me=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qs=e=>{if(typeof Me<"u"&&Me.versions&&Me.versions.node){const[t,o]=Me.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Me.getBuiltinModule(e)}return qs(e)},{statSync:Zs,lstatSync:Vs}=Qs("node:fs"),Ys=(e,t={})=>{const o=t.cwd?at(t.cwd):process.cwd();let r=bt(o);const{root:u}=hs(r),s=at(t.stopAt??u),n=bt(r,s),c=t.type??"file",f=function(h){return[e]};t.allowSymlinks??=!0;const R=t.allowSymlinks?Zs:Vs;for(;r&&r!==n&&r!==u;){for(let h of f()){if(h===ss)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=at(h));const A=be(h)?h:bt(r,h);try{const $=R(A);if(c==="file"&&$.isFile()||c==="directory"&&$.isDirectory())return A}catch{}}r=Ot(r)}};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut={},mt,Ft;function pt(){if(Ft)return mt;Ft=1;const e="[^\\\\/]",t=Symbol("unignore"),o="\\.",r="\\+",u="\\?",s="\\/",n="(?=.)",c="[^/]",f=`(?:${s}|$)`,R=`(?:^|${s})`,h=`${o}{1,2}${f}`,A=`(?!${o})`,$=`(?!${R}${h})`,x=`(?!${o}{0,1}${f})`,B=`(?!${h})`,oe=`[^.${s}]`,Q=`${c}*?`,z="/",d={DOT_LITERAL:o,PLUS_LITERAL:r,QMARK_LITERAL:u,SLASH_LITERAL:s,ONE_CHAR:n,QMARK:c,END_ANCHOR:f,DOTS_SLASH:h,NO_DOT:A,NO_DOTS:$,NO_DOT_SLASH:x,NO_DOTS_SLASH:B,QMARK_NO_DOT:oe,STAR:Q,START_ANCHOR:R,SEP:z},m={...d,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${o}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[\\\\/])${o}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},i={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return mt={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:i,UNIGNORE:t,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(y){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${y.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(y){return y===!0?m:d}},mt}var Kt;function ft(){return Kt||(Kt=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:u}=pt();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>r.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(u,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const s=navigator.platform.toLowerCase();return s==="win32"||s==="windows"}return process.platform?process.platform==="win32":!1},e.removeBackslashes=s=>s.replace(o,n=>n==="\\"?"":n),e.escapeLast=(s,n,c)=>{const f=s.lastIndexOf(n,c);return f===-1?s:s[f-1]==="\\"?e.escapeLast(s,n,f-1):`${s.slice(0,f)}\\${s.slice(f)}`},e.removePrefix=(s,n={})=>{let c=s;return c.startsWith("./")&&(c=c.slice(2),n.prefix="./"),c},e.wrapOutput=(s,n={},c={})=>{const f=c.contains?"":"^",R=c.contains?"":"$";let h=`${f}(?:${s})${R}`;return n.negated===!0&&(h=`(?:^(?!${h}).*$)`),h},e.basename=(s,{windows:n}={})=>{const c=s.split(n?/[\\/]/:"/"),f=c[c.length-1];return f===""?c[c.length-2]:f}})(Ut)),Ut}var yt,zt;function Js(){if(zt)return yt;zt=1;const e=ft(),{CHAR_ASTERISK:t,CHAR_AT:o,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:u,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:n,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:R,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:A,CHAR_QUESTION_MARK:$,CHAR_RIGHT_CURLY_BRACE:x,CHAR_RIGHT_PARENTHESES:B,CHAR_RIGHT_SQUARE_BRACKET:oe}=pt(),Q=d=>d===c||d===r,z=d=>{d.isPrefix!==!0&&(d.depth=d.isGlobstar?1/0:1)};return yt=(d,m)=>{const i=m||{},y=d.length-1,E=i.parts===!0||i.scanToEnd===!0,T=[],v=[],O=[];let X=d,Z=-1,P=0,re=0,W=!1,ne=!1,I=!1,ce=!1,ge=!1,ue=!1,L=!1,ie=!1,de=!1,q=!1,K=0,Y,_,S={value:"",depth:0,isGlob:!1};const p=()=>Z>=y,V=()=>X.charCodeAt(Z+1),U=()=>(Y=_,X.charCodeAt(++Z));for(;Z<y;){_=U();let N;if(_===r){L=S.backslashes=!0,_=U(),_===f&&(ue=!0);continue}if(ue===!0||_===f){for(K++;p()!==!0&&(_=U());){if(_===r){L=S.backslashes=!0,U();continue}if(_===f){K++;continue}if(ue!==!0&&_===s&&(_=U())===s){if(W=S.isBrace=!0,I=S.isGlob=!0,q=!0,E===!0)continue;break}if(ue!==!0&&_===u){if(W=S.isBrace=!0,I=S.isGlob=!0,q=!0,E===!0)continue;break}if(_===x&&(K--,K===0)){ue=!1,W=S.isBrace=!0,q=!0;break}}if(E===!0)continue;break}if(_===c){if(T.push(Z),v.push(S),S={value:"",depth:0,isGlob:!1},q===!0)continue;if(Y===s&&Z===P+1){P+=2;continue}re=Z+1;continue}if(i.noext!==!0&&(_===A||_===o||_===t||_===$||_===n)&&V()===R){if(I=S.isGlob=!0,ce=S.isExtglob=!0,q=!0,_===n&&Z===P&&(de=!0),E===!0){for(;p()!==!0&&(_=U());){if(_===r){L=S.backslashes=!0,_=U();continue}if(_===B){I=S.isGlob=!0,q=!0;break}}continue}break}if(_===t){if(Y===t&&(ge=S.isGlobstar=!0),I=S.isGlob=!0,q=!0,E===!0)continue;break}if(_===$){if(I=S.isGlob=!0,q=!0,E===!0)continue;break}if(_===h){for(;p()!==!0&&(N=U());){if(N===r){L=S.backslashes=!0,U();continue}if(N===oe){ne=S.isBracket=!0,I=S.isGlob=!0,q=!0;break}}if(E===!0)continue;break}if(i.nonegate!==!0&&_===n&&Z===P){ie=S.negated=!0,P++;continue}if(i.noparen!==!0&&_===R){if(I=S.isGlob=!0,E===!0){for(;p()!==!0&&(_=U());){if(_===R){L=S.backslashes=!0,_=U();continue}if(_===B){q=!0;break}}continue}break}if(I===!0){if(q=!0,E===!0)continue;break}}i.noext===!0&&(ce=!1,I=!1);let j=X,a="",l="";P>0&&(a=X.slice(0,P),X=X.slice(P),re-=P),j&&I===!0&&re>0?(j=X.slice(0,re),l=X.slice(re)):I===!0?(j="",l=X):j=X,j&&j!==""&&j!=="/"&&j!==X&&Q(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),i.unescape===!0&&(l&&(l=e.removeBackslashes(l)),j&&L===!0&&(j=e.removeBackslashes(j)));const te={prefix:a,input:d,start:P,base:j,glob:l,isBrace:W,isBracket:ne,isGlob:I,isExtglob:ce,isGlobstar:ge,negated:ie,negatedExtglob:de};if(i.tokens===!0&&(te.maxDepth=0,Q(_)||v.push(S),te.tokens=v),i.parts===!0||i.tokens===!0){let N;for(let D=0;D<T.length;D++){const pe=N?N+1:P,J=T[D],fe=d.slice(pe,J);i.tokens&&(D===0&&P!==0?(v[D].isPrefix=!0,v[D].value=a):v[D].value=fe,z(v[D]),te.maxDepth+=v[D].depth),(D!==0||fe!=="")&&O.push(fe),N=J}if(N&&N+1<d.length){const D=d.slice(N+1);O.push(D),i.tokens&&(v[v.length-1].value=D,z(v[v.length-1]),te.maxDepth+=v[v.length-1].depth)}te.slashes=T,te.parts=O}return te},yt}var vt,Xt;function er(){if(Xt)return vt;Xt=1;const e=pt(),t=ft(),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:n}=e,c=(d,m)=>typeof m.expandRange=="function"?m.expandRange(...d,m):(d.sort(),`[${d.join("-")}]`),f=(d,m)=>`Missing ${d}: "${m}" - use "\\\\${m}" to match literal characters`,R=d=>{const m=[];let i=0,y=0,E=0,T="",v=!1;for(const O of d){if(v===!0){T+=O,v=!1;continue}if(O==="\\"){T+=O,v=!0;continue}if(O==='"'){E=E===1?0:1,T+=O;continue}if(E===0){if(O==="[")i++;else if(O==="]"&&i>0)i--;else if(i===0){if(O==="(")y++;else if(O===")"&&y>0)y--;else if(O==="|"&&y===0){m.push(T),T="";continue}}}T+=O}return m.push(T),m},h=d=>{let m=!1;for(const i of d){if(m===!0){m=!1;continue}if(i==="\\"){m=!0;continue}if(/[?*+@!()[\]{}]/.test(i))return!1}return!0},A=d=>{let m=d.trim(),i=!0;for(;i===!0;)i=!1,/^@\([^\\()[\]{}|]+\)$/.test(m)&&(m=m.slice(2,-1),i=!0);if(h(m))return m.replace(/\\(.)/g,"$1")},$=d=>{const m=d.map(A).filter(Boolean);for(let i=0;i<m.length;i++)for(let y=i+1;y<m.length;y++){const E=m[i],T=m[y],v=E[0];if(!(!v||E!==v.repeat(E.length)||T!==v.repeat(T.length))&&(E===T||E.startsWith(T)||T.startsWith(E)))return!0}return!1},x=(d,m=!0)=>{if(d[0]!=="+"&&d[0]!=="*"||d[1]!=="(")return;let i=0,y=0,E=0,T=!1;for(let v=1;v<d.length;v++){const O=d[v];if(T===!0){T=!1;continue}if(O==="\\"){T=!0;continue}if(O==='"'){E=E===1?0:1;continue}if(E!==1){if(O==="["){i++;continue}if(O==="]"&&i>0){i--;continue}if(!(i>0)){if(O==="("){y++;continue}if(O===")"&&(y--,y===0))return m===!0&&v!==d.length-1?void 0:{type:d[0],body:d.slice(2,v),end:v}}}}},B=d=>{let m=0;const i=[];for(;m<d.length;){const y=x(d.slice(m),!1);if(!y||y.type!=="*")return;const E=R(y.body).map(v=>v.trim());if(E.length!==1)return;const T=A(E[0]);if(!T||T.length!==1)return;i.push(T),m+=y.end+1}return i.length<1?void 0:`${i.length===1?t.escapeRegex(i[0]):`[${i.map(y=>t.escapeRegex(y)).join("")}]`}*`},oe=d=>{let m=0,i=d.trim(),y=x(i);for(;y;)m++,i=y.body.trim(),y=x(i);return m},Q=(d,m)=>{if(m.maxExtglobRecursion===!1)return{risky:!1};const i=typeof m.maxExtglobRecursion=="number"?m.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,y=R(d).map(E=>E.trim());if(y.length>1&&(y.some(E=>E==="")||y.some(E=>/^[*?]+$/.test(E))||$(y)))return{risky:!0};for(const E of y){const T=B(E);if(T)return{risky:!0,safeOutput:T};if(oe(E)>i)return{risky:!0}}return{risky:!1}},z=(d,m)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=n[d]||d;const i={...m},y=typeof i.maxLength=="number"?Math.min(o,i.maxLength):o;let E=d.length;if(E>y)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${y}`);const T={type:"bos",value:"",output:i.prepend||""},v=[T],O=i.capture?"":"?:",X=e.globChars(i.windows),Z=e.extglobChars(X),{DOT_LITERAL:P,PLUS_LITERAL:re,SLASH_LITERAL:W,ONE_CHAR:ne,DOTS_SLASH:I,NO_DOT:ce,NO_DOT_SLASH:ge,NO_DOTS_SLASH:ue,QMARK:L,QMARK_NO_DOT:ie,STAR:de,START_ANCHOR:q}=X,K=b=>`(${O}(?:(?!${q}${b.dot?I:P}).)*?)`,Y=i.dot?"":ce,_=i.dot?L:ie;let S=i.bash===!0?K(i):de;i.capture&&(S=`(${S})`),typeof i.noext=="boolean"&&(i.noextglob=i.noext);const p={input:d,index:-1,start:0,dot:i.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};d=t.removePrefix(d,p),E=d.length;const V=[],U=[],j=[];let a=T,l;const te=()=>p.index===E-1,N=p.peek=(b=1)=>d[p.index+b],D=p.advance=()=>d[++p.index]||"",pe=()=>d.slice(p.index+1),J=(b="",M=0)=>{p.consumed+=b,p.index+=M},fe=b=>{p.output+=b.output!=null?b.output:b.value,J(b.value)},Oo=()=>{let b=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)D(),p.start++,b++;return b%2===0?!1:(p.negated=!0,p.start++,!0)},ut=b=>{p[b]++,j.push(b)},he=b=>{p[b]--,j.pop()},k=b=>{if(a.type==="globstar"){const M=p.braces>0&&(b.type==="comma"||b.type==="brace"),g=b.extglob===!0||V.length&&(b.type==="pipe"||b.type==="paren");b.type!=="slash"&&b.type!=="paren"&&!M&&!g&&(p.output=p.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=S,p.output+=a.output)}if(V.length&&b.type!=="paren"&&(V[V.length-1].inner+=b.value),(b.value||b.output)&&fe(b),a&&a.type==="text"&&b.type==="text"){a.output=(a.output||a.value)+b.value,a.value+=b.value;return}b.prev=a,v.push(b),a=b},it=(b,M)=>{const g={...Z[M],conditions:1,inner:""};g.prev=a,g.parens=p.parens,g.output=p.output,g.startIndex=p.index,g.tokensIndex=v.length;const C=(i.capture?"(":"")+g.open;ut("parens"),k({type:b,value:M,output:p.output?"":ne}),k({type:"paren",extglob:!0,value:D(),output:C}),V.push(g)},No=b=>{const M=d.slice(b.startIndex,p.index+1),g=d.slice(b.startIndex+2,p.index),C=Q(g,i);if((b.type==="plus"||b.type==="star")&&C.risky){const H=C.safeOutput?(b.output?"":ne)+(i.capture?`(${C.safeOutput})`:C.safeOutput):void 0,ae=v[b.tokensIndex];ae.type="text",ae.value=M,ae.output=H||t.escapeRegex(M);for(let le=b.tokensIndex+1;le<v.length;le++)v[le].value="",v[le].output="",delete v[le].suffix;p.output=b.output+ae.output,p.backtrack=!0,k({type:"paren",extglob:!0,value:l,output:""}),he("parens");return}let G=b.close+(i.capture?")":""),F;if(b.type==="negate"){let H=S;if(b.inner&&b.inner.length>1&&b.inner.includes("/")&&(H=K(i)),(H!==S||te()||/^\)+$/.test(pe()))&&(G=b.close=`)$))${H}`),b.inner.includes("*")&&(F=pe())&&/^\.[^\\/.]+$/.test(F)){const ae=z(F,{...m,fastpaths:!1}).output;G=b.close=`)${ae})${H})`}b.prev.type==="bos"&&(p.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:l,output:G}),he("parens")};if(i.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let b=!1,M=d.replace(s,(g,C,G,F,H,ae)=>F==="\\"?(b=!0,g):F==="?"?C?C+F+(H?L.repeat(H.length):""):ae===0?_+(H?L.repeat(H.length):""):L.repeat(G.length):F==="."?P.repeat(G.length):F==="*"?C?C+F+(H?S:""):S:C?g:`\\${g}`);return b===!0&&(i.unescape===!0?M=M.replace(/\\/g,""):M=M.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),M===d&&i.contains===!0?(p.output=d,p):(p.output=t.wrapOutput(M,p,m),p)}for(;!te();){if(l=D(),l==="\0")continue;if(l==="\\"){const g=N();if(g==="/"&&i.bash!==!0||g==="."||g===";")continue;if(!g){l+="\\",k({type:"text",value:l});continue}const C=/^\\+/.exec(pe());let G=0;if(C&&C[0].length>2&&(G=C[0].length,p.index+=G,G%2!==0&&(l+="\\")),i.unescape===!0?l=D():l+=D(),p.brackets===0){k({type:"text",value:l});continue}}if(p.brackets>0&&(l!=="]"||a.value==="["||a.value==="[^")){if(i.posix!==!1&&l===":"){const g=a.value.slice(1);if(g.includes("[")&&(a.posix=!0,g.includes(":"))){const C=a.value.lastIndexOf("["),G=a.value.slice(0,C),F=a.value.slice(C+2),H=r[F];if(H){a.value=G+H,p.backtrack=!0,D(),!T.output&&v.indexOf(a)===1&&(T.output=ne);continue}}}(l==="["&&N()!==":"||l==="-"&&N()==="]")&&(l=`\\${l}`),l==="]"&&(a.value==="["||a.value==="[^")&&(l=`\\${l}`),i.posix===!0&&l==="!"&&a.value==="["&&(l="^"),a.value+=l,fe({value:l});continue}if(p.quotes===1&&l!=='"'){l=t.escapeRegex(l),a.value+=l,fe({value:l});continue}if(l==='"'){p.quotes=p.quotes===1?0:1,i.keepQuotes===!0&&k({type:"text",value:l});continue}if(l==="("){ut("parens"),k({type:"paren",value:l});continue}if(l===")"){if(p.parens===0&&i.strictBrackets===!0)throw new SyntaxError(f("opening","("));const g=V[V.length-1];if(g&&p.parens===g.parens+1){No(V.pop());continue}k({type:"paren",value:l,output:p.parens?")":"\\)"}),he("parens");continue}if(l==="["){if(i.nobracket===!0||!pe().includes("]")){if(i.nobracket!==!0&&i.strictBrackets===!0)throw new SyntaxError(f("closing","]"));l=`\\${l}`}else ut("brackets");k({type:"bracket",value:l});continue}if(l==="]"){if(i.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){k({type:"text",value:l,output:`\\${l}`});continue}if(p.brackets===0){if(i.strictBrackets===!0)throw new SyntaxError(f("opening","["));k({type:"text",value:l,output:`\\${l}`});continue}he("brackets");const g=a.value.slice(1);if(a.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(l=`/${l}`),a.value+=l,fe({value:l}),i.literalBrackets===!1||t.hasRegexChars(g))continue;const C=t.escapeRegex(a.value);if(p.output=p.output.slice(0,-a.value.length),i.literalBrackets===!0){p.output+=C,a.value=C;continue}a.value=`(${O}${C}|${a.value})`,p.output+=a.value;continue}if(l==="{"&&i.nobrace!==!0){ut("braces");const g={type:"brace",value:l,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};U.push(g),k(g);continue}if(l==="}"){const g=U[U.length-1];if(i.nobrace===!0||!g){k({type:"text",value:l,output:l});continue}let C=")";if(g.dots===!0){const G=v.slice(),F=[];for(let H=G.length-1;H>=0&&(v.pop(),G[H].type!=="brace");H--)G[H].type!=="dots"&&F.unshift(G[H].value);C=c(F,i),p.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const G=p.output.slice(0,g.outputIndex),F=p.tokens.slice(g.tokensIndex);g.value=g.output="\\{",l=C="\\}",p.output=G;for(const H of F)p.output+=H.output||H.value}k({type:"brace",value:l,output:C}),he("braces"),U.pop();continue}if(l==="|"){V.length>0&&V[V.length-1].conditions++,k({type:"text",value:l});continue}if(l===","){let g=l;const C=U[U.length-1];C&&j[j.length-1]==="braces"&&(C.comma=!0,g="|"),k({type:"comma",value:l,output:g});continue}if(l==="/"){if(a.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",v.pop(),a=T;continue}k({type:"slash",value:l,output:W});continue}if(l==="."){if(p.braces>0&&a.type==="dot"){a.value==="."&&(a.output=P);const g=U[U.length-1];a.type="dots",a.output+=l,a.value+=l,g.dots=!0;continue}if(p.braces+p.parens===0&&a.type!=="bos"&&a.type!=="slash"){k({type:"text",value:l,output:P});continue}k({type:"dot",value:l,output:P});continue}if(l==="?"){if(!(a&&a.value==="(")&&i.noextglob!==!0&&N()==="("&&N(2)!=="?"){it("qmark",l);continue}if(a&&a.type==="paren"){const g=N();let C=l;(a.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(C=`\\${l}`),k({type:"text",value:l,output:C});continue}if(i.dot!==!0&&(a.type==="slash"||a.type==="bos")){k({type:"qmark",value:l,output:ie});continue}k({type:"qmark",value:l,output:L});continue}if(l==="!"){if(i.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){it("negate",l);continue}if(i.nonegate!==!0&&p.index===0){Oo();continue}}if(l==="+"){if(i.noextglob!==!0&&N()==="("&&N(2)!=="?"){it("plus",l);continue}if(a&&a.value==="("||i.regex===!1){k({type:"plus",value:l,output:re});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||p.parens>0){k({type:"plus",value:l});continue}k({type:"plus",value:re});continue}if(l==="@"){if(i.noextglob!==!0&&N()==="("&&N(2)!=="?"){k({type:"at",extglob:!0,value:l,output:""});continue}k({type:"text",value:l});continue}if(l!=="*"){(l==="$"||l==="^")&&(l=`\\${l}`);const g=u.exec(pe());g&&(l+=g[0],p.index+=g[0].length),k({type:"text",value:l});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=l,a.output=S,p.backtrack=!0,p.globstar=!0,J(l);continue}let b=pe();if(i.noextglob!==!0&&/^\([^?]/.test(b)){it("star",l);continue}if(a.type==="star"){if(i.noglobstar===!0){J(l);continue}const g=a.prev,C=g.prev,G=g.type==="slash"||g.type==="bos",F=C&&(C.type==="star"||C.type==="globstar");if(i.bash===!0&&(!G||b[0]&&b[0]!=="/")){k({type:"star",value:l,output:""});continue}const H=p.braces>0&&(g.type==="comma"||g.type==="brace"),ae=V.length&&(g.type==="pipe"||g.type==="paren");if(!G&&g.type!=="paren"&&!H&&!ae){k({type:"star",value:l,output:""});continue}for(;b.slice(0,3)==="/**";){const le=d[p.index+4];if(le&&le!=="/")break;b=b.slice(3),J("/**",3)}if(g.type==="bos"&&te()){a.type="globstar",a.value+=l,a.output=K(i),p.output=a.output,p.globstar=!0,J(l);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!F&&te()){p.output=p.output.slice(0,-(g.output+a.output).length),g.output=`(?:${g.output}`,a.type="globstar",a.output=K(i)+(i.strictSlashes?")":"|$)"),a.value+=l,p.globstar=!0,p.output+=g.output+a.output,J(l);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&b[0]==="/"){const le=b[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(g.output+a.output).length),g.output=`(?:${g.output}`,a.type="globstar",a.output=`${K(i)}${W}|${W}${le})`,a.value+=l,p.output+=g.output+a.output,p.globstar=!0,J(l+D()),k({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&b[0]==="/"){a.type="globstar",a.value+=l,a.output=`(?:^|${W}|${K(i)}${W})`,p.output=a.output,p.globstar=!0,J(l+D()),k({type:"slash",value:"/",output:""});continue}if(H&&b[0]==="/"){a.type="globstar",a.value+=l,a.output=`(?:^|${W}|${K(i)}${W})`,p.output+=a.output,p.globstar=!0,J(l+D()),k({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-a.output.length),a.type="globstar",a.output=K(i),a.value+=l,p.output+=a.output,p.globstar=!0,J(l);continue}const M={type:"star",value:l,output:S};if(i.bash===!0){M.output=".*?",(a.type==="bos"||a.type==="slash")&&(M.output=Y+M.output),k(M);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&i.regex===!0){M.output=l,k(M);continue}(p.index===p.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(p.output+=ge,a.output+=ge):i.dot===!0?(p.output+=ue,a.output+=ue):(p.output+=Y,a.output+=Y),N()!=="*"&&(p.output+=ne,a.output+=ne)),k(M)}for(;p.brackets>0;){if(i.strictBrackets===!0)throw new SyntaxError(f("closing","]"));p.output=t.escapeLast(p.output,"["),he("brackets")}for(;p.parens>0;){if(i.strictBrackets===!0)throw new SyntaxError(f("closing",")"));p.output=t.escapeLast(p.output,"("),he("parens")}for(;p.braces>0;){if(i.strictBrackets===!0)throw new SyntaxError(f("closing","}"));p.output=t.escapeLast(p.output,"{"),he("braces")}if(i.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${W}?`}),p.backtrack===!0){p.output="";for(const b of p.tokens)p.output+=b.output!=null?b.output:b.value,b.suffix&&(p.output+=b.suffix)}return p};return z.fastpaths=(d,m)=>{const i={...m},y=typeof i.maxLength=="number"?Math.min(o,i.maxLength):o,E=d.length;if(E>y)throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${y}`);d=n[d]||d;const{DOT_LITERAL:T,SLASH_LITERAL:v,ONE_CHAR:O,DOTS_SLASH:X,NO_DOT:Z,NO_DOTS:P,NO_DOTS_SLASH:re,STAR:W,START_ANCHOR:ne}=e.globChars(i.windows),I=i.dot?P:Z,ce=i.dot?re:Z,ge=i.capture?"":"?:",ue={negated:!1,prefix:""};let L=i.bash===!0?".*?":W;i.capture&&(L=`(${L})`);const ie=Y=>Y.noglobstar===!0?L:`(${ge}(?:(?!${ne}${Y.dot?X:T}).)*?)`,de=Y=>{switch(Y){case"*":return`${I}${O}${L}`;case".*":return`${T}${O}${L}`;case"*.*":return`${I}${L}${T}${O}${L}`;case"*/*":return`${I}${L}${v}${O}${ce}${L}`;case"**":return I+ie(i);case"**/*":return`(?:${I}${ie(i)}${v})?${ce}${O}${L}`;case"**/*.*":return`(?:${I}${ie(i)}${v})?${ce}${L}${T}${O}${L}`;case"**/.*":return`(?:${I}${ie(i)}${v})?${T}${O}${L}`;default:{const _=/^(.*?)\.(\w+)$/.exec(Y);if(!_)return;const S=de(_[1]);return S?S+T+_[2]:void 0}}},q=t.removePrefix(d,ue);let K=de(q);return K&&i.strictSlashes!==!0&&(K+=`${v}?`),K},vt=z,vt}var At,Wt;function tr(){if(Wt)return At;Wt=1;const e=Js(),t=er(),o=ft(),r=pt(),u=n=>n&&typeof n=="object"&&!Array.isArray(n),s=(n,c,f=!1)=>{if(Array.isArray(n)){const Q=n.map(z=>s(z,c,f));return z=>{for(const d of Q){const m=d(z);if(m)return m}return!1}}const R=u(n)&&n.tokens&&n.input;if(n===""||typeof n!="string"&&!R)throw new TypeError("Expected pattern to be a non-empty string");const h=c||{},A=h.windows,$=R?s.compileRe(n,c):s.makeRe(n,c,!1,!0),x=$.state;delete $.state;let B=()=>!1;if(h.ignore){const Q={...c,ignore:null,onMatch:null,onResult:null};B=s(h.ignore,Q,f)}const oe=(Q,z=!1)=>{const{isMatch:d,match:m,output:i}=s.test(Q,$,c,{glob:n,posix:A}),y={glob:n,state:x,regex:$,posix:A,input:Q,output:i,match:m,isMatch:d};if(typeof h.onResult=="function"&&h.onResult(y),d===!1)return y.isMatch=!1,z?y:!1;e:if(B(Q)){if(typeof h.onIgnore=="function"&&h.onIgnore(y)===r.UNIGNORE){y.isMatch=!0;break e}return y.isMatch=!1,z?y:!1}return typeof h.onMatch=="function"&&h.onMatch(y),z?y:!0};return f&&(oe.state=x),oe};return s.test=(n,c,f,{glob:R,posix:h}={})=>{if(typeof n!="string")throw new TypeError("Expected input to be a string");if(n==="")return{isMatch:!1,output:""};const A=f||{},$=A.format||(h?o.toPosixSlashes:null);let x=n===R,B=x&&$?$(n):n;return x===!1&&(B=$?$(n):n,x=B===R),(x===!1||A.capture===!0)&&(A.matchBase===!0||A.basename===!0?x=s.matchBase(n,c,f,h):x=c.exec(B)),{isMatch:!!x,match:x,output:B}},s.matchBase=(n,c,f)=>(c instanceof RegExp?c:s.makeRe(c,f)).test(o.basename(n)),s.isMatch=(n,c,f)=>s(c,f)(n),s.parse=(n,c)=>Array.isArray(n)?n.map(f=>s.parse(f,c)):t(n,{...c,fastpaths:!1}),s.scan=(n,c)=>e(n,c),s.compileRe=(n,c,f=!1,R=!1)=>{if(f===!0)return n.output;const h=c||{},A=h.contains?"":"^",$=h.contains?"":"$";let x=`${A}(?:${n.output})${$}`;n&&n.negated===!0&&(x=`^(?!${x}).*$`);const B=s.toRegex(x,c);return R===!0&&(B.state=n),B},s.makeRe=(n,c={},f=!1,R=!1)=>{if(!n||typeof n!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(n[0]==="."||n[0]==="*")&&(h.output=t.fastpaths(n,c)),h.output||(h=t(n,c)),s.compileRe(h,c,f,R)},s.toRegex=(n,c)=>{try{const f=c||{};return new RegExp(n,f.flags||(f.nocase?"i":""))}catch(f){if(c&&c.debug===!0)throw f;return/$^/}},s.constants=r,At=s,At}var Rt,qt;function or(){if(qt)return Rt;qt=1;const e=tr(),t=ft();function o(r,u,s=!1){return u&&(u.windows===null||u.windows===void 0)&&(u={...u,windows:t.isWindows()}),e(r,u,s)}return Object.assign(o,e),Rt=o,Rt}var sr=or();Nt(sr);const rr=w(import.meta.url),Ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nt=e=>{if(typeof Ie<"u"&&Ie.versions&&Ie.versions.node){const[t,o]=Ie.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ie.getBuiltinModule(e)}return rr(e)};nt("fs");nt("fs");nt("path");nt("url");const{createRequire:nr}=nt("module");var Qt=nr(import.meta.url);try{Qt.resolve("picomatch"),Qt("picomatch")}catch{}var Et,Zt;function ur(){if(Zt)return Et;Zt=1;/*!
1
+ import{createRequire as Ho}from"node:module";import{m as te,A as no,f as me,a as lt,H as wt,O as uo}from"../packem_shared/index-OQZQyN5R.js";import{importTs as Bo}from"./ts-loader.js";import"../packem_shared/otelPlugin-DmKDBaPo.js";import"../packem_shared/definePlugin-DoUcoYSy.js";import{a as io}from"../packem_shared/readJsonSync-CvkZyKmL-CY7PZob_.js";const No=Ho(import.meta.url),Ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,St=e=>{if(typeof Ae<"u"&&Ae.versions&&Ae.versions.node){const[t,o]=Ae.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ae.getBuiltinModule(e)}return No(e)},{createHash:oo}=St("node:crypto"),{readdirSync:so,readFileSync:Lo}=St("node:fs"),{createRequire:ro}=St("node:module"),Mo=ro(import.meta.url),ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ao=e=>{if(typeof ye<"u"&&ye.versions&&ye.versions.node){const[t,o]=ye.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ye.getBuiltinModule(e)}return Mo(e)},{homedir:Io,tmpdir:ht}=ao("node:os"),{env:rt,cwd:Do,platform:Bt}=ye,{createRequire:w}=ao("node:module"),Go=0,lo=2,jo=Symbol("findUpStop"),Po=/^[A-Z]:\//i,ve=(e="")=>e&&e.replaceAll("\\","/").replace(Po,t=>t.toUpperCase()),Uo=/^[/\\]{2}/,Fo=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,co=/^[A-Z]:$/i,Ko=/.(\.[^./]+)$/,zo=/^[/\\]|^[a-z]:[/\\]/i,Xo=/\/$/,Wo=()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",gt="/",po=(e,t)=>{let o="",r=0,i=-1,s=0,n;for(let p=0;p<=e.length;++p){if(p<e.length)n=e[p];else{if(n==="/")break;n="/"}if(n==="/"){if(!(i===p-1||s===1))if(s===2){if(o.length<2||r!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const f=o.lastIndexOf("/");f===-1?(o="",r=0):(o=o.slice(0,f),r=o.length-1-o.lastIndexOf("/")),i=p,s=0;continue}else if(o.length>0){o="",r=0,i=p,s=0;continue}}t&&(o+=o.length>0?"/..":"..",r=2)}else o.length>0?o+=`/${e.slice(i+1,p)}`:o=e.slice(i+1,p),r=p-i-1;i=p,s=0}else n==="."&&s!==-1?++s:s=-1}return o},be=e=>Fo.test(e),fo=function(e){if(e.length===0)return".";e=ve(e);const t=Uo.exec(e),o=be(e),r=e.at(-1)==="/";return e=po(e,!o),e.length===0?o?"/":r?"./":".":(r&&(e+="/"),co.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!be(e)?`/${e}`:e)},se=(...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const r=t.at(-1)==="/",i=o[0]==="/";r&&i?t+=o.slice(1):t+=r||i?o:`/${o}`}else t+=o;return fo(t)},dt=function(...e){e=e.map(r=>ve(r));let t="",o=!1;for(let r=e.length-1;r>=-1&&!o;r--){const i=r>=0?e[r]:Wo();!i||i.length===0||(t=`${i}/${t}`,o=be(i))}return t=po(t,!o),o&&!be(t)?`/${t}`:t.length>0?t:"."},Qo=function(e){return Ko.exec(ve(e))?.[1]??""},Ot=e=>{const t=ve(e).replace(Xo,""),o=t.lastIndexOf("/");if(o===-1)return be(e)?"/":".";const r=t.slice(0,o);return co.test(r)?`${r}/`:r||(be(e)?"/":".")},qo=(e,t)=>{const o=ve(e);return o.slice(o.lastIndexOf("/")+1)},Zo=function(e){const t=zo.exec(e)?.[0]?.replaceAll("\\","/")??"",o=qo(e),r=Qo(o);return{base:o,dir:Ot(e),ext:r,name:o.slice(0,o.length-r.length),root:t}},Vo=w(import.meta.url),Re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yo=e=>{if(typeof Re<"u"&&Re.versions&&Re.versions.node){const[t,o]=Re.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Re.getBuiltinModule(e)}return Vo(e)},{fileURLToPath:Jo}=Yo("node:url");function es(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mt,It;function ts(){return It||(It=1,Mt=["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"]),Mt}var os=ts();const ss=es(os);new Set(ss);const at=e=>ve(e instanceof URL?Jo(e):e),ho=e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},rs=w(import.meta.url),Te=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ns=e=>{if(typeof Te<"u"&&Te.versions&&Te.versions.node){const[t,o]=Te.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Te.getBuiltinModule(e)}return rs(e)};ns("node:fs/promises");const us=w(import.meta.url),Ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,is=e=>{if(typeof Ee<"u"&&Ee.versions&&Ee.versions.node){const[t,o]=Ee.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ee.getBuiltinModule(e)}return us(e)};is("node:fs");const Dt=e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},as=w(import.meta.url),_e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ls=e=>{if(typeof _e<"u"&&_e.versions&&_e.versions.node){const[t,o]=_e.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return _e.getBuiltinModule(e)}return as(e)};ls("node:fs/promises");const cs=w(import.meta.url),xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ps=e=>{if(typeof xe<"u"&&xe.versions&&xe.versions.node){const[t,o]=xe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xe.getBuiltinModule(e)}return cs(e)},{lstatSync:Gt,mkdirSync:fs}=ps("node:fs"),$e=e=>{ho(e);try{const t=Gt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Dt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{fs(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=Gt(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Dt(o))}'`,{cause:t})}},hs=w(import.meta.url),ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,gs=e=>{if(typeof ke<"u"&&ke.versions&&ke.versions.node){const[t,o]=ke.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ke.getBuiltinModule(e)}return hs(e)};gs("node:fs/promises");const ds=w(import.meta.url),Ce=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,bs=e=>{if(typeof Ce<"u"&&Ce.versions&&Ce.versions.node){const[t,o]=Ce.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ce.getBuiltinModule(e)}return ds(e)};bs("node:fs");const ys=w(import.meta.url),Se=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ms=e=>{if(typeof Se<"u"&&Se.versions&&Se.versions.node){const[t,o]=Se.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Se.getBuiltinModule(e)}return ys(e)};ms("node:fs/promises");const vs=w(import.meta.url),we=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,As=e=>{if(typeof we<"u"&&we.versions&&we.versions.node){const[t,o]=we.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return we.getBuiltinModule(e)}return vs(e)};As("node:fs");const Rs=w(import.meta.url),Oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ts=e=>{if(typeof Oe<"u"&&Oe.versions&&Oe.versions.node){const[t,o]=Oe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Oe.getBuiltinModule(e)}return Rs(e)};Ts("node:fs/promises");const Es=w(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_s=e=>{if(typeof He<"u"&&He.versions&&He.versions.node){const[t,o]=He.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return He.getBuiltinModule(e)}return Es(e)};_s("node:fs");w(import.meta.url);const xs=w(import.meta.url),Ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$s=e=>{if(typeof Ne<"u"&&Ne.versions&&Ne.versions.node){const[t,o]=Ne.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ne.getBuiltinModule(e)}return xs(e)};$s("node:fs/promises");const ks=w(import.meta.url),Le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Cs=e=>{if(typeof Le<"u"&&Le.versions&&Le.versions.node){const[t,o]=Le.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Le.getBuiltinModule(e)}return ks(e)};Cs("node:fs");const Ss=w(import.meta.url),Be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ws=e=>{if(typeof Be<"u"&&Be.versions&&Be.versions.node){const[t,o]=Be.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Be.getBuiltinModule(e)}return Ss(e)};ws("node:fs/promises");const Os=w(import.meta.url),Me=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Hs=e=>{if(typeof Me<"u"&&Me.versions&&Me.versions.node){const[t,o]=Me.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Me.getBuiltinModule(e)}return Os(e)},{statSync:Ns,lstatSync:Ls}=Hs("node:fs"),Bs=(e,t={})=>{const o=t.cwd?at(t.cwd):process.cwd();let r=dt(o);const{root:i}=Zo(r),s=at(t.stopAt??i),n=dt(r,s),p=t.type??"file",f=function(h){return[e]};t.allowSymlinks??=!0;const T=t.allowSymlinks?Ns:Ls;for(;r&&r!==n&&r!==i;){for(let h of f()){if(h===jo)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=at(h));const x=be(h)?h:dt(r,h);try{const $=T(x);if(p==="file"&&$.isFile()||p==="directory"&&$.isDirectory())return x}catch{}}r=Ot(r)}};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt={},bt,Pt;function ct(){if(Pt)return bt;Pt=1;const e="[^\\\\/]",t=Symbol("unignore"),o="\\.",r="\\+",i="\\?",s="\\/",n="(?=.)",p="[^/]",f=`(?:${s}|$)`,T=`(?:^|${s})`,h=`${o}{1,2}${f}`,x=`(?!${o})`,$=`(?!${T}${h})`,E=`(?!${o}{0,1}${f})`,B=`(?!${h})`,oe=`[^.${s}]`,q=`${p}*?`,z="/",d={DOT_LITERAL:o,PLUS_LITERAL:r,QMARK_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:n,QMARK:p,END_ANCHOR:f,DOTS_SLASH:h,NO_DOT:x,NO_DOTS:$,NO_DOT_SLASH:E,NO_DOTS_SLASH:B,QMARK_NO_DOT:oe,STAR:q,START_ANCHOR:T,SEP:z},y={...d,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${o}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[\\\\/])${o}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},u={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return bt={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:u,UNIGNORE:t,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(m){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${m.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(m){return m===!0?y:d}},bt}var Ut;function pt(){return Ut||(Ut=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=ct();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>r.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(i,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const s=navigator.platform.toLowerCase();return s==="win32"||s==="windows"}return process.platform?process.platform==="win32":!1},e.removeBackslashes=s=>s.replace(o,n=>n==="\\"?"":n),e.escapeLast=(s,n,p)=>{const f=s.lastIndexOf(n,p);return f===-1?s:s[f-1]==="\\"?e.escapeLast(s,n,f-1):`${s.slice(0,f)}\\${s.slice(f)}`},e.removePrefix=(s,n={})=>{let p=s;return p.startsWith("./")&&(p=p.slice(2),n.prefix="./"),p},e.wrapOutput=(s,n={},p={})=>{const f=p.contains?"":"^",T=p.contains?"":"$";let h=`${f}(?:${s})${T}`;return n.negated===!0&&(h=`(?:^(?!${h}).*$)`),h},e.basename=(s,{windows:n}={})=>{const p=s.split(n?/[\\/]/:"/"),f=p[p.length-1];return f===""?p[p.length-2]:f}})(jt)),jt}var yt,Ft;function Ms(){if(Ft)return yt;Ft=1;const e=pt(),{CHAR_ASTERISK:t,CHAR_AT:o,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:n,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:T,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:x,CHAR_QUESTION_MARK:$,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:B,CHAR_RIGHT_SQUARE_BRACKET:oe}=ct(),q=d=>d===p||d===r,z=d=>{d.isPrefix!==!0&&(d.depth=d.isGlobstar?1/0:1)};return yt=(d,y)=>{const u=y||{},m=d.length-1,A=u.parts===!0||u.scanToEnd===!0,R=[],v=[],O=[];let X=d,Z=-1,P=0,re=0,W=!1,ne=!1,I=!1,ce=!1,ge=!1,ue=!1,L=!1,ie=!1,de=!1,Q=!1,K=0,Y,_,S={value:"",depth:0,isGlob:!1};const c=()=>Z>=m,V=()=>X.charCodeAt(Z+1),U=()=>(Y=_,X.charCodeAt(++Z));for(;Z<m;){_=U();let H;if(_===r){L=S.backslashes=!0,_=U(),_===f&&(ue=!0);continue}if(ue===!0||_===f){for(K++;c()!==!0&&(_=U());){if(_===r){L=S.backslashes=!0,U();continue}if(_===f){K++;continue}if(ue!==!0&&_===s&&(_=U())===s){if(W=S.isBrace=!0,I=S.isGlob=!0,Q=!0,A===!0)continue;break}if(ue!==!0&&_===i){if(W=S.isBrace=!0,I=S.isGlob=!0,Q=!0,A===!0)continue;break}if(_===E&&(K--,K===0)){ue=!1,W=S.isBrace=!0,Q=!0;break}}if(A===!0)continue;break}if(_===p){if(R.push(Z),v.push(S),S={value:"",depth:0,isGlob:!1},Q===!0)continue;if(Y===s&&Z===P+1){P+=2;continue}re=Z+1;continue}if(u.noext!==!0&&(_===x||_===o||_===t||_===$||_===n)&&V()===T){if(I=S.isGlob=!0,ce=S.isExtglob=!0,Q=!0,_===n&&Z===P&&(de=!0),A===!0){for(;c()!==!0&&(_=U());){if(_===r){L=S.backslashes=!0,_=U();continue}if(_===B){I=S.isGlob=!0,Q=!0;break}}continue}break}if(_===t){if(Y===t&&(ge=S.isGlobstar=!0),I=S.isGlob=!0,Q=!0,A===!0)continue;break}if(_===$){if(I=S.isGlob=!0,Q=!0,A===!0)continue;break}if(_===h){for(;c()!==!0&&(H=U());){if(H===r){L=S.backslashes=!0,U();continue}if(H===oe){ne=S.isBracket=!0,I=S.isGlob=!0,Q=!0;break}}if(A===!0)continue;break}if(u.nonegate!==!0&&_===n&&Z===P){ie=S.negated=!0,P++;continue}if(u.noparen!==!0&&_===T){if(I=S.isGlob=!0,A===!0){for(;c()!==!0&&(_=U());){if(_===T){L=S.backslashes=!0,_=U();continue}if(_===B){Q=!0;break}}continue}break}if(I===!0){if(Q=!0,A===!0)continue;break}}u.noext===!0&&(ce=!1,I=!1);let j=X,a="",l="";P>0&&(a=X.slice(0,P),X=X.slice(P),re-=P),j&&I===!0&&re>0?(j=X.slice(0,re),l=X.slice(re)):I===!0?(j="",l=X):j=X,j&&j!==""&&j!=="/"&&j!==X&&q(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),u.unescape===!0&&(l&&(l=e.removeBackslashes(l)),j&&L===!0&&(j=e.removeBackslashes(j)));const ee={prefix:a,input:d,start:P,base:j,glob:l,isBrace:W,isBracket:ne,isGlob:I,isExtglob:ce,isGlobstar:ge,negated:ie,negatedExtglob:de};if(u.tokens===!0&&(ee.maxDepth=0,q(_)||v.push(S),ee.tokens=v),u.parts===!0||u.tokens===!0){let H;for(let D=0;D<R.length;D++){const pe=H?H+1:P,J=R[D],fe=d.slice(pe,J);u.tokens&&(D===0&&P!==0?(v[D].isPrefix=!0,v[D].value=a):v[D].value=fe,z(v[D]),ee.maxDepth+=v[D].depth),(D!==0||fe!=="")&&O.push(fe),H=J}if(H&&H+1<d.length){const D=d.slice(H+1);O.push(D),u.tokens&&(v[v.length-1].value=D,z(v[v.length-1]),ee.maxDepth+=v[v.length-1].depth)}ee.slashes=R,ee.parts=O}return ee},yt}var mt,Kt;function Is(){if(Kt)return mt;Kt=1;const e=ct(),t=pt(),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:n}=e,p=(d,y)=>typeof y.expandRange=="function"?y.expandRange(...d,y):(d.sort(),`[${d.join("-")}]`),f=(d,y)=>`Missing ${d}: "${y}" - use "\\\\${y}" to match literal characters`,T=d=>{const y=[];let u=0,m=0,A=0,R="",v=!1;for(const O of d){if(v===!0){R+=O,v=!1;continue}if(O==="\\"){R+=O,v=!0;continue}if(O==='"'){A=A===1?0:1,R+=O;continue}if(A===0){if(O==="[")u++;else if(O==="]"&&u>0)u--;else if(u===0){if(O==="(")m++;else if(O===")"&&m>0)m--;else if(O==="|"&&m===0){y.push(R),R="";continue}}}R+=O}return y.push(R),y},h=d=>{let y=!1;for(const u of d){if(y===!0){y=!1;continue}if(u==="\\"){y=!0;continue}if(/[?*+@!()[\]{}]/.test(u))return!1}return!0},x=d=>{let y=d.trim(),u=!0;for(;u===!0;)u=!1,/^@\([^\\()[\]{}|]+\)$/.test(y)&&(y=y.slice(2,-1),u=!0);if(h(y))return y.replace(/\\(.)/g,"$1")},$=d=>{const y=d.map(x).filter(Boolean);for(let u=0;u<y.length;u++)for(let m=u+1;m<y.length;m++){const A=y[u],R=y[m],v=A[0];if(!(!v||A!==v.repeat(A.length)||R!==v.repeat(R.length))&&(A===R||A.startsWith(R)||R.startsWith(A)))return!0}return!1},E=(d,y=!0)=>{if(d[0]!=="+"&&d[0]!=="*"||d[1]!=="(")return;let u=0,m=0,A=0,R=!1;for(let v=1;v<d.length;v++){const O=d[v];if(R===!0){R=!1;continue}if(O==="\\"){R=!0;continue}if(O==='"'){A=A===1?0:1;continue}if(A!==1){if(O==="["){u++;continue}if(O==="]"&&u>0){u--;continue}if(!(u>0)){if(O==="("){m++;continue}if(O===")"&&(m--,m===0))return y===!0&&v!==d.length-1?void 0:{type:d[0],body:d.slice(2,v),end:v}}}}},B=d=>{let y=0;const u=[];for(;y<d.length;){const m=E(d.slice(y),!1);if(!m||m.type!=="*")return;const A=T(m.body).map(v=>v.trim());if(A.length!==1)return;const R=x(A[0]);if(!R||R.length!==1)return;u.push(R),y+=m.end+1}return u.length<1?void 0:`${u.length===1?t.escapeRegex(u[0]):`[${u.map(m=>t.escapeRegex(m)).join("")}]`}*`},oe=d=>{let y=0,u=d.trim(),m=E(u);for(;m;)y++,u=m.body.trim(),m=E(u);return y},q=(d,y)=>{if(y.maxExtglobRecursion===!1)return{risky:!1};const u=typeof y.maxExtglobRecursion=="number"?y.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,m=T(d).map(A=>A.trim());if(m.length>1&&(m.some(A=>A==="")||m.some(A=>/^[*?]+$/.test(A))||$(m)))return{risky:!0};for(const A of m){const R=B(A);if(R)return{risky:!0,safeOutput:R};if(oe(A)>u)return{risky:!0}}return{risky:!1}},z=(d,y)=>{if(typeof d!="string")throw new TypeError("Expected a string");d=n[d]||d;const u={...y},m=typeof u.maxLength=="number"?Math.min(o,u.maxLength):o;let A=d.length;if(A>m)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${m}`);const R={type:"bos",value:"",output:u.prepend||""},v=[R],O=u.capture?"":"?:",X=e.globChars(u.windows),Z=e.extglobChars(X),{DOT_LITERAL:P,PLUS_LITERAL:re,SLASH_LITERAL:W,ONE_CHAR:ne,DOTS_SLASH:I,NO_DOT:ce,NO_DOT_SLASH:ge,NO_DOTS_SLASH:ue,QMARK:L,QMARK_NO_DOT:ie,STAR:de,START_ANCHOR:Q}=X,K=b=>`(${O}(?:(?!${Q}${b.dot?I:P}).)*?)`,Y=u.dot?"":ce,_=u.dot?L:ie;let S=u.bash===!0?K(u):de;u.capture&&(S=`(${S})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const c={input:d,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};d=t.removePrefix(d,c),A=d.length;const V=[],U=[],j=[];let a=R,l;const ee=()=>c.index===A-1,H=c.peek=(b=1)=>d[c.index+b],D=c.advance=()=>d[++c.index]||"",pe=()=>d.slice(c.index+1),J=(b="",M=0)=>{c.consumed+=b,c.index+=M},fe=b=>{c.output+=b.output!=null?b.output:b.value,J(b.value)},wo=()=>{let b=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)D(),c.start++,b++;return b%2===0?!1:(c.negated=!0,c.start++,!0)},ut=b=>{c[b]++,j.push(b)},he=b=>{c[b]--,j.pop()},k=b=>{if(a.type==="globstar"){const M=c.braces>0&&(b.type==="comma"||b.type==="brace"),g=b.extglob===!0||V.length&&(b.type==="pipe"||b.type==="paren");b.type!=="slash"&&b.type!=="paren"&&!M&&!g&&(c.output=c.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=S,c.output+=a.output)}if(V.length&&b.type!=="paren"&&(V[V.length-1].inner+=b.value),(b.value||b.output)&&fe(b),a&&a.type==="text"&&b.type==="text"){a.output=(a.output||a.value)+b.value,a.value+=b.value;return}b.prev=a,v.push(b),a=b},it=(b,M)=>{const g={...Z[M],conditions:1,inner:""};g.prev=a,g.parens=c.parens,g.output=c.output,g.startIndex=c.index,g.tokensIndex=v.length;const C=(u.capture?"(":"")+g.open;ut("parens"),k({type:b,value:M,output:c.output?"":ne}),k({type:"paren",extglob:!0,value:D(),output:C}),V.push(g)},Oo=b=>{const M=d.slice(b.startIndex,c.index+1),g=d.slice(b.startIndex+2,c.index),C=q(g,u);if((b.type==="plus"||b.type==="star")&&C.risky){const N=C.safeOutput?(b.output?"":ne)+(u.capture?`(${C.safeOutput})`:C.safeOutput):void 0,ae=v[b.tokensIndex];ae.type="text",ae.value=M,ae.output=N||t.escapeRegex(M);for(let le=b.tokensIndex+1;le<v.length;le++)v[le].value="",v[le].output="",delete v[le].suffix;c.output=b.output+ae.output,c.backtrack=!0,k({type:"paren",extglob:!0,value:l,output:""}),he("parens");return}let G=b.close+(u.capture?")":""),F;if(b.type==="negate"){let N=S;if(b.inner&&b.inner.length>1&&b.inner.includes("/")&&(N=K(u)),(N!==S||ee()||/^\)+$/.test(pe()))&&(G=b.close=`)$))${N}`),b.inner.includes("*")&&(F=pe())&&/^\.[^\\/.]+$/.test(F)){const ae=z(F,{...y,fastpaths:!1}).output;G=b.close=`)${ae})${N})`}b.prev.type==="bos"&&(c.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:l,output:G}),he("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(d)){let b=!1,M=d.replace(s,(g,C,G,F,N,ae)=>F==="\\"?(b=!0,g):F==="?"?C?C+F+(N?L.repeat(N.length):""):ae===0?_+(N?L.repeat(N.length):""):L.repeat(G.length):F==="."?P.repeat(G.length):F==="*"?C?C+F+(N?S:""):S:C?g:`\\${g}`);return b===!0&&(u.unescape===!0?M=M.replace(/\\/g,""):M=M.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),M===d&&u.contains===!0?(c.output=d,c):(c.output=t.wrapOutput(M,c,y),c)}for(;!ee();){if(l=D(),l==="\0")continue;if(l==="\\"){const g=H();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){l+="\\",k({type:"text",value:l});continue}const C=/^\\+/.exec(pe());let G=0;if(C&&C[0].length>2&&(G=C[0].length,c.index+=G,G%2!==0&&(l+="\\")),u.unescape===!0?l=D():l+=D(),c.brackets===0){k({type:"text",value:l});continue}}if(c.brackets>0&&(l!=="]"||a.value==="["||a.value==="[^")){if(u.posix!==!1&&l===":"){const g=a.value.slice(1);if(g.includes("[")&&(a.posix=!0,g.includes(":"))){const C=a.value.lastIndexOf("["),G=a.value.slice(0,C),F=a.value.slice(C+2),N=r[F];if(N){a.value=G+N,c.backtrack=!0,D(),!R.output&&v.indexOf(a)===1&&(R.output=ne);continue}}}(l==="["&&H()!==":"||l==="-"&&H()==="]")&&(l=`\\${l}`),l==="]"&&(a.value==="["||a.value==="[^")&&(l=`\\${l}`),u.posix===!0&&l==="!"&&a.value==="["&&(l="^"),a.value+=l,fe({value:l});continue}if(c.quotes===1&&l!=='"'){l=t.escapeRegex(l),a.value+=l,fe({value:l});continue}if(l==='"'){c.quotes=c.quotes===1?0:1,u.keepQuotes===!0&&k({type:"text",value:l});continue}if(l==="("){ut("parens"),k({type:"paren",value:l});continue}if(l===")"){if(c.parens===0&&u.strictBrackets===!0)throw new SyntaxError(f("opening","("));const g=V[V.length-1];if(g&&c.parens===g.parens+1){Oo(V.pop());continue}k({type:"paren",value:l,output:c.parens?")":"\\)"}),he("parens");continue}if(l==="["){if(u.nobracket===!0||!pe().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(f("closing","]"));l=`\\${l}`}else ut("brackets");k({type:"bracket",value:l});continue}if(l==="]"){if(u.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){k({type:"text",value:l,output:`\\${l}`});continue}if(c.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(f("opening","["));k({type:"text",value:l,output:`\\${l}`});continue}he("brackets");const g=a.value.slice(1);if(a.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(l=`/${l}`),a.value+=l,fe({value:l}),u.literalBrackets===!1||t.hasRegexChars(g))continue;const C=t.escapeRegex(a.value);if(c.output=c.output.slice(0,-a.value.length),u.literalBrackets===!0){c.output+=C,a.value=C;continue}a.value=`(${O}${C}|${a.value})`,c.output+=a.value;continue}if(l==="{"&&u.nobrace!==!0){ut("braces");const g={type:"brace",value:l,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};U.push(g),k(g);continue}if(l==="}"){const g=U[U.length-1];if(u.nobrace===!0||!g){k({type:"text",value:l,output:l});continue}let C=")";if(g.dots===!0){const G=v.slice(),F=[];for(let N=G.length-1;N>=0&&(v.pop(),G[N].type!=="brace");N--)G[N].type!=="dots"&&F.unshift(G[N].value);C=p(F,u),c.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const G=c.output.slice(0,g.outputIndex),F=c.tokens.slice(g.tokensIndex);g.value=g.output="\\{",l=C="\\}",c.output=G;for(const N of F)c.output+=N.output||N.value}k({type:"brace",value:l,output:C}),he("braces"),U.pop();continue}if(l==="|"){V.length>0&&V[V.length-1].conditions++,k({type:"text",value:l});continue}if(l===","){let g=l;const C=U[U.length-1];C&&j[j.length-1]==="braces"&&(C.comma=!0,g="|"),k({type:"comma",value:l,output:g});continue}if(l==="/"){if(a.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",v.pop(),a=R;continue}k({type:"slash",value:l,output:W});continue}if(l==="."){if(c.braces>0&&a.type==="dot"){a.value==="."&&(a.output=P);const g=U[U.length-1];a.type="dots",a.output+=l,a.value+=l,g.dots=!0;continue}if(c.braces+c.parens===0&&a.type!=="bos"&&a.type!=="slash"){k({type:"text",value:l,output:P});continue}k({type:"dot",value:l,output:P});continue}if(l==="?"){if(!(a&&a.value==="(")&&u.noextglob!==!0&&H()==="("&&H(2)!=="?"){it("qmark",l);continue}if(a&&a.type==="paren"){const g=H();let C=l;(a.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(C=`\\${l}`),k({type:"text",value:l,output:C});continue}if(u.dot!==!0&&(a.type==="slash"||a.type==="bos")){k({type:"qmark",value:l,output:ie});continue}k({type:"qmark",value:l,output:L});continue}if(l==="!"){if(u.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){it("negate",l);continue}if(u.nonegate!==!0&&c.index===0){wo();continue}}if(l==="+"){if(u.noextglob!==!0&&H()==="("&&H(2)!=="?"){it("plus",l);continue}if(a&&a.value==="("||u.regex===!1){k({type:"plus",value:l,output:re});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||c.parens>0){k({type:"plus",value:l});continue}k({type:"plus",value:re});continue}if(l==="@"){if(u.noextglob!==!0&&H()==="("&&H(2)!=="?"){k({type:"at",extglob:!0,value:l,output:""});continue}k({type:"text",value:l});continue}if(l!=="*"){(l==="$"||l==="^")&&(l=`\\${l}`);const g=i.exec(pe());g&&(l+=g[0],c.index+=g[0].length),k({type:"text",value:l});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=l,a.output=S,c.backtrack=!0,c.globstar=!0,J(l);continue}let b=pe();if(u.noextglob!==!0&&/^\([^?]/.test(b)){it("star",l);continue}if(a.type==="star"){if(u.noglobstar===!0){J(l);continue}const g=a.prev,C=g.prev,G=g.type==="slash"||g.type==="bos",F=C&&(C.type==="star"||C.type==="globstar");if(u.bash===!0&&(!G||b[0]&&b[0]!=="/")){k({type:"star",value:l,output:""});continue}const N=c.braces>0&&(g.type==="comma"||g.type==="brace"),ae=V.length&&(g.type==="pipe"||g.type==="paren");if(!G&&g.type!=="paren"&&!N&&!ae){k({type:"star",value:l,output:""});continue}for(;b.slice(0,3)==="/**";){const le=d[c.index+4];if(le&&le!=="/")break;b=b.slice(3),J("/**",3)}if(g.type==="bos"&&ee()){a.type="globstar",a.value+=l,a.output=K(u),c.output=a.output,c.globstar=!0,J(l);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!F&&ee()){c.output=c.output.slice(0,-(g.output+a.output).length),g.output=`(?:${g.output}`,a.type="globstar",a.output=K(u)+(u.strictSlashes?")":"|$)"),a.value+=l,c.globstar=!0,c.output+=g.output+a.output,J(l);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&b[0]==="/"){const le=b[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(g.output+a.output).length),g.output=`(?:${g.output}`,a.type="globstar",a.output=`${K(u)}${W}|${W}${le})`,a.value+=l,c.output+=g.output+a.output,c.globstar=!0,J(l+D()),k({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&b[0]==="/"){a.type="globstar",a.value+=l,a.output=`(?:^|${W}|${K(u)}${W})`,c.output=a.output,c.globstar=!0,J(l+D()),k({type:"slash",value:"/",output:""});continue}if(N&&b[0]==="/"){a.type="globstar",a.value+=l,a.output=`(?:^|${W}|${K(u)}${W})`,c.output+=a.output,c.globstar=!0,J(l+D()),k({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-a.output.length),a.type="globstar",a.output=K(u),a.value+=l,c.output+=a.output,c.globstar=!0,J(l);continue}const M={type:"star",value:l,output:S};if(u.bash===!0){M.output=".*?",(a.type==="bos"||a.type==="slash")&&(M.output=Y+M.output),k(M);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&u.regex===!0){M.output=l,k(M);continue}(c.index===c.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(c.output+=ge,a.output+=ge):u.dot===!0?(c.output+=ue,a.output+=ue):(c.output+=Y,a.output+=Y),H()!=="*"&&(c.output+=ne,a.output+=ne)),k(M)}for(;c.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(f("closing","]"));c.output=t.escapeLast(c.output,"["),he("brackets")}for(;c.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(f("closing",")"));c.output=t.escapeLast(c.output,"("),he("parens")}for(;c.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(f("closing","}"));c.output=t.escapeLast(c.output,"{"),he("braces")}if(u.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${W}?`}),c.backtrack===!0){c.output="";for(const b of c.tokens)c.output+=b.output!=null?b.output:b.value,b.suffix&&(c.output+=b.suffix)}return c};return z.fastpaths=(d,y)=>{const u={...y},m=typeof u.maxLength=="number"?Math.min(o,u.maxLength):o,A=d.length;if(A>m)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${m}`);d=n[d]||d;const{DOT_LITERAL:R,SLASH_LITERAL:v,ONE_CHAR:O,DOTS_SLASH:X,NO_DOT:Z,NO_DOTS:P,NO_DOTS_SLASH:re,STAR:W,START_ANCHOR:ne}=e.globChars(u.windows),I=u.dot?P:Z,ce=u.dot?re:Z,ge=u.capture?"":"?:",ue={negated:!1,prefix:""};let L=u.bash===!0?".*?":W;u.capture&&(L=`(${L})`);const ie=Y=>Y.noglobstar===!0?L:`(${ge}(?:(?!${ne}${Y.dot?X:R}).)*?)`,de=Y=>{switch(Y){case"*":return`${I}${O}${L}`;case".*":return`${R}${O}${L}`;case"*.*":return`${I}${L}${R}${O}${L}`;case"*/*":return`${I}${L}${v}${O}${ce}${L}`;case"**":return I+ie(u);case"**/*":return`(?:${I}${ie(u)}${v})?${ce}${O}${L}`;case"**/*.*":return`(?:${I}${ie(u)}${v})?${ce}${L}${R}${O}${L}`;case"**/.*":return`(?:${I}${ie(u)}${v})?${R}${O}${L}`;default:{const _=/^(.*?)\.(\w+)$/.exec(Y);if(!_)return;const S=de(_[1]);return S?S+R+_[2]:void 0}}},Q=t.removePrefix(d,ue);let K=de(Q);return K&&u.strictSlashes!==!0&&(K+=`${v}?`),K},mt=z,mt}var vt,zt;function Ds(){if(zt)return vt;zt=1;const e=Ms(),t=Is(),o=pt(),r=ct(),i=n=>n&&typeof n=="object"&&!Array.isArray(n),s=(n,p,f=!1)=>{if(Array.isArray(n)){const q=n.map(z=>s(z,p,f));return z=>{for(const d of q){const y=d(z);if(y)return y}return!1}}const T=i(n)&&n.tokens&&n.input;if(n===""||typeof n!="string"&&!T)throw new TypeError("Expected pattern to be a non-empty string");const h=p||{},x=h.windows,$=T?s.compileRe(n,p):s.makeRe(n,p,!1,!0),E=$.state;delete $.state;let B=()=>!1;if(h.ignore){const q={...p,ignore:null,onMatch:null,onResult:null};B=s(h.ignore,q,f)}const oe=(q,z=!1)=>{const{isMatch:d,match:y,output:u}=s.test(q,$,p,{glob:n,posix:x}),m={glob:n,state:E,regex:$,posix:x,input:q,output:u,match:y,isMatch:d};if(typeof h.onResult=="function"&&h.onResult(m),d===!1)return m.isMatch=!1,z?m:!1;e:if(B(q)){if(typeof h.onIgnore=="function"&&h.onIgnore(m)===r.UNIGNORE){m.isMatch=!0;break e}return m.isMatch=!1,z?m:!1}return typeof h.onMatch=="function"&&h.onMatch(m),z?m:!0};return f&&(oe.state=E),oe};return s.test=(n,p,f,{glob:T,posix:h}={})=>{if(typeof n!="string")throw new TypeError("Expected input to be a string");if(n==="")return{isMatch:!1,output:""};const x=f||{},$=x.format||(h?o.toPosixSlashes:null);let E=n===T,B=E&&$?$(n):n;return E===!1&&(B=$?$(n):n,E=B===T),(E===!1||x.capture===!0)&&(x.matchBase===!0||x.basename===!0?E=s.matchBase(n,p,f,h):E=p.exec(B)),{isMatch:!!E,match:E,output:B}},s.matchBase=(n,p,f)=>(p instanceof RegExp?p:s.makeRe(p,f)).test(o.basename(n)),s.isMatch=(n,p,f)=>s(p,f)(n),s.parse=(n,p)=>Array.isArray(n)?n.map(f=>s.parse(f,p)):t(n,{...p,fastpaths:!1}),s.scan=(n,p)=>e(n,p),s.compileRe=(n,p,f=!1,T=!1)=>{if(f===!0)return n.output;const h=p||{},x=h.contains?"":"^",$=h.contains?"":"$";let E=`${x}(?:${n.output})${$}`;n&&n.negated===!0&&(E=`^(?!${E}).*$`);const B=s.toRegex(E,p);return T===!0&&(B.state=n),B},s.makeRe=(n,p={},f=!1,T=!1)=>{if(!n||typeof n!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(n[0]==="."||n[0]==="*")&&(h.output=t.fastpaths(n,p)),h.output||(h=t(n,p)),s.compileRe(h,p,f,T)},s.toRegex=(n,p)=>{try{const f=p||{};return new RegExp(n,f.flags||(f.nocase?"i":""))}catch(f){if(p&&p.debug===!0)throw f;return/$^/}},s.constants=r,vt=s,vt}var At,Xt;function Gs(){if(Xt)return At;Xt=1;const e=Ds(),t=pt();function o(r,i,s=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(r,i,s)}return Object.assign(o,e),At=o,At}var js=Gs();Ht(js);const Ps=w(import.meta.url),Ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nt=e=>{if(typeof Ie<"u"&&Ie.versions&&Ie.versions.node){const[t,o]=Ie.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ie.getBuiltinModule(e)}return Ps(e)};nt("fs");nt("fs");nt("path");nt("url");const{createRequire:Us}=nt("module");var Wt=Us(import.meta.url);try{Wt.resolve("picomatch"),Wt("picomatch")}catch{}var Rt,Qt;function Fs(){if(Qt)return Rt;Qt=1;/*!
5
2
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
6
3
  *
7
4
  * Copyright (c) 2014-2016, Jon Schlinkert.
8
5
  * Licensed under the MIT License.
9
- */return Et=function(e){if(typeof e!="string"||e==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},Et}var Tt,Vt;function mo(){if(Vt)return Tt;Vt=1;/*!
6
+ */return Rt=function(e){if(typeof e!="string"||e==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},Rt}var Tt,qt;function go(){if(qt)return Tt;qt=1;/*!
10
7
  * is-glob <https://github.com/jonschlinkert/is-glob>
11
8
  *
12
9
  * Copyright (c) 2014-2017, Jon Schlinkert.
13
10
  * Released under the MIT License.
14
- */var e=ur(),t={"{":"}","(":")","[":"]"},o=function(u){if(u[0]==="!")return!0;for(var s=0,n=-2,c=-2,f=-2,R=-2,h=-2;s<u.length;){if(u[s]==="*"||u[s+1]==="?"&&/[\].+)]/.test(u[s])||c!==-1&&u[s]==="["&&u[s+1]!=="]"&&(c<s&&(c=u.indexOf("]",s)),c>s&&(h===-1||h>c||(h=u.indexOf("\\",s),h===-1||h>c)))||f!==-1&&u[s]==="{"&&u[s+1]!=="}"&&(f=u.indexOf("}",s),f>s&&(h=u.indexOf("\\",s),h===-1||h>f))||R!==-1&&u[s]==="("&&u[s+1]==="?"&&/[:!=]/.test(u[s+2])&&u[s+3]!==")"&&(R=u.indexOf(")",s),R>s&&(h=u.indexOf("\\",s),h===-1||h>R))||n!==-1&&u[s]==="("&&u[s+1]!=="|"&&(n<s&&(n=u.indexOf("|",s)),n!==-1&&u[n+1]!==")"&&(R=u.indexOf(")",n),R>n&&(h=u.indexOf("\\",n),h===-1||h>R))))return!0;if(u[s]==="\\"){var A=u[s+1];s+=2;var $=t[A];if($){var x=u.indexOf($,s);x!==-1&&(s=x+1)}if(u[s]==="!")return!0}else s++}return!1},r=function(u){if(u[0]==="!")return!0;for(var s=0;s<u.length;){if(/[*?{}()[\]]/.test(u[s]))return!0;if(u[s]==="\\"){var n=u[s+1];s+=2;var c=t[n];if(c){var f=u.indexOf(c,s);f!==-1&&(s=f+1)}if(u[s]==="!")return!0}else s++}return!1};return Tt=function(u,s){if(typeof u!="string"||u==="")return!1;if(e(u))return!0;var n=o;return s&&s.strict===!1&&(n=r),n(u)},Tt}const ir=w(import.meta.url),De=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yo=e=>{if(typeof De<"u"&&De.versions&&De.versions.node){const[t,o]=De.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return De.getBuiltinModule(e)}return ir(e)},ar=yo("path"),lr=yo("os");var xt,Yt;function cr(){if(Yt)return xt;Yt=1;var e=mo(),t=ar.posix.dirname,o=lr.platform()==="win32",r="/",u=/\\/g,s=/\\([!*?|[\](){}])/g;xt=function(f,R){var h=Object.assign({flipBackslashes:!0},R);h.flipBackslashes&&o&&f.indexOf(r)<0&&(f=f.replace(u,r)),n(f)&&(f+=r),f+="a";do f=t(f);while(c(f));return f.replace(s,"$1")};function n(f){var R=f.slice(-1),h;switch(R){case"}":h="{";break;case"]":h="[";break;default:return!1}var A=f.indexOf(h);return A<0?!1:f.slice(A+1,-1).includes(r)}function c(f){return/\([^()]+$/.test(f)||f[0]==="{"||f[0]==="["||/[^\\][{[]/.test(f)?!0:e(f)}return xt}var pr=cr();Nt(pr);const fr=w(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,hr=e=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[t,o]=Ge.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ge.getBuiltinModule(e)}return fr(e)};hr("node:fs/promises");const gr=w(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,dr=e=>{if(typeof je<"u"&&je.versions&&je.versions.node){const[t,o]=je.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return je.getBuiltinModule(e)}return gr(e)},{accessSync:br}=dr("node:fs");function St(e,t=os){bo(e),e=at(e);try{return br(e,t),!0}catch{return!1}}var mr=mo();Nt(mr);const yr=w(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vo=e=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[t,o]=Pe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pe.getBuiltinModule(e)}return yr(e)};vo("node:fs/promises");vo("node:fs");let vr=class extends Error{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")}};const Ar=w(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ao=e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,o]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ue.getBuiltinModule(e)}return Ar(e)};Ao("node:fs/promises");Ao("node:zlib");const Rr=w(import.meta.url),Fe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=e=>{if(typeof Fe<"u"&&Fe.versions&&Fe.versions.node){const[t,o]=Fe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Fe.getBuiltinModule(e)}return Rr(e)};Ro("node:fs");Ro("node:zlib");const Er=w(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Tr=e=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[t,o]=Ke.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ke.getBuiltinModule(e)}return Er(e)},{createRequire:Eo}=Tr("node:module"),xr=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&xr.set("AggregateError",AggregateError);const _r=Eo(import.meta.url),ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$r=e=>{if(typeof ze<"u"&&ze.versions&&ze.versions.node){const[t,o]=ze.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ze.getBuiltinModule(e)}return _r(e)};$r("node:util");const kr=Eo(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ht=e=>{if(typeof Xe<"u"&&Xe.versions&&Xe.versions.node){const[t,o]=Xe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Xe.getBuiltinModule(e)}return kr(e)};Ht("node:fs");Ht("node:path");Ht("node:url");const Cr=w(import.meta.url),We=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,To=e=>{if(typeof We<"u"&&We.versions&&We.versions.node){const[t,o]=We.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return We.getBuiltinModule(e)}return Cr(e)};To("node:fs");To("node:fs/promises");const Sr=w(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wr=e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,o]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return qe.getBuiltinModule(e)}return Sr(e)};wr("node:fs");const Or=w(import.meta.url),Qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Nr=e=>{if(typeof Qe<"u"&&Qe.versions&&Qe.versions.node){const[t,o]=Qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Qe.getBuiltinModule(e)}return Or(e)};Nr("node:fs/promises");const Hr=w(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Lr=e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,o]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ze.getBuiltinModule(e)}return Hr(e)};Lr("node:fs");w(import.meta.url);const Br=w(import.meta.url),Ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Mr=e=>{if(typeof Ve<"u"&&Ve.versions&&Ve.versions.node){const[t,o]=Ve.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ve.getBuiltinModule(e)}return Br(e)};Mr("node:crypto");new TextEncoder;const Ir=w(import.meta.url),Ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Dr=e=>{if(typeof Ye<"u"&&Ye.versions&&Ye.versions.node){const[t,o]=Ye.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ye.getBuiltinModule(e)}return Ir(e)};Dr("node:fs/promises");const Gr=w(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,jr=e=>{if(typeof Je<"u"&&Je.versions&&Je.versions.node){const[t,o]=Je.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Je.getBuiltinModule(e)}return Gr(e)};jr("node:fs");const Pr=w(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ur=e=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[t,o]=et.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return et.getBuiltinModule(e)}return Pr(e)};Ur("node:fs/promises");const Fr=w(import.meta.url),tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Kr=e=>{if(typeof tt<"u"&&tt.versions&&tt.versions.node){const[t,o]=tt.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return tt.getBuiltinModule(e)}return Fr(e)};Kr("node:fs");const zr=w(import.meta.url),ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Lt=e=>{if(typeof ot<"u"&&ot.versions&&ot.versions.node){const[t,o]=ot.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ot.getBuiltinModule(e)}return zr(e)},Xr=Lt("fs"),Wr=Lt("os"),qr=Lt("path");var _t={},Jt;function Qr(){if(Jt)return _t;Jt=1;var e=Object.defineProperty,t=(h,A)=>e(h,"name",{value:A,configurable:!0}),o=Xr,r=Wr,u=qr;const s=t(h=>{let A="";for(let $=0;$<h.length;$+=1){const x=h[$],B=x.toUpperCase();A+=x===B?x.toLowerCase():B}return A},"invertCase"),n=new Map,c=t((h,A)=>{const $=u.join(h,`.is-fs-case-sensitive-test-${process.pid}`);try{return A.writeFileSync($,""),!A.existsSync(s($))}finally{try{A.unlinkSync($)}catch{}}},"checkDirectoryCaseWithWrite"),f=t((h,A,$)=>{try{return c(h,$)}catch(x){if(A===void 0)return c(r.tmpdir(),$);throw x}},"checkDirectoryCaseWithFallback"),R=t((h,A=o,$=!0)=>{const x=h??process.cwd();if($&&n.has(x))return n.get(x);let B;const oe=s(x);return oe!==x&&A.existsSync(x)?B=!A.existsSync(oe):B=f(x,h,A),$&&n.set(x,B),B},"isFsCaseSensitive");return _t.isFsCaseSensitive=R,_t}Qr();const xo=e=>e instanceof URL?new URL(e).pathname:e,eo=e=>{const t=es();if(It==="win32"){const r=rt.LOCALAPPDATA??(t?se(t,"AppData","Local"):gt());return se(r,e,"Cache")}if(It==="darwin"){const r=t?se(t,"Library","Caches"):gt();return se(r,e)}const o=rt.XDG_CACHE_HOME??(t?se(t,".cache"):gt());return se(o,e)},Zr=e=>{if(e.length===0)return;const t=e.map(s=>go(xo(s)).split(dt));let o=Number.POSITIVE_INFINITY;for(const s of t)s.length<o&&(o=s.length);const r=[];for(let s=0;s<o;s+=1){const n=t[0][s];if(t.every(c=>c[s]===n))r.push(n);else break}const u=r.join(dt);return u===""?dt:u},st=(e,t)=>{if(e!==void 0)return t?(...o)=>se(e,...o):e},Vr=e=>{if(e?.files&&e.files.length>0){const t=Zr(e.files);if(t!==void 0)return t}return e?.cwd??ts()},Yr=e=>new vr(`No package.json found searching upwards from '${xo(e)}'.`),$t=e=>!St(e,po)&&St(e),Jr=(e,t)=>{if(rt.CACHE_DIR&&!["0","1","false","true"].includes(rt.CACHE_DIR)){const c=se(rt.CACHE_DIR,e);return t?.create&&$e(c),st(c,t?.thunk)}const o=Vr(t),r=Ys("package.json",{cwd:o,type:"file"});if(!r){if(t?.useGlobalCacheFallback){const c=eo(e);return t.create&&$e(c),st(c,t.thunk)}if(t?.throwError)throw Yr(o);return}const u=se(Ot(r),"node_modules"),s=se(u,".cache"),n=se(s,e);if(St(n,po))return t?.create&&$e(n),st(n,t?.thunk);if($t(n)||$t(s)||$t(u)){if(t?.useGlobalCacheFallback){const c=eo(e);return t.create&&$e(c),st(c,t.thunk)}return}return t?.create&&$e(n),st(n,t?.thunk)},_o=Jr;class ht extends Error{chain;constructor(t,o,r){super(t,r),this.name=this.constructor.name,this.chain=o}}class en extends ht{constructor(t,o){const r=[...o,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${r}`,o)}}class $o extends ht{filePath;removedKeys;constructor(t,o,r){const u=[`${t} uses removed keys.`,""];for(const s of r){const n=s.location?` (at ${s.location})`:"";u.push(` • ${s.name}${n} → renamed to \`${s.renamedTo}\``);for(const c of s.children??[])u.push(` ↳ ${c.name} → renamed to \`${c.renamedTo}\``)}u.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(u.join(`
15
- `),o),this.filePath=t,this.removedKeys=r}}class to extends ht{constructor(t,o,r){const u=r instanceof Error?r.message:String(r),s=o.length>0?`
16
- Chain: ${o.join(" → ")}`:"";super(`Failed to load ${t}: ${u}${s}`,o,{cause:r})}}const tn=e=>e.join(" → ");class kt extends ht{constructor(t,o,r){const u=o.length>0?o[o.length-1]:"<unknown>",s=r.length>0?`
11
+ */var e=Fs(),t={"{":"}","(":")","[":"]"},o=function(i){if(i[0]==="!")return!0;for(var s=0,n=-2,p=-2,f=-2,T=-2,h=-2;s<i.length;){if(i[s]==="*"||i[s+1]==="?"&&/[\].+)]/.test(i[s])||p!==-1&&i[s]==="["&&i[s+1]!=="]"&&(p<s&&(p=i.indexOf("]",s)),p>s&&(h===-1||h>p||(h=i.indexOf("\\",s),h===-1||h>p)))||f!==-1&&i[s]==="{"&&i[s+1]!=="}"&&(f=i.indexOf("}",s),f>s&&(h=i.indexOf("\\",s),h===-1||h>f))||T!==-1&&i[s]==="("&&i[s+1]==="?"&&/[:!=]/.test(i[s+2])&&i[s+3]!==")"&&(T=i.indexOf(")",s),T>s&&(h=i.indexOf("\\",s),h===-1||h>T))||n!==-1&&i[s]==="("&&i[s+1]!=="|"&&(n<s&&(n=i.indexOf("|",s)),n!==-1&&i[n+1]!==")"&&(T=i.indexOf(")",n),T>n&&(h=i.indexOf("\\",n),h===-1||h>T))))return!0;if(i[s]==="\\"){var x=i[s+1];s+=2;var $=t[x];if($){var E=i.indexOf($,s);E!==-1&&(s=E+1)}if(i[s]==="!")return!0}else s++}return!1},r=function(i){if(i[0]==="!")return!0;for(var s=0;s<i.length;){if(/[*?{}()[\]]/.test(i[s]))return!0;if(i[s]==="\\"){var n=i[s+1];s+=2;var p=t[n];if(p){var f=i.indexOf(p,s);f!==-1&&(s=f+1)}if(i[s]==="!")return!0}else s++}return!1};return Tt=function(i,s){if(typeof i!="string"||i==="")return!1;if(e(i))return!0;var n=o;return s&&s.strict===!1&&(n=r),n(i)},Tt}const Ks=w(import.meta.url),De=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,bo=e=>{if(typeof De<"u"&&De.versions&&De.versions.node){const[t,o]=De.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return De.getBuiltinModule(e)}return Ks(e)},zs=bo("path"),Xs=bo("os");var Et,Zt;function Ws(){if(Zt)return Et;Zt=1;var e=go(),t=zs.posix.dirname,o=Xs.platform()==="win32",r="/",i=/\\/g,s=/\\([!*?|[\](){}])/g;Et=function(f,T){var h=Object.assign({flipBackslashes:!0},T);h.flipBackslashes&&o&&f.indexOf(r)<0&&(f=f.replace(i,r)),n(f)&&(f+=r),f+="a";do f=t(f);while(p(f));return f.replace(s,"$1")};function n(f){var T=f.slice(-1),h;switch(T){case"}":h="{";break;case"]":h="[";break;default:return!1}var x=f.indexOf(h);return x<0?!1:f.slice(x+1,-1).includes(r)}function p(f){return/\([^()]+$/.test(f)||f[0]==="{"||f[0]==="["||/[^\\][{[]/.test(f)?!0:e(f)}return Et}var Qs=Ws();Ht(Qs);const qs=w(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zs=e=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[t,o]=Ge.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ge.getBuiltinModule(e)}return qs(e)};Zs("node:fs/promises");const Vs=w(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ys=e=>{if(typeof je<"u"&&je.versions&&je.versions.node){const[t,o]=je.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return je.getBuiltinModule(e)}return Vs(e)},{accessSync:Js}=Ys("node:fs");function Ct(e,t=Go){ho(e),e=at(e);try{return Js(e,t),!0}catch{return!1}}var er=go();Ht(er);const tr=w(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yo=e=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[t,o]=Pe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pe.getBuiltinModule(e)}return tr(e)};yo("node:fs/promises");yo("node:fs");let or=class extends Error{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")}};const sr=w(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,mo=e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,o]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ue.getBuiltinModule(e)}return sr(e)};mo("node:fs/promises");mo("node:zlib");const rr=w(import.meta.url),Fe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vo=e=>{if(typeof Fe<"u"&&Fe.versions&&Fe.versions.node){const[t,o]=Fe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Fe.getBuiltinModule(e)}return rr(e)};vo("node:fs");vo("node:zlib");const nr=w(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ur=e=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[t,o]=Ke.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ke.getBuiltinModule(e)}return nr(e)},{createRequire:Ao}=ur("node:module"),ir=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&ir.set("AggregateError",AggregateError);const ar=Ao(import.meta.url),ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lr=e=>{if(typeof ze<"u"&&ze.versions&&ze.versions.node){const[t,o]=ze.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ze.getBuiltinModule(e)}return ar(e)};lr("node:util");const cr=Ao(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Nt=e=>{if(typeof Xe<"u"&&Xe.versions&&Xe.versions.node){const[t,o]=Xe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Xe.getBuiltinModule(e)}return cr(e)};Nt("node:fs");Nt("node:path");Nt("node:url");const pr=w(import.meta.url),We=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ro=e=>{if(typeof We<"u"&&We.versions&&We.versions.node){const[t,o]=We.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return We.getBuiltinModule(e)}return pr(e)};Ro("node:fs");Ro("node:fs/promises");const fr=w(import.meta.url),Qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,hr=e=>{if(typeof Qe<"u"&&Qe.versions&&Qe.versions.node){const[t,o]=Qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Qe.getBuiltinModule(e)}return fr(e)};hr("node:fs");const gr=w(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,dr=e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,o]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return qe.getBuiltinModule(e)}return gr(e)};dr("node:fs/promises");const br=w(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yr=e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,o]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ze.getBuiltinModule(e)}return br(e)};yr("node:fs");w(import.meta.url);const mr=w(import.meta.url),Ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vr=e=>{if(typeof Ve<"u"&&Ve.versions&&Ve.versions.node){const[t,o]=Ve.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ve.getBuiltinModule(e)}return mr(e)};vr("node:crypto");new TextEncoder;const Ar=w(import.meta.url),Ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Rr=e=>{if(typeof Ye<"u"&&Ye.versions&&Ye.versions.node){const[t,o]=Ye.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ye.getBuiltinModule(e)}return Ar(e)};Rr("node:fs/promises");const Tr=w(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Er=e=>{if(typeof Je<"u"&&Je.versions&&Je.versions.node){const[t,o]=Je.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Je.getBuiltinModule(e)}return Tr(e)};Er("node:fs");const _r=w(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xr=e=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[t,o]=et.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return et.getBuiltinModule(e)}return _r(e)};xr("node:fs/promises");const $r=w(import.meta.url),tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,kr=e=>{if(typeof tt<"u"&&tt.versions&&tt.versions.node){const[t,o]=tt.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return tt.getBuiltinModule(e)}return $r(e)};kr("node:fs");const Cr=w(import.meta.url),ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Lt=e=>{if(typeof ot<"u"&&ot.versions&&ot.versions.node){const[t,o]=ot.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ot.getBuiltinModule(e)}return Cr(e)},Sr=Lt("fs"),wr=Lt("os"),Or=Lt("path");var _t={},Vt;function Hr(){if(Vt)return _t;Vt=1;var e=Object.defineProperty,t=(h,x)=>e(h,"name",{value:x,configurable:!0}),o=Sr,r=wr,i=Or;const s=t(h=>{let x="";for(let $=0;$<h.length;$+=1){const E=h[$],B=E.toUpperCase();x+=E===B?E.toLowerCase():B}return x},"invertCase"),n=new Map,p=t((h,x)=>{const $=i.join(h,`.is-fs-case-sensitive-test-${process.pid}`);try{return x.writeFileSync($,""),!x.existsSync(s($))}finally{try{x.unlinkSync($)}catch{}}},"checkDirectoryCaseWithWrite"),f=t((h,x,$)=>{try{return p(h,$)}catch(E){if(x===void 0)return p(r.tmpdir(),$);throw E}},"checkDirectoryCaseWithFallback"),T=t((h,x=o,$=!0)=>{const E=h??process.cwd();if($&&n.has(E))return n.get(E);let B;const oe=s(E);return oe!==E&&x.existsSync(E)?B=!x.existsSync(oe):B=f(E,h,x),$&&n.set(E,B),B},"isFsCaseSensitive");return _t.isFsCaseSensitive=T,_t}Hr();const To=e=>e instanceof URL?new URL(e).pathname:e,Yt=e=>{const t=Io();if(Bt==="win32"){const r=rt.LOCALAPPDATA??(t?se(t,"AppData","Local"):ht());return se(r,e,"Cache")}if(Bt==="darwin"){const r=t?se(t,"Library","Caches"):ht();return se(r,e)}const o=rt.XDG_CACHE_HOME??(t?se(t,".cache"):ht());return se(o,e)},Nr=e=>{if(e.length===0)return;const t=e.map(s=>fo(To(s)).split(gt));let o=Number.POSITIVE_INFINITY;for(const s of t)s.length<o&&(o=s.length);const r=[];for(let s=0;s<o;s+=1){const n=t[0][s];if(t.every(p=>p[s]===n))r.push(n);else break}const i=r.join(gt);return i===""?gt:i},st=(e,t)=>{if(e!==void 0)return t?(...o)=>se(e,...o):e},Lr=e=>{if(e?.files&&e.files.length>0){const t=Nr(e.files);if(t!==void 0)return t}return e?.cwd??Do()},Br=e=>new or(`No package.json found searching upwards from '${To(e)}'.`),xt=e=>!Ct(e,lo)&&Ct(e),Mr=(e,t)=>{if(rt.CACHE_DIR&&!["0","1","false","true"].includes(rt.CACHE_DIR)){const p=se(rt.CACHE_DIR,e);return t?.create&&$e(p),st(p,t?.thunk)}const o=Lr(t),r=Bs("package.json",{cwd:o,type:"file"});if(!r){if(t?.useGlobalCacheFallback){const p=Yt(e);return t.create&&$e(p),st(p,t.thunk)}if(t?.throwError)throw Br(o);return}const i=se(Ot(r),"node_modules"),s=se(i,".cache"),n=se(s,e);if(Ct(n,lo))return t?.create&&$e(n),st(n,t?.thunk);if(xt(n)||xt(s)||xt(i)){if(t?.useGlobalCacheFallback){const p=Yt(e);return t.create&&$e(p),st(p,t.thunk)}return}return t?.create&&$e(n),st(n,t?.thunk)},Eo=Mr;class ft extends Error{chain;constructor(t,o,r){super(t,r),this.name=this.constructor.name,this.chain=o}}class Ir extends ft{constructor(t,o){const r=[...o,`${t} (re-enters)`].join(" → ");super(`Config cycle: ${r}`,o)}}class _o extends ft{filePath;removedKeys;constructor(t,o,r){const i=[`${t} uses removed keys.`,""];for(const s of r){const n=s.location?` (at ${s.location})`:"";i.push(` • ${s.name}${n} → renamed to \`${s.renamedTo}\``);for(const p of s.children??[])i.push(` ↳ ${p.name} → renamed to \`${p.renamedTo}\``)}i.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(i.join(`
12
+ `),o),this.filePath=t,this.removedKeys=r}}class Jt extends ft{constructor(t,o,r){const i=r instanceof Error?r.message:String(r),s=o.length>0?`
13
+ Chain: ${o.join(" → ")}`:"";super(`Failed to load ${t}: ${i}${s}`,o,{cause:r})}}const Dr=e=>e.join(" → ");class $t extends ft{constructor(t,o,r){const i=o.length>0?o[o.length-1]:"<unknown>",s=r.length>0?`
17
14
  Tried:
18
15
  ${r.join(`
19
- `)}`:"";super(`Cannot resolve "${t}" extended from ${u}.${s}
20
- Chain: ${tn(o)}`,o)}}const on=e=>{const t=[];if(Object.hasOwn(e,"targetDefaults")&&t.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(e,"taskRunnerOptions")&&t.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(e,"taskDefaults")){const{taskDefaults:o}=e,r=[];if(Array.isArray(o))for(const[u,s]of o.entries())s&&typeof s=="object"&&(Object.hasOwn(s,"scope")&&r.push({location:`taskDefaults[${u}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(s,"targets")&&r.push({location:`taskDefaults[${u}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:r.length>0?r:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[o,r]of e.scopedTasks.entries())r&&typeof r=="object"&&(Object.hasOwn(r,"scope")&&t.push({location:`scopedTasks[${o}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(r,"targets")&&t.push({location:`scopedTasks[${o}].targets`,name:"targets",renamedTo:"tasks"}));return t},sn=e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],rn=(e,t,o)=>{if(!o||typeof o!="object")return;const r=on(o);if(r.length>0)throw new $o(e,t,r)},nn=(e,t,o)=>{if(!o||typeof o!="object")return;const r=sn(o);if(r.length>0)throw new $o(e,t,r)},ko=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],un=new Set(ko),Co=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],an=new Set(Co),Cn=2880,Ct={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},ln=e=>{if(!e)return{...Ct};const t=Ct.policies??{},o=e.policies??{},r={...t,...o};for(const u of Object.keys(t)){const s=t[u],n=o[u];s!==void 0&&n!==void 0&&(r[u]={...s,...n})}return{...Ct,...e,policies:r}},oo=e=>({...e,security:ln(e.security),update:{security:!0,target:"minor",...e.update}}),cn=e=>{let t;try{t=ro(e)}catch{return}const o=new Set(t.filter(r=>un.has(r)));for(const r of ko)if(o.has(r))return ee(e,r)},pn=e=>{let t;try{t=ro(e)}catch{return}const o=new Set(t.filter(r=>an.has(r)));for(const r of Co)if(o.has(r))return ee(e,r)},Bt=e=>so("sha256").update(Io(e)).digest("hex"),fn=e=>{const t=so("sha256"),o=[...e].sort();for(const r of o)t.update(r),t.update(":"),t.update(Bt(r)),t.update(`
21
- `);return t.digest("hex")},hn=e=>{const t=ee(e,"node_modules");if(ye(t)){const r=ee(t,".cache","vis");return lt(r),ee(r,"vis-config-cache.json")}const o=_o("vis",{create:!0,cwd:e});return o?ee(o,"vis-config-cache.json"):void 0},gn=(e,t)=>{if(ye(e))try{const o=lo(e);if(o.hash===t)return o.config}catch{}},dn=(e,t,o)=>{try{lt(ct(e)),io(e,{config:o,hash:t})}catch{}},bn=e=>e===void 0?[]:Array.isArray(e)?e:[e],mn=(e,t,o)=>{if(uo(e))throw new kt(e,[...o,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const r=[];if(e.startsWith("./")||e.startsWith("../")){const u=ct(t),s=ee(u,e);if(r.push(s),ye(s))return s;throw new kt(e,[...o,t],r)}try{return no(t).resolve(e)}catch{throw r.push(`require.resolve("${e}") from ${t}`),new kt(e,[...o,t],r)}},So=async(e,t,o)=>{const r=Bt(t),u=t.slice(t.lastIndexOf(".")),s=ee(ct(t),`.vis-config-tmp-${r}${u}`);Bo(t,s);let n;try{n=await e.import(s,{default:!0,try:!0})??{}}catch(c){throw new to(t,o,c)}finally{try{Mo(s)}catch{}}try{return(typeof n=="function"?await n()??{}:n)??{}}catch(c){throw new to(t,o,c)}},yn=(e,t)=>{const o={...e,...t};if(e.tasks||t.tasks){const r=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),u={};for(const s of r)u[s]=Yo(e.tasks?.[s],t.tasks?.[s]);o.tasks=u}if((e.scopedTasks||t.scopedTasks)&&(o.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(o.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(o.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const r=e.security?.policies??{},u=t.security?.policies??{},s={...r,...u};for(const n of Object.keys(r)){const c=r[n],f=u[n];c!==void 0&&f!==void 0&&(s[n]={...c,...f})}o.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:s}}return(e.update||t.update)&&(o.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(o.taskRunner={...e.taskRunner,...t.taskRunner}),delete o.extends,o},wo=async(e,t,o,r,u,s)=>{if(r.has(t))throw new en(t,o);if(!u.has(t)){r.add(t);try{const n=await So(e,t,o);rn(t,o,n);const c=bn(n.extends);for(const f of c){const R=mn(f,t,o);await wo(e,R,[...o,t],r,u,s)}u.set(t,n),s.push(t)}finally{r.delete(t)}}},Sn=async(e,t)=>{let o;if(t?.explicitConfigPath){const A=uo(t.explicitConfigPath)?t.explicitConfigPath:ee(e,t.explicitConfigPath);if(!ye(A))throw new Error(`Cannot find config file at ${A}`);o=A}else o=cn(e);if(!o)return oo({});const r=ao(e,{fsCache:!1,moduleCache:!1}),u=new Set,s=new Map,n=[];await wo(r,o,[],u,s,n);const c=fn(n),f=hn(e);if(f){const A=gn(f,c);if(A)return A}let R={};for(const A of n)R=yn(R,s.get(A));const h=oo(R);return f&&dn(f,c,h),h},vn=e=>e.replaceAll(/[^\w.-]+/g,"_"),An=(e,t)=>{const o=ee(e,"node_modules"),r=vn(t);if(ye(o)){const s=ee(o,".cache","vis","task-configs");return lt(s),ee(s,`${r}.json`)}const u=_o("vis",{create:!0,cwd:e});return u?ee(u,"task-configs",`${r}.json`):void 0},Rn=(e,t)=>{if(ye(e))try{const o=lo(e);if(o.hash===t)return o.config}catch{}},En=(e,t,o)=>{try{lt(ct(e)),io(e,{config:o,hash:t})}catch{}},wn=async(e,t,o)=>{const r=pn(t);if(!r)return;const u=Bt(r),s=An(e,o);if(s){const R=Rn(s,u);if(R)return R}const n=ao(t,{fsCache:!1,moduleCache:!1}),c=await So(n,r,[]);nn(r,[],c);const f=c;return s&&En(s,u,f),f},On=e=>e,Nn=e=>e;export{Ct as C,_o as E,Qo as N,Sn as Z,lo as a,cn as b,Yo as c,Co as h,wn as i,pn as j,oo as k,ko as m,On as o,Cn as q,Nn as r};
16
+ `)}`:"";super(`Cannot resolve "${t}" extended from ${i}.${s}
17
+ Chain: ${Dr(o)}`,o)}}const eo="@inherit",Gr=["aliases","dependsOn","inputs","outputs"],jr=(e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(eo))return[...t];const o=[];for(const r of t){if(r===eo){e!==void 0&&o.push(...e);continue}o.push(r)}return o},Pr=(e,t)=>{const o={...e,...t};for(const r of Gr){const i=e?.[r],s=t?.[r],n=jr(i,s);n===void 0?delete o[r]:o[r]=n}return o},Ur=e=>{const t=[];if(Object.hasOwn(e,"targetDefaults")&&t.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(e,"taskRunnerOptions")&&t.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(e,"taskDefaults")){const{taskDefaults:o}=e,r=[];if(Array.isArray(o))for(const[i,s]of o.entries())s&&typeof s=="object"&&(Object.hasOwn(s,"scope")&&r.push({location:`taskDefaults[${i}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(s,"targets")&&r.push({location:`taskDefaults[${i}].targets`,name:"targets",renamedTo:"tasks"}));t.push({children:r.length>0?r:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(e.scopedTasks))for(const[o,r]of e.scopedTasks.entries())r&&typeof r=="object"&&(Object.hasOwn(r,"scope")&&t.push({location:`scopedTasks[${o}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(r,"targets")&&t.push({location:`scopedTasks[${o}].targets`,name:"targets",renamedTo:"tasks"}));return t},Fr=e=>Object.hasOwn(e,"targets")&&!Object.hasOwn(e,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],Kr=(e,t,o)=>{if(!o||typeof o!="object")return;const r=Ur(o);if(r.length>0)throw new _o(e,t,r)},zr=(e,t,o)=>{if(!o||typeof o!="object")return;const r=Fr(o);if(r.length>0)throw new _o(e,t,r)},xo=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],Xr=new Set(xo),$o=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],Wr=new Set($o),dn=2880,kt={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},Qr=e=>{if(!e)return{...kt};const t=kt.policies??{},o=e.policies??{},r={...t,...o};for(const i of Object.keys(t)){const s=t[i],n=o[i];s!==void 0&&n!==void 0&&(r[i]={...s,...n})}return{...kt,...e,policies:r}},to=e=>({...e,security:Qr(e.security),update:{security:!0,target:"minor",...e.update}}),qr=e=>{let t;try{t=so(e)}catch{return}const o=new Set(t.filter(r=>Xr.has(r)));for(const r of xo)if(o.has(r))return te(e,r)},Zr=e=>{let t;try{t=so(e)}catch{return}const o=new Set(t.filter(r=>Wr.has(r)));for(const r of $o)if(o.has(r))return te(e,r)},ko=e=>oo("sha256").update(Lo(e)).digest("hex"),Vr=e=>{const t=oo("sha256"),o=[...e].sort();for(const r of o)t.update(r),t.update(":"),t.update(ko(r)),t.update(`
18
+ `);return t.digest("hex")},Yr=e=>{const t=te(e,"node_modules");if(me(t)){const r=te(t,".cache","vis");return lt(r),te(r,"vis-config-cache.json")}const o=Eo("vis",{create:!0,cwd:e});return o?te(o,"vis-config-cache.json"):void 0},Jr=(e,t)=>{if(me(e))try{const o=io(e);if(o.hash===t)return o.config}catch{}},en=(e,t,o)=>{try{lt(wt(e)),uo(e,{config:o,hash:t})}catch{}},tn=e=>e===void 0?[]:Array.isArray(e)?e:[e],on=(e,t,o)=>{if(no(e))throw new $t(e,[...o,t],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const r=[];if(e.startsWith("./")||e.startsWith("../")){const i=wt(t),s=te(i,e);if(r.push(s),me(s))return s;throw new $t(e,[...o,t],r)}try{return ro(t).resolve(e)}catch{throw r.push(`require.resolve("${e}") from ${t}`),new $t(e,[...o,t],r)}},Co=async(e,t)=>{let o;try{o=(await Bo(e)).default??{}}catch(r){throw new Jt(e,t,r)}try{return(typeof o=="function"?await o()??{}:o)??{}}catch(r){throw new Jt(e,t,r)}},sn=(e,t)=>{const o={...e,...t};if(e.tasks||t.tasks){const r=new Set([...Object.keys(e.tasks??{}),...Object.keys(t.tasks??{})]),i={};for(const s of r)i[s]=Pr(e.tasks?.[s],t.tasks?.[s]);o.tasks=i}if((e.scopedTasks||t.scopedTasks)&&(o.scopedTasks=[...e.scopedTasks??[],...t.scopedTasks??[]]),(e.fileGroups||t.fileGroups)&&(o.fileGroups={...e.fileGroups,...t.fileGroups}),(e.taskGroups||t.taskGroups)&&(o.taskGroups={...e.taskGroups,...t.taskGroups}),e.security||t.security){const r=e.security?.policies??{},i=t.security?.policies??{},s={...r,...i};for(const n of Object.keys(r)){const p=r[n],f=i[n];p!==void 0&&f!==void 0&&(s[n]={...p,...f})}o.security={...e.security,...t.security,acceptedRisks:{...e.security?.acceptedRisks,...t.security?.acceptedRisks},policies:s}}return(e.update||t.update)&&(o.update={...e.update,...t.update}),(e.taskRunner||t.taskRunner)&&(o.taskRunner={...e.taskRunner,...t.taskRunner}),delete o.extends,o},So=async(e,t,o,r,i)=>{if(o.has(e))throw new Ir(e,t);if(!r.has(e)){o.add(e);try{const s=await Co(e,t);Kr(e,t,s);const n=tn(s.extends);for(const p of n){const f=on(p,e,t);await So(f,[...t,e],o,r,i)}r.set(e,s),i.push(e)}finally{o.delete(e)}}},bn=async(e,t)=>{let o;if(t?.explicitConfigPath){const h=no(t.explicitConfigPath)?t.explicitConfigPath:te(e,t.explicitConfigPath);if(!me(h))throw new Error(`Cannot find config file at ${h}`);o=h}else o=qr(e);if(!o)return to({});const r=new Set,i=new Map,s=[];await So(o,[],r,i,s);const n=Vr(s),p=Yr(e);if(p){const h=Jr(p,n);if(h)return h}let f={};for(const h of s)f=sn(f,i.get(h));const T=to(f);return p&&en(p,n,T),T},rn=e=>e.replaceAll(/[^\w.-]+/g,"_"),nn=(e,t)=>{const o=te(e,"node_modules"),r=rn(t);if(me(o)){const s=te(o,".cache","vis","task-configs");return lt(s),te(s,`${r}.json`)}const i=Eo("vis",{create:!0,cwd:e});return i?te(i,"task-configs",`${r}.json`):void 0},un=(e,t)=>{if(me(e))try{const o=io(e);if(o.hash===t)return o.config}catch{}},an=(e,t,o)=>{try{lt(wt(e)),uo(e,{config:o,hash:t})}catch{}},yn=async(e,t,o)=>{const r=Zr(t);if(!r)return;const i=ko(r),s=nn(e,o);if(s){const f=un(s,i);if(f)return f}const n=await Co(r,[]);zr(r,[],n);const p=n;return s&&an(s,i,p),p},mn=e=>e,vn=e=>e;export{Zr as A,bn as B,Eo as E,qr as N,dn as U,Pr as a,kt as d,yn as e,vn as i,xo as k,$o as m,mn as n,to as y};