@visulima/vis 2.0.2 → 3.0.0

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 (147) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE.md +95 -65
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/CONFIG_FILES.js +2 -2
  6. package/dist/packem_chunks/bloom-status.js +1 -1
  7. package/dist/packem_chunks/bloom-sync.js +1 -1
  8. package/dist/packem_chunks/catalog.js +47 -47
  9. package/dist/packem_chunks/cli-exec.js +1 -1
  10. package/dist/packem_chunks/cli-main.js +141 -141
  11. package/dist/packem_chunks/dispatch.js +1 -1
  12. package/dist/packem_chunks/fix.js +1 -1
  13. package/dist/packem_chunks/handler.js +1 -1
  14. package/dist/packem_chunks/handler10.js +1 -1
  15. package/dist/packem_chunks/handler11.js +1 -1
  16. package/dist/packem_chunks/handler12.js +1 -1
  17. package/dist/packem_chunks/handler13.js +1 -1
  18. package/dist/packem_chunks/handler14.js +1 -1
  19. package/dist/packem_chunks/handler15.js +1 -1
  20. package/dist/packem_chunks/handler16.js +1 -1
  21. package/dist/packem_chunks/handler17.js +1 -1
  22. package/dist/packem_chunks/handler18.js +1 -1
  23. package/dist/packem_chunks/handler19.js +1 -1
  24. package/dist/packem_chunks/handler2.js +1 -1
  25. package/dist/packem_chunks/handler20.js +1 -1
  26. package/dist/packem_chunks/handler21.js +1 -1
  27. package/dist/packem_chunks/handler22.js +1 -1
  28. package/dist/packem_chunks/handler23.js +1 -1
  29. package/dist/packem_chunks/handler24.js +1 -1
  30. package/dist/packem_chunks/handler26.js +1 -1
  31. package/dist/packem_chunks/handler27.js +1 -1
  32. package/dist/packem_chunks/handler28.js +1 -1
  33. package/dist/packem_chunks/handler29.js +1 -1
  34. package/dist/packem_chunks/handler3.js +1 -1
  35. package/dist/packem_chunks/handler30.js +1 -1
  36. package/dist/packem_chunks/handler4.js +1 -1
  37. package/dist/packem_chunks/handler5.js +1 -1
  38. package/dist/packem_chunks/handler50.js +1 -1
  39. package/dist/packem_chunks/handler51.js +1 -1
  40. package/dist/packem_chunks/handler53.js +1 -1
  41. package/dist/packem_chunks/handler54.js +1 -1
  42. package/dist/packem_chunks/handler55.js +1 -1
  43. package/dist/packem_chunks/handler58.js +1 -1
  44. package/dist/packem_chunks/handler59.js +1 -1
  45. package/dist/packem_chunks/handler6.js +1 -1
  46. package/dist/packem_chunks/handler60.js +1 -1
  47. package/dist/packem_chunks/handler61.js +1 -1
  48. package/dist/packem_chunks/handler62.js +1 -1
  49. package/dist/packem_chunks/handler63.js +1 -1
  50. package/dist/packem_chunks/handler64.js +1 -1
  51. package/dist/packem_chunks/handler66.js +1 -1
  52. package/dist/packem_chunks/handler67.js +13 -13
  53. package/dist/packem_chunks/handler68.js +1 -1
  54. package/dist/packem_chunks/handler69.js +1 -1
  55. package/dist/packem_chunks/handler7.js +1 -1
  56. package/dist/packem_chunks/handler70.js +5 -5
  57. package/dist/packem_chunks/handler71.js +1 -1
  58. package/dist/packem_chunks/handler72.js +1 -1
  59. package/dist/packem_chunks/handler73.js +1 -1
  60. package/dist/packem_chunks/handler74.js +15 -15
  61. package/dist/packem_chunks/handler75.js +1 -1
  62. package/dist/packem_chunks/handler76.js +1 -1
  63. package/dist/packem_chunks/handler77.js +1 -1
  64. package/dist/packem_chunks/handler78.js +1 -1
  65. package/dist/packem_chunks/handler8.js +1 -1
  66. package/dist/packem_chunks/handler9.js +1 -1
  67. package/dist/packem_chunks/heal-accept.js +1 -1
  68. package/dist/packem_chunks/heal.js +1 -1
  69. package/dist/packem_chunks/help-command.js +1 -1
  70. package/dist/packem_chunks/index2.js +6 -4
  71. package/dist/packem_chunks/index3.js +1 -1
  72. package/dist/packem_chunks/index4.js +49 -49
  73. package/dist/packem_chunks/keys-refresh.js +1 -1
  74. package/dist/packem_chunks/lean.js +1 -1
  75. package/dist/packem_chunks/list.js +1 -1
  76. package/dist/packem_chunks/loader.js +1 -1
  77. package/dist/packem_chunks/orchestrator.js +2 -2
  78. package/dist/packem_chunks/prune.js +1 -1
  79. package/dist/packem_chunks/registry.js +10 -10
  80. package/dist/packem_chunks/status.js +1 -1
  81. package/dist/packem_chunks/sync.js +1 -1
  82. package/dist/packem_chunks/sync2.js +1 -1
  83. package/dist/packem_chunks/tripwire.js +1 -1
  84. package/dist/packem_chunks/ts-loader.js +1 -1
  85. package/dist/packem_chunks/verify-lockfile.js +1 -1
  86. package/dist/packem_shared/{advisories-CCBGdU8U.js → advisories-DsXRmIA5.js} +1 -1
  87. package/dist/packem_shared/{affected-selection-Dj-ymxhw.js → affected-selection-BE6VFCDV.js} +1 -1
  88. package/dist/packem_shared/{affected-shas-PwkVbPch.js → affected-shas-BKEu4RZc.js} +1 -1
  89. package/dist/packem_shared/{ai-analysis-bGCAc1jR.js → ai-analysis-DikAj6rX.js} +1 -1
  90. package/dist/packem_shared/{ai-fix-DV5-dHBY.js → ai-fix-bfWo0cZX.js} +1 -1
  91. package/dist/packem_shared/{augment-24KX2nkI.js → augment-BkJxi_GW.js} +1 -1
  92. package/dist/packem_shared/{bin-CtzhnYMp.js → bin-B-TytgzW.js} +1 -1
  93. package/dist/packem_shared/{build-scripts-w4SNeR7D.js → build-scripts-DWypBQ--.js} +1 -1
  94. package/dist/packem_shared/{command-runtime-BLFPUYAT.js → command-runtime-DQ7ZpLYL.js} +1 -1
  95. package/dist/packem_shared/{cyclonedx-C4KaVTn1.js → cyclonedx-DLBi65MV.js} +1 -1
  96. package/dist/packem_shared/dependency-scan-ZLOuLkGN.js +1 -0
  97. package/dist/packem_shared/{docker-DaVs-9wK.js → docker-B4zAZCZG.js} +15 -15
  98. package/dist/packem_shared/{en-D3CfXlO7.js → en-BDYMmM2_.js} +1 -1
  99. package/dist/packem_shared/{failure-log-CTneNcio.js → failure-log-DyhWPqno.js} +1 -1
  100. package/dist/packem_shared/glob-BUjyjdE8-Dp_QcayW.js +1 -0
  101. package/dist/packem_shared/index-BLtnel38.js +35 -0
  102. package/dist/packem_shared/index-CuKDxOCI.js +1 -0
  103. package/dist/packem_shared/index-tNFGWxc0.js +39 -0
  104. package/dist/packem_shared/{lifecycle-B8A2T3gx.js → lifecycle-KY9umOg6.js} +1 -1
  105. package/dist/packem_shared/{lockfile-Bccery3L.js → lockfile-YAuZf1gh.js} +1 -1
  106. package/dist/packem_shared/{manifests-BDkwiVbh.js → manifests-BwTn_1ad.js} +1 -1
  107. package/dist/packem_shared/{min-release-age-OaYpLwux.js → min-release-age-6avfn81h.js} +1 -1
  108. package/dist/packem_shared/{missing-package-json-BqS-OnKd.js → missing-package-json-Cl0vdz6K.js} +1 -1
  109. package/dist/packem_shared/{native-config-sync-Ds1FtcrM.js → native-config-sync-CHMCJx7H.js} +7 -7
  110. package/dist/packem_shared/{osv-bloom-pKp7urSB.js → osv-bloom-DdqDnLCt.js} +2 -2
  111. package/dist/packem_shared/package-version-BNRJ3o9C.js +4 -0
  112. package/dist/packem_shared/{packument-HBVbyf7x.js → packument-B9-WqReu.js} +1 -1
  113. package/dist/packem_shared/{pm-runner-C6eTANt1.js → pm-runner-DRybtzOV.js} +1 -1
  114. package/dist/packem_shared/{project-name-filter-CJ3XX2TI.js → project-name-filter-Dw0fC6IO.js} +1 -1
  115. package/dist/packem_shared/{provenance-D4Cza8cp.js → provenance-CLxuqCfL.js} +1 -1
  116. package/dist/packem_shared/{readJsonSync-DweZd5ZA-0eZh9sGm.js → readJsonSync-DweZd5ZA-CtrDlqpb.js} +1 -1
  117. package/dist/packem_shared/{registry-keys-C0ez2VND.js → registry-keys-cTN24144.js} +1 -1
  118. package/dist/packem_shared/{resolve-explicit-BbT764KS.js → resolve-explicit-Uw6WQl9R.js} +1 -1
  119. package/dist/packem_shared/{resolve-runtime-D_vZovbB.js → resolve-runtime-DztanwkZ.js} +1 -1
  120. package/dist/packem_shared/{run-file-DyPFFN9U.js → run-file-CaE5_xBY.js} +1 -1
  121. package/dist/packem_shared/{runtime-check-D4um-yQq.js → runtime-check-C32yE57I.js} +1 -1
  122. package/dist/packem_shared/{s1ngularity-St6dhKiq.js → s1ngularity-BIYhg82u.js} +1 -1
  123. package/dist/packem_shared/{scan-progress-q-N2JtIp.js → scan-progress-DWfY4zkp.js} +1 -1
  124. package/dist/packem_shared/{selectors-Ce_6UAoY.js → selectors-D2j4M9Ul.js} +1 -1
  125. package/dist/packem_shared/{signatures-Dyeyg1q9.js → signatures-C8iQ5fUq.js} +1 -1
  126. package/dist/packem_shared/target-merge-DLxJTcxn.js +11 -0
  127. package/dist/packem_shared/{target-options-7XcbqGDe.js → target-options-3t4-2F-F.js} +1 -1
  128. package/dist/packem_shared/{toolchain-C_pNMBM6.js → toolchain-BPzbahcQ.js} +1 -1
  129. package/dist/packem_shared/{typosquats-xzcAGPiM.js → typosquats-BWrmhh36.js} +1 -1
  130. package/dist/packem_shared/{use-measured-height-CBjN0fle.js → use-measured-height-BwAwGHjw.js} +1 -1
  131. package/dist/packem_shared/verify-CzUPT6Uk.js +1 -0
  132. package/dist/packem_shared/{vis-update-app-DMAC2pPf.js → vis-update-app-D6Wq8ZHM.js} +1 -1
  133. package/dist/packem_shared/{vis-user-error-xmha3L4n.js → vis-user-error-CfM4_ORo.js} +1 -1
  134. package/dist/packem_shared/{watch-BXOOX7lx.js → watch-D_oAxW_Z.js} +1 -1
  135. package/dist/packem_shared/{watch-loop-Q7UpkVbr.js → watch-loop-BrjblOz5.js} +1 -1
  136. package/dist/runtime/preload.js +1 -1
  137. package/index.d.ts +204 -204
  138. package/index.js +26 -26
  139. package/package.json +13 -13
  140. package/dist/packem_shared/dependency-scan-D_ona0Qm.js +0 -1
  141. package/dist/packem_shared/glob-BUjyjdE8-C4M8e02u.js +0 -1
  142. package/dist/packem_shared/index-CTMU29dI.js +0 -1
  143. package/dist/packem_shared/index-uBVnF4ji.js +0 -35
  144. package/dist/packem_shared/package-version-C47v64aB.js +0 -4
  145. package/dist/packem_shared/public-api-WqUCiyIe.js +0 -131
  146. package/dist/packem_shared/target-merge-Cfy7c__2.js +0 -11
  147. package/dist/packem_shared/verify-Dve9PQj3.js +0 -1
@@ -1,35 +0,0 @@
1
- import{createRequire as Dr}from"node:module";import{E as st}from"./public-api-WqUCiyIe.js";let pr;const fr=u=>(pr??=Dr(import.meta.url))(u),Pu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ar=u=>{if(typeof Pu<"u"&&Pu.versions&&Pu.versions.node){const[e,t]=Pu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Pu.getBuiltinModule(u)}return fr(u)},{createRequire:I}=Ar("node:module"),Je=0,hr=4,Er=Symbol("findUpStop"),Ea=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,Cr=/^[A-Z]:\//i,_u=(u="")=>u&&u.replaceAll("\\","/").replace(Cr,e=>e.toUpperCase()),Fr=/^[/\\]{2}/,gr=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,Ze=/^[A-Z]:$/i,ot=/^\/([A-Z]:)?$/i,it=/^([A-Z]:)\/$/i,dr=/[^/](\.[^./]+)$/,mr=/^[/\\]|^[a-z]:[/\\]/i,yr=/\/$/,Br=()=>{if(typeof process.cwd=="function")try{const u=process.cwd();if(typeof u=="string")return _u(u)}catch{}return"/"},Ca="/",It=(u,e)=>{let t="",n=0,s=-1,r=0,o;for(let i=0;i<=u.length;++i){if(i<u.length)o=u[i];else{if(o==="/")break;o="/"}if(o==="/"){if(!(s===i-1||r===1))if(r===2){if(t.length<2||n!==2||!t.endsWith(".")||t.at(-2)!=="."){if(t.length>2){const a=t.lastIndexOf("/");a===-1?(t="",n=0):(t=t.slice(0,a),n=t.length-1-t.lastIndexOf("/")),s=i,r=0;continue}else if(t.length>0){t="",n=0,s=i,r=0;continue}}e&&(t+=t.length>0?"/..":"..",n=2)}else t.length>0?t+=`/${u.slice(s+1,i)}`:t=u.slice(s+1,i),n=i-s-1;s=i,r=0}else o==="."&&r!==-1?++r:r=-1}return t},Nu=u=>gr.test(u),Fe=function(u){if(u.length===0)return".";u=_u(u);const e=Fr.exec(u),t=Nu(u),n=u.at(-1)==="/";return u=It(u,!t),u.length===0?t?"/":n?"./":".":(n&&(u+="/"),Ze.test(u)&&(u+="/"),e?t?`//${u}`:`//./${u}`:t&&!Nu(u)?`/${u}`:u)},br=(...u)=>{let e="";for(const t of u)if(t)if(e.length>0){const n=e.at(-1)==="/",s=t[0]==="/";n&&s?e+=t.slice(1):e+=n||s?t:`/${t}`}else e+=t;return Fe(e)},Lu=function(...u){u=u.map(n=>_u(n));let e="",t=!1;for(let n=u.length-1;n>=-1&&!t;n--){const s=n>=0?u[n]:Br();!s||s.length===0||(e=`${s}/${e}`,t=Nu(s))}return e=It(e,!t),Ze.test(e)?`${e}/`:t&&!Nu(e)?`/${e}`:e.length>0?e:"."},Fa=function(u){return _u(u)},$r=function(u){return dr.exec(_u(u))?.[1]??""},ga=function(u,e){const t=Lu(u).replace(ot,"$1").replace(it,"$1").split("/"),n=Lu(e).replace(ot,"$1").replace(it,"$1").split("/");if(n[0][1]===":"&&t[0][1]===":"&&t[0]!==n[0])return n.join("/");const s=Math.min(t.length,n.length);let r=0;for(;r<s&&t[r]===n[r];)r+=1;const o=t.length-r;return[...Array.from({length:o}).fill(".."),...n.slice(r)].join("/")},Ye=u=>{const e=_u(u).replace(yr,""),t=e.lastIndexOf("/");if(t===-1)return Nu(u)?"/":".";const n=e.slice(0,t);return Ze.test(n)?`${n}/`:n||(Nu(u)?"/":".")},ut=(u,e)=>{const t=_u(u),n=t.slice(t.lastIndexOf("/")+1);if(e&&n.endsWith(e)){if(e===t)return"";const s=n.slice(0,-e.length);if(s.length>0)return s}return n},vr=function(u){const e=mr.exec(u)?.[0]?.replaceAll("\\","/")??"",t=ut(u),n=$r(t);return{base:t,dir:Ye(u),ext:n,name:t.slice(0,t.length-n.length),root:e}};let wr;const xr=u=>(wr??=I(import.meta.url))(u),Hu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Sr=u=>{if(typeof Hu<"u"&&Hu.versions&&Hu.versions.node){const[e,t]=Hu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Hu.getBuiltinModule(u)}return xr(u)},{fileURLToPath:_r}=Sr("node:url");function Tr(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var at,lt;function Rr(){return lt||(lt=1,at=["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"]),at}var kr=Rr();const Or=Tr(kr);new Set(Or);const Nr=/^(?:\.?\.[/\\]|\.\.\B)/,da=u=>Nr.test(u)||u==="..",yu=u=>_u(u instanceof URL?_r(u):u);let Lr=class extends Error{constructor(e){super(`EEXIST: ${e}`)}get code(){return"EEXIST"}set code(e){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(e){throw new Error("Cannot overwrite name of AlreadyExistsError")}};const bu=u=>{if(!u||!(u instanceof URL)&&typeof u!="string")throw new TypeError("Path must be a non-empty string or URL.")};let Pr;const Hr=u=>(Pr??=I(import.meta.url))(u),Iu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ir=u=>{if(typeof Iu<"u"&&Iu.versions&&Iu.versions.node){const[e,t]=Iu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Iu.getBuiltinModule(u)}return Hr(u)};Ir("node:fs/promises");let Mr;const jr=u=>(Mr??=I(import.meta.url))(u),Mu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gr=u=>{if(typeof Mu<"u"&&Mu.versions&&Mu.versions.node){const[e,t]=Mu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Mu.getBuiltinModule(u)}return jr(u)};Gr("node:fs");const we=u=>{if(u.isFile())return"file";if(u.isDirectory())return"dir";if(u.isSymbolicLink())return"symlink"};let zr;const Ur=u=>(zr??=I(import.meta.url))(u),ju=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wr=u=>{if(typeof ju<"u"&&ju.versions&&ju.versions.node){const[e,t]=ju.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ju.getBuiltinModule(u)}return Ur(u)},{lstat:ct,mkdir:qr}=Wr("node:fs/promises"),ya=async u=>{bu(u);try{const e=await ct(u);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(we(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await qr(u,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=await ct(u);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(we(t))}'`,{cause:e})}};let Xr;const Kr=u=>(Xr??=I(import.meta.url))(u),Gu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vr=u=>{if(typeof Gu<"u"&&Gu.versions&&Gu.versions.node){const[e,t]=Gu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Gu.getBuiltinModule(u)}return Kr(u)},{lstatSync:Dt,mkdirSync:Qr}=Vr("node:fs"),Ba=u=>{bu(u);try{const e=Dt(u);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(we(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{Qr(u,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const t=Dt(u);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(we(t))}'`,{cause:e})}};let Jr;const Zr=u=>(Jr??=I(import.meta.url))(u),zu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yr=u=>{if(typeof zu<"u"&&zu.versions&&zu.versions.node){const[e,t]=zu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return zu.getBuiltinModule(u)}return Zr(u)};Yr("node:fs/promises");let un;const en=u=>(un??=I(import.meta.url))(u),Uu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tn=u=>{if(typeof Uu<"u"&&Uu.versions&&Uu.versions.node){const[e,t]=Uu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Uu.getBuiltinModule(u)}return en(u)};tn("node:fs");let rn;const nn=u=>(rn??=I(import.meta.url))(u),Wu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,sn=u=>{if(typeof Wu<"u"&&Wu.versions&&Wu.versions.node){const[e,t]=Wu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Wu.getBuiltinModule(u)}return nn(u)};sn("node:fs/promises");let on;const an=u=>(on??=I(import.meta.url))(u),qu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ln=u=>{if(typeof qu<"u"&&qu.versions&&qu.versions.node){const[e,t]=qu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return qu.getBuiltinModule(u)}return an(u)};ln("node:fs");let cn;const Dn=u=>(cn??=I(import.meta.url))(u),Xu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pn=u=>{if(typeof Xu<"u"&&Xu.versions&&Xu.versions.node){const[e,t]=Xu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Xu.getBuiltinModule(u)}return Dn(u)};pn("node:fs/promises");let fn;const An=u=>(fn??=I(import.meta.url))(u),Ku=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,hn=u=>{if(typeof Ku<"u"&&Ku.versions&&Ku.versions.node){const[e,t]=Ku.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ku.getBuiltinModule(u)}return An(u)};hn("node:fs");let pt=class extends Error{root;constructor(e,t){super(`${e instanceof Error?e.message:String(e)} for path "${t}"`),this.cause=e,this.root=t}get name(){return"WalkError"}set name(e){throw new Error("Cannot overwrite name of WalkError")}};const En=u=>{const e=[],t=new Set;let n=0;for(const i of u){if(i==="{")e.push(n);else if(i==="}"){const a=e.pop();a!==void 0&&(t.add(a),t.add(n))}n+=1}let s=0,r=0,o="";for(const i of u)i==="{"?t.has(r)?(o+="(",s+=1):o+=String.raw`\{`:i==="}"?t.has(r)?(o+=")",s-=1):o+=String.raw`\}`:i===","&&s>0?o+="|":o+=i,r+=1;return o},ft=u=>{const e=u.replace(/[$()+\\^]/g,String.raw`\$&`).replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`),t=En(e).replace(/\[!(.*?)\]/g,"[^$1]");try{return new RegExp(`^${t}$`)}catch(n){throw new Error(`Invalid glob pattern: ${u}`,{cause:n})}};let Cn=class{name;path;#u;constructor(e,t,n){this.#u=e,this.name=t,this.path=n}isDirectory(){return this.#u.isDirectory()}isFile(){return this.#u.isFile()}isSymbolicLink(){return this.#u.isSymbolicLink()}};const We=(u,e,t)=>new Cn(u,e,t),$e=(u,e,t,n)=>{if(Array.isArray(e)&&e.length>0&&!e.some(r=>u.endsWith(r)))return!1;const s=u.includes("\\")?u.replaceAll("\\","/"):u;return t&&!t.some(r=>r.test(s))?!1:!n?.some(r=>r.test(s))};let Fn;const gn=u=>(Fn??=I(import.meta.url))(u),Vu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,dn=u=>{if(typeof Vu<"u"&&Vu.versions&&Vu.versions.node){const[e,t]=Vu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Vu.getBuiltinModule(u)}return gn(u)};dn("node:fs/promises");let mn;const yn=u=>(mn??=I(import.meta.url))(u),Qu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bn=u=>{if(typeof Qu<"u"&&Qu.versions&&Qu.versions.node){const[e,t]=Qu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Qu.getBuiltinModule(u)}return yn(u)},{readdirSync:bn,realpathSync:$n,statSync:Mt}=Bn("node:fs"),vn=u=>{const e=Fe(u),t=Mt(e);return We(t,ut(e),e)};function*wn(u,e={}){const{extensions:t,followSymlinks:n=!1,includeDirs:s=!0,includeFiles:r=!0,includeSymlinks:o=!0,match:i,maxDepth:a=Number.POSITIVE_INFINITY,skip:d}=e;if(bu(u),a<0)return;const D=e.visited??new Set,m=i?i.map(C=>typeof C=="string"?ft(C):C):void 0,b=d?d.map(C=>typeof C=="string"?ft(C):C):void 0;if(u=Lu(yu(u)),s&&$e(u,t,m,b)&&(yield vn(u)),!(a<1||!$e(u,void 0,void 0,b)))try{const C=bn(u,{withFileTypes:!0});for(const f of C){let $=br(u,f.name),g=f,{name:w}=f,_=f.isDirectory(),h=f.isFile();if(f.isSymbolicLink())if(n){const F=Fe($n($));if(D.has(F))continue;$=F;const l=Mt(F);_=l.isDirectory(),h=l.isFile(),g=l,w=ut(F)}else if(o&&$e($,t,m,b)){yield We(f,f.name,Fe($));continue}else continue;_?(n&&D.add($),yield*wn($,{extensions:t,followSymlinks:n,includeDirs:s,includeFiles:r,includeSymlinks:o,match:m,maxDepth:a-1,skip:b,visited:D})):h&&r&&$e($,t,m,b)&&(yield We(g,w,Fe($)))}}catch(C){throw C instanceof pt?C:new pt(C,u)}}let xn;const Sn=u=>(xn??=I(import.meta.url))(u),Ju=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_n=u=>{if(typeof Ju<"u"&&Ju.versions&&Ju.versions.node){const[e,t]=Ju.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ju.getBuiltinModule(u)}return Sn(u)};_n("node:fs/promises");let Tn;const Rn=u=>(Tn??=I(import.meta.url))(u),Zu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,kn=u=>{if(typeof Zu<"u"&&Zu.versions&&Zu.versions.node){const[e,t]=Zu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Zu.getBuiltinModule(u)}return Rn(u)},{statSync:On,lstatSync:Nn}=kn("node:fs"),va=(u,e={})=>{if(typeof u!="string"&&!Array.isArray(u)&&typeof u!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const t=e.cwd?yu(e.cwd):process.cwd();let n=Lu(t);const{root:s}=vr(n),r=yu(e.stopAt??s),o=Lu(n,r),i=e.type??"file",a=function(D){return typeof u=="function"?[u(D)]:typeof u=="string"?[u]:Array.isArray(u)?u:[u]};e.allowSymlinks??=!0;const d=e.allowSymlinks?On:Nn;for(;n;){for(let D of a(n)){if(D===Er)return;if(D===void 0)continue;Buffer.isBuffer(D)?D=D.toString():D instanceof URL&&(D=yu(D));const m=Nu(D)?D:Lu(n,D);try{const b=d(m);if(i==="file"&&b.isFile()||i==="directory"&&b.isDirectory())return m}catch{}}if(n===o||n===s)break;n=Ye(n)}};function et(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var At={},Re,ht;function Se(){if(ht)return Re;ht=1;const u="[^\\\\/]",e=Symbol("unignore"),t="\\.",n="\\+",s="\\?",r="\\/",o="(?=.)",i="[^/]",a=`(?:${r}|$)`,d=`(?:^|${r})`,D=`${t}{1,2}${a}`,m=`(?!${t})`,b=`(?!${d}${D})`,C=`(?!${t}{0,1}${a})`,f=`(?!${D})`,$=`[^.${r}]`,g=`${i}*?`,w="/",_={DOT_LITERAL:t,PLUS_LITERAL:n,QMARK_LITERAL:s,SLASH_LITERAL:r,ONE_CHAR:o,QMARK:i,END_ANCHOR:a,DOTS_SLASH:D,NO_DOT:m,NO_DOTS:b,NO_DOT_SLASH:C,NO_DOTS_SLASH:f,QMARK_NO_DOT:$,STAR:g,START_ANCHOR:d,SEP:w},h={..._,SLASH_LITERAL:"[\\\\/]",QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${t}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${t})`,NO_DOTS:`(?!(?:^|[\\\\/])${t}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${t}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${t}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},F={__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 Re={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:F,UNIGNORE:e,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(l){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${l.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(l){return l===!0?h:_}},Re}var Et;function _e(){return Et||(Et=1,(function(u){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:s}=Se();u.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),u.hasRegexChars=r=>n.test(r),u.isRegexChar=r=>r.length===1&&u.hasRegexChars(r),u.escapeRegex=r=>r.replace(s,"\\$1"),u.toPosixSlashes=r=>r.replace(e,"/"),u.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const r=navigator.platform.toLowerCase();return r==="win32"||r==="windows"}return process.platform?process.platform==="win32":!1},u.removeBackslashes=r=>r.replace(t,o=>o==="\\"?"":o),u.escapeLast=(r,o,i)=>{const a=r.lastIndexOf(o,i);return a===-1?r:r[a-1]==="\\"?u.escapeLast(r,o,a-1):`${r.slice(0,a)}\\${r.slice(a)}`},u.removePrefix=(r,o={})=>{let i=r;return i.startsWith("./")&&(i=i.slice(2),o.prefix="./"),i},u.wrapOutput=(r,o={},i={})=>{const a=i.contains?"":"^",d=i.contains?"":"$";let D=`${a}(?:${r})${d}`;return o.negated===!0&&(D=`(?:^(?!${D}).*$)`),D},u.basename=(r,{windows:o}={})=>{const i=r.split(o?/[\\/]/:"/"),a=i[i.length-1];return a===""?i[i.length-2]:a}})(At)),At}var ke,Ct;function Ln(){if(Ct)return ke;Ct=1;const u=_e(),{CHAR_ASTERISK:e,CHAR_AT:t,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:s,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:i,CHAR_LEFT_CURLY_BRACE:a,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:D,CHAR_PLUS:m,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:C,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:$}=Se(),g=_=>_===i||_===n,w=_=>{_.isPrefix!==!0&&(_.depth=_.isGlobstar?1/0:1)};return ke=(_,h)=>{const F=h||{},l=_.length-1,T=F.parts===!0||F.scanToEnd===!0,N=[],x=[],S=[];let v=_,j=-1,q=0,au=0,gu=!1,lu=!1,Z=!1,cu=!1,$u=!1,Au=!1,Du=!1,Q=!1,hu=!1,ru=!1,vu=0,nu,R,G={value:"",depth:0,isGlob:!1};const tu=()=>j>=l,A=()=>v.charCodeAt(j+1),X=()=>(nu=R,v.charCodeAt(++j));for(;j<l;){R=X();let su;if(R===n){Du=G.backslashes=!0,R=X(),R===a&&(Au=!0);continue}if(Au===!0||R===a){for(vu++;tu()!==!0&&(R=X());){if(R===n){Du=G.backslashes=!0,X();continue}if(R===a){vu++;continue}if(Au!==!0&&R===r&&(R=X())===r){if(gu=G.isBrace=!0,Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(Au!==!0&&R===s){if(gu=G.isBrace=!0,Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(R===C&&(vu--,vu===0)){Au=!1,gu=G.isBrace=!0,ru=!0;break}}if(T===!0)continue;break}if(R===i){if(N.push(j),x.push(G),G={value:"",depth:0,isGlob:!1},ru===!0)continue;if(nu===r&&j===q+1){q+=2;continue}au=j+1;continue}if(F.noext!==!0&&(R===m||R===t||R===e||R===b||R===o)&&A()===d){if(Z=G.isGlob=!0,cu=G.isExtglob=!0,ru=!0,R===o&&j===q&&(hu=!0),T===!0){for(;tu()!==!0&&(R=X());){if(R===n){Du=G.backslashes=!0,R=X();continue}if(R===f){Z=G.isGlob=!0,ru=!0;break}}continue}break}if(R===e){if(nu===e&&($u=G.isGlobstar=!0),Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(R===b){if(Z=G.isGlob=!0,ru=!0,T===!0)continue;break}if(R===D){for(;tu()!==!0&&(su=X());){if(su===n){Du=G.backslashes=!0,X();continue}if(su===$){lu=G.isBracket=!0,Z=G.isGlob=!0,ru=!0;break}}if(T===!0)continue;break}if(F.nonegate!==!0&&R===o&&j===q){Q=G.negated=!0,q++;continue}if(F.noparen!==!0&&R===d){if(Z=G.isGlob=!0,T===!0){for(;tu()!==!0&&(R=X());){if(R===d){Du=G.backslashes=!0,R=X();continue}if(R===f){ru=!0;break}}continue}break}if(Z===!0){if(ru=!0,T===!0)continue;break}}F.noext===!0&&(cu=!1,Z=!1);let U=v,wu="",c="";q>0&&(wu=v.slice(0,q),v=v.slice(q),au-=q),U&&Z===!0&&au>0?(U=v.slice(0,au),c=v.slice(au)):Z===!0?(U="",c=v):U=v,U&&U!==""&&U!=="/"&&U!==v&&g(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),F.unescape===!0&&(c&&(c=u.removeBackslashes(c)),U&&Du===!0&&(U=u.removeBackslashes(U)));const p={prefix:wu,input:_,start:q,base:U,glob:c,isBrace:gu,isBracket:lu,isGlob:Z,isExtglob:cu,isGlobstar:$u,negated:Q,negatedExtglob:hu};if(F.tokens===!0&&(p.maxDepth=0,g(R)||x.push(G),p.tokens=x),F.parts===!0||F.tokens===!0){let su;for(let M=0;M<N.length;M++){const pu=su?su+1:q,Eu=N[M],iu=_.slice(pu,Eu);F.tokens&&(M===0&&q!==0?(x[M].isPrefix=!0,x[M].value=wu):x[M].value=iu,w(x[M]),p.maxDepth+=x[M].depth),(M!==0||iu!=="")&&S.push(iu),su=Eu}if(su&&su+1<_.length){const M=_.slice(su+1);S.push(M),F.tokens&&(x[x.length-1].value=M,w(x[x.length-1]),p.maxDepth+=x[x.length-1].depth)}p.slashes=N,p.parts=S}return p},ke}var Oe,Ft;function Pn(){if(Ft)return Oe;Ft=1;const u=Se(),e=_e(),{MAX_LENGTH:t,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:o}=u,i=(h,F)=>typeof F.expandRange=="function"?F.expandRange(...h,F):(h.sort(),`[${h.join("-")}]`),a=(h,F)=>`Missing ${h}: "${F}" - use "\\\\${F}" to match literal characters`,d=h=>{const F=[];let l=0,T=0,N=0,x="",S=!1;for(const v of h){if(S===!0){x+=v,S=!1;continue}if(v==="\\"){x+=v,S=!0;continue}if(v==='"'){N=N===1?0:1,x+=v;continue}if(N===0){if(v==="[")l++;else if(v==="]"&&l>0)l--;else if(l===0){if(v==="(")T++;else if(v===")"&&T>0)T--;else if(v==="|"&&T===0){F.push(x),x="";continue}}}x+=v}return F.push(x),F},D=h=>{let F=!1;for(const l of h){if(F===!0){F=!1;continue}if(l==="\\"){F=!0;continue}if(/[?*+@!()[\]{}]/.test(l))return!1}return!0},m=h=>{let F=h.trim(),l=!0;for(;l===!0;)l=!1,/^@\([^\\()[\]{}|]+\)$/.test(F)&&(F=F.slice(2,-1),l=!0);if(D(F))return F.replace(/\\(.)/g,"$1")},b=h=>{const F=h.map(m).filter(Boolean);for(let l=0;l<F.length;l++)for(let T=l+1;T<F.length;T++){const N=F[l],x=F[T],S=N[0];if(!(!S||N!==S.repeat(N.length)||x!==S.repeat(x.length))&&(N===x||N.startsWith(x)||x.startsWith(N)))return!0}return!1},C=(h,F=!0)=>{if(h[0]!=="+"&&h[0]!=="*"||h[1]!=="(")return;let l=0,T=0,N=0,x=!1;for(let S=1;S<h.length;S++){const v=h[S];if(x===!0){x=!1;continue}if(v==="\\"){x=!0;continue}if(v==='"'){N=N===1?0:1;continue}if(N!==1){if(v==="["){l++;continue}if(v==="]"&&l>0){l--;continue}if(!(l>0)){if(v==="("){T++;continue}if(v===")"&&(T--,T===0))return F===!0&&S!==h.length-1?void 0:{type:h[0],body:h.slice(2,S),end:S}}}}},f=h=>`${h.length===1?e.escapeRegex(h[0]):`[${h.map(F=>e.escapeRegex(F)).join("")}]`}*`,$=h=>{let F=0;const l=[];for(;F<h.length;){const T=C(h.slice(F),!1);if(!T||T.type!=="*")return;const N=d(T.body).map(S=>S.trim());if(N.length!==1)return;const x=m(N[0]);if(!x||x.length!==1)return;l.push(x),F+=T.end+1}if(!(l.length<1))return l},g=h=>{let F=0,l=h.trim(),T=C(l);for(;T;)F++,l=T.body.trim(),T=C(l);return F},w=(h,F)=>{if(F.maxExtglobRecursion===!1)return{risky:!1};const l=typeof F.maxExtglobRecursion=="number"?F.maxExtglobRecursion:u.DEFAULT_MAX_EXTGLOB_RECURSION,T=d(h).map(v=>v.trim());if(T.length>1&&(T.some(v=>v==="")||T.some(v=>/^[*?]+$/.test(v))||b(T)))return{risky:!0};const N=[];let x=!1,S=!0;for(const v of T){const j=$(v);if(j){x=!0,N.push(...j);continue}const q=m(v);if(q&&q.length===1){N.push(q);continue}if(S=!1,g(v)>l)return{risky:!0}}return x?S?{risky:!0,safeOutput:f([...new Set(N)])}:{risky:!0}:{risky:!1}},_=(h,F)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=o[h]||h;const l={...F},T=typeof l.maxLength=="number"?Math.min(t,l.maxLength):t;let N=h.length;if(N>T)throw new SyntaxError(`Input length: ${N}, exceeds maximum allowed length: ${T}`);const x={type:"bos",value:"",output:l.prepend||""},S=[x],v=l.capture?"":"?:",j=u.globChars(l.windows),q=u.extglobChars(j),{DOT_LITERAL:au,PLUS_LITERAL:gu,SLASH_LITERAL:lu,ONE_CHAR:Z,DOTS_SLASH:cu,NO_DOT:$u,NO_DOT_SLASH:Au,NO_DOTS_SLASH:Du,QMARK:Q,QMARK_NO_DOT:hu,STAR:ru,START_ANCHOR:vu}=j,nu=B=>`(${v}(?:(?!${vu}${B.dot?cu:au}).)*?)`,R=l.dot?"":$u,G=l.dot?Q:hu;let tu=l.bash===!0?nu(l):ru;l.capture&&(tu=`(${tu})`),typeof l.noext=="boolean"&&(l.noextglob=l.noext);const A={input:h,index:-1,start:0,dot:l.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};h=e.removePrefix(h,A),N=h.length;const X=[],U=[],wu=[];let c=x,p;const su=()=>A.index===N-1,M=A.peek=(B=1)=>h[A.index+B],pu=A.advance=()=>h[++A.index]||"",Eu=()=>h.slice(A.index+1),iu=(B="",K=0)=>{A.consumed+=B,A.index+=K},ye=B=>{A.output+=B.output!=null?B.output:B.value,iu(B.value)},lr=()=>{let B=1;for(;M()==="!"&&(M(2)!=="("||M(3)==="?");)pu(),A.start++,B++;return B%2===0?!1:(A.negated=!0,A.start++,!0)},Be=B=>{A[B]++,wu.push(B)},xu=B=>{A[B]--,wu.pop()},L=B=>{if(c.type==="globstar"){const K=A.braces>0&&(B.type==="comma"||B.type==="brace"),y=B.extglob===!0||X.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!K&&!y&&(A.output=A.output.slice(0,-c.output.length),c.type="star",c.value="*",c.output=tu,A.output+=c.output)}if(X.length&&B.type!=="paren"&&(X[X.length-1].inner+=B.value),(B.value||B.output)&&ye(B),c&&c.type==="text"&&B.type==="text"){c.output=(c.output||c.value)+B.value,c.value+=B.value;return}B.prev=c,S.push(B),c=B},be=(B,K)=>{const y={...q[K],conditions:1,inner:""};y.prev=c,y.parens=A.parens,y.output=A.output,y.startIndex=A.index,y.tokensIndex=S.length;const P=(l.capture?"(":"")+y.open;Be("parens"),L({type:B,value:K,output:A.output?"":Z}),L({type:"paren",extglob:!0,value:pu(),output:P}),X.push(y)},cr=B=>{const K=h.slice(B.startIndex,A.index+1),y=h.slice(B.startIndex+2,A.index),P=w(y,l);if((B.type==="plus"||B.type==="star")&&P.risky){const z=P.safeOutput?(B.output?"":Z)+(l.capture?`(${P.safeOutput})`:P.safeOutput):void 0,Cu=S[B.tokensIndex];Cu.type="text",Cu.value=K,Cu.output=z||e.escapeRegex(K);for(let Fu=B.tokensIndex+1;Fu<S.length;Fu++)S[Fu].value="",S[Fu].output="",delete S[Fu].suffix;A.output=B.output+Cu.output,A.backtrack=!0,L({type:"paren",extglob:!0,value:p,output:""}),xu("parens");return}let J=B.close+(l.capture?")":""),uu;if(B.type==="negate"){let z=tu;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(z=nu(l)),(z!==tu||su()||/^\)+$/.test(Eu()))&&(J=B.close=`)$))${z}`),B.inner.includes("*")&&(uu=Eu())&&/^\.[^\\/.]+$/.test(uu)){const Cu=_(uu,{...F,fastpaths:!1}).output;J=B.close=`)${Cu})${z})`}B.prev.type==="bos"&&(A.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:p,output:J}),xu("parens")};if(l.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let B=!1,K=h.replace(r,(y,P,J,uu,z,Cu)=>uu==="\\"?(B=!0,y):uu==="?"?P?P+uu+(z?Q.repeat(z.length):""):Cu===0?G+(z?Q.repeat(z.length):""):Q.repeat(J.length):uu==="."?au.repeat(J.length):uu==="*"?P?P+uu+(z?tu:""):tu:P?y:`\\${y}`);return B===!0&&(l.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,y=>y.length%2===0?"\\\\":y?"\\":"")),K===h&&l.contains===!0?(A.output=h,A):(A.output=e.wrapOutput(K,A,F),A)}for(;!su();){if(p=pu(),p==="\0")continue;if(p==="\\"){const y=M();if(y==="/"&&l.bash!==!0||y==="."||y===";")continue;if(!y){p+="\\",L({type:"text",value:p});continue}const P=/^\\+/.exec(Eu());let J=0;if(P&&P[0].length>2&&(J=P[0].length,A.index+=J,J%2!==0&&(p+="\\")),l.unescape===!0?p=pu():p+=pu(),A.brackets===0){L({type:"text",value:p});continue}}if(A.brackets>0&&(p!=="]"||c.value==="["||c.value==="[^")){if(l.posix!==!1&&p===":"){const y=c.value.slice(1);if(y.includes("[")&&(c.posix=!0,y.includes(":"))){const P=c.value.lastIndexOf("["),J=c.value.slice(0,P),uu=c.value.slice(P+2),z=n[uu];if(z){c.value=J+z,A.backtrack=!0,pu(),!x.output&&S.indexOf(c)===1&&(x.output=Z);continue}}}(p==="["&&M()!==":"||p==="-"&&M()==="]")&&(p=`\\${p}`),p==="]"&&(c.value==="["||c.value==="[^")&&(p=`\\${p}`),l.posix===!0&&p==="!"&&c.value==="["&&(p="^"),c.value+=p,ye({value:p});continue}if(A.quotes===1&&p!=='"'){p=e.escapeRegex(p),c.value+=p,ye({value:p});continue}if(p==='"'){A.quotes=A.quotes===1?0:1,l.keepQuotes===!0&&L({type:"text",value:p});continue}if(p==="("){Be("parens"),L({type:"paren",value:p});continue}if(p===")"){if(A.parens===0&&l.strictBrackets===!0)throw new SyntaxError(a("opening","("));const y=X[X.length-1];if(y&&A.parens===y.parens+1){cr(X.pop());continue}L({type:"paren",value:p,output:A.parens?")":"\\)"}),xu("parens");continue}if(p==="["){if(l.nobracket===!0||!Eu().includes("]")){if(l.nobracket!==!0&&l.strictBrackets===!0)throw new SyntaxError(a("closing","]"));p=`\\${p}`}else Be("brackets");L({type:"bracket",value:p});continue}if(p==="]"){if(l.nobracket===!0||c&&c.type==="bracket"&&c.value.length===1){L({type:"text",value:p,output:`\\${p}`});continue}if(A.brackets===0){if(l.strictBrackets===!0)throw new SyntaxError(a("opening","["));L({type:"text",value:p,output:`\\${p}`});continue}xu("brackets");const y=c.value.slice(1);if(c.posix!==!0&&y[0]==="^"&&!y.includes("/")&&(p=`/${p}`),c.value+=p,ye({value:p}),l.literalBrackets===!1||e.hasRegexChars(y))continue;const P=e.escapeRegex(c.value);if(A.output=A.output.slice(0,-c.value.length),l.literalBrackets===!0){A.output+=P,c.value=P;continue}c.value=`(${v}${P}|${c.value})`,A.output+=c.value;continue}if(p==="{"&&l.nobrace!==!0){Be("braces");const y={type:"brace",value:p,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};U.push(y),L(y);continue}if(p==="}"){const y=U[U.length-1];if(l.nobrace===!0||!y){L({type:"text",value:p,output:p});continue}let P=")";if(y.dots===!0){const J=S.slice(),uu=[];for(let z=J.length-1;z>=0&&(S.pop(),J[z].type!=="brace");z--)J[z].type!=="dots"&&uu.unshift(J[z].value);P=i(uu,l),A.backtrack=!0}if(y.comma!==!0&&y.dots!==!0){const J=A.output.slice(0,y.outputIndex),uu=A.tokens.slice(y.tokensIndex);y.value=y.output="\\{",p=P="\\}",A.output=J;for(const z of uu)A.output+=z.output||z.value}L({type:"brace",value:p,output:P}),xu("braces"),U.pop();continue}if(p==="|"){X.length>0&&X[X.length-1].conditions++,L({type:"text",value:p});continue}if(p===","){let y=p;const P=U[U.length-1];P&&wu[wu.length-1]==="braces"&&(P.comma=!0,y="|"),L({type:"comma",value:p,output:y});continue}if(p==="/"){if(c.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",S.pop(),c=x;continue}L({type:"slash",value:p,output:lu});continue}if(p==="."){if(A.braces>0&&c.type==="dot"){c.value==="."&&(c.output=au);const y=U[U.length-1];c.type="dots",c.output+=p,c.value+=p,y.dots=!0;continue}if(A.braces+A.parens===0&&c.type!=="bos"&&c.type!=="slash"){L({type:"text",value:p,output:au});continue}L({type:"dot",value:p,output:au});continue}if(p==="?"){if(!(c&&c.value==="(")&&l.noextglob!==!0&&M()==="("&&M(2)!=="?"){be("qmark",p);continue}if(c&&c.type==="paren"){const y=M();let P=p;(c.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(Eu()))&&(P=`\\${p}`),L({type:"text",value:p,output:P});continue}if(l.dot!==!0&&(c.type==="slash"||c.type==="bos")){L({type:"qmark",value:p,output:hu});continue}L({type:"qmark",value:p,output:Q});continue}if(p==="!"){if(l.noextglob!==!0&&M()==="("&&(M(2)!=="?"||!/[!=<:]/.test(M(3)))){be("negate",p);continue}if(l.nonegate!==!0&&A.index===0){lr();continue}}if(p==="+"){if(l.noextglob!==!0&&M()==="("&&M(2)!=="?"){be("plus",p);continue}if(c&&c.value==="("||l.regex===!1){L({type:"plus",value:p,output:gu});continue}if(c&&(c.type==="bracket"||c.type==="paren"||c.type==="brace")||A.parens>0){L({type:"plus",value:p});continue}L({type:"plus",value:gu});continue}if(p==="@"){if(l.noextglob!==!0&&M()==="("&&M(2)!=="?"){L({type:"at",extglob:!0,value:p,output:""});continue}L({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);const y=s.exec(Eu());y&&(p+=y[0],A.index+=y[0].length),L({type:"text",value:p});continue}if(c&&(c.type==="globstar"||c.star===!0)){c.type="star",c.star=!0,c.value+=p,c.output=tu,A.backtrack=!0,A.globstar=!0,iu(p);continue}let B=Eu();if(l.noextglob!==!0&&/^\([^?]/.test(B)){be("star",p);continue}if(c.type==="star"){if(l.noglobstar===!0){iu(p);continue}const y=c.prev,P=y.prev,J=y.type==="slash"||y.type==="bos",uu=P&&(P.type==="star"||P.type==="globstar");if(l.bash===!0&&(!J||B[0]&&B[0]!=="/")){L({type:"star",value:p,output:""});continue}const z=A.braces>0&&(y.type==="comma"||y.type==="brace"),Cu=X.length&&(y.type==="pipe"||y.type==="paren");if(!J&&y.type!=="paren"&&!z&&!Cu){L({type:"star",value:p,output:""});continue}for(;B.slice(0,3)==="/**";){const Fu=h[A.index+4];if(Fu&&Fu!=="/")break;B=B.slice(3),iu("/**",3)}if(y.type==="bos"&&su()){c.type="globstar",c.value+=p,c.output=nu(l),A.output=c.output,A.globstar=!0,iu(p);continue}if(y.type==="slash"&&y.prev.type!=="bos"&&!uu&&su()){A.output=A.output.slice(0,-(y.output+c.output).length),y.output=`(?:${y.output}`,c.type="globstar",c.output=nu(l)+(l.strictSlashes?")":"|$)"),c.value+=p,A.globstar=!0,A.output+=y.output+c.output,iu(p);continue}if(y.type==="slash"&&y.prev.type!=="bos"&&B[0]==="/"){const Fu=B[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(y.output+c.output).length),y.output=`(?:${y.output}`,c.type="globstar",c.output=`${nu(l)}${lu}|${lu}${Fu})`,c.value+=p,A.output+=y.output+c.output,A.globstar=!0,iu(p+pu()),L({type:"slash",value:"/",output:""});continue}if(y.type==="bos"&&B[0]==="/"){c.type="globstar",c.value+=p,c.output=`(?:^|${lu}|${nu(l)}${lu})`,A.output=c.output,A.globstar=!0,iu(p+pu()),L({type:"slash",value:"/",output:""});continue}if(z&&B[0]==="/"){c.type="globstar",c.value+=p,c.output=`(?:^|${lu}|${nu(l)}${lu})`,A.output+=c.output,A.globstar=!0,iu(p+pu()),L({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-c.output.length),c.type="globstar",c.output=nu(l),c.value+=p,A.output+=c.output,A.globstar=!0,iu(p);continue}const K={type:"star",value:p,output:tu};if(l.bash===!0){K.output=".*?",(c.type==="bos"||c.type==="slash")&&(K.output=R+K.output),L(K);continue}if(c&&(c.type==="bracket"||c.type==="paren")&&l.regex===!0){K.output=p,L(K);continue}(A.index===A.start||c.type==="slash"||c.type==="dot")&&(c.type==="dot"?(A.output+=Au,c.output+=Au):l.dot===!0?(A.output+=Du,c.output+=Du):(A.output+=R,c.output+=R),M()!=="*"&&(A.output+=Z,c.output+=Z)),L(K)}for(;A.brackets>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing","]"));A.output=e.escapeLast(A.output,"["),xu("brackets")}for(;A.parens>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing",")"));A.output=e.escapeLast(A.output,"("),xu("parens")}for(;A.braces>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing","}"));A.output=e.escapeLast(A.output,"{"),xu("braces")}if(l.strictSlashes!==!0&&(c.type==="star"||c.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${lu}?`}),A.backtrack===!0){A.output="";for(const B of A.tokens)A.output+=B.output!=null?B.output:B.value,B.suffix&&(A.output+=B.suffix)}return A};return _.fastpaths=(h,F)=>{const l={...F},T=typeof l.maxLength=="number"?Math.min(t,l.maxLength):t,N=h.length;if(N>T)throw new SyntaxError(`Input length: ${N}, exceeds maximum allowed length: ${T}`);h=o[h]||h;const{DOT_LITERAL:x,SLASH_LITERAL:S,ONE_CHAR:v,DOTS_SLASH:j,NO_DOT:q,NO_DOTS:au,NO_DOTS_SLASH:gu,STAR:lu,START_ANCHOR:Z}=u.globChars(l.windows),cu=l.dot?au:q,$u=l.dot?gu:q,Au=l.capture?"":"?:",Du={negated:!1,prefix:""};let Q=l.bash===!0?".*?":lu;l.capture&&(Q=`(${Q})`);const hu=R=>R.noglobstar===!0?Q:`(${Au}(?:(?!${Z}${R.dot?j:x}).)*?)`,ru=R=>{switch(R){case"*":return`${cu}${v}${Q}`;case".*":return`${x}${v}${Q}`;case"*.*":return`${cu}${Q}${x}${v}${Q}`;case"*/*":return`${cu}${Q}${S}${v}${$u}${Q}`;case"**":return cu+hu(l);case"**/*":return`(?:${cu}${hu(l)}${S})?${$u}${v}${Q}`;case"**/*.*":return`(?:${cu}${hu(l)}${S})?${$u}${Q}${x}${v}${Q}`;case"**/.*":return`(?:${cu}${hu(l)}${S})?${x}${v}${Q}`;default:{const G=/^(.*?)\.(\w+)$/.exec(R);if(!G)return;const tu=ru(G[1]);return tu?tu+x+G[2]:void 0}}},vu=e.removePrefix(h,Du);let nu=ru(vu);return nu&&l.strictSlashes!==!0&&(nu+=`${S}?`),nu},Oe=_,Oe}var Ne,gt;function Hn(){if(gt)return Ne;gt=1;const u=Ln(),e=Pn(),t=_e(),n=Se(),s=o=>o&&typeof o=="object"&&!Array.isArray(o),r=(o,i,a=!1)=>{if(Array.isArray(o)){const g=o.map(w=>r(w,i,a));return w=>{for(const _ of g){const h=_(w);if(h)return h}return!1}}const d=s(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!d)throw new TypeError("Expected pattern to be a non-empty string");const D=i||{},m=D.windows,b=d?r.compileRe(o,i):r.makeRe(o,i,!1,!0),C=b.state;delete b.state;let f=()=>!1;if(D.ignore){const g={...i,ignore:null,onMatch:null,onResult:null};f=r(D.ignore,g,a)}const $=(g,w=!1)=>{const{isMatch:_,match:h,output:F}=r.test(g,b,i,{glob:o,posix:m}),l={glob:o,state:C,regex:b,posix:m,input:g,output:F,match:h,isMatch:_};if(typeof D.onResult=="function"&&D.onResult(l),_===!1)return l.isMatch=!1,w?l:!1;u:if(f(g)){if(typeof D.onIgnore=="function"&&D.onIgnore(l)===n.UNIGNORE){l.isMatch=!0;break u}return l.isMatch=!1,w?l:!1}return typeof D.onMatch=="function"&&D.onMatch(l),w?l:!0};return a&&($.state=C),$};return r.test=(o,i,a,{glob:d,posix:D}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const m=a||{},b=m.format||(D?t.toPosixSlashes:null);let C=o===d,f=C&&b?b(o):o;return C===!1&&(f=b?b(o):o,C=f===d),(C===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?C=r.matchBase(o,i,a,D):C=i.exec(f)),{isMatch:!!C,match:C,output:f}},r.matchBase=(o,i,a,d=a&&a.windows)=>(i instanceof RegExp?i:r.makeRe(i,a)).test(t.basename(o,{windows:d})),r.isMatch=(o,i,a)=>r(i,a)(o),r.parse=(o,i)=>Array.isArray(o)?o.map(a=>r.parse(a,i)):e(o,{...i,fastpaths:!1}),r.scan=(o,i)=>u(o,i),r.compileRe=(o,i,a=!1,d=!1)=>{if(a===!0)return o.output;const D=i||{},m=D.contains?"":"^",b=D.contains?"":"$";let C=`${m}(?:${o.output})${b}`;o&&o.negated===!0&&(C=`^(?!${C}).*$`);const f=r.toRegex(C,i);return d===!0&&(f.state=o),f},r.makeRe=(o,i={},a=!1,d=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let D={negated:!1,fastpaths:!0};return i.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(D.output=e.fastpaths(o,i)),D.output||(D=e(o,i)),r.compileRe(D,i,a,d)},r.toRegex=(o,i)=>{try{const a=i||{};return new RegExp(o,a.flags||(a.nocase?"i":""))}catch(a){if(i&&i.debug===!0)throw a;return/$^/}},r.constants=n,Ne=r,Ne}var Le,dt;function In(){if(dt)return Le;dt=1;const u=Hn(),e=_e();function t(n,s,r=!1){return s&&(s.windows===null||s.windows===void 0)&&(s={...s,windows:e.isWindows()}),u(n,s,r)}return Object.assign(t,u),Le=t,Le}var Mn=In();const ku=et(Mn);let jn;const Gn=u=>(jn??=I(import.meta.url))(u),Yu=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,de=u=>{if(typeof Yu<"u"&&Yu.versions&&Yu.versions.node){const[e,t]=Yu.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Yu.getBuiltinModule(u)}return Gn(u)},mt=de("fs"),zn={...mt,default:mt},{statSync:Un,stat:Wn,realpathSync:qn,realpath:Xn,readdirSync:Kn,readdir:Vn}=de("fs"),{sep:jt,basename:Qn,dirname:qe,resolve:Gt,normalize:Jn,relative:Zn,posix:Ou,isAbsolute:Yn}=de("path"),{fileURLToPath:us}=de("url"),{createRequire:es}=de("module");var yt=es(import.meta.url);function ts(u){let e=Jn(u);return e.length>1&&e[e.length-1]===jt&&(e=e.substring(0,e.length-1)),e}const rs=/[\\/]/g;function zt(u,e){return u.replace(rs,e)}const ns=/^[a-z]:[\\/]$/i;function ss(u){return u==="/"||ns.test(u)}function Pe(u,e){const{resolvePaths:t,normalizePath:n,pathSeparator:s}=e,r=process.platform==="win32"&&u.includes("/")||u.startsWith(".");if(t&&(u=Gt(u)),(n||r)&&(u=ts(u)),u===".")return"";const o=u[u.length-1]!==s;return zt(o?u+s:u,s)}function Ut(u,e){return e+u}function os(u,e){return function(t,n){return n.startsWith(u)?n.slice(u.length)+t:zt(Zn(u,n),e.pathSeparator)+e.pathSeparator+t}}function is(u){return u}function as(u,e,t){return e+u+t}function ls(u,e){const{relativePaths:t,includeBasePath:n}=e;return t&&u?os(u,e):n?Ut:is}function cs(u){return function(e,t){t.push(e.substring(u.length)||".")}}function Ds(u){return function(e,t,n){const s=e.substring(u.length)||".";n.every(r=>r(s,!0))&&t.push(s)}}const ps=(u,e)=>{e.push(u||".")},fs=(u,e,t)=>{const n=u||".";t.every(s=>s(n,!0))&&e.push(n)},As=()=>{};function hs(u,e){const{includeDirs:t,filters:n,relativePaths:s}=e;return t?s?n&&n.length?Ds(u):cs(u):n&&n.length?fs:ps:As}const Es=(u,e,t,n)=>{n.every(s=>s(u,!1))&&t.files++},Cs=(u,e,t,n)=>{n.every(s=>s(u,!1))&&e.push(u)},Fs=(u,e,t,n)=>{t.files++},gs=(u,e)=>{e.push(u)},ds=()=>{};function ms(u){const{excludeFiles:e,filters:t,onlyCounts:n}=u;return e?ds:t&&t.length?n?Es:Cs:n?Fs:gs}const ys=u=>u,Bs=()=>[""].slice(0,0);function bs(u){return u.group?Bs:ys}const $s=(u,e,t)=>{u.push({directory:e,files:t,dir:e})},vs=()=>{};function ws(u){return u.group?$s:vs}const xs=function(u,e,t){const{queue:n,fs:s,options:{suppressErrors:r}}=e;n.enqueue(),s.realpath(u,(o,i)=>{if(o)return n.dequeue(r?null:o,e);s.stat(i,(a,d)=>{if(a)return n.dequeue(r?null:a,e);if(d.isDirectory()&&Wt(u,i,e))return n.dequeue(null,e);t(d,i),n.dequeue(null,e)})})},Ss=function(u,e,t){const{queue:n,fs:s,options:{suppressErrors:r}}=e;n.enqueue();try{const o=s.realpathSync(u),i=s.statSync(o);if(i.isDirectory()&&Wt(u,o,e))return;t(i,o)}catch(o){if(!r)throw o}};function _s(u,e){return!u.resolveSymlinks||u.excludeSymlinks?null:e?Ss:xs}function Wt(u,e,t){if(t.options.useRealPaths)return Ts(e,t);let n=qe(u),s=1;for(;n!==t.root&&s<2;){const r=t.symlinks.get(n);r&&(r===e||r.startsWith(e)||e.startsWith(r))?s++:n=qe(n)}return t.symlinks.set(u,e),s>1}function Ts(u,e){return e.visited.includes(u+e.options.pathSeparator)}const Rs=u=>u.counts,ks=u=>u.groups,Os=u=>u.paths,Ns=u=>u.paths.slice(0,u.options.maxFiles),Ls=(u,e,t)=>(Te(e,t,u.counts,u.options.suppressErrors),null),Ps=(u,e,t)=>(Te(e,t,u.paths,u.options.suppressErrors),null),Hs=(u,e,t)=>(Te(e,t,u.paths.slice(0,u.options.maxFiles),u.options.suppressErrors),null),Is=(u,e,t)=>(Te(e,t,u.groups,u.options.suppressErrors),null);function Te(u,e,t,n){e(u&&!n?u:null,t)}function Ms(u,e){const{onlyCounts:t,group:n,maxFiles:s}=u;return t?e?Rs:Ls:n?e?ks:Is:s?e?Ns:Hs:e?Os:Ps}const qt={withFileTypes:!0},js=(u,e,t,n,s)=>{if(u.queue.enqueue(),n<0)return u.queue.dequeue(null,u);const{fs:r}=u;u.visited.push(e),u.counts.directories++,r.readdir(e||".",qt,(o,i=[])=>{s(i,t,n),u.queue.dequeue(u.options.suppressErrors?null:o,u)})},Gs=(u,e,t,n,s)=>{const{fs:r}=u;if(n<0)return;u.visited.push(e),u.counts.directories++;let o=[];try{o=r.readdirSync(e||".",qt)}catch(i){if(!u.options.suppressErrors)throw i}s(o,t,n)};function zs(u){return u?Gs:js}var Us=class{count=0;constructor(u){this.onQueueEmpty=u}enqueue(){return this.count++,this.count}dequeue(u,e){this.onQueueEmpty&&(--this.count<=0||u)&&(this.onQueueEmpty(u,e),u&&(e.controller.abort(),this.onQueueEmpty=void 0))}},Ws=class{_files=0;_directories=0;set files(u){this._files=u}get files(){return this._files}set directories(u){this._directories=u}get directories(){return this._directories}get dirs(){return this._directories}},qs=class{aborted=!1;abort(){this.aborted=!0}},Xt=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=Ms(t,this.isSynchronous),this.root=Pe(e,t),this.state={root:ss(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Ws,options:t,queue:new Us((s,r)=>this.callbackInvoker(r,s,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new qs,fs:t.fs||zn},this.joinPath=ls(this.root,t),this.pushDirectory=hs(this.root,t),this.pushFile=ms(t),this.getArray=bs(t),this.groupFiles=ws(t),this.resolveSymlink=_s(t,this.isSynchronous),this.walkDirectory=zs(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{const{paths:s,options:{filters:r,resolveSymlinks:o,excludeSymlinks:i,exclude:a,maxFiles:d,signal:D,useRealPaths:m,pathSeparator:b},controller:C}=this.state;if(C.aborted||D&&D.aborted||d&&s.length>d)return;const f=this.getArray(this.state.paths);for(let $=0;$<e.length;++$){const g=e[$];if(g.isFile()||g.isSymbolicLink()&&!o&&!i){const w=this.joinPath(g.name,t);this.pushFile(w,f,this.state.counts,r)}else if(g.isDirectory()){let w=as(g.name,t,this.state.options.pathSeparator);if(a&&a(g.name,w))continue;this.pushDirectory(w,s,r),this.walkDirectory(this.state,w,w,n-1,this.walk)}else if(this.resolveSymlink&&g.isSymbolicLink()){let w=Ut(g.name,t);this.resolveSymlink(w,this.state,(_,h)=>{if(_.isDirectory()){if(h=Pe(h,this.state.options),a&&a(g.name,m?h:w+b))return;this.walkDirectory(this.state,h,m?h:w+b,n-1,this.walk)}else{h=m?h:w;const F=Qn(h),l=Pe(qe(h),this.state.options);h=this.joinPath(F,l),this.pushFile(h,f,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,f)}};function Xs(u,e){return new Promise((t,n)=>{Kt(u,e,(s,r)=>{if(s)return n(s);t(r)})})}function Kt(u,e,t){new Xt(u,e,t).start()}function Ks(u,e){return new Xt(u,e).start()}var Bt=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return Xs(this.root,this.options)}withCallback(e){Kt(this.root,this.options,e)}sync(){return Ks(this.root,this.options)}};let Vt=null;try{yt.resolve("picomatch"),Vt=yt("picomatch")}catch{}var Vs=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:jt,filters:[]};globFunction;constructor(u){this.options={...this.options,...u},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(u){return this.options.pathSeparator=u,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(u){return this.options.maxDepth=u,this}withMaxFiles(u){return this.options.maxFiles=u,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:u=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=u,this.withFullPaths()}withAbortSignal(u){return this.options.signal=u,this}normalize(){return this.options.normalizePath=!0,this}filter(u){return this.options.filters.push(u),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(u){return this.options.exclude=u,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(u){return new Bt(u||".",this.options)}withGlobFunction(u){return this.globFunction=u,this}crawlWithOptions(u,e){return this.options={...this.options,...e},new Bt(u||".",this.options)}glob(...u){return this.globFunction?this.globWithOptions(u):this.globWithOptions(u,{dot:!0})}globWithOptions(u,...e){const t=this.globFunction||Vt;if(!t)throw new Error("Please specify a glob function to use glob matching.");var n=this.globCache[u.join("\0")];return n||(n=t(u,...e),this.globCache[u.join("\0")]=n),this.options.filters.push(s=>n(s)),this}};const Qs=Array.isArray,Qt=/\\/g,Js=/^[A-Za-z]:$/,Jt=process.platform==="win32",Zs=/^(\/?\.\.)+$/;function bt(u,e={}){const t=u.length,n=Array(t),s=Array(t);let r,o;for(r=0;r<t;r++){const i=Zt(u[r]);n[r]=i;const a=i.length,d=Array(a);for(o=0;o<a;o++)d[o]=ku(i[o],e);s[r]=d}return i=>{const a=i.split("/");if(a[0]===".."&&Zs.test(i))return!0;for(r=0;r<t;r++){const d=n[r],D=s[r],m=a.length,b=Math.min(m,d.length);for(o=0;o<b;){const C=d[o];if(C.includes("/"))return!0;if(!D[o](a[o]))break;if(!e.noglobstar&&C==="**")return!0;o++}if(o===m)return!0}return!1}}const Ys=/^[A-Z]:\/$/i,uo=Jt?u=>Ys.test(u):u=>u==="/";function $t(u,e,t){if(u===e||e.startsWith(`${u}/`)){if(t){const s=u.length+ +!uo(u);return(r,o)=>r.slice(s,o?-1:void 0)||"."}const n=e.slice(u.length+1);return n?(s,r)=>{if(s===".")return n;const o=`${n}/${s}`;return r?o.slice(0,-1):o}:(s,r)=>r&&s!=="."?s.slice(0,-1):s}return t?n=>Ou.relative(u,n)||".":n=>Ou.relative(u,`${e}/${n}`)||"."}function eo(u,e){if(e.startsWith(`${u}/`)){const t=e.slice(u.length+1);return n=>`${t}/${n}`}return t=>{const n=Ou.relative(u,`${e}/${t}`);return t[t.length-1]==="/"&&n!==""?`${n}/`:n||"."}}function vt(u){return u.replace(Js,e=>`${e}/`)}const to={parts:!0};function Zt(u){var e;const t=ku.scan(u,to);return!((e=t.parts)===null||e===void 0)&&e.length?t.parts:[u]}const ro=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,no=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,so=u=>u.replace(ro,"\\$&"),oo=u=>u.replace(no,"\\$&"),io=Jt?oo:so;function ao(u,e){const t=ku.scan(u);return t.isGlob||t.negated}function Ee(...u){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...u)}function Yt(u){return typeof u=="string"?[u]:u??[]}const lo=/^(\/?\.\.)+/,co=/\\(?=[()[\]{}!*+?@|])/g;function He(u,e,t,n){var s;const r=e.cwd;let o=u;u[u.length-1]==="/"&&(o=u.slice(0,-1));const i=o.lastIndexOf("/"),a=(i===-1?o:o.slice(i+1)).startsWith("!(");o[o.length-1]!=="*"&&!a&&e.expandDirectories&&(o+="/**");const d=io(r);o=Yn(o.replace(co,""))?Ou.relative(d,o):Ou.normalize(o);const D=(s=lo.exec(o))===null||s===void 0?void 0:s[0],m=Zt(o);if(D){const C=(D.length+1)/3;let f=0;const $=d.split("/");for(;f<C&&m[f+C]===$[$.length+f-C];)o=o.slice(0,(C-f-1)*3)+o.slice((C-f)*3+m[f+C].length+1)||".",f++;const g=Ou.join(r,D.slice(f*3));g[0]!=="."&&t.root.length>g.length&&(t.root=vt(g),t.depthOffset=-C+f)}if(!n&&t.depthOffset>=0){var b;(b=t.commonPath)!==null&&b!==void 0||(t.commonPath=m);const C=[],f=Math.min(t.commonPath.length,m.length);for(let $=0;$<f;$++){const g=m[$];if(g==="**"&&!m[$+1]){C.pop();break}if($===m.length-1||g!==t.commonPath[$]||ao(g))break;C.push(g)}t.depthOffset=C.length,t.commonPath=C,t.root=vt(C.length>0?Ou.join(r,...C):r)}return o}function Do(u,e,t){const n=[],s=[],r=[];for(const o of u.ignore)o&&(o[0]!=="!"||o[1]==="("?s.push(He(o,u,t,!0)):r.push(o.slice(1)));for(const o of e)o&&(o[0]!=="!"||o[1]==="("?n.push(He(o,u,t,!1)):(o[1]!=="!"||o[2]==="(")&&s.push(He(o.slice(1),u,t,!0)));return{match:n,ignore:s,unignore:r}}function po(u,e){const t=u.cwd,n={root:t,depthOffset:0},s=Do(u,e,n);u.debug&&Ee("internal processing patterns:",s);const{absolute:r,caseSensitiveMatch:o,debug:i,dot:a,followSymbolicLinks:d,onlyDirectories:D}=u,m=n.root.replace(Qt,""),b={dot:a,nobrace:u.braceExpansion===!1,nocase:!o,noextglob:u.extglob===!1,noglobstar:u.globstar===!1,posix:!0},C=s.unignore.length>0,f=C?ku(s.unignore,b):void 0,$=C?bt(s.unignore,b):void 0,g=ku(s.match,{...b,ignore:s.ignore,onIgnore:f?S=>f(S.output)&&ku.constants.UNIGNORE:void 0}),w=ku(s.ignore,b),_=bt(s.match,b),h=$t(t,m,r),F=r?h:$t(t,m,!0),l=s.match.length>0&&s.match.every(S=>S==="**"||S==="**/*"),T=s.ignore.length>0||C||!l?(S,v)=>{const j=F(v,!0);return j==="."||$&&$(j)?!1:!_(j)||w(j)}:void 0;let N;u.deep!==void 0&&(N=Math.round(u.deep-n.depthOffset));const x=new Vs({filters:[i?(S,v)=>{const j=h(S,v),q=g(j);return q&&Ee(`matched ${j}`),q}:(S,v)=>{const j=h(S,v);return g(j)}],exclude:i&&T?(S,v)=>{const j=T(S,v);return Ee(`${j?"skipped":"crawling"} ${v}`),j}:T,fs:u.fs,pathSeparator:"/",relativePaths:!r,resolvePaths:r,includeBasePath:r,resolveSymlinks:d,excludeSymlinks:!d,excludeFiles:D,includeDirs:D||!u.onlyFiles,maxDepth:N,signal:u.signal}).crawl(m);return u.debug&&Ee("internal properties:",{...n,root:m}),[x,t!==m&&!r&&eo(t,m)]}function fo(u,e){if(e)for(let t=u.length-1;t>=0;t--)u[t]=e(u[t]);return u}const wt={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Ao(u){const e=Object.assign({},u);for(const t in wt)e[t]===void 0&&Object.assign(e,{[t]:wt[t]});return e.cwd=(e.cwd instanceof URL?us(e.cwd):Gt(e.cwd||process.cwd())).replace(Qt,"/"),e.ignore=Yt(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||Vn,readdirSync:e.fs.readdirSync||Kn,realpath:e.fs.realpath||Xn,realpathSync:e.fs.realpathSync||qn,stat:e.fs.stat||Wn,statSync:e.fs.statSync||Un}),e.debug&&Ee("globbing with options:",e),e}function ho(u,e={}){var t;if(u&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=Qs(u)||typeof u=="string",s=Yt((t=n?u:u.patterns)!==null&&t!==void 0?t:"**/*"),r=Ao(n?e:u);return s.length>0?po(r,s):[]}async function Sa(u,e){const[t,n]=ho(u,e);return t?fo(await t.withPromise(),n):[]}var Ie,xt;function Eo(){if(xt)return Ie;xt=1;/*!
2
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
3
- *
4
- * Copyright (c) 2014-2016, Jon Schlinkert.
5
- * Licensed under the MIT License.
6
- */return Ie=function(u){if(typeof u!="string"||u==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(u);){if(e[2])return!0;u=u.slice(e.index+e[0].length)}return!1},Ie}var Me,St;function ur(){if(St)return Me;St=1;/*!
7
- * is-glob <https://github.com/jonschlinkert/is-glob>
8
- *
9
- * Copyright (c) 2014-2017, Jon Schlinkert.
10
- * Released under the MIT License.
11
- */var u=Eo(),e={"{":"}","(":")","[":"]"},t=function(s){if(s[0]==="!")return!0;for(var r=0,o=-2,i=-2,a=-2,d=-2,D=-2;r<s.length;){if(s[r]==="*"||s[r+1]==="?"&&/[\].+)]/.test(s[r])||i!==-1&&s[r]==="["&&s[r+1]!=="]"&&(i<r&&(i=s.indexOf("]",r)),i>r&&(D===-1||D>i||(D=s.indexOf("\\",r),D===-1||D>i)))||a!==-1&&s[r]==="{"&&s[r+1]!=="}"&&(a=s.indexOf("}",r),a>r&&(D=s.indexOf("\\",r),D===-1||D>a))||d!==-1&&s[r]==="("&&s[r+1]==="?"&&/[:!=]/.test(s[r+2])&&s[r+3]!==")"&&(d=s.indexOf(")",r),d>r&&(D=s.indexOf("\\",r),D===-1||D>d))||o!==-1&&s[r]==="("&&s[r+1]!=="|"&&(o<r&&(o=s.indexOf("|",r)),o!==-1&&s[o+1]!==")"&&(d=s.indexOf(")",o),d>o&&(D=s.indexOf("\\",o),D===-1||D>d))))return!0;if(s[r]==="\\"){var m=s[r+1];r+=2;var b=e[m];if(b){var C=s.indexOf(b,r);C!==-1&&(r=C+1)}if(s[r]==="!")return!0}else r++}return!1},n=function(s){if(s[0]==="!")return!0;for(var r=0;r<s.length;){if(/[*?{}()[\]]/.test(s[r]))return!0;if(s[r]==="\\"){var o=s[r+1];r+=2;var i=e[o];if(i){var a=s.indexOf(i,r);a!==-1&&(r=a+1)}if(s[r]==="!")return!0}else r++}return!1};return Me=function(s,r){if(typeof s!="string"||s==="")return!1;if(u(s))return!0;var o=t;return r&&r.strict===!1&&(o=n),o(s)},Me}let Co;const Fo=u=>(Co??=I(import.meta.url))(u),ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,er=u=>{if(typeof ue<"u"&&ue.versions&&ue.versions.node){const[e,t]=ue.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ue.getBuiltinModule(u)}return Fo(u)},go=er("path"),mo=er("os");var je,_t;function yo(){if(_t)return je;_t=1;var u=ur(),e=go.posix.dirname,t=mo.platform()==="win32",n="/",s=/\\/g,r=/\\([!*?|[\](){}])/g;je=function(a,d){var D=Object.assign({flipBackslashes:!0},d);D.flipBackslashes&&t&&a.indexOf(n)<0&&(a=a.replace(s,n)),o(a)&&(a+=n),a+="a";do a=e(a);while(i(a));return a.replace(r,"$1")};function o(a){var d=a.slice(-1),D;switch(d){case"}":D="{";break;case"]":D="[";break;default:return!1}var m=a.indexOf(D);return m<0?!1:a.slice(m+1,-1).includes(n)}function i(a){return/\([^()]+$/.test(a)||a[0]==="{"||a[0]==="["||/[^\\][{[]/.test(a)?!0:u(a)}return je}var Bo=yo();et(Bo);let bo;const $o=u=>(bo??=I(import.meta.url))(u),ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vo=u=>{if(typeof ee<"u"&&ee.versions&&ee.versions.node){const[e,t]=ee.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ee.getBuiltinModule(u)}return $o(u)},{access:wo}=vo("node:fs/promises");async function _a(u,e=Je){bu(u),u=yu(u);try{return await wo(u,e),!0}catch{return!1}}let xo;const So=u=>(xo??=I(import.meta.url))(u),te=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_o=u=>{if(typeof te<"u"&&te.versions&&te.versions.node){const[e,t]=te.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return te.getBuiltinModule(u)}return So(u)},{accessSync:To}=_o("node:fs");function Xe(u,e=Je){bu(u),u=yu(u);try{return To(u,e),!0}catch{return!1}}var Ro=ur();et(Ro);let ko;const Oo=u=>(ko??=I(import.meta.url))(u),re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tr=u=>{if(typeof re<"u"&&re.versions&&re.versions.node){const[e,t]=re.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return re.getBuiltinModule(u)}return Oo(u)};tr("node:fs/promises");tr("node:fs");let No=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")}},Lo=class extends Error{constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};const rr=(u,e)=>{const t=u?.code;return t==="ENOENT"?new No(`no such file or directory, open '${e}'`):t==="EACCES"||t==="EPERM"?new Lo(`unable to read the non-readable file: ${e}`):u};let Po;const Ho=u=>(Po??=I(import.meta.url))(u),ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nr=u=>{if(typeof ne<"u"&&ne.versions&&ne.versions.node){const[e,t]=ne.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ne.getBuiltinModule(u)}return Ho(u)},{readFile:Io}=nr("node:fs/promises"),{unzip:Mo,brotliDecompress:jo}=nr("node:zlib"),Go={brotli:jo,gzip:Mo,none:(u,e)=>{e(null,u)}},ka=async(u,e)=>{bu(u),u=yu(u);const{buffer:t,compression:n,encoding:s,flag:r}=e??{};let o;try{o=await Io(u,r?{flag:r}:{})}catch(i){throw rr(i,u)}return await new Promise((i,a)=>{Go[n??"none"](o,(d,D)=>{d?a(d):i(t?D:D.toString(s??"utf8"))})})};let zo;const Uo=u=>(zo??=I(import.meta.url))(u),se=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,sr=u=>{if(typeof se<"u"&&se.versions&&se.versions.node){const[e,t]=se.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return se.getBuiltinModule(u)}return Uo(u)},{readFileSync:Wo}=sr("node:fs"),{unzipSync:qo,brotliDecompressSync:Xo}=sr("node:zlib"),Ko={brotli:Xo,gzip:qo,none:u=>u},Vo=(u,e)=>{bu(u),u=yu(u);const{buffer:t,compression:n,encoding:s,flag:r}=e??{};let o;try{o=Wo(u,r?{flag:r}:{})}catch(d){throw rr(d,u)}const i=Ko[n??"none"],a=i(o);return t?a:a.toString(s??"utf8")},Qo=globalThis.process??Object.create(null),Tt={versions:{}},Rt=new Proxy(Qo,{get(u,e){if(e in u)return u[e];if(e in Tt)return Tt[e]}}),Jo=u=>u.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
12
- `),Zo=(u,e,t,n)=>{const s={column:0,line:-1,...u.start},r={...s,...u.end},o=s.line,i=s.column,a=r.line,d=r.column;let D=Math.max(o-(t+1),0),m=Math.min(e.length,a+n);o===-1&&(D=0),a===-1&&(m=e.length);const b=a-o,C={};if(b)for(let f=0;f<=b;f++){const $=f+o;if(!i)C[$]=!0;else if(f===0){const g=e[$-1]?.length;C[$]=[i,(g??0)-i+1]}else if(f===b)C[$]=[0,d];else{const g=e[$-f]?.length;C[$]=[0,g]}}else i===d?C[o]=i?[i,0]:!0:C[o]=[i,(d??0)-(i??0)];return{end:m,markerLines:C,start:D}},Yo=Rt.platform==="win32"&&!Rt.env?.WT_SESSION?">":"❯",Oa=(u,e,t)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...t,color:{gutter:f=>f,marker:f=>f,message:f=>f,...t?.color}},s=typeof e.start.column=="number";let r=(u.includes("\r")?Jo(u):u).split(`
13
- `);typeof n.tabWidth=="number"&&u.includes(" ")&&(r=r.map(f=>f.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:i,start:a}=Zo(e,r,n.linesAbove,n.linesBelow),d=String(o).length,{gutter:D,marker:m,message:b}=n.color;let C=r.slice(a,o).map((f,$)=>{const g=a+1+$,w=i[g],_=String(g).padStart(d),h=!i[g+1],F=` ${_}${n.showGutter?" |":""}`;if(w){let l="";if(Array.isArray(w)){const T=f.replaceAll(/[^\t]/g," ").slice(0,Math.max(w[0]-1,0)),N=w[1]||1;l=[`
14
- `,n.prefix+D(F.replaceAll(/\d/g," "))," ",T,m("^").repeat(N)].join(""),h&&n.message&&(l+=` ${b(n.message)}`)}return[n.prefix+m(Yo),D(F),f.length>0?` ${f}`:"",l].join("")}return`${n.prefix} ${D(F)}${f.length>0?` ${f}`:""}`}).join(`
15
- `);return n.message&&!s&&(C=`${n.prefix+" ".repeat(d+1)+n.message}
16
- ${C}`),C},kt=(u,e)=>{let t=0,n=e.length-2;for(;t<n;){const s=t+(n-t>>1);if(u<e[s])n=s-1;else if(u>=e[s+1])t=s+1;else{t=s;break}}return t},ui=/\n|\r(?!\n)/,ei=u=>u.split(ui).reduce((e,t)=>(e.push(e.at(-1)+t.length+1),e),[0]),Na=(u,e,t)=>{if(!Array.isArray(u)&&typeof u!="string"||(typeof u=="string"||Array.isArray(u))&&u.length===0)return{column:0,line:0};if(typeof e!="number"||typeof u=="string"&&e>=u.length||Array.isArray(u)&&e+1>=u.at(-1))return{column:0,line:0};if(typeof u=="string"){const s=ei(u),r=kt(e,s);return{column:e-s[r]+1,line:r+1}}const n=kt(e,u);return{column:e-u[n]+1,line:n+1}};let La=class extends Error{fileName;codeFrame;name="JSONError";#u;constructor(e){super(),this.#u=e}get message(){return`${this.#u}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
17
-
18
- ${this.codeFrame}
19
- `:""}`}set message(e){this.#u=e}};const ti=u=>{const e={force:!0,recursive:!0};return u?.maxRetries!==void 0&&(e.maxRetries=u.maxRetries),u?.retryDelay!==void 0&&(e.retryDelay=u.retryDelay),e};let ri;const ni=u=>(ri??=I(import.meta.url))(u),oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,or=u=>{if(typeof oe<"u"&&oe.versions&&oe.versions.node){const[e,t]=oe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return oe.getBuiltinModule(u)}return ni(u)};or("node:fs");or("node:fs/promises");let si;const oi=u=>(si??=I(import.meta.url))(u),ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ii=u=>{if(typeof ie<"u"&&ie.versions&&ie.versions.node){const[e,t]=ie.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ie.getBuiltinModule(u)}return oi(u)};ii("node:fs");let ai;const li=u=>(ai??=I(import.meta.url))(u),ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ci=u=>{if(typeof ae<"u"&&ae.versions&&ae.versions.node){const[e,t]=ae.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ae.getBuiltinModule(u)}return li(u)};ci("node:fs/promises");let Di;const pi=u=>(Di??=I(import.meta.url))(u),le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,fi=u=>{if(typeof le<"u"&&le.versions&&le.versions.node){const[e,t]=le.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return le.getBuiltinModule(u)}return pi(u)},{rmSync:Ai}=fi("node:fs"),Ha=(u,e={})=>{bu(u),Ai(u,ti(e))},hi=u=>{if(typeof u!="string"&&!(u instanceof ArrayBuffer)&&!ArrayBuffer.isView(u))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")};let Ei;const Ci=u=>(Ei??=I(import.meta.url))(u),ce=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fi=u=>{if(typeof ce<"u"&&ce.versions&&ce.versions.node){const[e,t]=ce.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return ce.getBuiltinModule(u)}return Ci(u)},{randomBytes:gi}=Fi("node:crypto"),di=u=>`${u}.${process.pid.toString(36)}.${gi(6).toString("hex")}.tmp`,mi=new TextEncoder,yi=u=>{if(u instanceof Uint8Array)return u;if(typeof u=="string")return mi.encode(u);if(u instanceof ArrayBuffer)return new Uint8Array(u);if(ArrayBuffer.isView(u)){const e=u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")};let Bi;const bi=u=>(Bi??=I(import.meta.url))(u),De=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$i=u=>{if(typeof De<"u"&&De.versions&&De.versions.node){const[e,t]=De.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return De.getBuiltinModule(u)}return bi(u)};$i("node:fs/promises");let vi;const wi=u=>(vi??=I(import.meta.url))(u),pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xi=u=>{if(typeof pe<"u"&&pe.versions&&pe.versions.node){const[e,t]=pe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return pe.getBuiltinModule(u)}return wi(u)},{mkdirSync:Si,readFileSync:_i,writeFileSync:Ti,statSync:Ri,renameSync:Ot,chownSync:ki,chmodSync:Oi,unlinkSync:Ni}=xi("node:fs"),Li=(u,e,t)=>{t={backup:!1,encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...t},bu(u),hi(e),u=yu(u);const n=Xe(u,Je),s=t.flag??"w",r=s.includes("a"),o=s.includes("x");if(n&&(!t.overwrite||o))throw new Lr(`file already exists, open '${u}'`);const i=di(u);try{!n&&t.recursive&&Si(Ye(u),{recursive:!0});let a,d=typeof e=="string"?Buffer.from(e,t.encoding??"utf8"):yi(e);if(r&&n&&(d=Buffer.concat([_i(u),d])),Ti(i,d,{flag:"wx"}),n&&t.backup&&(a=Ri(u),t.chown??={gid:a.gid,uid:a.uid},Ot(u,`${u}.bak`)),t.chown)try{ki(i,t.chown.uid,t.chown.gid)}catch{}const D=a&&t.mode===void 0?a.mode:t.mode;D!==void 0&&Oi(i,D),Ot(i,u)}catch(a){throw new Error(`Failed to write file at: ${u} - ${a.message}`,{cause:a})}finally{Xe(i)&&Ni(i)}},Pi=/^(?:( )+|\t+)/,me="space";function Nt(u,e,t){return u&&e===me&&t===1}function Lt(u,e){const t=new Map;let n=0,s,r;for(const o of u.split(/\n/g)){if(!o)continue;const i=o.match(Pi);if(i===null)n=0,s="";else{const a=i[0].length,d=i[1]?me:"tab";if(Nt(e,d,a))continue;d!==s&&(n=0),s=d;let D=1,m=0;const b=a-n;if(n=a,b===0)D=0,m=1;else{const f=Math.abs(b);if(Nt(e,d,f))continue;r=Hi(d,f)}const C=t.get(r);t.set(r,C===void 0?[1,0]:[C[0]+D,C[1]+m])}}return t}function Hi(u,e){return(u===me?"s":"t")+String(e)}function Ii(u){const e=u[0]==="s"?me:"tab",t=Number(u.slice(1));return{type:e,amount:t}}function Mi(u){let e,t=0,n=0;for(const[s,[r,o]]of u)(r>t||r===t&&o>n)&&(t=r,n=o,e=s);return e}function ji(u,e){return(u===me?" ":" ").repeat(e)}function Gi(u){if(typeof u!="string")throw new TypeError("Expected a string");let e=Lt(u,!0);e.size===0&&(e=Lt(u,!1));const t=Mi(e);let n,s=0,r="";return t!==void 0&&({type:n,amount:s}=Ii(t),r=ji(n,s)),{amount:s,type:n,indent:r}}let zi;const Ui=u=>(zi??=I(import.meta.url))(u),fe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wi=u=>{if(typeof fe<"u"&&fe.versions&&fe.versions.node){const[e,t]=fe.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return fe.getBuiltinModule(u)}return Ui(u)};Wi("node:fs/promises");let qi;const Xi=u=>(qi??=I(import.meta.url))(u),Ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ki=u=>{if(typeof Ae<"u"&&Ae.versions&&Ae.versions.node){const[e,t]=Ae.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return Ae.getBuiltinModule(u)}return Xi(u)},{readFileSync:Vi}=Ki("node:fs"),Ia=(u,e,t={})=>{const{detectIndent:n,indent:s,replacer:r,stringify:o=JSON.stringify,...i}={indent:" ",...t};let a=s,d=`
20
- `;if(Xe(u,hr))try{const m=Vi(u,"utf8");if(n){const{indent:b}=Gi(m);a=b}d=m.endsWith(`
21
- `)?`
22
- `:""}catch(m){if(m.code!=="ENOENT")throw m}const D=o(e,r,a);Li(u,`${D}${d}`,i)};let Qi;const Ji=u=>(Qi??=I(import.meta.url))(u),he=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,tt=u=>{if(typeof he<"u"&&he.versions&&he.versions.node){const[e,t]=he.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return he.getBuiltinModule(u)}return Ji(u)},Zi=tt("fs"),Yi=tt("os"),ua=tt("path");var Ge={},Pt;function ea(){if(Pt)return Ge;Pt=1;var u=Object.defineProperty,e=(D,m)=>u(D,"name",{value:m,configurable:!0}),t=Zi,n=Yi,s=ua;const r=e(D=>{let m="";for(let b=0;b<D.length;b+=1){const C=D[b],f=C.toUpperCase();m+=C===f?C.toLowerCase():f}return m},"invertCase"),o=new Map,i=e((D,m)=>{const b=s.join(D,`.is-fs-case-sensitive-test-${process.pid}`);try{return m.writeFileSync(b,""),!m.existsSync(r(b))}finally{try{m.unlinkSync(b)}catch{}}},"checkDirectoryCaseWithWrite"),a=e((D,m,b)=>{try{return i(D,b)}catch(C){if(m===void 0)return i(n.tmpdir(),b);throw C}},"checkDirectoryCaseWithFallback"),d=e((D,m=t,b=!0)=>{const C=D??process.cwd();if(b&&o.has(C))return o.get(C);let f;const $=r(C);return $!==C&&m.existsSync(C)?f=!m.existsSync($):f=a(C,D,m),b&&o.set(C,f),f},"isFsCaseSensitive");return Ge.isFsCaseSensitive=d,Ge}var ta=ea();const Ma=ta.isFsCaseSensitive;function ja(u,e,t){const{buffer:n,compression:s,encoding:r="utf8",flag:o,...i}={},a=Vo(u,{buffer:n,compression:s,encoding:r,flag:o});return typeof e=="function"?st(a,e,i):st(a,i)}var ra=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,na=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,sa=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,ze={Space_Separator:ra,ID_Start:na,ID_Continue:sa},Y={isSpaceSeparator(u){return typeof u=="string"&&ze.Space_Separator.test(u)},isIdStartChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||ze.ID_Start.test(u))},isIdContinueChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u==="‌"||u==="‍"||ze.ID_Continue.test(u))},isDigit(u){return typeof u=="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u=="string"&&/[0-9A-Fa-f]/.test(u)}};let Ke,ou,mu,xe,Su,fu,eu,rt,ge;var oa=function(u,e){Ke=String(u),ou="start",mu=[],xe=0,Su=1,fu=0,eu=void 0,rt=void 0,ge=void 0;do eu=ia(),ca[ou]();while(eu.type!=="eof");return typeof e=="function"?Ve({"":ge},"",e):ge};function Ve(u,e,t){const n=u[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let s=0;s<n.length;s++){const r=String(s),o=Ve(n,r,t);o===void 0?delete n[r]:Object.defineProperty(n,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const s in n){const r=Ve(n,s,t);r===void 0?delete n[s]:Object.defineProperty(n,s,{value:r,writable:!0,enumerable:!0,configurable:!0})}return t.call(u,e,n)}let O,k,Ce,du,H;function ia(){for(O="default",k="",Ce=!1,du=1;;){H=Bu();const u=ir[O]();if(u)return u}}function Bu(){if(Ke[xe])return String.fromCodePoint(Ke.codePointAt(xe))}function E(){const u=Bu();return u===`
23
- `?(Su++,fu=0):u?fu+=u.length:fu++,u&&(xe+=u.length),u}const ir={default(){switch(H){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
24
- `:case"\r":case"\u2028":case"\u2029":E();return;case"/":E(),O="comment";return;case void 0:return E(),W("eof")}if(Y.isSpaceSeparator(H)){E();return}return ir[ou]()},comment(){switch(H){case"*":E(),O="multiLineComment";return;case"/":E(),O="singleLineComment";return}throw V(E())},multiLineComment(){switch(H){case"*":E(),O="multiLineCommentAsterisk";return;case void 0:throw V(E())}E()},multiLineCommentAsterisk(){switch(H){case"*":E();return;case"/":E(),O="default";return;case void 0:throw V(E())}E(),O="multiLineComment"},singleLineComment(){switch(H){case`
25
- `:case"\r":case"\u2028":case"\u2029":E(),O="default";return;case void 0:return E(),W("eof")}E()},value(){switch(H){case"{":case"[":return W("punctuator",E());case"n":return E(),Tu("ull"),W("null",null);case"t":return E(),Tu("rue"),W("boolean",!0);case"f":return E(),Tu("alse"),W("boolean",!1);case"-":case"+":E()==="-"&&(du=-1),O="sign";return;case".":k=E(),O="decimalPointLeading";return;case"0":k=E(),O="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":k=E(),O="decimalInteger";return;case"I":return E(),Tu("nfinity"),W("numeric",1/0);case"N":return E(),Tu("aN"),W("numeric",NaN);case'"':case"'":Ce=E()==='"',k="",O="string";return}throw V(E())},identifierNameStartEscape(){if(H!=="u")throw V(E());E();const u=Qe();switch(u){case"$":case"_":break;default:if(!Y.isIdStartChar(u))throw Ht();break}k+=u,O="identifierName"},identifierName(){switch(H){case"$":case"_":case"‌":case"‍":k+=E();return;case"\\":E(),O="identifierNameEscape";return}if(Y.isIdContinueChar(H)){k+=E();return}return W("identifier",k)},identifierNameEscape(){if(H!=="u")throw V(E());E();const u=Qe();switch(u){case"$":case"_":case"‌":case"‍":break;default:if(!Y.isIdContinueChar(u))throw Ht();break}k+=u,O="identifierName"},sign(){switch(H){case".":k=E(),O="decimalPointLeading";return;case"0":k=E(),O="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":k=E(),O="decimalInteger";return;case"I":return E(),Tu("nfinity"),W("numeric",du*(1/0));case"N":return E(),Tu("aN"),W("numeric",NaN)}throw V(E())},zero(){switch(H){case".":k+=E(),O="decimalPoint";return;case"e":case"E":k+=E(),O="decimalExponent";return;case"x":case"X":k+=E(),O="hexadecimal";return}return W("numeric",du*0)},decimalInteger(){switch(H){case".":k+=E(),O="decimalPoint";return;case"e":case"E":k+=E(),O="decimalExponent";return}if(Y.isDigit(H)){k+=E();return}return W("numeric",du*Number(k))},decimalPointLeading(){if(Y.isDigit(H)){k+=E(),O="decimalFraction";return}throw V(E())},decimalPoint(){switch(H){case"e":case"E":k+=E(),O="decimalExponent";return}if(Y.isDigit(H)){k+=E(),O="decimalFraction";return}return W("numeric",du*Number(k))},decimalFraction(){switch(H){case"e":case"E":k+=E(),O="decimalExponent";return}if(Y.isDigit(H)){k+=E();return}return W("numeric",du*Number(k))},decimalExponent(){switch(H){case"+":case"-":k+=E(),O="decimalExponentSign";return}if(Y.isDigit(H)){k+=E(),O="decimalExponentInteger";return}throw V(E())},decimalExponentSign(){if(Y.isDigit(H)){k+=E(),O="decimalExponentInteger";return}throw V(E())},decimalExponentInteger(){if(Y.isDigit(H)){k+=E();return}return W("numeric",du*Number(k))},hexadecimal(){if(Y.isHexDigit(H)){k+=E(),O="hexadecimalInteger";return}throw V(E())},hexadecimalInteger(){if(Y.isHexDigit(H)){k+=E();return}return W("numeric",du*Number(k))},string(){switch(H){case"\\":E(),k+=aa();return;case'"':if(Ce)return E(),W("string",k);k+=E();return;case"'":if(!Ce)return E(),W("string",k);k+=E();return;case`
26
- `:case"\r":throw V(E());case"\u2028":case"\u2029":Da(H);break;case void 0:throw V(E())}k+=E()},start(){switch(H){case"{":case"[":return W("punctuator",E())}O="value"},beforePropertyName(){switch(H){case"$":case"_":k=E(),O="identifierName";return;case"\\":E(),O="identifierNameStartEscape";return;case"}":return W("punctuator",E());case'"':case"'":Ce=E()==='"',O="string";return}if(Y.isIdStartChar(H)){k+=E(),O="identifierName";return}throw V(E())},afterPropertyName(){if(H===":")return W("punctuator",E());throw V(E())},beforePropertyValue(){O="value"},afterPropertyValue(){switch(H){case",":case"}":return W("punctuator",E())}throw V(E())},beforeArrayValue(){if(H==="]")return W("punctuator",E());O="value"},afterArrayValue(){switch(H){case",":case"]":return W("punctuator",E())}throw V(E())},end(){throw V(E())}};function W(u,e){return{type:u,value:e,line:Su,column:fu}}function Tu(u){for(const e of u){if(Bu()!==e)throw V(E());E()}}function aa(){switch(Bu()){case"b":return E(),"\b";case"f":return E(),"\f";case"n":return E(),`
27
- `;case"r":return E(),"\r";case"t":return E()," ";case"v":return E(),"\v";case"0":if(E(),Y.isDigit(Bu()))throw V(E());return"\0";case"x":return E(),la();case"u":return E(),Qe();case`
28
- `:case"\u2028":case"\u2029":return E(),"";case"\r":return E(),Bu()===`
29
- `&&E(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw V(E());case void 0:throw V(E())}return E()}function la(){let u="",e=Bu();if(!Y.isHexDigit(e)||(u+=E(),e=Bu(),!Y.isHexDigit(e)))throw V(E());return u+=E(),String.fromCodePoint(parseInt(u,16))}function Qe(){let u="",e=4;for(;e-- >0;){const t=Bu();if(!Y.isHexDigit(t))throw V(E());u+=E()}return String.fromCodePoint(parseInt(u,16))}const ca={start(){if(eu.type==="eof")throw Ru();Ue()},beforePropertyName(){switch(eu.type){case"identifier":case"string":rt=eu.value,ou="afterPropertyName";return;case"punctuator":ve();return;case"eof":throw Ru()}},afterPropertyName(){if(eu.type==="eof")throw Ru();ou="beforePropertyValue"},beforePropertyValue(){if(eu.type==="eof")throw Ru();Ue()},beforeArrayValue(){if(eu.type==="eof")throw Ru();if(eu.type==="punctuator"&&eu.value==="]"){ve();return}Ue()},afterPropertyValue(){if(eu.type==="eof")throw Ru();switch(eu.value){case",":ou="beforePropertyName";return;case"}":ve()}},afterArrayValue(){if(eu.type==="eof")throw Ru();switch(eu.value){case",":ou="beforeArrayValue";return;case"]":ve()}},end(){}};function Ue(){let u;switch(eu.type){case"punctuator":switch(eu.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=eu.value;break}if(ge===void 0)ge=u;else{const e=mu[mu.length-1];Array.isArray(e)?e.push(u):Object.defineProperty(e,rt,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")mu.push(u),Array.isArray(u)?ou="beforeArrayValue":ou="beforePropertyName";else{const e=mu[mu.length-1];e==null?ou="end":Array.isArray(e)?ou="afterArrayValue":ou="afterPropertyValue"}}function ve(){mu.pop();const u=mu[mu.length-1];u==null?ou="end":Array.isArray(u)?ou="afterArrayValue":ou="afterPropertyValue"}function V(u){return nt(u===void 0?`JSON5: invalid end of input at ${Su}:${fu}`:`JSON5: invalid character '${ar(u)}' at ${Su}:${fu}`)}function Ru(){return nt(`JSON5: invalid end of input at ${Su}:${fu}`)}function Ht(){return fu-=5,nt(`JSON5: invalid identifier character at ${Su}:${fu}`)}function Da(u){console.warn(`JSON5: '${ar(u)}' in strings is not valid ECMAScript; consider escaping`)}function ar(u){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[u])return e[u];if(u<" "){const t=u.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return u}function nt(u){const e=new SyntaxError(u);return e.lineNumber=Su,e.columnNumber=fu,e}var pa=function(u,e,t){const n=[];let s="",r,o,i="",a;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(t=e.space,a=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){r=[];for(const f of e){let $;typeof f=="string"?$=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&($=String(f)),$!==void 0&&r.indexOf($)<0&&r.push($)}}return t instanceof Number?t=Number(t):t instanceof String&&(t=String(t)),typeof t=="number"?t>0&&(t=Math.min(10,Math.floor(t)),i=" ".substr(0,t)):typeof t=="string"&&(i=t.substr(0,10)),d("",{"":u});function d(f,$){let g=$[f];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(f):typeof g.toJSON=="function"&&(g=g.toJSON(f))),o&&(g=o.call($,f,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof g=="string")return D(g);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?C(g):m(g)}function D(f){const $={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let w="";for(let h=0;h<f.length;h++){const F=f[h];switch(F){case"'":case'"':$[F]++,w+=F;continue;case"\0":if(Y.isDigit(f[h+1])){w+="\\x00";continue}}if(g[F]){w+=g[F];continue}if(F<" "){let l=F.charCodeAt(0).toString(16);w+="\\x"+("00"+l).substring(l.length);continue}w+=F}const _=a||Object.keys($).reduce((h,F)=>$[h]<$[F]?h:F);return w=w.replace(new RegExp(_,"g"),g[_]),_+w+_}function m(f){if(n.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");n.push(f);let $=s;s=s+i;let g=r||Object.keys(f),w=[];for(const h of g){const F=d(h,f);if(F!==void 0){let l=b(h)+":";i!==""&&(l+=" "),l+=F,w.push(l)}}let _;if(w.length===0)_="{}";else{let h;if(i==="")h=w.join(","),_="{"+h+"}";else{let F=`,
30
- `+s;h=w.join(F),_=`{
31
- `+s+h+`,
32
- `+$+"}"}}return n.pop(),s=$,_}function b(f){if(f.length===0)return D(f);const $=String.fromCodePoint(f.codePointAt(0));if(!Y.isIdStartChar($))return D(f);for(let g=$.length;g<f.length;g++)if(!Y.isIdContinueChar(String.fromCodePoint(f.codePointAt(g))))return D(f);return f}function C(f){if(n.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");n.push(f);let $=s;s=s+i;let g=[];for(let _=0;_<f.length;_++){const h=d(String(_),f);g.push(h!==void 0?h:"null")}let w;if(g.length===0)w="[]";else if(i==="")w="["+g.join(",")+"]";else{let _=`,
33
- `+s,h=g.join(_);w=`[
34
- `+s+h+`,
35
- `+$+"]"}return n.pop(),s=$,w}};const fa={parse:oa,stringify:pa};var Ga=fa;export{Sa as C,Na as E,Ye as J,ut as K,Oa as L,vr as M,Lu as P,Fe as W,da as _,Ca as a,ga as b,wn as c,Ba as d,yu as e,ka as f,ya as g,va as h,Ga as i,Li as j,No as k,Xe as l,_a as m,Ma as n,Ea as o,Ha as p,Ia as q,La as s,ja as u,Nu as v,br as w,Fa as y,Vo as z};
@@ -1,4 +0,0 @@
1
- import{createRequire as Bt}from"node:module";import{h as J,w as T,k as V,J as $,u as _e,b as Mt,z as jt,i as Wt}from"./index-uBVnF4ji.js";import{N as He,a as ze}from"./readJsonSync-DweZd5ZA-0eZh9sGm.js";import"./public-api-WqUCiyIe.js";import{a as Se,g as _t}from"./_commonjsHelpers-B5Y90VFO.js";import{r as Ht,a as zt}from"./clean-DWjQl14S.js";let Rt;const It=a=>(Rt??=Bt(import.meta.url))(a),R=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,K=a=>{if(typeof R<"u"&&R.versions&&R.versions.node){const[e,t]=R.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return R.getBuiltinModule(a)}return It(a)},{dirname:kt}=K("node:path"),je=K("node:url"),{fileURLToPath:Ut}=je,We=K("node:module"),{createRequire:z}=We,Yt=K("util"),O=a=>"Deno"in a,xr=()=>{if(O(globalThis)){const a=globalThis.Deno,e=a.execPath();let t=e;try{const{importMeta:i}=globalThis;i?.url&&(t=i.url)}catch{}return[e,t,...a.args]}return process.argv},Ar=()=>O(globalThis)?globalThis.Deno.cwd():process.cwd(),Er=()=>{if(O(globalThis)){const a=globalThis.Deno;return new Proxy(a.env.toObject(),{get:(e,t)=>typeof t=="string"?a.env.get(t):e[t],has:(e,t)=>typeof t=="string"?a.env.has(t):t in e,set:(e,t,i)=>typeof t=="string"?(i===void 0||a.env.set(t,i),!0):!1})}return process.env},$r=()=>O(globalThis)?[]:process.execArgv,Or=()=>O(globalThis)?globalThis.Deno.execPath():process.execPath,Nr=()=>{if(O(globalThis)){const a=globalThis.Deno.build?.os??"unknown";return a==="windows"?"win32":a}return process.platform},Fr=()=>{if(O(globalThis)){const a=globalThis.Deno.build?.arch??"unknown";return a==="x86_64"?"x64":a==="aarch64"?"arm64":a}return process.arch},Gr=(a=0)=>{if(O(globalThis))throw globalThis.Deno.exit(a),new Error("Deno exit failed");process.exit(a)},Tr=(a,e)=>{if(O(globalThis))return()=>{};const t=process;return t.on(a,e),()=>{t.removeListener(a,e)}},qt=["pnpm-lock.yaml","package-lock.json","npm-shrinkwrap.json","yarn.lock","bun.lock","bun.lockb"];let Vt;const Kt=a=>(Vt??=z(import.meta.url))(a),I=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ye=a=>{if(typeof I<"u"&&I.versions&&I.versions.node){const[e,t]=I.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return I.getBuiltinModule(a)}return Kt(a)},{execFileSync:Jt}=Ye("node:child_process"),{existsSync:ye,readFileSync:Xt}=Ye("node:fs"),Zt=[...qt],be=new Set(["bun","npm","pnpm","yarn"]),qe=a=>{const e=He(Xt(a,"utf8"));return typeof e?.packageManager=="string"?e.packageManager:void 0},Qt=a=>{let e;if(Zt.forEach(i=>{!e&&ye(T(a,i))&&(e=T(a,i))}),e)return e;const t=T(a,"package.json");if(ye(t)&&qe(t)!==void 0)return t},ei=a=>{if(!a)throw new V("Could not find a package manager");if(a.endsWith("package.json")){const e=qe(a);if(e){const t=["npm","yarn","pnpm","bun"].find(i=>e.startsWith(i));if(t)return{packageManager:t,path:$(a)}}}if(a.endsWith("yarn.lock"))return{packageManager:"yarn",path:$(a)};if(a.endsWith("package-lock.json")||a.endsWith("npm-shrinkwrap.json"))return{packageManager:"npm",path:$(a)};if(a.endsWith("pnpm-lock.yaml"))return{packageManager:"pnpm",path:$(a)};if(a.endsWith("bun.lock")||a.endsWith("bun.lockb"))return{packageManager:"bun",path:$(a)};throw new V("Could not find a package manager")},ti=a=>{const e=J(Qt,{...a&&{cwd:a}});return ei(e)},Br=a=>{if(!be.has(a))throw new Error(`Unsupported package manager "${a}". Expected one of: ${[...be].join(", ")}.`);return Jt(a,["--version"]).toString("utf8").trim()};let ii;const ri=a=>(ii??=z(import.meta.url))(a),k=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ve=a=>{if(typeof k<"u"&&k.versions&&k.versions.node){const[e,t]=k.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return k.getBuiltinModule(a)}return ri(a)};Ve("node:fs");Ve("node:fs/promises");const si={sha256:"sha256",sha384:"sha384",sha512:"sha512"},ni=1024,oi=/^[A-Z0-9+/]+={0,2}$/i,Ce="node_modules/",_=/^['"]/,H=/['"]$/,ai=/^[a-z][a-zA-Z0-9]*:\s*$/m,li=/resolution:\s*\{[^}]*integrity:\s*([^,}\s]+)/,ci=/^["']?((?:@[^/@"']+\/)?[^@"'\n]+)@[^\n]+\n((?:[\t ][^\n]*(?:\n|$))+)/gm,hi=/^\s+version:?\s+"?([^"\n]+)"?/m,ui=/^\s+integrity[\s:]+"?([^"\s]+)"?/m,X=a=>{if(a.length>ni)return;const e=a.indexOf("-");if(e<=0)return;const t=si[a.slice(0,e).toLowerCase()];if(!t)return;const i=a.slice(e+1);if(oi.test(i))try{const s=Buffer.from(i,"base64");return s.length===0?void 0:{algorithm:t,hex:s.toString("hex")}}catch{return}},Z=(a,e,t)=>{const i=`${t.name}@${t.version}`;e.has(i)||(e.add(i),a.push(t))},x=(a,e,t)=>{t&&Object.keys(t).length>0&&(a[e]={...t})},B=a=>{if(!a)return;const e={};for(const[t,i]of Object.entries(a))e[t]=[i];return Object.keys(e).length>0?e:void 0},pi=a=>{const e=[],t=new Set;let i;try{i=JSON.parse(a)}catch{return e}if(!i.packages)return e;for(const[s,r]of Object.entries(i.packages)){if(!s||!r.version)continue;const o=s.lastIndexOf(Ce);if(o===-1)continue;const n=s.slice(o+Ce.length);if(n.length===0)continue;const l=n.split("/"),u=n.startsWith("@")?2:1;if(l.length!==u||l.some(v=>v.length===0))continue;const f=r.name??n;if(f.startsWith("."))continue;const g={name:f,version:r.version};if(r.integrity){const v=X(r.integrity);v&&(g.integrity=v)}x(g,"dependencies",B(r.dependencies)),x(g,"peerDependencies",B(r.peerDependencies)),x(g,"optionalDependencies",B(r.optionalDependencies)),Z(e,t,g)}return e},Ke=a=>{let e=a.trim();e.startsWith("/")&&(e=e.slice(1)),e=e.replace(_,"").replace(H,"");const t=e.indexOf("(");t>0&&(e=e.slice(0,t));const i=e.lastIndexOf("@");if(i<=0)return;const s=e.slice(0,i),r=e.slice(i+1);if(!(!s||!r||r.startsWith("link:")||r.startsWith("workspace:")||r.startsWith("file:")))return{name:s,version:r}},Je=(a,e)=>{const t=new RegExp(String.raw`^${e}:\s*$`,"m").exec(a);if(!t)return;const i=t.index+t[0].length,s=ai.exec(a.slice(i));return a.slice(i,s?i+s.index:a.length)},fi=a=>{const e=new Map,t=Je(a,"snapshots");if(!t)return e;const i=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let s;for(;(s=i.exec(t)??void 0)!==void 0;){const r=Ke(s[1]);if(!r)continue;const o=`${r.name}@${r.version}`,n=s[2],l=e.get(o)??{};for(const u of["dependencies","peerDependencies","optionalDependencies"]){const f=Y(n,u);if(!f)continue;const g=l[u]??{};for(const[v,y]of Object.entries(f)){const b=g[v]??[];for(const m of y)b.includes(m)||b.push(m);g[v]=b}l[u]=g}e.set(o,l)}return e},di=a=>{const e=[],t=new Set,i=Je(a,"packages");if(!i)return e;const s=fi(a),r=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let o;for(;(o=r.exec(i)??void 0)!==void 0;){const n=Ke(o[1]);if(!n)continue;const l=o[2],u=li.exec(l),f={name:n.name,version:n.version};if(u?.[1]){const v=X(u[1]);v&&(f.integrity=v)}const g=s.get(`${n.name}@${n.version}`);x(f,"dependencies",g?.dependencies??Y(l,"dependencies")),x(f,"peerDependencies",g?.peerDependencies??Y(l,"peerDependencies")),x(f,"optionalDependencies",g?.optionalDependencies??Y(l,"optionalDependencies")),Z(e,t,f)}return e},Y=(a,e)=>{const t=new RegExp(String.raw`^ {4}${e}:\s*\n((?: {6,}[^\n]*\n?)+)`,"m").exec(a);if(!t?.[1])return;const i={},s=/^ {6}([^\s:]+):\s*([^\n]+)/gm;let r;for(;(r=s.exec(t[1])??void 0)!==void 0;){const o=r[1].replace(_,"").replace(H,"");let n=r[2].trim();n=n.replace(_,"").replace(H,"");const l=n.indexOf("(");if(l>0&&(n=n.slice(0,l).trim()),!o||!n)continue;const u=i[o]??[];u.includes(n)||u.push(n),i[o]=u}return Object.keys(i).length>0?i:void 0},mi=a=>{const e=[],t=new Set,i=ci;i.lastIndex=0;let s;for(;(s=i.exec(a)??void 0)!==void 0;){const r=s[1].replace(_,"").replace(H,"");if(!r)continue;const o=s[2],n=hi.exec(o);if(!n?.[1])continue;const l={name:r,version:n[1].trim()},u=ui.exec(o);if(u?.[1]){const f=X(u[1]);f&&(l.integrity=f)}x(l,"dependencies",ee(o,"dependencies")),x(l,"peerDependencies",ee(o,"peerDependencies")),x(l,"optionalDependencies",ee(o,"optionalDependencies")),Z(e,t,l)}return e},ee=(a,e)=>{const t=new RegExp(String.raw`^ {2}${e}:\s*\n((?: {4,}[^\n]*\n?)+)`,"m").exec(a);if(!t?.[1])return;const i={},s=/^ {4}(['"]?[^\s:'"]+['"]?)\s*(?::\s*)?['"]([^'"\n]+)['"]/gm;let r;for(;(r=s.exec(t[1])??void 0)!==void 0;){const o=r[1].replace(_,"").replace(H,""),n=r[2];if(o&&n){const l=i[o]??[];l.includes(n)||l.push(n),i[o]=l}}return Object.keys(i).length>0?i:void 0},gi=/,(?=\s*[}\]])/g,Li=a=>{const e=[],t=new Set;let i;try{i=JSON.parse(a.replaceAll(gi,""))}catch{return e}if(!i.packages)return e;for(const s of Object.values(i.packages)){const r=s[0];if(typeof r!="string")continue;const o=r.indexOf("@",1);if(o<=0)continue;const n=r.slice(0,o),l=r.slice(o+1);if(!n||!l||l.startsWith("workspace:")||l.startsWith("link:")||l.startsWith("file:"))continue;const u={name:n,version:l},f=s[3];if(typeof f=="string"&&f.length>0){const v=X(f);v&&(u.integrity=v)}const g=s[2];if(g&&typeof g=="object"&&!Array.isArray(g)){const v=g;x(u,"dependencies",B(v.dependencies)),x(u,"peerDependencies",B(v.peerDependencies)),x(u,"optionalDependencies",B(v.optionalDependencies))}Z(e,t,u)}return e},Rr=(a,e)=>{switch(e){case"bun":return Li(a);case"npm":return pi(a);case"pnpm":return di(a);case"yarn":return mi(a);default:return[]}};let Si;const vi=a=>(Si??=z(import.meta.url))(a),U=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yi=a=>{if(typeof U<"u"&&U.versions&&U.versions.node){const[e,t]=U.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return U.getBuiltinModule(a)}return vi(a)},{existsSync:Pe,readFileSync:bi}=yi("node:fs"),Ci=a=>{let e;try{e=He(a)}catch{return!1}if(!e||typeof e!="object"||Array.isArray(e))return!1;const{workspaces:t}=e;return typeof t=="object"&&t!==null},Ir=a=>{const e=J(["lerna.json","turbo.json"],{type:"file",...a&&{cwd:a}});if(e?.endsWith("lerna.json")){const i=ze(e);if(i&&typeof i=="object"&&!Array.isArray(i)){const s=i;if(s.useWorkspaces||s.packages)return{path:$(e),strategy:"lerna"}}}const t=e?.endsWith("turbo.json");try{const{packageManager:i,path:s}=ti(a);if(["npm","yarn"].includes(i)){const r=T(s,"package.json");if(Pe(r)){const o=bi(T(s,"package.json"),"utf8");if(Ci(o))return{path:s,strategy:t?"turbo":i}}}else if(i==="pnpm"){const r=T(s,"pnpm-workspace.yaml");if(Pe(r))return{path:s,strategy:t?"turbo":"pnpm"}}}catch(i){if(!(i instanceof V))throw i}throw new Error(`No monorepo root could be found upwards from the directory ${String(a??process.cwd())} using lerna, yarn, pnpm, or npm as indicators.`)};let Pi;const Di=a=>(Pi??=z(import.meta.url))(a),M=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wi=a=>{if(typeof M<"u"&&M.versions&&M.versions.node){const[e,t]=M.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return M.getBuiltinModule(a)}return Di(a)};wi("node:fs");var te,De;function Xe(){return De||(De=1,te=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","ALGLIB-Documentation","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Advanced-Cryptics-Dictionary","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-Tso","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Mark-Modifications","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]),te}var ie,we;function xi(){return we||(we=1,ie=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]),ie}var re,xe;function Ai(){return xe||(xe=1,re=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]),re}var se,Ae;function Ei(){if(Ae)return se;Ae=1;var a=[].concat(Xe()).concat(xi()),e=Ai();return se=function(t){var i=0;function s(){return i<t.length}function r(L){if(L instanceof RegExp){var h=t.slice(i),S=h.match(L);if(S)return i+=S[0].length,S[0]}else if(t.indexOf(L,i)===i)return i+=L.length,L}function o(){r(/[ ]*/)}function n(){for(var L,h=["WITH","AND","OR","(",")",":","+"],S=0;S<h.length&&(L=r(h[S]),!L);S++);if(L==="+"&&i>1&&t[i-2]===" ")throw new Error("Space before `+`");return L&&{type:"OPERATOR",string:L}}function l(){return r(/[A-Za-z0-9-.]+/)}function u(){var L=l();if(!L)throw new Error("Expected idstring at offset "+i);return L}function f(){if(r("DocumentRef-")){var L=u();return{type:"DOCUMENTREF",string:L}}}function g(){if(r("LicenseRef-")){var L=u();return{type:"LICENSEREF",string:L}}}function v(){var L=i,h=l();if(a.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(e.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};i=L}function y(){return n()||f()||g()||v()}for(var b=[];s()&&(o(),!!s());){var m=y();if(!m)throw new Error("Unexpected `"+t[i]+"` at offset "+i);b.push(m)}return b},se}var ne,Ee;function $i(){return Ee||(Ee=1,ne=function(a){var e=0;function t(){return e<a.length}function i(){return t()?a[e]:null}function s(){if(!t())throw new Error;e++}function r(m){var L=i();if(L&&L.type==="OPERATOR"&&m===L.string)return s(),L.string}function o(){if(r("WITH")){var m=i();if(m&&m.type==="EXCEPTION")return s(),m.string;throw new Error("Expected exception after `WITH`")}}function n(){var m=e,L="",h=i();if(h.type==="DOCUMENTREF"&&(s(),L+="DocumentRef-"+h.string+":",!r(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(h=i(),h.type==="LICENSEREF")return s(),L+="LicenseRef-"+h.string,{license:L};e=m}function l(){var m=i();if(m&&m.type==="LICENSE"){s();var L={license:m.string};r("+")&&(L.plus=!0);var h=o();return h&&(L.exception=h),L}}function u(){var m=r("(");if(m){var L=y();if(!r(")"))throw new Error("Expected `)`");return L}}function f(){return u()||n()||l()}function g(m,L){return function h(){var S=L();if(S){if(!r(m))return S;var C=h();if(!C)throw new Error("Expected expression");return{left:S,conjunction:m.toLowerCase(),right:C}}}}var v=g("AND",f),y=g("OR",v),b=y();if(!b||t())throw new Error("Syntax error");return b}),ne}var oe,$e;function Ze(){if($e)return oe;$e=1;var a=Ei(),e=$i();return oe=function(t){return e(a(t))},oe}var ae,Oe;function Oi(){if(Oe)return ae;Oe=1;var a=Ze(),e=Xe();function t(h){try{return a(h),!0}catch{return!1}}function i(h,S){var C=S[0].length-h[0].length;return C!==0?C:h[0].toUpperCase().localeCompare(S[0].toUpperCase())}var s=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(i),r=0,o=1,n=[function(h){return h.toUpperCase()},function(h){return h.trim()},function(h){return h.replace(/\./g,"")},function(h){return h.replace(/\s+/g,"")},function(h){return h.replace(/\s+/g,"-")},function(h){return h.replace("v","-")},function(h){return h.replace(/,?\s*(\d)/,"-$1")},function(h){return h.replace(/,?\s*(\d)/,"-$1.0")},function(h){return h.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(h){return h.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(h){return h[0].toUpperCase()+h.slice(1)},function(h){return h.replace("/","-")},function(h){return h.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(h){return h.indexOf("3.0")!==-1?h+"-or-later":h+"-only"},function(h){return h+"only"},function(h){return h.replace(/(\d)$/,"-$1.0")},function(h){return h.replace(/(-| )?(\d)$/,"-$2-Clause")},function(h){return h.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(h){return h.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(h){return h.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(h){return h.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(h){return h.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(h){return h.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(h){return"CC-"+h},function(h){return"CC-"+h+"-4.0"},function(h){return h.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(h){return"CC-"+h.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],l=e.map(function(h){var S=/^(.*)-\d+\.\d+$/.exec(h);return S?[S[0],S[1]]:[h,null]}).reduce(function(h,S){var C=S[1];return h[C]=h[C]||[],h[C].push(S[0]),h},{}),u=Object.keys(l).map(function(h){return[h,l[h]]}).filter(function(h){return h[1].length===1&&h[0]!==null&&h[0]!=="APL"}).map(function(h){return[h[0],h[1][0]]});l=void 0;var f=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(u).sort(i),g=0,v=1,y=function(h){for(var S=0;S<n.length;S++){var C=n[S](h).trim();if(C!==h&&t(C))return C}return null},b=function(h){for(var S=h.toUpperCase(),C=0;C<f.length;C++){var c=f[C];if(S.indexOf(c[g])>-1)return c[v]}return null},m=function(h,S){for(var C=0;C<s.length;C++){var c=s[C],p=c[r];if(h.indexOf(p)>-1){var d=h.replace(p,c[o]),P=S(d);if(P!==null)return P}}return null};ae=function(h,S){S=S||{};var C=S.upgrade===void 0?!0:!!S.upgrade;function c(D){return C?L(D):D}var p=typeof h=="string"&&h.trim().length!==0;if(!p)throw Error("Invalid argument. Expected non-empty string.");if(h=h.trim(),t(h))return c(h);var d=h.replace(/\+$/,"").trim();if(t(d))return c(d);var P=y(h);return P!==null||(P=m(h,function(D){return t(D)?D:y(D)}),P!==null)||(P=b(h),P!==null)||(P=m(h,b),P!==null)?c(P):null};function L(h){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(h)!==-1?h+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(h)!==-1?h.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(h)!==-1?h+"-or-later":h}return ae}var le,Ne;function Ni(){if(Ne)return le;Ne=1;var a=Ze(),e=Oi(),t='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',i=/^SEE LICEN[CS]E IN (.+)$/;function s(o,n){return n.slice(0,o.length)===o}function r(o){if(o.hasOwnProperty("license")){var n=o.license;return s("LicenseRef",n)||s("DocumentRef",n)}else return r(o.left)||r(o.right)}return le=function(o){var n;try{n=a(o)}catch{var l;if(o==="UNLICENSED"||o==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(l=i.exec(o))return{validForOldPackages:!0,validForNewPackages:!0,inFile:l[1]};var u={validForOldPackages:!1,validForNewPackages:!1,warnings:[t]};if(o.trim().length!==0){var f=e(o);f&&u.warnings.push('license is similar to the valid expression "'+f+'"')}return u}return r(n)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[t]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},le}var Qe={hasSubscribers:!1},w=Qe,G=Qe;import("node:diagnostics_channel").then(a=>{w=a.channel("lru-cache:metrics"),G=a.tracingChannel("lru-cache")}).catch(()=>{});var Fi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ce=()=>w.hasSubscribers||G.hasSubscribers,et=new Set,Fe=process||{},Gi=(a,e,t,i)=>{typeof Fe.emitWarning=="function"?Fe.emitWarning(a,e,t,i):console.error(`[${t}] ${e}: ${a}`)},Ti=a=>!et.has(a),F=a=>!!a&&a===Math.floor(a)&&a>0&&isFinite(a),tt=a=>F(a)?a<=Math.pow(2,8)?Uint8Array:a<=Math.pow(2,16)?Uint16Array:a<=Math.pow(2,32)?Uint32Array:a<=Number.MAX_SAFE_INTEGER?q:null:null,q=class extends Array{constructor(e){super(e),this.fill(0)}},Bi=class W{heap;length;static#s=!1;static create(e){let t=tt(e);if(!t)return[];W.#s=!0;let i=new W(e,t);return W.#s=!1,i}constructor(e,t){if(!W.#s)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ri=class it{#s;#c;#t;#$;#L;#B;#R;#S;get perf(){return this.#S}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#o;#v;#n;#r;#e;#u;#f;#h;#a;#y;#l;#b;#C;#d;#m;#P;#I;#p;#O;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#d,autopurgeTimers:e.#m,sizes:e.#b,keyMap:e.#n,keyList:e.#r,valList:e.#e,next:e.#u,prev:e.#f,get head(){return e.#h},get tail(){return e.#a},free:e.#y,isBackgroundFetch:t=>e.#i(t),backgroundFetch:(t,i,s,r)=>e.#M(t,i,s,r),moveToTail:t=>e.#T(t),indexes:t=>e.#D(t),rindexes:t=>e.#w(t),isStale:t=>e.#g(t)}}get max(){return this.#s}get maxSize(){return this.#c}get calculatedSize(){return this.#v}get size(){return this.#o}get fetchMethod(){return this.#B}get memoMethod(){return this.#R}get dispose(){return this.#t}get onInsert(){return this.#$}get disposeAfter(){return this.#L}constructor(e){let{max:t=0,ttl:i,ttlResolution:s=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:n,allowStale:l,dispose:u,onInsert:f,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:y,maxSize:b=0,maxEntrySize:m=0,sizeCalculation:L,fetchMethod:h,memoMethod:S,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:c,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:d,ignoreFetchAbort:P,backgroundFetchSize:D=1,perf:A}=e;if(this.backgroundFetchSize=D,A!==void 0&&typeof A?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#S=A??Fi,t!==0&&!F(t))throw new TypeError("max option must be a nonnegative integer");let E=t?tt(t):Array;if(!E)throw new Error("invalid max value: "+t);if(this.#s=t,this.#c=b,this.maxEntrySize=m||this.#c,this.sizeCalculation=L,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#R=S,h!==void 0&&typeof h!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#B=h,this.#I=!!h,this.#n=new Map,this.#r=Array.from({length:t}).fill(void 0),this.#e=Array.from({length:t}).fill(void 0),this.#u=new E(t),this.#f=new E(t),this.#h=0,this.#a=0,this.#y=Bi.create(t),this.#o=0,this.#v=0,typeof u=="function"&&(this.#t=u),typeof f=="function"&&(this.#$=f),typeof g=="function"?(this.#L=g,this.#l=[]):(this.#L=void 0,this.#l=void 0),this.#P=!!this.#t,this.#O=!!this.#$,this.#p=!!this.#L,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!C,this.allowStaleOnFetchRejection=!!p,this.allowStaleOnFetchAbort=!!d,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#c!==0&&!F(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!F(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#V()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!c,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!n,this.ttlResolution=F(s)||s===0?s:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!F(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#s===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#s&&!this.#c){let Q="LRU_CACHE_UNBOUNDED";Ti(Q)&&(et.add(Q),Gi("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Q,it))}}getRemainingTTL(e){return this.#n.has(e)?1/0:0}#j(){let e=new q(this.#s),t=new q(this.#s);this.#d=e,this.#C=t;let i=this.ttlAutopurge?Array.from({length:this.#s}):void 0;this.#m=i,this.#W=(n,l,u=this.#S.now())=>{t[n]=l!==0?u:0,e[n]=l,s(n,l)},this.#N=n=>{t[n]=e[n]!==0?this.#S.now():0,s(n,e[n])};let s=this.ttlAutopurge?(n,l)=>{if(i?.[n]&&(clearTimeout(i[n]),i[n]=void 0),l&&l!==0&&i){let u=setTimeout(()=>{this.#g(n)&&this.#x(this.#r[n],"expire")},l+1);u.unref&&u.unref(),i[n]=u}}:()=>{};this.#A=(n,l)=>{if(e[l]){let u=e[l],f=t[l];if(!u||!f)return;n.ttl=u,n.start=f,n.now=r||o();let g=n.now-f;n.remainingTTL=u-g}};let r=0,o=()=>{let n=this.#S.now();if(this.ttlResolution>0){r=n;let l=setTimeout(()=>r=0,this.ttlResolution);l.unref&&l.unref()}return n};this.getRemainingTTL=n=>{let l=this.#n.get(n);if(l===void 0)return 0;let u=e[l],f=t[l];if(!u||!f)return 1/0;let g=(r||o())-f;return u-g},this.#g=n=>{let l=t[n],u=e[n];return!!u&&!!l&&(r||o())-l>u}}#N=()=>{};#A=()=>{};#W=()=>{};#g=()=>!1;#V(){let e=new q(this.#s);this.#v=0,this.#b=e,this.#F=t=>{this.#v-=e[t],e[t]=0},this.#_=(t,i,s,r)=>{if(!F(s)){if(this.#i(i))return this.backgroundFetchSize;if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(s=r(i,t),!F(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return s},this.#k=(t,i,s)=>{if(e[t]=i,this.#c){let r=this.#c-e[t];for(;this.#v>r;)this.#U(!0)}this.#v+=e[t],s&&(s.entrySize=i,s.totalCalculatedSize=this.#v)}}#F=e=>{};#k=(e,t,i)=>{};#_=(e,t,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#D({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#a;this.#H(t)&&((e||!this.#g(t))&&(yield t),t!==this.#h);)t=this.#f[t]}*#w({allowStale:e=this.allowStale}={}){if(this.#o)for(let t=this.#h;this.#H(t)&&((e||!this.#g(t))&&(yield t),t!==this.#a);)t=this.#u[t]}#H(e){return e!==void 0&&this.#n.get(this.#r[e])===e}*entries(){for(let e of this.#D())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*rentries(){for(let e of this.#w())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*keys(){for(let e of this.#D()){let t=this.#r[e];t!==void 0&&!this.#i(this.#e[e])&&(yield t)}}*rkeys(){for(let e of this.#w()){let t=this.#r[e];t!==void 0&&!this.#i(this.#e[e])&&(yield t)}}*values(){for(let e of this.#D())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#w())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#D()){let s=this.#e[i],r=this.#i(s)?s.__staleWhileFetching:s;if(r!==void 0&&e(r,this.#r[i],this))return this.#G(this.#r[i],t)}}forEach(e,t=this){for(let i of this.#D()){let s=this.#e[i],r=this.#i(s)?s.__staleWhileFetching:s;r!==void 0&&e.call(t,r,this.#r[i],this)}}rforEach(e,t=this){for(let i of this.#w()){let s=this.#e[i],r=this.#i(s)?s.__staleWhileFetching:s;r!==void 0&&e.call(t,r,this.#r[i],this)}}purgeStale(){let e=!1;for(let t of this.#w({allowStale:!0}))this.#g(t)&&(this.#x(this.#r[t],"expire"),e=!0);return e}info(e){let t=this.#n.get(e);if(t===void 0)return;let i=this.#e[t],s=this.#i(i)?i.__staleWhileFetching:i;if(s===void 0)return;let r={value:s};if(this.#d&&this.#C){let o=this.#d[t],n=this.#C[t];if(o&&n){let l=o-(this.#S.now()-n);r.ttl=l,r.start=Date.now()}}return this.#b&&(r.size=this.#b[t]),r}dump(){let e=[];for(let t of this.#D({allowStale:!0})){let i=this.#r[t],s=this.#e[t],r=this.#i(s)?s.__staleWhileFetching:s;if(r===void 0||i===void 0)continue;let o={value:r};if(this.#d&&this.#C){o.ttl=this.#d[t];let n=this.#S.now()-this.#C[t];o.start=Math.floor(Date.now()-n)}this.#b&&(o.size=this.#b[t]),e.unshift([i,o])}return e}load(e){this.clear();for(let[t,i]of e){if(i.start){let s=Date.now()-i.start;i.start=this.#S.now()-s}this.#E(t,i.value,i)}}set(e,t,i={}){let{status:s=w.hasSubscribers?{}:void 0}=i;i.status=s,s&&(s.op="set",s.key=e,t!==void 0&&(s.value=t),s.cache=this);let r=this.#E(e,t,i);return s&&w.hasSubscribers&&w.publish(s),r}#E(e,t,i,s){let{ttl:r=this.ttl,start:o,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:u}=i,f=this.#i(t);if(t===void 0)return u&&(u.set="deleted"),this.delete(e),this;let{noUpdateTTL:g=this.noUpdateTTL}=i;u&&!f&&(u.value=t);let v=this.#_(e,t,i.size||0,l,u);if(this.maxEntrySize&&v>this.maxEntrySize)return this.#x(e,"set"),u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this;let y=this.#o===0?void 0:this.#n.get(e);if(y===void 0)y=this.#o===0?this.#a:this.#y.length!==0?this.#y.pop():this.#o===this.#s?this.#U(!1):this.#o,this.#r[y]=e,this.#e[y]=t,this.#n.set(e,y),this.#u[this.#a]=y,this.#f[y]=this.#a,this.#a=y,this.#o++,this.#k(y,v,u),u&&(u.set="add"),g=!1,this.#O&&!f&&this.#$?.(t,e,"add");else{this.#T(y);let b=this.#e[y];if(t!==b){if(!n)if(this.#i(b)){b!==s&&b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=b;m!==void 0&&m!==t&&(this.#P&&this.#t?.(m,e,"set"),this.#p&&this.#l?.push([m,e,"set"]))}else this.#P&&this.#t?.(b,e,"set"),this.#p&&this.#l?.push([b,e,"set"]);if(this.#F(y),this.#k(y,v,u),this.#e[y]=t,!f){let m=b&&this.#i(b)?b.__staleWhileFetching:b,L=m===void 0?"add":t!==m?"replace":"update";u&&(u.set=L,m!==void 0&&(u.oldValue=m)),this.#O&&this.onInsert?.(t,e,L)}}else f||(u&&(u.set="update"),this.#O&&this.onInsert?.(t,e,"update"))}if(r!==0&&!this.#d&&this.#j(),this.#d&&(g||this.#W(y,r,o),u&&this.#A(u,y)),!n&&this.#p&&this.#l){let b=this.#l,m;for(;m=b?.shift();)this.#L?.(...m)}return this}pop(){try{for(;this.#o;){let e=this.#e[this.#h];if(this.#U(!0),this.#i(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#p&&this.#l){let e=this.#l,t;for(;t=e?.shift();)this.#L?.(...t)}}}#U(e){let t=this.#h,i=this.#r[t],s=this.#e[t],r=this.#i(s);r&&s.__abortController.abort(new Error("evicted"));let o=r?s.__staleWhileFetching:s;return(this.#P||this.#p)&&o!==void 0&&(this.#P&&this.#t?.(o,i,"evict"),this.#p&&this.#l?.push([o,i,"evict"])),this.#F(t),this.#m?.[t]&&(clearTimeout(this.#m[t]),this.#m[t]=void 0),e&&(this.#r[t]=void 0,this.#e[t]=void 0,this.#y.push(t)),this.#o===1?(this.#h=this.#a=0,this.#y.length=0):this.#h=this.#u[t],this.#n.delete(i),this.#o--,t}has(e,t={}){let{status:i=w.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="has",i.key=e,i.cache=this);let s=this.#K(e,t);return w.hasSubscribers&&w.publish(i),s}#K(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=t,r=this.#n.get(e);if(r!==void 0){let o=this.#e[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(r))s&&(s.has="stale",this.#A(s,r));else return i&&this.#N(r),s&&(s.has="hit",this.#A(s,r)),!0}else s&&(s.has="miss");return!1}peek(e,t={}){let{status:i=ce()?{}:void 0}=t;i&&(i.op="peek",i.key=e,i.cache=this),t.status=i;let s=this.#J(e,t);return w.hasSubscribers&&w.publish(i),s}#J(e,t){let{status:i,allowStale:s=this.allowStale}=t,r=this.#n.get(e);if(r===void 0||!s&&this.#g(r)){i&&(i.peek=r===void 0?"miss":"stale");return}let o=this.#e[r],n=this.#i(o)?o.__staleWhileFetching:o;return i&&(n!==void 0?(i.peek="hit",i.value=n):i.peek="miss"),n}#M(e,t,i,s){let r=t===void 0?void 0:this.#e[t];if(this.#i(r))return r;let o=new AbortController,{signal:n}=i;n?.addEventListener("abort",()=>o.abort(n.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:s},u=(m,L=!1)=>{let{aborted:h}=o.signal,S=i.ignoreFetchAbort&&m!==void 0,C=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&m!==void 0);if(i.status&&(h&&!L?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,S&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),h&&!S&&!L)return g(o.signal.reason,C);let c=y,p=this.#e[t];return(p===y||p===void 0&&S&&L)&&(m===void 0?c.__staleWhileFetching!==void 0?this.#e[t]=c.__staleWhileFetching:this.#x(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.#E(e,m,l.options,c))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),g(m,!1)),g=(m,L)=>{let{aborted:h}=o.signal,S=h&&i.allowStaleOnFetchAbort,C=S||i.allowStaleOnFetchRejection,c=C||i.noDeleteOnFetchRejection,p=y;if(this.#e[t]===y&&(!c||!L&&p.__staleWhileFetching===void 0?this.#x(e,"fetch"):S||(this.#e[t]=p.__staleWhileFetching)),C)return i.status&&p.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw m},v=(m,L)=>{let h=this.#B?.(e,r,l);o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=S=>u(S,!0)))}),h&&h instanceof Promise?h.then(S=>m(S===void 0?void 0:S),L):h!==void 0&&m(h)};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(v).then(u,f),b=Object.assign(y,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return t===void 0?(this.#E(e,b,{...l.options,status:void 0}),t=this.#n.get(e)):this.#e[t]=b,b}#i(e){if(!this.#I)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController}fetch(e,t={}){let i=G.hasSubscribers,{status:s=ce()?{}:void 0}=t;t.status=s,s&&t.context&&(s.context=t.context);let r=this.#z(e,t);return s&&i&&(s.trace=!0,G.tracePromise(()=>r,s).catch(()=>{})),r}async#z(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:v=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:m,forceRefresh:L=!1,status:h,signal:S}=t;if(h&&(h.op="fetch",h.key=e,L&&(h.forceRefresh=!0),h.cache=this),!this.#I)return h&&(h.fetch="get"),this.#G(e,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:h});let C={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:n,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:b,ignoreFetchAbort:y,status:h,signal:S},c=this.#n.get(e);if(c===void 0){h&&(h.fetch="miss");let p=this.#M(e,c,C,m);return p.__returned=p}else{let p=this.#e[c];if(this.#i(p)){let A=i&&p.__staleWhileFetching!==void 0;return h&&(h.fetch="inflight",A&&(h.returnedStale=!0)),A?p.__staleWhileFetching:p.__returned=p}let d=this.#g(c);if(!L&&!d)return h&&(h.fetch="hit"),this.#T(c),s&&this.#N(c),h&&this.#A(h,c),p;let P=this.#M(e,c,C,m),D=P.__staleWhileFetching!==void 0&&i;return h&&(h.fetch=d?"stale":"refresh",D&&d&&(h.returnedStale=!0)),D?P.__staleWhileFetching:P.__returned=P}}forceFetch(e,t={}){let i=G.hasSubscribers,{status:s=ce()?{}:void 0}=t;t.status=s,s&&t.context&&(s.context=t.context);let r=this.#X(e,t);return s&&i&&(s.trace=!0,G.tracePromise(()=>r,s).catch(()=>{})),r}async#X(e,t={}){let i=await this.#z(e,t);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,t={}){let{status:i=w.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="memo",i.key=e,t.context&&(i.context=t.context),i.cache=this);let s=this.#Z(e,t);return i&&(i.value=s),w.hasSubscribers&&w.publish(i),s}#Z(e,t={}){let i=this.#R;if(!i)throw new Error("no memoMethod provided to constructor");let{context:s,status:r,forceRefresh:o,...n}=t;r&&o&&(r.forceRefresh=!0);let l=this.#G(e,n),u=o||l===void 0;if(r&&(r.memo=u?"miss":"hit",u||(r.value=l)),!u)return l;let f=i(e,l,{options:n,context:s});return r&&(r.value=f),this.#E(e,f,n),f}get(e,t={}){let{status:i=w.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="get",i.key=e,i.cache=this);let s=this.#G(e,t);return i&&(s!==void 0&&(i.value=s),w.hasSubscribers&&w.publish(i)),s}#G(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=t,n=this.#n.get(e);if(n===void 0){o&&(o.get="miss");return}let l=this.#e[n],u=this.#i(l);return o&&this.#A(o,n),this.#g(n)?u?(o&&(o.get="stale-fetching"),i&&l.__staleWhileFetching!==void 0?(o&&(o.returnedStale=!0),l.__staleWhileFetching):void 0):(r||this.#x(e,"expire"),o&&(o.get="stale"),i?(o&&(o.returnedStale=!0),l):void 0):(o&&(o.get=u?"fetching":"hit"),this.#T(n),s&&this.#N(n),u?l.__staleWhileFetching:l)}#Y(e,t){this.#f[t]=e,this.#u[e]=t}#T(e){e!==this.#a&&(e===this.#h?this.#h=this.#u[e]:this.#Y(this.#f[e],this.#u[e]),this.#Y(this.#a,e),this.#a=e)}delete(e){return this.#x(e,"delete")}#x(e,t){w.hasSubscribers&&w.publish({op:"delete",delete:t,key:e,cache:this});let i=!1;if(this.#o!==0){let s=this.#n.get(e);if(s!==void 0)if(this.#m?.[s]&&(clearTimeout(this.#m?.[s]),this.#m[s]=void 0),i=!0,this.#o===1)this.#q(t);else{this.#F(s);let r=this.#e[s];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#P||this.#p)&&(this.#P&&this.#t?.(r,e,t),this.#p&&this.#l?.push([r,e,t])),this.#n.delete(e),this.#r[s]=void 0,this.#e[s]=void 0,s===this.#a)this.#a=this.#f[s];else if(s===this.#h)this.#h=this.#u[s];else{let o=this.#f[s];this.#u[o]=this.#u[s];let n=this.#u[s];this.#f[n]=this.#f[s]}this.#o--,this.#y.push(s)}}if(this.#p&&this.#l?.length){let s=this.#l,r;for(;r=s?.shift();)this.#L?.(...r)}return i}clear(){return this.#q("delete")}#q(e){for(let t of this.#w({allowStale:!0})){let i=this.#e[t];if(this.#i(i))i.__abortController.abort(new Error("deleted"));else{let s=this.#r[t];this.#P&&this.#t?.(i,s,e),this.#p&&this.#l?.push([i,s,e])}}if(this.#n.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#d&&this.#C){this.#d.fill(0),this.#C.fill(0);for(let t of this.#m??[])t!==void 0&&clearTimeout(t);this.#m?.fill(void 0)}if(this.#b&&this.#b.fill(0),this.#h=0,this.#a=0,this.#y.length=0,this.#v=0,this.#o=0,this.#p&&this.#l){let t=this.#l,i;for(;i=t?.shift();)this.#L?.(...i)}}};const Ii=Object.defineProperty({__proto__:null,LRUCache:Ri},Symbol.toStringTag,{value:"Module"}),ki=Se(Ii);var he,Ge;function Ui(){if(Ge)return he;Ge=1;const a=(...r)=>r.every(o=>o)?r.join(""):"",e=r=>r?encodeURIComponent(r):"",t=r=>r.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),i={sshtemplate:({domain:r,user:o,project:n,committish:l})=>`git@${r}:${o}/${n}.git${a("#",l)}`,sshurltemplate:({domain:r,user:o,project:n,committish:l})=>`git+ssh://git@${r}/${o}/${n}.git${a("#",l)}`,edittemplate:({domain:r,user:o,project:n,committish:l,editpath:u,path:f})=>`https://${r}/${o}/${n}${a("/",u,"/",e(l||"HEAD"),"/",f)}`,browsetemplate:({domain:r,user:o,project:n,committish:l,treepath:u})=>`https://${r}/${o}/${n}${a("/",u,"/",e(l))}`,browsetreetemplate:({domain:r,user:o,project:n,committish:l,treepath:u,path:f,fragment:g,hashformat:v})=>`https://${r}/${o}/${n}/${u}/${e(l||"HEAD")}/${f}${a("#",v(g||""))}`,browseblobtemplate:({domain:r,user:o,project:n,committish:l,blobpath:u,path:f,fragment:g,hashformat:v})=>`https://${r}/${o}/${n}/${u}/${e(l||"HEAD")}/${f}${a("#",v(g||""))}`,docstemplate:({domain:r,user:o,project:n,treepath:l,committish:u})=>`https://${r}/${o}/${n}${a("/",l,"/",e(u))}#readme`,httpstemplate:({auth:r,domain:o,user:n,project:l,committish:u})=>`git+https://${a(r,"@")}${o}/${n}/${l}.git${a("#",u)}`,filetemplate:({domain:r,user:o,project:n,committish:l,path:u})=>`https://${r}/${o}/${n}/raw/${e(l||"HEAD")}/${u}`,shortcuttemplate:({type:r,user:o,project:n,committish:l})=>`${r}:${o}/${n}${a("#",l)}`,pathtemplate:({user:r,project:o,committish:n})=>`${r}/${o}${a("#",n)}`,bugstemplate:({domain:r,user:o,project:n})=>`https://${r}/${o}/${n}/issues`,hashformat:t},s={};s.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:r,user:o,project:n,committish:l,path:u})=>`https://${a(r,"@")}raw.githubusercontent.com/${o}/${n}/${e(l||"HEAD")}/${u}`,gittemplate:({auth:r,domain:o,user:n,project:l,committish:u})=>`git://${a(r,"@")}${o}/${n}/${l}.git${a("#",u)}`,tarballtemplate:({domain:r,user:o,project:n,committish:l})=>`https://codeload.${r}/${o}/${n}/tar.gz/${e(l||"HEAD")}`,extract:r=>{let[,o,n,l,u]=r.pathname.split("/",5);if(!(l&&l!=="tree")&&(l||(u=r.hash.slice(1)),n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!o||!n)))return{user:o,project:n,committish:u}}},s.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:r,user:o,project:n,committish:l,treepath:u,path:f,editpath:g})=>`https://${r}/${o}/${n}${a("/",u,"/",e(l||"HEAD"),"/",f,g)}`,tarballtemplate:({domain:r,user:o,project:n,committish:l})=>`https://${r}/${o}/${n}/get/${e(l||"HEAD")}.tar.gz`,extract:r=>{let[,o,n,l]=r.pathname.split("/",4);if(!["get"].includes(l)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!o||!n)))return{user:o,project:n,committish:r.hash.slice(1)}}},s.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:r,user:o,project:n,committish:l})=>`https://${r}/api/v4/projects/${e(o+"/"+n)}/repository/archive.tar.gz?sha=${e(l||"HEAD")}`,extract:r=>{const o=r.pathname.slice(1);if(o.includes("/-/")||o.includes("/archive.tar.gz"))return;const n=o.split("/");let l=n.pop();l.endsWith(".git")&&(l=l.slice(0,-4));const u=n.join("/");if(!(!u||!l))return{user:u,project:l,committish:r.hash.slice(1)}}},s.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:r,project:o,committish:n})=>`git@${r}:${o}.git${a("#",n)}`,sshurltemplate:({domain:r,project:o,committish:n})=>`git+ssh://git@${r}/${o}.git${a("#",n)}`,edittemplate:({domain:r,user:o,project:n,committish:l,editpath:u})=>`https://${r}/${o}/${n}${a("/",e(l))}/${u}`,browsetemplate:({domain:r,project:o,committish:n})=>`https://${r}/${o}${a("/",e(n))}`,browsetreetemplate:({domain:r,project:o,committish:n,path:l,hashformat:u})=>`https://${r}/${o}${a("/",e(n))}${a("#",u(l))}`,browseblobtemplate:({domain:r,project:o,committish:n,path:l,hashformat:u})=>`https://${r}/${o}${a("/",e(n))}${a("#",u(l))}`,docstemplate:({domain:r,project:o,committish:n})=>`https://${r}/${o}${a("/",e(n))}`,httpstemplate:({domain:r,project:o,committish:n})=>`git+https://${r}/${o}.git${a("#",n)}`,filetemplate:({user:r,project:o,committish:n,path:l})=>`https://gist.githubusercontent.com/${r}/${o}/raw${a("/",e(n))}/${l}`,shortcuttemplate:({type:r,project:o,committish:n})=>`${r}:${o}${a("#",n)}`,pathtemplate:({project:r,committish:o})=>`${r}${a("#",o)}`,bugstemplate:({domain:r,project:o})=>`https://${r}/${o}`,gittemplate:({domain:r,project:o,committish:n})=>`git://${r}/${o}.git${a("#",n)}`,tarballtemplate:({project:r,committish:o})=>`https://codeload.github.com/gist/${r}/tar.gz/${e(o||"HEAD")}`,extract:r=>{let[,o,n,l]=r.pathname.split("/",4);if(l!=="raw"){if(!n){if(!o)return;n=o,o=null}return n.endsWith(".git")&&(n=n.slice(0,-4)),{user:o,project:n,committish:r.hash.slice(1)}}},hashformat:function(r){return r&&"file-"+t(r)}},s.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:r,user:o,project:n,committish:l,path:u})=>`https://${r}/${o}/${n}/blob/${e(l)||"HEAD"}/${u}`,httpstemplate:({domain:r,user:o,project:n,committish:l})=>`https://${r}/${o}/${n}${a("#",l)}`,tarballtemplate:({domain:r,user:o,project:n,committish:l})=>`https://${r}/${o}/${n}/archive/${e(l)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:r=>{let[,o,n,l]=r.pathname.split("/",4);if(!["archive"].includes(l)&&(n&&n.endsWith(".git")&&(n=n.slice(0,-4)),!(!o||!n)))return{user:o,project:n,committish:r.hash.slice(1)}}};for(const[r,o]of Object.entries(s))s[r]=Object.assign({},i,o);return he=s,he}var ue,Te;function rt(){if(Te)return ue;Te=1;const a=(s,r,o)=>{const n=s.indexOf(o);return s.lastIndexOf(r,n>-1?n:1/0)},e=s=>{try{return new URL(s)}catch{}},t=(s,r)=>{const o=s.indexOf(":"),n=s.slice(0,o+1);if(Object.prototype.hasOwnProperty.call(r,n)||s.substr(o,3)==="://")return s;const l=s.indexOf("@");return l>-1?l>o?`git+ssh://${s}`:s:`${s.slice(0,o+1)}//${s.slice(o+1)}`},i=s=>{const r=a(s,"@","#"),o=a(s,":","#");return o>r&&(s=s.slice(0,o)+"/"+s.slice(o+1)),a(s,":","#")===-1&&s.indexOf("//")===-1&&(s=`git+ssh://${s}`),s};return ue=(s,r)=>{const o=r?t(s,r):s;return e(o)||e(i(o))},ue}var pe,Be;function Mi(){if(Be)return pe;Be=1;const a=rt(),e=t=>{const i=t.indexOf("#"),s=t.indexOf("/"),r=t.indexOf("/",s+1),o=t.indexOf(":"),n=/\s/.exec(t),l=t.indexOf("@"),u=!n||i>-1&&n.index>i,f=l===-1||i>-1&&l>i,g=o===-1||i>-1&&o>i,v=r===-1||i>-1&&r>i,y=s>0,b=i>-1?t[i-1]!=="/":!t.endsWith("/"),m=!t.startsWith(".");return u&&y&&b&&m&&f&&g&&v};return pe=(t,i,{gitHosts:s,protocols:r})=>{if(!t)return;const o=e(t)?`github:${t}`:t,n=a(o,r);if(!n)return;const l=s.byShortcut[n.protocol],u=s.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],f=l||u;if(!f)return;const g=s[l||u];let v=null;r[n.protocol]?.auth&&(n.username||n.password)&&(v=`${n.username}${n.password?":"+n.password:""}`);let y=null,b=null,m=null,L=null;try{if(l){let h=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname;const S=h.indexOf("@");S>-1&&(h=h.slice(S+1));const C=h.lastIndexOf("/");C>-1?(b=decodeURIComponent(h.slice(0,C)),b||(b=null),m=decodeURIComponent(h.slice(C+1))):m=decodeURIComponent(h),m.endsWith(".git")&&(m=m.slice(0,-4)),n.hash&&(y=decodeURIComponent(n.hash.slice(1))),L="shortcut"}else{if(!g.protocols.includes(n.protocol))return;const h=g.extract(n);if(!h)return;b=h.user&&decodeURIComponent(h.user),m=decodeURIComponent(h.project),y=decodeURIComponent(h.committish),L=r[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[f,b,v,m,y,L,i]},pe}var fe,Re;function ji(){if(Re)return fe;Re=1;const{LRUCache:a}=ki,e=Ui(),t=Mi(),i=rt(),s=new a({max:1e3});function r(n){try{const{protocol:l,hostname:u,pathname:f}=new URL(n);if(!u)return null;const g=/(?:git\+)http:$/.test(l)?"http:":"https:",v=f.replace(/\.git$/,"");return`${g}//${u}${v}`}catch{return null}}class o{constructor(l,u,f,g,v,y,b={}){Object.assign(this,o.#s[l],{type:l,user:u,auth:f,project:g,committish:v,default:y,opts:b})}static#s={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(l,u){o.#s[l]=u,o.#s.byDomain[u.domain]=l,o.#s.byShortcut[`${l}:`]=l,o.#c[`${l}:`]={name:l}}static fromUrl(l,u){if(typeof l!="string")return;const f=l+JSON.stringify(u||{});if(!s.has(f)){const g=t(l,u,{gitHosts:o.#s,protocols:o.#c});s.set(f,g?new o(...g):void 0)}return s.get(f)}static fromManifest(l,u={}){if(!l||typeof l!="object")return;const f=l.repository,g=f&&(typeof f=="string"?f:typeof f=="object"&&typeof f.url=="string"?f.url:null);if(!g)throw new Error("no repository");const v=g&&o.fromUrl(g.replace(/^git\+/,""),u)||null;if(v)return v;const y=r(g);return o.fromUrl(y,u)||y}static parseUrl(l){return i(l)}#t(l,u){if(typeof l!="function")return null;const f={...this,...this.opts,...u};f.path||(f.path=""),f.path.startsWith("/")&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);const g=l(f);return f.noGitPlus&&g.startsWith("git+")?g.slice(4):g}hash(){return this.committish?`#${this.committish}`:""}ssh(l){return this.#t(this.sshtemplate,l)}sshurl(l){return this.#t(this.sshurltemplate,l)}browse(l,...u){return typeof l!="string"?this.#t(this.browsetemplate,l):typeof u[0]!="string"?this.#t(this.browsetreetemplate,{...u[0],path:l}):this.#t(this.browsetreetemplate,{...u[1],fragment:u[0],path:l})}browseFile(l,...u){return typeof u[0]!="string"?this.#t(this.browseblobtemplate,{...u[0],path:l}):this.#t(this.browseblobtemplate,{...u[1],fragment:u[0],path:l})}docs(l){return this.#t(this.docstemplate,l)}bugs(l){return this.#t(this.bugstemplate,l)}https(l){return this.#t(this.httpstemplate,l)}git(l){return this.#t(this.gittemplate,l)}shortcut(l){return this.#t(this.shortcuttemplate,l)}path(l){return this.#t(this.pathtemplate,l)}tarball(l){return this.#t(this.tarballtemplate,{...l,noCommittish:!1})}file(l,u){return this.#t(this.filetemplate,{...u,path:l})}edit(l,u){return this.#t(this.edittemplate,{...u,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]=="function"?this[this.default](l):this.sshurl(l)}}for(const[n,l]of Object.entries(e))o.addHost(n,l);return fe=o,fe}var de,Ie;function Wi(){if(Ie)return de;Ie=1,de=a;function a(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
2
- `);let t=0;for(;e[t]&&e[t].trim().match(/^(#|$)/);)t++;const i=e.length;let s=t+1;for(;s<i&&e[s].trim();)s++;return e.slice(t,s).join(" ").trim()}return de}var st={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},nt={web:"url",name:"url"},ot={server:"start",tests:"test"};const _i={topLevel:st,bugs:nt,script:ot},Hi=Object.defineProperty({__proto__:null,bugs:nt,default:_i,script:ot,topLevel:st},Symbol.toStringTag,{value:"Module"}),zi=Se(Hi);var me,ke;function Yi(){if(ke)return me;ke=1;var{URL:a}=je,e=Ht(),t=zt(),i=Ni(),s=ji(),{isBuiltin:r}=We,o=["dependencies","devDependencies","optionalDependencies"],n=Wi(),l=zi,u=c=>c.includes("@")&&c.indexOf("@")<c.lastIndexOf(".");me={warn:function(){},fixRepositoryField:function(c){if(c.repositories&&(this.warn("repositories"),c.repository=c.repositories[0]),!c.repository)return this.warn("missingRepository");typeof c.repository=="string"&&(c.repository={type:"git",url:c.repository});var p=c.repository.url||"";if(p){var d=s.fromUrl(p);d&&(p=c.repository.url=d.getDefaultRepresentation()==="shortcut"?d.https():d.toString())}p.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",p)},fixTypos:function(c){Object.keys(l.topLevel).forEach(function(p){Object.prototype.hasOwnProperty.call(c,p)&&this.warn("typo",p,l.topLevel[p])},this)},fixScriptsField:function(c){if(c.scripts){if(typeof c.scripts!="object"){this.warn("nonObjectScripts"),delete c.scripts;return}Object.keys(c.scripts).forEach(function(p){typeof c.scripts[p]!="string"?(this.warn("nonStringScript"),delete c.scripts[p]):l.script[p]&&!c.scripts[l.script[p]]&&this.warn("typo",p,l.script[p],"scripts")},this)}},fixFilesField:function(c){var p=c.files;p&&!Array.isArray(p)?(this.warn("nonArrayFiles"),delete c.files):c.files&&(c.files=c.files.filter(function(d){return!d||typeof d!="string"?(this.warn("invalidFilename",d),!1):!0},this))},fixBinField:function(c){if(c.bin&&typeof c.bin=="string"){var p={},d;(d=c.name.match(/^@[^/]+[/](.*)$/))?p[d[1]]=c.bin:p[c.name]=c.bin,c.bin=p}},fixManField:function(c){c.man&&typeof c.man=="string"&&(c.man=[c.man])},fixBundleDependenciesField:function(c){var p="bundledDependencies",d="bundleDependencies";c[p]&&!c[d]&&(c[d]=c[p],delete c[p]),c[d]&&!Array.isArray(c[d])?(this.warn("nonArrayBundleDependencies"),delete c[d]):c[d]&&(c[d]=c[d].filter(function(P){return!P||typeof P!="string"?(this.warn("nonStringBundleDependency",P),!1):(c.dependencies||(c.dependencies={}),Object.prototype.hasOwnProperty.call(c.dependencies,P)||(this.warn("nonDependencyBundleDependency",P),c.dependencies[P]="*"),!0)},this))},fixDependencies:function(c){S(c,this.warn),L(c),this.fixBundleDependenciesField(c),["dependencies","devDependencies"].forEach(function(p){if(p in c){if(!c[p]||typeof c[p]!="object"){this.warn("nonObjectDependencies",p),delete c[p];return}Object.keys(c[p]).forEach(function(d){var P=c[p][d];typeof P!="string"&&(this.warn("nonStringDependency",d,JSON.stringify(P)),delete c[p][d]);var D=s.fromUrl(c[p][d]);D&&(c[p][d]=D.toString())},this)}},this)},fixModulesField:function(c){c.modules&&(this.warn("deprecatedModules"),delete c.modules)},fixKeywordsField:function(c){typeof c.keywords=="string"&&(c.keywords=c.keywords.split(/,\s+/)),c.keywords&&!Array.isArray(c.keywords)?(delete c.keywords,this.warn("nonArrayKeywords")):c.keywords&&(c.keywords=c.keywords.filter(function(p){return typeof p!="string"||!p?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(c,p){var d=!p;if(!c.version)return c.version="",!0;if(!e(c.version,d))throw new Error('Invalid version: "'+c.version+'"');return c.version=t(c.version,d),!0},fixPeople:function(c){y(c,b),y(c,m)},fixNameField:function(c,p){typeof p=="boolean"?p={strict:p}:typeof p>"u"&&(p={});var d=p.strict;if(!c.name&&!d){c.name="";return}if(typeof c.name!="string")throw new Error("name field must be a string.");d||(c.name=c.name.trim()),v(c.name,d,p.allowLegacyCase),r(c.name)&&this.warn("conflictingName",c.name)},fixDescriptionField:function(c){c.description&&typeof c.description!="string"&&(this.warn("nonStringDescription"),delete c.description),c.readme&&!c.description&&(c.description=n(c.readme)),c.description===void 0&&delete c.description,c.description||this.warn("missingDescription")},fixReadmeField:function(c){c.readme||(this.warn("missingReadme"),c.readme="ERROR: No README data found!")},fixBugsField:function(c){if(!c.bugs&&c.repository&&c.repository.url){var p=s.fromUrl(c.repository.url);p&&p.bugs()&&(c.bugs={url:p.bugs()})}else if(c.bugs){if(typeof c.bugs=="string")u(c.bugs)?c.bugs={email:c.bugs}:a.canParse(c.bugs)?c.bugs={url:c.bugs}:this.warn("nonEmailUrlBugsString");else{C(c.bugs,this.warn);var d=c.bugs;c.bugs={},d.url&&(a.canParse(d.url)?c.bugs.url=d.url:this.warn("nonUrlBugsUrlField")),d.email&&(typeof d.email=="string"&&u(d.email)?c.bugs.email=d.email:this.warn("nonEmailBugsEmailField"))}!c.bugs.email&&!c.bugs.url&&(delete c.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(c){if(!c.homepage&&c.repository&&c.repository.url){var p=s.fromUrl(c.repository.url);p&&p.docs()&&(c.homepage=p.docs())}if(c.homepage){if(typeof c.homepage!="string")return this.warn("nonUrlHomepage"),delete c.homepage;a.canParse(c.homepage)||(c.homepage="http://"+c.homepage)}},fixLicenseField:function(c){const p=c.license||c.licence;if(!p)return this.warn("missingLicense");if(typeof p!="string"||p.length<1||p.trim()==="")return this.warn("invalidLicense");if(!i(p).validForNewPackages)return this.warn("invalidLicense")}};function f(c){if(c.charAt(0)!=="@")return!1;var p=c.slice(1).split("/");return p.length!==2?!1:p[0]&&p[1]&&p[0]===encodeURIComponent(p[0])&&p[1]===encodeURIComponent(p[1])}function g(c){return!c.match(/[/@\s+%:]/)&&c===encodeURIComponent(c)}function v(c,p,d){if(c.charAt(0)==="."||!(f(c)||g(c))||p&&!d&&c!==c.toLowerCase()||c.toLowerCase()==="node_modules"||c.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(c))}function y(c,p){return c.author&&(c.author=p(c.author)),["maintainers","contributors"].forEach(function(d){Array.isArray(c[d])&&(c[d]=c[d].map(p))}),c}function b(c){if(typeof c=="string")return c;var p=c.name||"",d=c.url||c.web,P=d?" ("+d+")":"",D=c.email||c.mail,A=D?" <"+D+">":"";return p+A+P}function m(c){if(typeof c!="string")return c;var p=c.match(/^([^(<]+)/),d=c.match(/\(([^()]+)\)/),P=c.match(/<([^<>]+)>/),D={};return p&&p[0].trim()&&(D.name=p[0].trim()),P&&(D.email=P[1]),d&&(D.url=d[1]),D}function L(c){var p=c.optionalDependencies;if(p){var d=c.dependencies||{};Object.keys(p).forEach(function(P){d[P]=p[P]}),c.dependencies=d}}function h(c,p,d){if(!c)return{};if(typeof c=="string"&&(c=c.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(c))return c;d("deprecatedArrayDependencies",p);var P={};return c.filter(function(D){return typeof D=="string"}).forEach(function(D){D=D.trim().split(/(:?[@\s><=])/);var A=D.shift(),E=D.join("");E=E.trim(),E=E.replace(/^@/,""),P[A]=E}),P}function S(c,p){o.forEach(function(d){c[d]&&(c[d]=h(c[d],d,p))})}function C(c,p){c&&Object.keys(c).forEach(function(d){l.bugs[d]&&(p("typo",d,l.bugs[d],"bugs"),c[l.bugs[d]]=c[d],delete c[d])})}return me}var at="'repositories' (plural) Not supported. Please pick one as the 'repository' field",lt="No repository field.",ct="Probably broken git url: %s",ht="scripts must be an object",ut="script values must be string commands",pt="Invalid 'files' member",ft="Invalid filename in 'files' list: %s",dt="Invalid 'bundleDependencies' list. Must be array of package names",mt="Invalid bundleDependencies member: %s",gt="Non-dependency in bundleDependencies: %s",Lt="%s field must be an object",St="Invalid dependency: %s %s",vt="specifying %s as array is deprecated",yt="modules field is deprecated",bt="keywords should be an array of strings",Ct="keywords should be an array of strings",Pt="%s is also the name of a node core module.",Dt="'description' field should be a string",wt="No description",xt="No README data",At="No license field.",Et="Bug string field must be url, email, or {email,url}",$t="bugs.url field must be a string url. Deleted.",Ot="bugs.email field must be a string email. Deleted.",Nt="Normalized value of bugs field is an empty object. Deleted.",Ft="homepage field must be a string url. Deleted.",Gt="license should be a valid SPDX license expression",Tt="%s should probably be %s.";const qi={repositories:at,missingRepository:lt,brokenGitUrl:ct,nonObjectScripts:ht,nonStringScript:ut,nonArrayFiles:pt,invalidFilename:ft,nonArrayBundleDependencies:dt,nonStringBundleDependency:mt,nonDependencyBundleDependency:gt,nonObjectDependencies:Lt,nonStringDependency:St,deprecatedArrayDependencies:vt,deprecatedModules:yt,nonArrayKeywords:bt,nonStringKeyword:Ct,conflictingName:Pt,nonStringDescription:Dt,missingDescription:wt,missingReadme:xt,missingLicense:At,nonEmailUrlBugsString:Et,nonUrlBugsUrlField:$t,nonEmailBugsEmailField:Ot,emptyNormalizedBugs:Nt,nonUrlHomepage:Ft,invalidLicense:Gt,typo:Tt},Vi=Object.defineProperty({__proto__:null,brokenGitUrl:ct,conflictingName:Pt,default:qi,deprecatedArrayDependencies:vt,deprecatedModules:yt,emptyNormalizedBugs:Nt,invalidFilename:ft,invalidLicense:Gt,missingDescription:wt,missingLicense:At,missingReadme:xt,missingRepository:lt,nonArrayBundleDependencies:dt,nonArrayFiles:pt,nonArrayKeywords:bt,nonDependencyBundleDependency:gt,nonEmailBugsEmailField:Ot,nonEmailUrlBugsString:Et,nonObjectDependencies:Lt,nonObjectScripts:ht,nonStringBundleDependency:mt,nonStringDependency:St,nonStringDescription:Dt,nonStringKeyword:Ct,nonStringScript:ut,nonUrlBugsUrlField:$t,nonUrlHomepage:Ft,repositories:at,typo:Tt},Symbol.toStringTag,{value:"Module"}),Ki=Se(Vi);var ge,Ue;function Ji(){if(Ue)return ge;Ue=1;var a=Yt,e=Ki;ge=function(){var i=Array.prototype.slice.call(arguments,0),s=i.shift();if(s==="typo")return t.apply(null,i);var r=e[s]?e[s]:s+": '%s'";return i.unshift(r),a.format.apply(null,i)};function t(i,s,r){return r&&(i=r+"['"+i+"']",s=r+"['"+s+"']"),a.format(e.typo,i,s)}return ge}var Le,Me;function Xi(){if(Me)return Le;Me=1,Le=r;var a=Yi();r.fixer=a;var e=Ji(),t=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],i=["dependencies","people","typos"],s=t.map(function(n){return o(n)+"Field"});s=s.concat(i);function r(n,l,u){l===!0&&(l=null,u=!0),u||(u=!1),(!l||n.private)&&(l=function(){}),n.scripts&&n.scripts.install==="node-gyp rebuild"&&!n.scripts.preinstall&&(n.gypfile=!0),a.warn=function(){l(e.apply(null,arguments))},s.forEach(function(f){a["fix"+o(f)](n,u)}),n._id=n.name+"@"+n.version}function o(n){return n.charAt(0).toUpperCase()+n.slice(1)}return Le}var Zi=Xi();const Qi=_t(Zi),er=(a,e,t)=>{const i=$(a),s=$(e),r=s===i?".":Mt(i,s);return t.some(o=>{const n=o.startsWith("./")?o.slice(2):o,l=r.startsWith("./")?r.slice(2):r;if(n==="."&&l===".")return!0;if(n.endsWith("/**")){const u=n.slice(0,-3);return l===u||l.startsWith(`${u}/`)}if(n.endsWith("/*")){const u=n.slice(0,-2);return u===""?l!=="."&&!l.includes("/"):l.startsWith(`${u}/`)||l===u}return l===n||l.startsWith(`${n}/`)})},tr=a=>{const e=J("pnpm-workspace.yaml",{cwd:$(a),type:"file"});if(!e)return;const t=_e(e),i=Array.isArray(t.packages)?t.packages:[];if(!er(e,a,i))return;const s={};return t.catalog&&typeof t.catalog=="object"&&(s.catalog=t.catalog),t.catalogs&&typeof t.catalogs=="object"&&(s.catalogs=t.catalogs),Object.keys(s).length>0?s:void 0},ir=(a,e,t)=>{if(e==="catalog:")return t.catalog?.[a];if(e.startsWith("catalog:")){const i=e.slice(8);return t.catalogs?.[i]?.[a]}},rr=(a,e)=>{for(const[t,i]of Object.entries(a)){if(typeof i!="string")continue;const s=ir(t,i,e);s&&(a[t]=s)}},sr=(a,e)=>{const t=["dependencies","devDependencies","peerDependencies","optionalDependencies"];for(const i of t){if(!a[i]||typeof a[i]!="object")continue;const s=a[i];rr(s,e)}};let nr;const or=a=>(nr??=z(import.meta.url))(a),j=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ve=a=>{if(typeof j<"u"&&j.versions&&j.versions.node){const[e,t]=j.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return j.getBuiltinModule(a)}return or(a)};ve("node:fs");ve("node:readline");ve("node:util");const ar=/, ([^,]*)$/,lr=new Map,cr=(a,e={})=>{const t=e.strict&&e.ignoreWarnings?e.ignoreWarnings.map(String).toSorted((i,s)=>i.localeCompare(s)).join(","):"";return`${a}|s${String(e.strict?1:0)}|c${String(e.resolveCatalogs?1:0)}|j${String(e.json5===!1?0:1)}|y${String(e.yaml===!1?0:1)}|w${t}`};class hr extends Error{constructor(e){super(`The following warnings were encountered while normalizing package data:
3
- - ${e.join(`
4
- - `)}`),this.name="PackageJsonValidationError"}}const ur=(a,e,t=[])=>{const i=[];if(Qi(a,s=>{i.push(s)},e),e&&i.length>0){const s=i.filter(r=>!t.some(o=>o instanceof RegExp?o.test(r):o===r));if(s.length>0)throw new hr(s)}return a},pr=a=>_e(a),fr=a=>{const e=jt(a);return Wt.parse(e)},dr=(a,e)=>e?.yaml!==!1&&(a.endsWith(".yaml")||a.endsWith(".yml"))?pr(a):e?.json5!==!1&&a.endsWith(".json5")?fr(a):ze(a),mr=(a,e={})=>{const t={type:"file"};a&&(t.cwd=a);const i=["package.json"];e.yaml!==!1&&i.push("package.yaml","package.yml"),e.json5!==!1&&i.push("package.json5");const s=J(i,t);if(!s)throw new V(`No such file or directory, for ${i.join(", ").replace(ar," or $1")} found.`);const r=e.cache&&typeof e.cache!="boolean"?e.cache:lr,o=cr(s,e);if(e.cache&&r.has(o))return r.get(o);const n=dr(s,e);if(e.resolveCatalogs){const u=tr(s);u&&sr(n,u)}ur(n,e.strict??!1,e.ignoreWarnings);const l={packageJson:n,path:s};return e.cache&&r.set(o,l),l};var gr="2.0.1";const Lr={version:gr},Sr=Lr.version,vr="@visulima/vis";let N;const Ur=()=>{if(N!==void 0)return N;const a=process.env.VIS_VERSION;if(a)return N=a,N;try{const{packageJson:e}=mr(kt(Ut(import.meta.url)),{json5:!1,yaml:!1});if(e.name===vr&&typeof e.version=="string")return N=e.version,N}catch{}return N=Sr,N};export{Rr as D,Ir as E,ti as I,Br as N,Er as a,Fr as b,$r as c,Nr as g,Or as h,Ar as l,Ur as m,xr as t,Gr as u,Tr as v};