alchemylab-opencode 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NODE_COMPAT.md +8 -1
- package/dist/20260127222353_familiar_lady_ursula-YYOFSQD5.js +18 -0
- package/dist/20260211171708_add_project_commands-3GKQTPBZ.js +18 -0
- package/dist/20260213144116_wakeful_the_professor-ROO7OAVL.js +18 -0
- package/dist/20260225215848_workspace-V2OZTNFF.js +18 -0
- package/dist/20260227213759_add_session_workspace_id-GVDWAXKM.js +18 -0
- package/dist/20260228203230_blue_harpoon-Z5QP2II5.js +18 -0
- package/dist/20260303231226_add_workspace_fields-QOVAFN7W.js +18 -0
- package/dist/20260309230000_move_org_to_state-RQURSDZD.js +18 -0
- package/dist/20260312043431_session_message_cursor-VBISKDXL.js +18 -0
- package/dist/20260323234822_events-PILJHLNA.js +18 -0
- package/dist/20260410174513_workspace-name-63YCZ5NS.js +18 -0
- package/dist/20260413175956_chief_energizer-NMAZYGDO.js +18 -0
- package/dist/20260423070820_add_icon_url_override-RAJCVNEP.js +18 -0
- package/dist/20260427172553_slow_nightmare-ULYYZLR4.js +18 -0
- package/dist/20260428004200_add_session_path-U4WO2TGE.js +18 -0
- package/dist/20260501142318_next_venus-6BCYATSC.js +18 -0
- package/dist/20260504145000_add_sync_owner-RGVHV6LN.js +18 -0
- package/dist/20260507164347_add_workspace_time-GE6UHNPM.js +18 -0
- package/dist/{20260510033149_session_usage-UGBVOXZB.js → 20260510033149_session_usage-7XHCFVKY.js} +5 -1
- package/dist/20260511000411_data_migration_state-2EGZKFLB.js +18 -0
- package/dist/20260511173437_session-metadata-K322YY33.js +18 -0
- package/dist/20260601010001_normalize_storage_paths-VZDTY366.js +18 -0
- package/dist/{20260225215848_workspace-ZMSOZSPA.js → 20260601202201_amazing_prowler-YT6PLK3L.js} +5 -1
- package/dist/{20260228203230_blue_harpoon-IW3Z4TQZ.js → 20260602002951_lowly_union_jack-6VLQTBVB.js} +5 -1
- package/dist/20260602182828_add_project_directories-TVSRD25A.js +18 -0
- package/dist/20260603001617_session_message_projection_indexes-PHKTF6HK.js +18 -0
- package/dist/{20260622170816_reset_v2_session_state-5JPHJTZG.js → 20260603040000_session_message_projection_order-7RTV2POG.js} +5 -1
- package/dist/20260603141458_session_input_inbox-RSBWABG7.js +18 -0
- package/dist/20260603160727_jittery_ezekiel_stane-DXBLLRVV.js +18 -0
- package/dist/20260604172448_event_sourced_session_input-H6Z3JEBD.js +18 -0
- package/dist/20260605003541_add_session_context_snapshot-6FDPM2TK.js +18 -0
- package/dist/20260605042240_add_context_epoch_agent-C2OF2UKR.js +18 -0
- package/dist/20260611035744_credential-YNZ47FSH.js +18 -0
- package/dist/20260611192811_lush_chimera-E357VI6P.js +18 -0
- package/dist/20260612174303_project_dir_strategy-VUGGK42O.js +18 -0
- package/dist/20260622142730_simplify_session_context_epoch-UYGXZ5BX.js +18 -0
- package/dist/20260622170816_reset_v2_session_state-EILLPCJQ.js +18 -0
- package/dist/20260622202450_simplify_session_input-Y65GDGBO.js +18 -0
- package/dist/NodeSdk-AGMQWBHH.js +18 -0
- package/dist/anthropic-45OFTLAW.js +18 -0
- package/dist/anthropic-ND6UHXWL.js +18 -0
- package/dist/app-runtime-ZWWQ4JTM.js +18 -0
- package/dist/chunk-2MRHL4B2.js +18 -0
- package/dist/chunk-2XWBNI3L.js +1490 -0
- package/dist/chunk-4MBUHJHY.js +22 -0
- package/dist/chunk-6MAPFAXY.js +190 -0
- package/dist/chunk-7XX6TY62.js +259 -0
- package/dist/chunk-ANF3QA3Z.js +48 -0
- package/dist/chunk-AUB2TEYJ.js +55 -0
- package/dist/chunk-AZUMH3TO.js +18 -0
- package/dist/chunk-BQ4IEPN3.js +19 -0
- package/dist/chunk-CYRZU5QM.js +33 -0
- package/dist/chunk-DGJQZN2Q.js +18 -0
- package/dist/chunk-DO2UZ6NY.js +18 -0
- package/dist/chunk-DZ6G4VSD.js +19 -0
- package/dist/chunk-EK6FQQHY.js +20 -0
- package/dist/chunk-ELPXQ32J.js +90 -0
- package/dist/chunk-F5PY52BY.js +18 -0
- package/dist/chunk-FGLPSSRK.js +19 -0
- package/dist/chunk-FV7U6PVP.js +18 -0
- package/dist/chunk-FYYAOZPU.js +18 -0
- package/dist/chunk-GDWO6EXN.js +22 -0
- package/dist/chunk-GW3ZRKAI.js +20 -0
- package/dist/chunk-IQSFXWDQ.js +18 -0
- package/dist/chunk-IYUSBBGY.js +35 -0
- package/dist/chunk-JPOFLMNH.js +18 -0
- package/dist/{chunk-VURLSDCB.js → chunk-K5LKDIVU.js} +4 -0
- package/dist/chunk-KS4WLVK5.js +19 -0
- package/dist/chunk-L3CE2Y3L.js +55 -0
- package/dist/chunk-LIXP4TPL.js +18 -0
- package/dist/chunk-LSC4RT5V.js +36 -0
- package/dist/chunk-M5A6NFHQ.js +28 -0
- package/dist/chunk-M6E6KNLV.js +30 -0
- package/dist/chunk-MLFZXUGQ.js +18 -0
- package/dist/chunk-NDI67DRG.js +31 -0
- package/dist/chunk-OCWGUTZJ.js +36 -0
- package/dist/chunk-OGDRUXMJ.js +18 -0
- package/dist/chunk-OGJKLJC7.js +29 -0
- package/dist/chunk-P5RLCJUV.js +18 -0
- package/dist/chunk-Q3WIUQXB.js +18 -0
- package/dist/{20260227213759_add_session_workspace_id-ROENWPKA.js → chunk-QCRIXKIC.js} +5 -1
- package/dist/chunk-QD24DLUD.js +18 -0
- package/dist/chunk-R2GWBJEP.js +18 -0
- package/dist/chunk-RIA6SDOY.js +780 -0
- package/dist/chunk-RPAXSOGH.js +18 -0
- package/dist/chunk-TK5R7QUN.js +18 -0
- package/dist/chunk-TNQWZFIZ.js +28 -0
- package/dist/chunk-UCLPBO4I.js +18 -0
- package/dist/chunk-V6FDDNGV.js +117 -0
- package/dist/chunk-V6HERYFV.js +18 -0
- package/dist/chunk-V7XKKJ7X.js +24 -0
- package/dist/chunk-VHDYUBBS.js +23 -0
- package/dist/chunk-VWLJXTZ5.js +18 -0
- package/dist/chunk-VXAPFOIL.js +22 -0
- package/dist/chunk-WKZYINC7.js +29 -0
- package/dist/chunk-WL33KE3H.js +920 -0
- package/dist/chunk-WPMP2ZFE.js +40 -0
- package/dist/chunk-WRTNIOI3.js +18 -0
- package/dist/chunk-WZ4237YY.js +19 -0
- package/dist/chunk-X5F46HR5.js +18 -0
- package/dist/chunk-XPS7TQZG.js +22 -0
- package/dist/chunk-XSKT4AXR.js +878 -0
- package/dist/chunk-YJPP6IQ3.js +23 -0
- package/dist/chunk-ZYQWFC55.js +22 -0
- package/dist/code-mode-H3HRSD24.js +502 -0
- package/dist/copilot-provider-QVMLQZZC.js +18 -0
- package/dist/dist-5NQOHNPL.js +18 -0
- package/dist/dist-7CT3XCNN.js +32 -0
- package/dist/dist-CL46WFZG.js +18 -0
- package/dist/dist-HXJTF22W.js +32 -0
- package/dist/dist-JFXI53ZF.js +22 -0
- package/dist/dist-KBYKWVT5.js +22 -0
- package/dist/dist-KGNO5AP7.js +35 -0
- package/dist/dist-KTNLTEHB.js +18 -0
- package/dist/dist-KZ5R5QM5.js +24 -0
- package/dist/{20260605042240_add_context_epoch_agent-W6IQYZXE.js → dist-LOXU6IEM.js} +5 -1
- package/dist/dist-NLXUYBW7.js +32 -0
- package/dist/dist-O4DF72J2.js +22 -0
- package/dist/dist-PH4MEGVR.js +22 -0
- package/dist/{20260511000411_data_migration_state-FB4LBFSE.js → dist-QJPOJCLB.js} +5 -1
- package/dist/dist-QYH62TCJ.js +22 -0
- package/dist/{20260303231226_add_workspace_fields-OUVZMNAG.js → dist-RIC4WKHC.js} +5 -1
- package/dist/dist-T776XKTM.js +22 -0
- package/dist/dist-TCE5MKZQ.js +23 -0
- package/dist/dist-TH2Q44RX.js +50 -0
- package/dist/dist-VV5FV5RT.js +101 -0
- package/dist/dist-WZJ3LNRG.js +28 -0
- package/dist/dist-XAFENVUS.js +22 -0
- package/dist/dist-XPFB35TX.js +32 -0
- package/dist/dist-es-43ZM44MP.js +18 -0
- package/dist/dist-es-CH2YKBKX.js +18 -0
- package/dist/{20260428004200_add_session_path-LGW75WYA.js → dist-es-DHCTZZ2E.js} +5 -1
- package/dist/dist-es-EVVG3KDV.js +26 -0
- package/dist/dist-es-HRCONNGK.js +18 -0
- package/dist/dist-es-L2GU465G.js +18 -0
- package/dist/dist-es-RGEIM2BP.js +18 -0
- package/dist/dist-es-RZ25XEH6.js +18 -0
- package/dist/dist-es-SITTNOGV.js +18 -0
- package/dist/esm-NN5W7YCL.js +18 -0
- package/dist/esm-XWJSHYHG.js +18 -0
- package/dist/getMachineId-bsd-L5I5TZ5I.js +18 -0
- package/dist/getMachineId-darwin-YB7KG37W.js +19 -0
- package/dist/getMachineId-linux-EL47KXX7.js +18 -0
- package/dist/getMachineId-unsupported-QOWPEBPN.js +18 -0
- package/dist/getMachineId-win-HCRYRDFJ.js +18 -0
- package/dist/lib-7VH6D2QJ.js +199 -0
- package/dist/loadCognitoIdentity-EWT55EI7.js +18 -0
- package/dist/loadSso-AGOUE6RL.js +18 -0
- package/dist/{20260213144116_wakeful_the_professor-ZVDD54AK.js → loadSts-RH5L3PIX.js} +5 -1
- package/dist/mantle-IJXDXT4M.js +25 -0
- package/dist/mime-types-GSWEOYZ5.js +18 -0
- package/dist/multipart-parser-KZWMKXA4.js +19 -0
- package/dist/{20260211171708_add_project_commands-GDOHPDPF.js → open-7KXTRM37.js} +5 -1
- package/dist/openai-ZOJI6I5R.js +18 -0
- package/dist/p-map-CYL6ILJW.js +18 -0
- package/dist/photon-W56QZY4L.js +18 -0
- package/dist/{20260423070820_add_icon_url_override-X5SHFGTI.js → pkce-VT4ITJTB.js} +5 -1
- package/dist/{pty.node-Y3N2XKYG.js → pty.node-IWULXXG6.js} +5 -1
- package/dist/run.js +5 -1
- package/dist/serve.js +143 -1
- package/dist/server-XRUYBM7W.js +21 -0
- package/dist/session-4BXV4JJH.js +18 -0
- package/dist/signin-DKBWDEYP.js +18 -0
- package/dist/src-JODD73WX.js +18 -0
- package/dist/src-QJHT5SCV.js +18 -0
- package/dist/src-SMM4U63G.js +18 -0
- package/dist/src-WDYKISPD.js +20 -0
- package/dist/sso-oidc-S3P64MCY.js +18 -0
- package/dist/sts-RG44NMOQ.js +18 -0
- package/dist/token-2V62AM3G.js +18 -0
- package/dist/token-util-VXONHEUD.js +18 -0
- package/dist/unified-W3ZKZ4HG.js +18 -0
- package/dist/worktree-B2LROS2B.js +18 -0
- package/package.json +40 -40
- package/postinstall.cjs +4 -2
- package/dist/20260127222353_familiar_lady_ursula-KV747FJX.js +0 -14
- package/dist/20260309230000_move_org_to_state-NOXAPU5V.js +0 -14
- package/dist/20260312043431_session_message_cursor-DJ4T3T4R.js +0 -14
- package/dist/20260323234822_events-72GIKJ2A.js +0 -14
- package/dist/20260410174513_workspace-name-JXSWFBJN.js +0 -14
- package/dist/20260413175956_chief_energizer-4HEWZ6U3.js +0 -14
- package/dist/20260427172553_slow_nightmare-PS5T2AH2.js +0 -14
- package/dist/20260501142318_next_venus-J3TLVXZ6.js +0 -14
- package/dist/20260504145000_add_sync_owner-3R52GB4C.js +0 -14
- package/dist/20260507164347_add_workspace_time-JHDRCZAR.js +0 -14
- package/dist/20260511173437_session-metadata-T2XHGWHS.js +0 -14
- package/dist/20260601010001_normalize_storage_paths-5MAY5GT3.js +0 -14
- package/dist/20260601202201_amazing_prowler-PET224YG.js +0 -14
- package/dist/20260602002951_lowly_union_jack-PG6XDMGL.js +0 -14
- package/dist/20260602182828_add_project_directories-ZCH2ACGG.js +0 -14
- package/dist/20260603001617_session_message_projection_indexes-XVLJTUF2.js +0 -14
- package/dist/20260603040000_session_message_projection_order-XG6RACZQ.js +0 -14
- package/dist/20260603141458_session_input_inbox-K2VQ7V6E.js +0 -14
- package/dist/20260603160727_jittery_ezekiel_stane-WKJLRDO7.js +0 -14
- package/dist/20260604172448_event_sourced_session_input-NTXOECR7.js +0 -14
- package/dist/20260605003541_add_session_context_snapshot-DXMQEXMT.js +0 -14
- package/dist/20260611035744_credential-XTMSYTJD.js +0 -14
- package/dist/20260611192811_lush_chimera-XPLIQMJD.js +0 -14
- package/dist/20260612174303_project_dir_strategy-FR2NGQKK.js +0 -14
- package/dist/20260622142730_simplify_session_context_epoch-NTQZR3RE.js +0 -14
- package/dist/20260622202450_simplify_session_input-2EXF2HMV.js +0 -14
- package/dist/app-runtime-HQBOCDV5.js +0 -14
- package/dist/chunk-4FEBIOI5.js +0 -865
- package/dist/chunk-4K2RXRZL.js +0 -14
- package/dist/chunk-4RFMKEKM.js +0 -1455
- package/dist/chunk-BM2C7NHL.js +0 -41
- package/dist/chunk-MKEMZFJI.js +0 -393
- package/dist/chunk-OMDJ6ZZ2.js +0 -684
- package/dist/chunk-OWMG4NNF.js +0 -186
- package/dist/chunk-QRABYJKL.js +0 -14
- package/dist/chunk-RHIWAYN5.js +0 -14
- package/dist/chunk-Z5TLIUAI.js +0 -28
- package/dist/code-mode-7BQJUARW.js +0 -40
- package/dist/copilot-provider-TX4YFKJZ.js +0 -14
- package/dist/photon-VQS5F5BI.js +0 -14
- package/dist/server-BFUQR7MX.js +0 -17
- package/dist/session-6RNXZNG6.js +0 -14
- package/dist/worktree-QHQHX3SG.js +0 -14
- package/patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch +0 -164
- package/patches/@ai-sdk%2Fanthropic@3.0.111.patch +0 -528
- package/patches/@ai-sdk%2Fgoogle@3.0.73.patch +0 -69
- package/patches/@ai-sdk%2Fgroq@3.0.31.patch +0 -79
- package/patches/@ai-sdk%2Fmistral@3.0.51.patch +0 -714
- package/patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch +0 -39
- package/patches/@ai-sdk%2Fopenai@3.0.88.patch +0 -280
- package/patches/@ai-sdk%2Fxai@3.0.139.patch +0 -296
- package/patches/@modelcontextprotocol%2Fsdk@1.29.0.patch +0 -647
- package/patches/@npmcli%2Fagent@4.0.2.patch +0 -13
- package/patches/effect@4.0.0-beta.83.patch +0 -57
- package/patches/gcp-metadata@8.1.2.patch +0 -14
- package/patches/pacote@21.5.0.patch +0 -18
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Built by esbuild from opencode-server source
|
|
2
|
+
if (typeof globalThis.Bun === 'undefined') {
|
|
3
|
+
globalThis.Bun = {
|
|
4
|
+
version: '0.0.0-node-compat',
|
|
5
|
+
stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
|
|
6
|
+
which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
|
|
10
|
+
if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
|
|
11
|
+
import { createRequire as __alchemyCreateRequire } from 'node:module';
|
|
12
|
+
const require = __alchemyCreateRequire(import.meta.url);
|
|
13
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a as Ri}from"./chunk-FV7U6PVP.js";import{a as o,b as te,d as D}from"./chunk-2MRHL4B2.js";var st=D((Og,xi)=>{"use strict";var Dl="2.0.0",Nl=Number.MAX_SAFE_INTEGER||9007199254740991,Il=16,kl=250,Fl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];xi.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Il,MAX_SAFE_BUILD_LENGTH:kl,MAX_SAFE_INTEGER:Nl,RELEASE_TYPES:Fl,SEMVER_SPEC_VERSION:Dl,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var it=D((Cg,Pi)=>{"use strict";var Ml=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Pi.exports=Ml});var Je=D((Ge,$i)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:fs,MAX_SAFE_BUILD_LENGTH:jl,MAX_LENGTH:Gl}=st(),_l=it();Ge=$i.exports={};var Wl=Ge.re=[],Bl=Ge.safeRe=[],q=Ge.src=[],ql=Ge.safeSrc=[],U=Ge.t={},Ul=0,ps="[a-zA-Z0-9-]",zl=[["\\s",1],["\\d",Gl],[ps,jl]],Hl=o(t=>{for(let[e,s]of zl)t=t.split(`${e}*`).join(`${e}{0,${s}}`).split(`${e}+`).join(`${e}{1,${s}}`);return t},"makeSafeRegex"),Q=o((t,e,s)=>{let i=Hl(e),r=Ul++;_l(t,r,e),U[t]=r,q[r]=e,ql[r]=i,Wl[r]=new RegExp(e,s?"g":void 0),Bl[r]=new RegExp(i,s?"g":void 0)},"createToken");Q("NUMERICIDENTIFIER","0|[1-9]\\d*");Q("NUMERICIDENTIFIERLOOSE","\\d+");Q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ps}*`);Q("MAINVERSION",`(${q[U.NUMERICIDENTIFIER]})\\.(${q[U.NUMERICIDENTIFIER]})\\.(${q[U.NUMERICIDENTIFIER]})`);Q("MAINVERSIONLOOSE",`(${q[U.NUMERICIDENTIFIERLOOSE]})\\.(${q[U.NUMERICIDENTIFIERLOOSE]})\\.(${q[U.NUMERICIDENTIFIERLOOSE]})`);Q("PRERELEASEIDENTIFIER",`(?:${q[U.NONNUMERICIDENTIFIER]}|${q[U.NUMERICIDENTIFIER]})`);Q("PRERELEASEIDENTIFIERLOOSE",`(?:${q[U.NONNUMERICIDENTIFIER]}|${q[U.NUMERICIDENTIFIERLOOSE]})`);Q("PRERELEASE",`(?:-(${q[U.PRERELEASEIDENTIFIER]}(?:\\.${q[U.PRERELEASEIDENTIFIER]})*))`);Q("PRERELEASELOOSE",`(?:-?(${q[U.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${q[U.PRERELEASEIDENTIFIERLOOSE]})*))`);Q("BUILDIDENTIFIER",`${ps}+`);Q("BUILD",`(?:\\+(${q[U.BUILDIDENTIFIER]}(?:\\.${q[U.BUILDIDENTIFIER]})*))`);Q("FULLPLAIN",`v?${q[U.MAINVERSION]}${q[U.PRERELEASE]}?${q[U.BUILD]}?`);Q("FULL",`^${q[U.FULLPLAIN]}$`);Q("LOOSEPLAIN",`[v=\\s]*${q[U.MAINVERSIONLOOSE]}${q[U.PRERELEASELOOSE]}?${q[U.BUILD]}?`);Q("LOOSE",`^${q[U.LOOSEPLAIN]}$`);Q("GTLT","((?:<|>)?=?)");Q("XRANGEIDENTIFIERLOOSE",`${q[U.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Q("XRANGEIDENTIFIER",`${q[U.NUMERICIDENTIFIER]}|x|X|\\*`);Q("XRANGEPLAIN",`[v=\\s]*(${q[U.XRANGEIDENTIFIER]})(?:\\.(${q[U.XRANGEIDENTIFIER]})(?:\\.(${q[U.XRANGEIDENTIFIER]})(?:${q[U.PRERELEASE]})?${q[U.BUILD]}?)?)?`);Q("XRANGEPLAINLOOSE",`[v=\\s]*(${q[U.XRANGEIDENTIFIERLOOSE]})(?:\\.(${q[U.XRANGEIDENTIFIERLOOSE]})(?:\\.(${q[U.XRANGEIDENTIFIERLOOSE]})(?:${q[U.PRERELEASELOOSE]})?${q[U.BUILD]}?)?)?`);Q("XRANGE",`^${q[U.GTLT]}\\s*${q[U.XRANGEPLAIN]}$`);Q("XRANGELOOSE",`^${q[U.GTLT]}\\s*${q[U.XRANGEPLAINLOOSE]}$`);Q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${fs}})(?:\\.(\\d{1,${fs}}))?(?:\\.(\\d{1,${fs}}))?`);Q("COERCE",`${q[U.COERCEPLAIN]}(?:$|[^\\d])`);Q("COERCEFULL",q[U.COERCEPLAIN]+`(?:${q[U.PRERELEASE]})?(?:${q[U.BUILD]})?(?:$|[^\\d])`);Q("COERCERTL",q[U.COERCE],!0);Q("COERCERTLFULL",q[U.COERCEFULL],!0);Q("LONETILDE","(?:~>?)");Q("TILDETRIM",`(\\s*)${q[U.LONETILDE]}\\s+`,!0);Ge.tildeTrimReplace="$1~";Q("TILDE",`^${q[U.LONETILDE]}${q[U.XRANGEPLAIN]}$`);Q("TILDELOOSE",`^${q[U.LONETILDE]}${q[U.XRANGEPLAINLOOSE]}$`);Q("LONECARET","(?:\\^)");Q("CARETTRIM",`(\\s*)${q[U.LONECARET]}\\s+`,!0);Ge.caretTrimReplace="$1^";Q("CARET",`^${q[U.LONECARET]}${q[U.XRANGEPLAIN]}$`);Q("CARETLOOSE",`^${q[U.LONECARET]}${q[U.XRANGEPLAINLOOSE]}$`);Q("COMPARATORLOOSE",`^${q[U.GTLT]}\\s*(${q[U.LOOSEPLAIN]})$|^$`);Q("COMPARATOR",`^${q[U.GTLT]}\\s*(${q[U.FULLPLAIN]})$|^$`);Q("COMPARATORTRIM",`(\\s*)${q[U.GTLT]}\\s*(${q[U.LOOSEPLAIN]}|${q[U.XRANGEPLAIN]})`,!0);Ge.comparatorTrimReplace="$1$2$3";Q("HYPHENRANGE",`^\\s*(${q[U.XRANGEPLAIN]})\\s+-\\s+(${q[U.XRANGEPLAIN]})\\s*$`);Q("HYPHENRANGELOOSE",`^\\s*(${q[U.XRANGEPLAINLOOSE]})\\s+-\\s+(${q[U.XRANGEPLAINLOOSE]})\\s*$`);Q("STAR","(<|>)?=?\\s*\\*");Q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var xt=D((xg,Ti)=>{"use strict";var Vl=Object.freeze({loose:!0}),Yl=Object.freeze({}),Xl=o(t=>t?typeof t!="object"?Vl:t:Yl,"parseOptions");Ti.exports=Xl});var ds=D(($g,Ii)=>{"use strict";var Di=/^[0-9]+$/,Ni=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let s=Di.test(t),i=Di.test(e);return s&&i&&(t=+t,e=+e),t===e?0:s&&!i?-1:i&&!s?1:t<e?-1:1},"compareIdentifiers"),Kl=o((t,e)=>Ni(e,t),"rcompareIdentifiers");Ii.exports={compareIdentifiers:Ni,rcompareIdentifiers:Kl}});var Oe=D((Dg,Fi)=>{"use strict";var Pt=it(),{MAX_LENGTH:ki,MAX_SAFE_INTEGER:$t}=st(),{safeRe:Tt,t:Dt}=Je(),Jl=xt(),{compareIdentifiers:ms}=ds(),gs=class t{static{o(this,"SemVer")}constructor(e,s){if(s=Jl(s),e instanceof t){if(e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ki)throw new TypeError(`version is longer than ${ki} characters`);Pt("SemVer",e,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let i=e.trim().match(s.loose?Tt[Dt.LOOSE]:Tt[Dt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>$t||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$t||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$t||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let n=+r;if(n>=0&&n<$t)return n}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Pt("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let s=0;do{let i=this.prerelease[s],r=e.prerelease[s];if(Pt("prerelease compare",s,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return ms(i,r)}while(++s)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let s=0;do{let i=this.build[s],r=e.build[s];if(Pt("build compare",s,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return ms(i,r)}while(++s)}inc(e,s,i){if(e.startsWith("pre")){if(!s&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(s){let r=`-${s}`.match(this.options.loose?Tt[Dt.PRERELEASELOOSE]:Tt[Dt.PRERELEASE]);if(!r||r[1]!==s)throw new Error(`invalid identifier: ${s}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s,i),this.inc("pre",s,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s,i),this.inc("pre",s,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);if(n===-1){if(s===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(s){let n=[s,r];i===!1&&(n=[s]),ms(this.prerelease[0],s)===0?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Fi.exports=gs});var ze=D((Ig,ji)=>{"use strict";var Mi=Oe(),Zl=o((t,e,s=!1)=>{if(t instanceof Mi)return t;try{return new Mi(t,e)}catch(i){if(!s)return null;throw i}},"parse");ji.exports=Zl});var ys=D((Fg,Gi)=>{"use strict";var Ql=ze(),eh=o((t,e)=>{let s=Ql(t,e);return s?s.version:null},"valid");Gi.exports=eh});var ws=D((jg,_i)=>{"use strict";var th=ze(),sh=o((t,e)=>{let s=th(t.trim().replace(/^[=v]+/,""),e);return s?s.version:null},"clean");_i.exports=sh});var qi=D((_g,Bi)=>{"use strict";var Wi=Oe(),ih=o((t,e,s,i,r)=>{typeof s=="string"&&(r=i,i=s,s=void 0);try{return new Wi(t instanceof Wi?t.version:t,s).inc(e,i,r).version}catch{return null}},"inc");Bi.exports=ih});var Hi=D((Bg,zi)=>{"use strict";var Ui=ze(),rh=o((t,e)=>{let s=Ui(t,null,!0),i=Ui(e,null,!0),r=s.compare(i);if(r===0)return null;let n=r>0,l=n?s:i,h=n?i:s,c=!!l.prerelease.length;if(!!h.prerelease.length&&!c){if(!h.patch&&!h.minor)return"major";if(h.compareMain(l)===0)return h.minor&&!h.patch?"minor":"patch"}let d=c?"pre":"";return s.major!==i.major?d+"major":s.minor!==i.minor?d+"minor":s.patch!==i.patch?d+"patch":"prerelease"},"diff");zi.exports=rh});var Yi=D((Ug,Vi)=>{"use strict";var nh=Oe(),oh=o((t,e)=>new nh(t,e).major,"major");Vi.exports=oh});var Ki=D((Hg,Xi)=>{"use strict";var ah=Oe(),lh=o((t,e)=>new ah(t,e).minor,"minor");Xi.exports=lh});var Zi=D((Yg,Ji)=>{"use strict";var hh=Oe(),ch=o((t,e)=>new hh(t,e).patch,"patch");Ji.exports=ch});var er=D((Kg,Qi)=>{"use strict";var uh=ze(),fh=o((t,e)=>{let s=uh(t,e);return s&&s.prerelease.length?s.prerelease:null},"prerelease");Qi.exports=fh});var De=D((Zg,sr)=>{"use strict";var tr=Oe(),ph=o((t,e,s)=>new tr(t,s).compare(new tr(e,s)),"compare");sr.exports=ph});var rr=D((e0,ir)=>{"use strict";var dh=De(),mh=o((t,e,s)=>dh(e,t,s),"rcompare");ir.exports=mh});var or=D((s0,nr)=>{"use strict";var gh=De(),yh=o((t,e)=>gh(t,e,!0),"compareLoose");nr.exports=yh});var Nt=D((r0,lr)=>{"use strict";var ar=Oe(),wh=o((t,e,s)=>{let i=new ar(t,s),r=new ar(e,s);return i.compare(r)||i.compareBuild(r)},"compareBuild");lr.exports=wh});var cr=D((o0,hr)=>{"use strict";var bh=Nt(),Sh=o((t,e)=>t.sort((s,i)=>bh(s,i,e)),"sort");hr.exports=Sh});var fr=D((l0,ur)=>{"use strict";var Eh=Nt(),vh=o((t,e)=>t.sort((s,i)=>Eh(i,s,e)),"rsort");ur.exports=vh});var rt=D((c0,pr)=>{"use strict";var Ah=De(),Lh=o((t,e,s)=>Ah(t,e,s)>0,"gt");pr.exports=Lh});var It=D((f0,dr)=>{"use strict";var Oh=De(),Ch=o((t,e,s)=>Oh(t,e,s)<0,"lt");dr.exports=Ch});var bs=D((d0,mr)=>{"use strict";var Rh=De(),xh=o((t,e,s)=>Rh(t,e,s)===0,"eq");mr.exports=xh});var Ss=D((g0,gr)=>{"use strict";var Ph=De(),$h=o((t,e,s)=>Ph(t,e,s)!==0,"neq");gr.exports=$h});var kt=D((w0,yr)=>{"use strict";var Th=De(),Dh=o((t,e,s)=>Th(t,e,s)>=0,"gte");yr.exports=Dh});var Ft=D((S0,wr)=>{"use strict";var Nh=De(),Ih=o((t,e,s)=>Nh(t,e,s)<=0,"lte");wr.exports=Ih});var Es=D((v0,br)=>{"use strict";var kh=bs(),Fh=Ss(),Mh=rt(),jh=kt(),Gh=It(),_h=Ft(),Wh=o((t,e,s,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof s=="object"&&(s=s.version),t===s;case"!==":return typeof t=="object"&&(t=t.version),typeof s=="object"&&(s=s.version),t!==s;case"":case"=":case"==":return kh(t,s,i);case"!=":return Fh(t,s,i);case">":return Mh(t,s,i);case">=":return jh(t,s,i);case"<":return Gh(t,s,i);case"<=":return _h(t,s,i);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");br.exports=Wh});var Er=D((L0,Sr)=>{"use strict";var Bh=Oe(),qh=ze(),{safeRe:Mt,t:jt}=Je(),Uh=o((t,e)=>{if(t instanceof Bh)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let s=null;if(!e.rtl)s=t.match(e.includePrerelease?Mt[jt.COERCEFULL]:Mt[jt.COERCE]);else{let c=e.includePrerelease?Mt[jt.COERCERTLFULL]:Mt[jt.COERCERTL],u;for(;(u=c.exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||u.index+u[0].length!==s.index+s[0].length)&&(s=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(s===null)return null;let i=s[2],r=s[3]||"0",n=s[4]||"0",l=e.includePrerelease&&s[5]?`-${s[5]}`:"",h=e.includePrerelease&&s[6]?`+${s[6]}`:"";return qh(`${i}.${r}.${n}${l}${h}`,e)},"coerce");Sr.exports=Uh});var Ar=D((C0,vr)=>{"use strict";var vs=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let s=this.map.get(e);if(s!==void 0)return this.map.delete(e),this.map.set(e,s),s}delete(e){return this.map.delete(e)}set(e,s){if(!this.delete(e)&&s!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(e,s)}return this}};vr.exports=vs});var Ne=D((x0,Rr)=>{"use strict";var zh=/\s+/g,As=class t{static{o(this,"Range")}constructor(e,s){if(s=Vh(s),e instanceof t)return e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease?e:new t(e.raw,s);if(e instanceof Ls)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=e.trim().replace(zh," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!Or(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&ec(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let s=this.set[e];for(let i=0;i<s.length;i++)i>0&&(this.formatted+=" "),this.formatted+=s[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&Zh)|(this.options.loose&&Qh))+":"+e,r=Lr.get(i);if(r)return r;let n=this.options.loose,l=n?Re[Ce.HYPHENRANGELOOSE]:Re[Ce.HYPHENRANGE];e=e.replace(l,cc(this.options.includePrerelease)),de("hyphen replace",e),e=e.replace(Re[Ce.COMPARATORTRIM],Xh),de("comparator trim",e),e=e.replace(Re[Ce.TILDETRIM],Kh),de("tilde trim",e),e=e.replace(Re[Ce.CARETTRIM],Jh),de("caret trim",e);let h=e.split(" ").map(m=>tc(m,this.options)).join(" ").split(/\s+/).map(m=>hc(m,this.options));n&&(h=h.filter(m=>(de("loose invalid filter",m,this.options),!!m.match(Re[Ce.COMPARATORLOOSE])))),de("range list",h);let c=new Map,u=h.map(m=>new Ls(m,this.options));for(let m of u){if(Or(m))return[m];c.set(m.value,m)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return Lr.set(i,d),d}intersects(e,s){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Cr(i,s)&&e.set.some(r=>Cr(r,s)&&i.every(n=>r.every(l=>n.intersects(l,s)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Yh(e,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(uc(this.set[s],e,this.options))return!0;return!1}};Rr.exports=As;var Hh=Ar(),Lr=new Hh,Vh=xt(),Ls=nt(),de=it(),Yh=Oe(),{safeRe:Re,t:Ce,comparatorTrimReplace:Xh,tildeTrimReplace:Kh,caretTrimReplace:Jh}=Je(),{FLAG_INCLUDE_PRERELEASE:Zh,FLAG_LOOSE:Qh}=st(),Or=o(t=>t.value==="<0.0.0-0","isNullSet"),ec=o(t=>t.value==="","isAny"),Cr=o((t,e)=>{let s=!0,i=t.slice(),r=i.pop();for(;s&&i.length;)s=i.every(n=>r.intersects(n,e)),r=i.pop();return s},"isSatisfiable"),tc=o((t,e)=>(t=t.replace(Re[Ce.BUILD],""),de("comp",t,e),t=rc(t,e),de("caret",t),t=sc(t,e),de("tildes",t),t=oc(t,e),de("xrange",t),t=lc(t,e),de("stars",t),t),"parseComparator"),xe=o(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),sc=o((t,e)=>t.trim().split(/\s+/).map(s=>ic(s,e)).join(" "),"replaceTildes"),ic=o((t,e)=>{let s=e.loose?Re[Ce.TILDELOOSE]:Re[Ce.TILDE];return t.replace(s,(i,r,n,l,h)=>{de("tilde",t,i,r,n,l,h);let c;return xe(r)?c="":xe(n)?c=`>=${r}.0.0 <${+r+1}.0.0-0`:xe(l)?c=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:h?(de("replaceTilde pr",h),c=`>=${r}.${n}.${l}-${h} <${r}.${+n+1}.0-0`):c=`>=${r}.${n}.${l} <${r}.${+n+1}.0-0`,de("tilde return",c),c})},"replaceTilde"),rc=o((t,e)=>t.trim().split(/\s+/).map(s=>nc(s,e)).join(" "),"replaceCarets"),nc=o((t,e)=>{de("caret",t,e);let s=e.loose?Re[Ce.CARETLOOSE]:Re[Ce.CARET],i=e.includePrerelease?"-0":"";return t.replace(s,(r,n,l,h,c)=>{de("caret",t,r,n,l,h,c);let u;return xe(n)?u="":xe(l)?u=`>=${n}.0.0${i} <${+n+1}.0.0-0`:xe(h)?n==="0"?u=`>=${n}.${l}.0${i} <${n}.${+l+1}.0-0`:u=`>=${n}.${l}.0${i} <${+n+1}.0.0-0`:c?(de("replaceCaret pr",c),n==="0"?l==="0"?u=`>=${n}.${l}.${h}-${c} <${n}.${l}.${+h+1}-0`:u=`>=${n}.${l}.${h}-${c} <${n}.${+l+1}.0-0`:u=`>=${n}.${l}.${h}-${c} <${+n+1}.0.0-0`):(de("no pr"),n==="0"?l==="0"?u=`>=${n}.${l}.${h}${i} <${n}.${l}.${+h+1}-0`:u=`>=${n}.${l}.${h}${i} <${n}.${+l+1}.0-0`:u=`>=${n}.${l}.${h} <${+n+1}.0.0-0`),de("caret return",u),u})},"replaceCaret"),oc=o((t,e)=>(de("replaceXRanges",t,e),t.split(/\s+/).map(s=>ac(s,e)).join(" ")),"replaceXRanges"),ac=o((t,e)=>{t=t.trim();let s=e.loose?Re[Ce.XRANGELOOSE]:Re[Ce.XRANGE];return t.replace(s,(i,r,n,l,h,c)=>{de("xRange",t,i,r,n,l,h,c);let u=xe(n),d=u||xe(l),m=d||xe(h),S=m;return r==="="&&S&&(r=""),c=e.includePrerelease?"-0":"",u?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&S?(d&&(l=0),h=0,r===">"?(r=">=",d?(n=+n+1,l=0,h=0):(l=+l+1,h=0)):r==="<="&&(r="<",d?n=+n+1:l=+l+1),r==="<"&&(c="-0"),i=`${r+n}.${l}.${h}${c}`):d?i=`>=${n}.0.0${c} <${+n+1}.0.0-0`:m&&(i=`>=${n}.${l}.0${c} <${n}.${+l+1}.0-0`),de("xRange return",i),i})},"replaceXRange"),lc=o((t,e)=>(de("replaceStars",t,e),t.trim().replace(Re[Ce.STAR],"")),"replaceStars"),hc=o((t,e)=>(de("replaceGTE0",t,e),t.trim().replace(Re[e.includePrerelease?Ce.GTE0PRE:Ce.GTE0],"")),"replaceGTE0"),cc=o(t=>(e,s,i,r,n,l,h,c,u,d,m,S)=>(xe(i)?s="":xe(r)?s=`>=${i}.0.0${t?"-0":""}`:xe(n)?s=`>=${i}.${r}.0${t?"-0":""}`:l?s=`>=${s}`:s=`>=${s}${t?"-0":""}`,xe(u)?c="":xe(d)?c=`<${+u+1}.0.0-0`:xe(m)?c=`<${u}.${+d+1}.0-0`:S?c=`<=${u}.${d}.${m}-${S}`:t?c=`<${u}.${d}.${+m+1}-0`:c=`<=${c}`,`${s} ${c}`.trim()),"hyphenReplace"),uc=o((t,e,s)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!s.includePrerelease){for(let i=0;i<t.length;i++)if(de(t[i].semver),t[i].semver!==Ls.ANY&&t[i].semver.prerelease.length>0){let r=t[i].semver;if(r.major===e.major&&r.minor===e.minor&&r.patch===e.patch)return!0}return!1}return!0},"testSet")});var nt=D(($0,Nr)=>{"use strict";var ot=Symbol("SemVer ANY"),Rs=class t{static{o(this,"Comparator")}static get ANY(){return ot}constructor(e,s){if(s=xr(s),e instanceof t){if(e.loose===!!s.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Cs("comparator",e,s),this.options=s,this.loose=!!s.loose,this.parse(e),this.semver===ot?this.value="":this.value=this.operator+this.semver.version,Cs("comp",this)}parse(e){let s=this.options.loose?Pr[$r.COMPARATORLOOSE]:Pr[$r.COMPARATOR],i=e.match(s);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Tr(i[2],this.options.loose):this.semver=ot}toString(){return this.value}test(e){if(Cs("Comparator.test",e,this.options.loose),this.semver===ot||e===ot)return!0;if(typeof e=="string")try{e=new Tr(e,this.options)}catch{return!1}return Os(e,this.operator,this.semver,this.options)}intersects(e,s){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Dr(e.value,s).test(this.value):e.operator===""?e.value===""?!0:new Dr(this.value,s).test(e.semver):(s=xr(s),s.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!s.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Os(this.semver,"<",e.semver,s)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Os(this.semver,">",e.semver,s)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Nr.exports=Rs;var xr=xt(),{safeRe:Pr,t:$r}=Je(),Os=Es(),Cs=it(),Tr=Oe(),Dr=Ne()});var Ze=D((D0,Ir)=>{"use strict";var fc=Ne(),pc=o((t,e,s)=>{try{e=new fc(e,s)}catch{return!1}return e.test(t)},"satisfies");Ir.exports=pc});var Fr=D((I0,kr)=>{"use strict";var dc=Ne(),mc=o((t,e)=>new dc(t,e).set.map(s=>s.map(i=>i.value).join(" ").trim().split(" ")),"toComparators");kr.exports=mc});var jr=D((F0,Mr)=>{"use strict";var gc=Oe(),yc=Ne(),wc=o((t,e,s)=>{let i=null,r=null,n=null;try{n=new yc(e,s)}catch{return null}return t.forEach(l=>{n.test(l)&&(!i||r.compare(l)===-1)&&(i=l,r=new gc(i,s))}),i},"maxSatisfying");Mr.exports=wc});var _r=D((j0,Gr)=>{"use strict";var bc=Oe(),Sc=Ne(),Ec=o((t,e,s)=>{let i=null,r=null,n=null;try{n=new Sc(e,s)}catch{return null}return t.forEach(l=>{n.test(l)&&(!i||r.compare(l)===1)&&(i=l,r=new bc(i,s))}),i},"minSatisfying");Gr.exports=Ec});var qr=D((_0,Br)=>{"use strict";var xs=Oe(),vc=Ne(),Wr=rt(),Ac=o((t,e)=>{t=new vc(t,e);let s=new xs("0.0.0");if(t.test(s)||(s=new xs("0.0.0-0"),t.test(s)))return s;s=null;for(let i=0;i<t.set.length;++i){let r=t.set[i],n=null;r.forEach(l=>{let h=new xs(l.semver.version);switch(l.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!n||Wr(h,n))&&(n=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),n&&(!s||Wr(s,n))&&(s=n)}return s&&t.test(s)?s:null},"minVersion");Br.exports=Ac});var Ps=D((B0,Ur)=>{"use strict";var Lc=Ne(),Oc=o((t,e)=>{try{return new Lc(t,e).range||"*"}catch{return null}},"validRange");Ur.exports=Oc});var Gt=D((U0,Yr)=>{"use strict";var Cc=Oe(),Vr=nt(),{ANY:Rc}=Vr,xc=Ne(),Pc=Ze(),zr=rt(),Hr=It(),$c=Ft(),Tc=kt(),Dc=o((t,e,s,i)=>{t=new Cc(t,i),e=new xc(e,i);let r,n,l,h,c;switch(s){case">":r=zr,n=$c,l=Hr,h=">",c=">=";break;case"<":r=Hr,n=Tc,l=zr,h="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Pc(t,e,i))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],m=null,S=null;if(d.forEach(b=>{b.semver===Rc&&(b=new Vr(">=0.0.0")),m=m||b,S=S||b,r(b.semver,m.semver,i)?m=b:l(b.semver,S.semver,i)&&(S=b)}),m.operator===h||m.operator===c||(!S.operator||S.operator===h)&&n(t,S.semver))return!1;if(S.operator===c&&l(t,S.semver))return!1}return!0},"outside");Yr.exports=Dc});var Kr=D((H0,Xr)=>{"use strict";var Nc=Gt(),Ic=o((t,e,s)=>Nc(t,e,">",s),"gtr");Xr.exports=Ic});var Zr=D((Y0,Jr)=>{"use strict";var kc=Gt(),Fc=o((t,e,s)=>kc(t,e,"<",s),"ltr");Jr.exports=Fc});var tn=D((K0,en)=>{"use strict";var Qr=Ne(),Mc=o((t,e,s)=>(t=new Qr(t,s),e=new Qr(e,s),t.intersects(e,s)),"intersects");en.exports=Mc});var rn=D((Z0,sn)=>{"use strict";var jc=Ze(),Gc=De();sn.exports=(t,e,s)=>{let i=[],r=null,n=null,l=t.sort((d,m)=>Gc(d,m,s));for(let d of l)jc(d,e,s)?(n=d,r||(r=d)):(n&&i.push([r,n]),n=null,r=null);r&&i.push([r,null]);let h=[];for(let[d,m]of i)d===m?h.push(d):!m&&d===l[0]?h.push("*"):m?d===l[0]?h.push(`<=${m}`):h.push(`${d} - ${m}`):h.push(`>=${d}`);let c=h.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var cn=D((Q0,hn)=>{"use strict";var nn=Ne(),Ts=nt(),{ANY:$s}=Ts,at=Ze(),Ds=De(),_c=o((t,e,s={})=>{if(t===e)return!0;t=new nn(t,s),e=new nn(e,s);let i=!1;e:for(let r of t.set){for(let n of e.set){let l=Bc(r,n,s);if(i=i||l!==null,l)continue e}if(i)return!1}return!0},"subset"),Wc=[new Ts(">=0.0.0-0")],on=[new Ts(">=0.0.0")],Bc=o((t,e,s)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===$s){if(e.length===1&&e[0].semver===$s)return!0;s.includePrerelease?t=Wc:t=on}if(e.length===1&&e[0].semver===$s){if(s.includePrerelease)return!0;e=on}let i=new Set,r,n;for(let b of t)b.operator===">"||b.operator===">="?r=an(r,b,s):b.operator==="<"||b.operator==="<="?n=ln(n,b,s):i.add(b.semver);if(i.size>1)return null;let l;if(r&&n){if(l=Ds(r.semver,n.semver,s),l>0)return null;if(l===0&&(r.operator!==">="||n.operator!=="<="))return null}for(let b of i){if(r&&!at(b,String(r),s)||n&&!at(b,String(n),s))return null;for(let p of e)if(!at(b,String(p),s))return!1;return!0}let h,c,u,d,m=n&&!s.includePrerelease&&n.semver.prerelease.length?n.semver:!1,S=r&&!s.includePrerelease&&r.semver.prerelease.length?r.semver:!1;m&&m.prerelease.length===1&&n.operator==="<"&&m.prerelease[0]===0&&(m=!1);for(let b of e){if(d=d||b.operator===">"||b.operator===">=",u=u||b.operator==="<"||b.operator==="<=",r){if(S&&b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===S.major&&b.semver.minor===S.minor&&b.semver.patch===S.patch&&(S=!1),b.operator===">"||b.operator===">="){if(h=an(r,b,s),h===b&&h!==r)return!1}else if(r.operator===">="&&!at(r.semver,String(b),s))return!1}if(n){if(m&&b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===m.major&&b.semver.minor===m.minor&&b.semver.patch===m.patch&&(m=!1),b.operator==="<"||b.operator==="<="){if(c=ln(n,b,s),c===b&&c!==n)return!1}else if(n.operator==="<="&&!at(n.semver,String(b),s))return!1}if(!b.operator&&(n||r)&&l!==0)return!1}return!(r&&u&&!n&&l!==0||n&&d&&!r&&l!==0||S||m)},"simpleSubset"),an=o((t,e,s)=>{if(!t)return e;let i=Ds(t.semver,e.semver,s);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),ln=o((t,e,s)=>{if(!t)return e;let i=Ds(t.semver,e.semver,s);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");hn.exports=_c});var lt=D((ty,pn)=>{"use strict";var Ns=Je(),un=st(),qc=Oe(),fn=ds(),Uc=ze(),zc=ys(),Hc=ws(),Vc=qi(),Yc=Hi(),Xc=Yi(),Kc=Ki(),Jc=Zi(),Zc=er(),Qc=De(),eu=rr(),tu=or(),su=Nt(),iu=cr(),ru=fr(),nu=rt(),ou=It(),au=bs(),lu=Ss(),hu=kt(),cu=Ft(),uu=Es(),fu=Er(),pu=nt(),du=Ne(),mu=Ze(),gu=Fr(),yu=jr(),wu=_r(),bu=qr(),Su=Ps(),Eu=Gt(),vu=Kr(),Au=Zr(),Lu=tn(),Ou=rn(),Cu=cn();pn.exports={parse:Uc,valid:zc,clean:Hc,inc:Vc,diff:Yc,major:Xc,minor:Kc,patch:Jc,prerelease:Zc,compare:Qc,rcompare:eu,compareLoose:tu,compareBuild:su,sort:iu,rsort:ru,gt:nu,lt:ou,eq:au,neq:lu,gte:hu,lte:cu,cmp:uu,coerce:fu,Comparator:pu,Range:du,satisfies:mu,toComparators:gu,maxSatisfying:yu,minSatisfying:wu,minVersion:bu,validRange:Su,outside:Eu,gtr:vu,ltr:Au,intersects:Lu,simplifyRange:Ou,subset:Cu,SemVer:qc,re:Ns.re,src:Ns.src,tokens:Ns.t,SEMVER_SPEC_VERSION:un.SEMVER_SPEC_VERSION,RELEASE_TYPES:un.RELEASE_TYPES,compareIdentifiers:fn.compareIdentifiers,rcompareIdentifiers:fn.rcompareIdentifiers}});var Is=D(Wt=>{"use strict";var Ru=o((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"G"),xu=Ru(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tracing=t.metrics=t.channel=t.tracingChannel=void 0;var e=te("node:diagnostics_channel");Object.defineProperty(t,"tracingChannel",{enumerable:!0,get:o(function(){return e.tracingChannel},"get")}),Object.defineProperty(t,"channel",{enumerable:!0,get:o(function(){return e.channel},"get")}),t.metrics=(0,e.channel)("lru-cache:metrics"),t.tracing=(0,e.tracingChannel)("lru-cache")});Object.defineProperty(Wt,"__esModule",{value:!0});Wt.LRUCache=void 0;var ye=xu(),ht=o(()=>ye.metrics.hasSubscribers||ye.tracing.hasSubscribers,"C"),Pu=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,mn=new Set,dn=typeof process=="object"&&process?process:{},$u=o((t,e,s,i)=>{typeof dn.emitWarning=="function"?dn.emitWarning(t,e,s,i):console.error(`[${s}] ${e}: ${t}`)},"H"),Tu=o(t=>!mn.has(t),"N"),Be=o(t=>!!t&&t===Math.floor(t)&&t>0&&isFinite(t),"T"),gn=o(t=>Be(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?_t:null:null,"I"),_t=class extends Array{static{o(this,"W")}constructor(t){super(t),this.fill(0)}},Du=class ct{static{o(this,"c")}heap;length;static#e=!1;static create(e){let s=gn(e);if(!s)return[];ct.#e=!0;let i=new ct(e,s);return ct.#e=!1,i}constructor(e,s){if(!ct.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new s(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Nu=class yn{static{o(this,"c")}#e;#s;#i;#t;#n;#E;#b;#h;get perf(){return this.#h}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#u;#c;#l;#r;#g;#S;#m;#p;#R;#d;#O;#C;#y;#w;#A;#x;#o;#N;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#y,autopurgeTimers:e.#w,sizes:e.#O,keyMap:e.#c,keyList:e.#l,valList:e.#r,next:e.#g,prev:e.#S,get head(){return e.#m},get tail(){return e.#p},free:e.#R,isBackgroundFetch:o(s=>e.#f(s),"isBackgroundFetch"),backgroundFetch:o((s,i,r,n)=>e.#M(s,i,r,n),"backgroundFetch"),moveToTail:o(s=>e.#X(s),"moveToTail"),indexes:o(s=>e.#P(s),"indexes"),rindexes:o(s=>e.#$(s),"rindexes"),isStale:o(s=>e.#L(s),"isStale")}}get max(){return this.#e}get maxSize(){return this.#s}get calculatedSize(){return this.#u}get size(){return this.#a}get fetchMethod(){return this.#E}get memoMethod(){return this.#b}get dispose(){return this.#i}get onInsert(){return this.#t}get disposeAfter(){return this.#n}constructor(e){let{max:s=0,ttl:i,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:c,dispose:u,onInsert:d,disposeAfter:m,noDisposeOnSet:S,noUpdateTTL:b,maxSize:p=0,maxEntrySize:f=0,sizeCalculation:w,fetchMethod:y,memoMethod:L,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:$,allowStaleOnFetchAbort:W,ignoreFetchAbort:j,perf:T}=e;if(T!==void 0&&typeof T?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#h=T??Pu,s!==0&&!Be(s))throw new TypeError("max option must be a nonnegative integer");let F=s?gn(s):Array;if(!F)throw new Error("invalid max value: "+s);if(this.#e=s,this.#s=p,this.maxEntrySize=f||this.#s,this.sizeCalculation=w,this.sizeCalculation){if(!this.#s&&!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(L!==void 0&&typeof L!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#b=L,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#E=y,this.#x=!!y,this.#c=new Map,this.#l=Array.from({length:s}).fill(void 0),this.#r=Array.from({length:s}).fill(void 0),this.#g=new F(s),this.#S=new F(s),this.#m=0,this.#p=0,this.#R=Du.create(s),this.#a=0,this.#u=0,typeof u=="function"&&(this.#i=u),typeof d=="function"&&(this.#t=d),typeof m=="function"?(this.#n=m,this.#d=[]):(this.#n=void 0,this.#d=void 0),this.#A=!!this.#i,this.#N=!!this.#t,this.#o=!!this.#n,this.noDisposeOnSet=!!S,this.noUpdateTTL=!!b,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!$,this.allowStaleOnFetchAbort=!!W,this.ignoreFetchAbort=!!j,this.maxEntrySize!==0){if(this.#s!==0&&!Be(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!Be(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!h,this.ttlResolution=Be(r)||r===0?r:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!Be(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#I()}if(this.#e===0&&this.ttl===0&&this.#s===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#s){let H="LRU_CACHE_UNBOUNDED";Tu(H)&&(mn.add(H),$u("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",H,yn))}}getRemainingTTL(e){return this.#c.has(e)?1/0:0}#I(){let e=new _t(this.#e),s=new _t(this.#e);this.#y=e,this.#C=s;let i=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#w=i,this.#G=(h,c,u=this.#h.now())=>{s[h]=c!==0?u:0,e[h]=c,r(h,c)},this.#T=h=>{s[h]=e[h]!==0?this.#h.now():0,r(h,e[h])};let r=this.ttlAutopurge?(h,c)=>{if(i?.[h]&&(clearTimeout(i[h]),i[h]=void 0),c&&c!==0&&i){let u=setTimeout(()=>{this.#L(h)&&this.#z(this.#l[h],"expire")},c+1);u.unref&&u.unref(),i[h]=u}}:()=>{};this.#D=(h,c)=>{if(e[c]){let u=e[c],d=s[c];if(!u||!d)return;h.ttl=u,h.start=d,h.now=n||l();let m=h.now-d;h.remainingTTL=u-m}};let n=0,l=o(()=>{let h=this.#h.now();if(this.ttlResolution>0){n=h;let c=setTimeout(()=>n=0,this.ttlResolution);c.unref&&c.unref()}return h},"o");this.getRemainingTTL=h=>{let c=this.#c.get(h);if(c===void 0)return 0;let u=e[c],d=s[c];if(!u||!d)return 1/0;let m=(n||l())-d;return u-m},this.#L=h=>{let c=s[h],u=e[h];return!!u&&!!c&&(n||l())-c>u}}#T=o(()=>{},"#D");#D=o(()=>{},"#E");#G=o(()=>{},"#N");#L=o(()=>!1,"#p");#H(){let e=new _t(this.#e);this.#u=0,this.#O=e,this.#k=s=>{this.#u-=e[s],e[s]=0},this.#_=(s,i,r,n)=>{if(this.#f(i))return 0;if(!Be(r))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(r=n(i,s),!Be(r))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 r},this.#F=(s,i,r)=>{if(e[s]=i,this.#s){let n=this.#s-e[s];for(;this.#u>n;)this.#B(!0)}this.#u+=e[s],r&&(r.entrySize=i,r.totalCalculatedSize=this.#u)}}#k=o(e=>{},"#R");#F=o((e,s,i)=>{},"#I");#_=o((e,s,i,r)=>{if(i||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#k");*#P({allowStale:e=this.allowStale}={}){if(this.#a)for(let s=this.#p;this.#W(s)&&((e||!this.#L(s))&&(yield s),s!==this.#m);)s=this.#S[s]}*#$({allowStale:e=this.allowStale}={}){if(this.#a)for(let s=this.#m;this.#W(s)&&((e||!this.#L(s))&&(yield s),s!==this.#p);)s=this.#g[s]}#W(e){return e!==void 0&&this.#c.get(this.#l[e])===e}*entries(){for(let e of this.#P())this.#r[e]!==void 0&&this.#l[e]!==void 0&&!this.#f(this.#r[e])&&(yield[this.#l[e],this.#r[e]])}*rentries(){for(let e of this.#$())this.#r[e]!==void 0&&this.#l[e]!==void 0&&!this.#f(this.#r[e])&&(yield[this.#l[e],this.#r[e]])}*keys(){for(let e of this.#P()){let s=this.#l[e];s!==void 0&&!this.#f(this.#r[e])&&(yield s)}}*rkeys(){for(let e of this.#$()){let s=this.#l[e];s!==void 0&&!this.#f(this.#r[e])&&(yield s)}}*values(){for(let e of this.#P())this.#r[e]!==void 0&&!this.#f(this.#r[e])&&(yield this.#r[e])}*rvalues(){for(let e of this.#$())this.#r[e]!==void 0&&!this.#f(this.#r[e])&&(yield this.#r[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,s={}){for(let i of this.#P()){let r=this.#r[i],n=this.#f(r)?r.__staleWhileFetching:r;if(n!==void 0&&e(n,this.#l[i],this))return this.#Y(this.#l[i],s)}}forEach(e,s=this){for(let i of this.#P()){let r=this.#r[i],n=this.#f(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(s,n,this.#l[i],this)}}rforEach(e,s=this){for(let i of this.#$()){let r=this.#r[i],n=this.#f(r)?r.__staleWhileFetching:r;n!==void 0&&e.call(s,n,this.#l[i],this)}}purgeStale(){let e=!1;for(let s of this.#$({allowStale:!0}))this.#L(s)&&(this.#z(this.#l[s],"expire"),e=!0);return e}info(e){let s=this.#c.get(e);if(s===void 0)return;let i=this.#r[s],r=this.#f(i)?i.__staleWhileFetching:i;if(r===void 0)return;let n={value:r};if(this.#y&&this.#C){let l=this.#y[s],h=this.#C[s];if(l&&h){let c=l-(this.#h.now()-h);n.ttl=c,n.start=Date.now()}}return this.#O&&(n.size=this.#O[s]),n}dump(){let e=[];for(let s of this.#P({allowStale:!0})){let i=this.#l[s],r=this.#r[s],n=this.#f(r)?r.__staleWhileFetching:r;if(n===void 0||i===void 0)continue;let l={value:n};if(this.#y&&this.#C){l.ttl=this.#y[s];let h=this.#h.now()-this.#C[s];l.start=Math.floor(Date.now()-h)}this.#O&&(l.size=this.#O[s]),e.unshift([i,l])}return e}load(e){this.clear();for(let[s,i]of e){if(i.start){let r=Date.now()-i.start;i.start=this.#h.now()-r}this.#j(s,i.value,i)}}set(e,s,i={}){let{status:r=ye.metrics.hasSubscribers?{}:void 0}=i;i.status=r,r&&(r.op="set",r.key=e,s!==void 0&&(r.value=s));let n=this.#j(e,s,i);return r&&ye.metrics.hasSubscribers&&ye.metrics.publish(r),n}#j(e,s,i={}){let{ttl:r=this.ttl,start:n,noDisposeOnSet:l=this.noDisposeOnSet,sizeCalculation:h=this.sizeCalculation,status:c}=i;if(s===void 0)return c&&(c.set="deleted"),this.delete(e),this;let{noUpdateTTL:u=this.noUpdateTTL}=i;c&&!this.#f(s)&&(c.value=s);let d=this.#_(e,s,i.size||0,h,c);if(this.maxEntrySize&&d>this.maxEntrySize)return this.#z(e,"set"),c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this;let m=this.#a===0?void 0:this.#c.get(e);if(m===void 0)m=this.#a===0?this.#p:this.#R.length!==0?this.#R.pop():this.#a===this.#e?this.#B(!1):this.#a,this.#l[m]=e,this.#r[m]=s,this.#c.set(e,m),this.#g[this.#p]=m,this.#S[m]=this.#p,this.#p=m,this.#a++,this.#F(m,d,c),c&&(c.set="add"),u=!1,this.#N&&this.#t?.(s,e,"add");else{this.#X(m);let S=this.#r[m];if(s!==S){if(this.#x&&this.#f(S)){S.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:b}=S;b!==void 0&&!l&&(this.#A&&this.#i?.(b,e,"set"),this.#o&&this.#d?.push([b,e,"set"]))}else l||(this.#A&&this.#i?.(S,e,"set"),this.#o&&this.#d?.push([S,e,"set"]));if(this.#k(m),this.#F(m,d,c),this.#r[m]=s,c){c.set="replace";let b=S&&this.#f(S)?S.__staleWhileFetching:S;b!==void 0&&(c.oldValue=b)}}else c&&(c.set="update");this.#N&&this.onInsert?.(s,e,s===S?"update":"replace")}if(r!==0&&!this.#y&&this.#I(),this.#y&&(u||this.#G(m,r,n),c&&this.#D(c,m)),!l&&this.#o&&this.#d){let S=this.#d,b;for(;b=S?.shift();)this.#n?.(...b)}return this}pop(){try{for(;this.#a;){let e=this.#r[this.#m];if(this.#B(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#o&&this.#d){let e=this.#d,s;for(;s=e?.shift();)this.#n?.(...s)}}}#B(e){let s=this.#m,i=this.#l[s],r=this.#r[s];return this.#x&&this.#f(r)?r.__abortController.abort(new Error("evicted")):(this.#A||this.#o)&&(this.#A&&this.#i?.(r,i,"evict"),this.#o&&this.#d?.push([r,i,"evict"])),this.#k(s),this.#w?.[s]&&(clearTimeout(this.#w[s]),this.#w[s]=void 0),e&&(this.#l[s]=void 0,this.#r[s]=void 0,this.#R.push(s)),this.#a===1?(this.#m=this.#p=0,this.#R.length=0):this.#m=this.#g[s],this.#c.delete(i),this.#a--,s}has(e,s={}){let{status:i=ye.metrics.hasSubscribers?{}:void 0}=s;s.status=i,i&&(i.op="has",i.key=e);let r=this.#v(e,s);return ye.metrics.hasSubscribers&&ye.metrics.publish(i),r}#v(e,s={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=s,n=this.#c.get(e);if(n!==void 0){let l=this.#r[n];if(this.#f(l)&&l.__staleWhileFetching===void 0)return!1;if(this.#L(n))r&&(r.has="stale",this.#D(r,n));else return i&&this.#T(n),r&&(r.has="hit",this.#D(r,n)),!0}else r&&(r.has="miss");return!1}peek(e,s={}){let{status:i=ht()?{}:void 0}=s;i&&(i.op="peek",i.key=e),s.status=i;let r=this.#q(e,s);return ye.metrics.hasSubscribers&&ye.metrics.publish(i),r}#q(e,s){let{status:i,allowStale:r=this.allowStale}=s,n=this.#c.get(e);if(n===void 0||!r&&this.#L(n)){i&&(i.peek=n===void 0?"miss":"stale");return}let l=this.#r[n],h=this.#f(l)?l.__staleWhileFetching:l;return i&&(h!==void 0?(i.peek="hit",i.value=h):i.peek="miss"),h}#M(e,s,i,r){let n=s===void 0?void 0:this.#r[s];if(this.#f(n))return n;let l=new AbortController,{signal:h}=i;h?.addEventListener("abort",()=>l.abort(h.reason),{signal:l.signal});let c={signal:l.signal,options:i,context:r},u=o((f,w=!1)=>{let{aborted:y}=l.signal,L=i.ignoreFetchAbort&&f!==void 0,R=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&f!==void 0);if(i.status&&(y&&!w?(i.status.fetchAborted=!0,i.status.fetchError=l.signal.reason,L&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!L&&!w)return m(l.signal.reason,R);let O=b,$=this.#r[s];return($===b||$===void 0&&L&&w)&&(f===void 0?O.__staleWhileFetching!==void 0?this.#r[s]=O.__staleWhileFetching:this.#z(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.#j(e,f,c.options))),f},"a"),d=o(f=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=f),m(f,!1)),"d"),m=o((f,w)=>{let{aborted:y}=l.signal,L=y&&i.allowStaleOnFetchAbort,R=L||i.allowStaleOnFetchRejection,O=R||i.noDeleteOnFetchRejection,$=b;if(this.#r[s]===b&&(!O||!w&&$.__staleWhileFetching===void 0?this.#z(e,"fetch"):L||(this.#r[s]=$.__staleWhileFetching)),R)return i.status&&$.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),$.__staleWhileFetching;if($.__returned===$)throw f},"f"),S=o((f,w)=>{let y=this.#E?.(e,n,c);y&&y instanceof Promise&&y.then(L=>f(L===void 0?void 0:L),w),l.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(f(void 0),i.allowStaleOnFetchAbort&&(f=o(L=>u(L,!0),"w")))})},"p");i.status&&(i.status.fetchDispatched=!0);let b=new Promise(S).then(u,d),p=Object.assign(b,{__abortController:l,__staleWhileFetching:n,__returned:void 0});return s===void 0?(this.#j(e,p,{...c.options,status:void 0}),s=this.#c.get(e)):this.#r[s]=p,p}#f(e){if(!this.#x)return!1;let s=e;return!!s&&s instanceof Promise&&s.hasOwnProperty("__staleWhileFetching")&&s.__abortController instanceof AbortController}fetch(e,s={}){let i=ye.tracing.hasSubscribers,{status:r=ht()?{}:void 0}=s;s.status=r,r&&s.context&&(r.context=s.context);let n=this.#U(e,s);return r&&ht()&&i&&(r.trace=!0,ye.tracing.tracePromise(()=>n,r).catch(()=>{})),n}async#U(e,s={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:l=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:S=this.allowStaleOnFetchRejection,ignoreFetchAbort:b=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:f,forceRefresh:w=!1,status:y,signal:L}=s;if(y&&(y.op="fetch",y.key=e,w&&(y.forceRefresh=!0)),!this.#x)return y&&(y.fetch="get"),this.#Y(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:y});let R={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:l,noDisposeOnSet:h,size:c,sizeCalculation:u,noUpdateTTL:d,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:p,ignoreFetchAbort:b,status:y,signal:L},O=this.#c.get(e);if(O===void 0){y&&(y.fetch="miss");let $=this.#M(e,O,R,f);return $.__returned=$}else{let $=this.#r[O];if(this.#f($)){let F=i&&$.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",F&&(y.returnedStale=!0)),F?$.__staleWhileFetching:$.__returned=$}let W=this.#L(O);if(!w&&!W)return y&&(y.fetch="hit"),this.#X(O),r&&this.#T(O),y&&this.#D(y,O),$;let j=this.#M(e,O,R,f),T=j.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=W?"stale":"refresh",T&&W&&(y.returnedStale=!0)),T?j.__staleWhileFetching:j.__returned=j}}forceFetch(e,s={}){let i=ye.tracing.hasSubscribers,{status:r=ht()?{}:void 0}=s;s.status=r,r&&s.context&&(r.context=s.context);let n=this.#V(e,s);return r&&ht()&&i&&(r.trace=!0,ye.tracing.tracePromise(()=>n,r).catch(()=>{})),n}async#V(e,s={}){let i=await this.#U(e,s);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,s={}){let{status:i=ye.metrics.hasSubscribers?{}:void 0}=s;s.status=i,i&&(i.op="memo",i.key=e,s.context&&(i.context=s.context));let r=this.#Z(e,s);return i&&(i.value=r),ye.metrics.hasSubscribers&&ye.metrics.publish(i),r}#Z(e,s={}){let i=this.#b;if(!i)throw new Error("no memoMethod provided to constructor");let{context:r,status:n,forceRefresh:l,...h}=s;n&&l&&(n.forceRefresh=!0);let c=this.#Y(e,h),u=l||c===void 0;if(n&&(n.memo=u?"miss":"hit",u||(n.value=c)),!u)return c;let d=i(e,c,{options:h,context:r});return n&&(n.value=d),this.#j(e,d,h),d}get(e,s={}){let{status:i=ye.metrics.hasSubscribers?{}:void 0}=s;s.status=i,i&&(i.op="get",i.key=e);let r=this.#Y(e,s);return i&&(r!==void 0&&(i.value=r),ye.metrics.hasSubscribers&&ye.metrics.publish(i)),r}#Y(e,s={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:l}=s,h=this.#c.get(e);if(h===void 0){l&&(l.get="miss");return}let c=this.#r[h],u=this.#f(c);return l&&this.#D(l,h),this.#L(h)?u?(l&&(l.get="stale-fetching"),i&&c.__staleWhileFetching!==void 0?(l&&(l.returnedStale=!0),c.__staleWhileFetching):void 0):(n||this.#z(e,"expire"),l&&(l.get="stale"),i?(l&&(l.returnedStale=!0),c):void 0):(l&&(l.get=u?"fetching":"hit"),this.#X(h),r&&this.#T(h),u?c.__staleWhileFetching:c)}#K(e,s){this.#S[s]=e,this.#g[e]=s}#X(e){e!==this.#p&&(e===this.#m?this.#m=this.#g[e]:this.#K(this.#S[e],this.#g[e]),this.#K(this.#p,e),this.#p=e)}delete(e){return this.#z(e,"delete")}#z(e,s){ye.metrics.hasSubscribers&&ye.metrics.publish({op:"delete",delete:s,key:e});let i=!1;if(this.#a!==0){let r=this.#c.get(e);if(r!==void 0)if(this.#w?.[r]&&(clearTimeout(this.#w?.[r]),this.#w[r]=void 0),i=!0,this.#a===1)this.#J(s);else{this.#k(r);let n=this.#r[r];if(this.#f(n)?n.__abortController.abort(new Error("deleted")):(this.#A||this.#o)&&(this.#A&&this.#i?.(n,e,s),this.#o&&this.#d?.push([n,e,s])),this.#c.delete(e),this.#l[r]=void 0,this.#r[r]=void 0,r===this.#p)this.#p=this.#S[r];else if(r===this.#m)this.#m=this.#g[r];else{let l=this.#S[r];this.#g[l]=this.#g[r];let h=this.#g[r];this.#S[h]=this.#S[r]}this.#a--,this.#R.push(r)}}if(this.#o&&this.#d?.length){let r=this.#d,n;for(;n=r?.shift();)this.#n?.(...n)}return i}clear(){return this.#J("delete")}#J(e){for(let s of this.#$({allowStale:!0})){let i=this.#r[s];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let r=this.#l[s];this.#A&&this.#i?.(i,r,e),this.#o&&this.#d?.push([i,r,e])}}if(this.#c.clear(),this.#r.fill(void 0),this.#l.fill(void 0),this.#y&&this.#C){this.#y.fill(0),this.#C.fill(0);for(let s of this.#w??[])s!==void 0&&clearTimeout(s);this.#w?.fill(void 0)}if(this.#O&&this.#O.fill(0),this.#m=0,this.#p=0,this.#R.length=0,this.#u=0,this.#a=0,this.#o&&this.#d){let s=this.#d,i;for(;i=s?.shift();)this.#n?.(...i)}}};Wt.LRUCache=Nu});var Sn=D((ny,bn)=>{"use strict";var ae=o((...t)=>t.every(e=>e)?t.join(""):"","maybeJoin"),be=o(t=>t?encodeURIComponent(t):"","maybeEncode"),wn=o(t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),Iu={sshtemplate:o(({domain:t,user:e,project:s,committish:i})=>`git@${t}:${e}/${s}.git${ae("#",i)}`,"sshtemplate"),sshurltemplate:o(({domain:t,user:e,project:s,committish:i})=>`git+ssh://git@${t}/${e}/${s}.git${ae("#",i)}`,"sshurltemplate"),edittemplate:o(({domain:t,user:e,project:s,committish:i,editpath:r,path:n})=>`https://${t}/${e}/${s}${ae("/",r,"/",be(i||"HEAD"),"/",n)}`,"edittemplate"),browsetemplate:o(({domain:t,user:e,project:s,committish:i,treepath:r})=>`https://${t}/${e}/${s}${ae("/",r,"/",be(i))}`,"browsetemplate"),browsetreetemplate:o(({domain:t,user:e,project:s,committish:i,treepath:r,path:n,fragment:l,hashformat:h})=>`https://${t}/${e}/${s}/${r}/${be(i||"HEAD")}/${n}${ae("#",h(l||""))}`,"browsetreetemplate"),browseblobtemplate:o(({domain:t,user:e,project:s,committish:i,blobpath:r,path:n,fragment:l,hashformat:h})=>`https://${t}/${e}/${s}/${r}/${be(i||"HEAD")}/${n}${ae("#",h(l||""))}`,"browseblobtemplate"),docstemplate:o(({domain:t,user:e,project:s,treepath:i,committish:r})=>`https://${t}/${e}/${s}${ae("/",i,"/",be(r))}#readme`,"docstemplate"),httpstemplate:o(({auth:t,domain:e,user:s,project:i,committish:r})=>`git+https://${ae(t,"@")}${e}/${s}/${i}.git${ae("#",r)}`,"httpstemplate"),filetemplate:o(({domain:t,user:e,project:s,committish:i,path:r})=>`https://${t}/${e}/${s}/raw/${be(i||"HEAD")}/${r}`,"filetemplate"),shortcuttemplate:o(({type:t,user:e,project:s,committish:i})=>`${t}:${e}/${s}${ae("#",i)}`,"shortcuttemplate"),pathtemplate:o(({user:t,project:e,committish:s})=>`${t}/${e}${ae("#",s)}`,"pathtemplate"),bugstemplate:o(({domain:t,user:e,project:s})=>`https://${t}/${e}/${s}/issues`,"bugstemplate"),hashformat:wn},qe={};qe.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:o(({auth:t,user:e,project:s,committish:i,path:r})=>`https://${ae(t,"@")}raw.githubusercontent.com/${e}/${s}/${be(i||"HEAD")}/${r}`,"filetemplate"),gittemplate:o(({auth:t,domain:e,user:s,project:i,committish:r})=>`git://${ae(t,"@")}${e}/${s}/${i}.git${ae("#",r)}`,"gittemplate"),tarballtemplate:o(({domain:t,user:e,project:s,committish:i})=>`https://codeload.${t}/${e}/${s}/tar.gz/${be(i||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let[,e,s,i,r]=t.pathname.split("/",5);if(!(i&&i!=="tree")&&(i||(r=t.hash.slice(1)),s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return{user:e,project:s,committish:r}},"extract")};qe.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:o(({domain:t,user:e,project:s,committish:i,treepath:r,path:n,editpath:l})=>`https://${t}/${e}/${s}${ae("/",r,"/",be(i||"HEAD"),"/",n,l)}`,"edittemplate"),tarballtemplate:o(({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/get/${be(i||"HEAD")}.tar.gz`,"tarballtemplate"),extract:o(t=>{let[,e,s,i]=t.pathname.split("/",4);if(!["get"].includes(i)&&(s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return{user:e,project:s,committish:t.hash.slice(1)}},"extract")};qe.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:o(({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/repository/archive.tar.gz?ref=${be(i||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let s=e.split("/"),i=s.pop();i.endsWith(".git")&&(i=i.slice(0,-4));let r=s.join("/");if(!(!r||!i))return{user:r,project:i,committish:t.hash.slice(1)}},"extract")};qe.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:o(({domain:t,project:e,committish:s})=>`git@${t}:${e}.git${ae("#",s)}`,"sshtemplate"),sshurltemplate:o(({domain:t,project:e,committish:s})=>`git+ssh://git@${t}/${e}.git${ae("#",s)}`,"sshurltemplate"),edittemplate:o(({domain:t,user:e,project:s,committish:i,editpath:r})=>`https://${t}/${e}/${s}${ae("/",be(i))}/${r}`,"edittemplate"),browsetemplate:o(({domain:t,project:e,committish:s})=>`https://${t}/${e}${ae("/",be(s))}`,"browsetemplate"),browsetreetemplate:o(({domain:t,project:e,committish:s,path:i,hashformat:r})=>`https://${t}/${e}${ae("/",be(s))}${ae("#",r(i))}`,"browsetreetemplate"),browseblobtemplate:o(({domain:t,project:e,committish:s,path:i,hashformat:r})=>`https://${t}/${e}${ae("/",be(s))}${ae("#",r(i))}`,"browseblobtemplate"),docstemplate:o(({domain:t,project:e,committish:s})=>`https://${t}/${e}${ae("/",be(s))}`,"docstemplate"),httpstemplate:o(({domain:t,project:e,committish:s})=>`git+https://${t}/${e}.git${ae("#",s)}`,"httpstemplate"),filetemplate:o(({user:t,project:e,committish:s,path:i})=>`https://gist.githubusercontent.com/${t}/${e}/raw${ae("/",be(s))}/${i}`,"filetemplate"),shortcuttemplate:o(({type:t,project:e,committish:s})=>`${t}:${e}${ae("#",s)}`,"shortcuttemplate"),pathtemplate:o(({project:t,committish:e})=>`${t}${ae("#",e)}`,"pathtemplate"),bugstemplate:o(({domain:t,project:e})=>`https://${t}/${e}`,"bugstemplate"),gittemplate:o(({domain:t,project:e,committish:s})=>`git://${t}/${e}.git${ae("#",s)}`,"gittemplate"),tarballtemplate:o(({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${be(e||"HEAD")}`,"tarballtemplate"),extract:o(t=>{let[,e,s,i]=t.pathname.split("/",4);if(i!=="raw"){if(!s){if(!e)return;s=e,e=null}return s.endsWith(".git")&&(s=s.slice(0,-4)),{user:e,project:s,committish:t.hash.slice(1)}}},"extract"),hashformat:o(function(t){return t&&"file-"+wn(t)},"hashformat")};qe.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:o(({domain:t,user:e,project:s,committish:i,path:r})=>`https://${t}/${e}/${s}/blob/${be(i)||"HEAD"}/${r}`,"filetemplate"),httpstemplate:o(({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}.git${ae("#",i)}`,"httpstemplate"),tarballtemplate:o(({domain:t,user:e,project:s,committish:i})=>`https://${t}/${e}/${s}/archive/${be(i)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:o(()=>null,"bugstemplate"),extract:o(t=>{let[,e,s,i]=t.pathname.split("/",4);if(!["archive"].includes(i)&&(s&&s.endsWith(".git")&&(s=s.slice(0,-4)),!(!e||!s)))return{user:e,project:s,committish:t.hash.slice(1)}},"extract")};for(let[t,e]of Object.entries(qe))qe[t]=Object.assign({},Iu,e);bn.exports=qe});var Fs=D((ay,vn)=>{var ku=te("url"),ks=o((t,e,s)=>{let i=t.indexOf(s);return t.lastIndexOf(e,i>-1?i:1/0)},"lastIndexOfBefore"),En=o(t=>{try{return new ku.URL(t)}catch{}},"safeUrl"),Fu=o((t,e)=>{let s=t.indexOf(":"),i=t.slice(0,s+1);if(Object.prototype.hasOwnProperty.call(e,i)||t.substr(s,3)==="://")return t;let r=t.indexOf("@");return r>-1?r>s?`git+ssh://${t}`:t:`${t.slice(0,s+1)}//${t.slice(s+1)}`},"correctProtocol"),Mu=o(t=>{let e=ks(t,"@","#"),s=ks(t,":","#");return s>e&&(t=t.slice(0,s)+"/"+t.slice(s+1)),ks(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");vn.exports=(t,e)=>{let s=e?Fu(t,e):t;return En(s)||En(Mu(s))}});var Ln=D((hy,An)=>{"use strict";var ju=Fs(),Gu=o(t=>{let e=t.indexOf("#"),s=t.indexOf("/"),i=t.indexOf("/",s+1),r=t.indexOf(":"),n=/\s/.exec(t),l=t.indexOf("@"),h=!n||e>-1&&n.index>e,c=l===-1||e>-1&&l>e,u=r===-1||e>-1&&r>e,d=i===-1||e>-1&&i>e,m=s>0,S=e>-1?t[e-1]!=="/":!t.endsWith("/"),b=!t.startsWith(".");return h&&m&&S&&b&&c&&u&&d},"isGitHubShorthand");An.exports=(t,e,{gitHosts:s,protocols:i})=>{if(!t)return;let r=Gu(t)?`github:${t}`:t,n=ju(r,i);if(!n)return;let l=s.byShortcut[n.protocol],h=s.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],c=l||h;if(!c)return;let u=s[l||h],d=null;i[n.protocol]?.auth&&(n.username||n.password)&&(d=`${n.username}${n.password?":"+n.password:""}`);let m=null,S=null,b=null,p=null;try{if(l){let f=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,w=f.indexOf("@");w>-1&&(f=f.slice(w+1));let y=f.lastIndexOf("/");y>-1?(S=decodeURIComponent(f.slice(0,y)),S||(S=null),b=decodeURIComponent(f.slice(y+1))):b=decodeURIComponent(f),b.endsWith(".git")&&(b=b.slice(0,-4)),n.hash&&(m=decodeURIComponent(n.hash.slice(1))),p="shortcut"}else{if(!u.protocols.includes(n.protocol))return;let f=u.extract(n);if(!f)return;S=f.user&&decodeURIComponent(f.user),b=decodeURIComponent(f.project),m=decodeURIComponent(f.committish),p=i[n.protocol]?.name||n.protocol.slice(0,-1)}}catch(f){if(f instanceof URIError)return;throw f}return[c,S,d,b,m,p,e]}});var qt=D((uy,On)=>{"use strict";var{LRUCache:_u}=Is(),Wu=Sn(),Bu=Ln(),qu=Fs(),Ms=new _u({max:1e3});function Uu(t){try{let{protocol:e,hostname:s,pathname:i}=new URL(t);if(!s)return null;let r=/(?:git\+)http:$/.test(e)?"http:":"https:",n=i.replace(/\.git$/,"");return`${r}//${s}${n}`}catch{return null}}o(Uu,"unknownHostedUrl");var Bt=class t{static{o(this,"GitHost")}constructor(e,s,i,r,n,l,h={}){Object.assign(this,t.#e[e],{type:e,user:s,auth:i,project:r,committish:n,default:l,opts:h})}static#e={byShortcut:{},byDomain:{}};static#s={"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(e,s){t.#e[e]=s,t.#e.byDomain[s.domain]=e,t.#e.byShortcut[`${e}:`]=e,t.#s[`${e}:`]={name:e}}static fromUrl(e,s){if(typeof e!="string")return;let i=e+JSON.stringify(s||{});if(!Ms.has(i)){let r=Bu(e,s,{gitHosts:t.#e,protocols:t.#s});Ms.set(i,r?new t(...r):void 0)}return Ms.get(i)}static fromManifest(e,s={}){if(!e||typeof e!="object")return;let i=e.repository,r=i&&(typeof i=="string"?i:typeof i=="object"&&typeof i.url=="string"?i.url:null);if(!r)throw new Error("no repository");let n=r&&t.fromUrl(r.replace(/^git\+/,""),s)||null;if(n)return n;let l=Uu(r);return t.fromUrl(l,s)||l}static parseUrl(e){return qu(e)}#i(e,s){if(typeof e!="function")return null;let i={...this,...this.opts,...s};i.path||(i.path=""),i.path.startsWith("/")&&(i.path=i.path.slice(1)),i.noCommittish&&(i.committish=null);let r=e(i);return i.noGitPlus&&r.startsWith("git+")?r.slice(4):r}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#i(this.sshtemplate,e)}sshurl(e){return this.#i(this.sshurltemplate,e)}browse(e,...s){return typeof e!="string"?this.#i(this.browsetemplate,e):typeof s[0]!="string"?this.#i(this.browsetreetemplate,{...s[0],path:e}):this.#i(this.browsetreetemplate,{...s[1],fragment:s[0],path:e})}browseFile(e,...s){return typeof s[0]!="string"?this.#i(this.browseblobtemplate,{...s[0],path:e}):this.#i(this.browseblobtemplate,{...s[1],fragment:s[0],path:e})}docs(e){return this.#i(this.docstemplate,e)}bugs(e){return this.#i(this.bugstemplate,e)}https(e){return this.#i(this.httpstemplate,e)}git(e){return this.#i(this.gittemplate,e)}shortcut(e){return this.#i(this.shortcuttemplate,e)}path(e){return this.#i(this.pathtemplate,e)}tarball(e){return this.#i(this.tarballtemplate,{...e,noCommittish:!1})}file(e,s){return this.#i(this.filetemplate,{...s,path:e})}edit(e,s){return this.#i(this.edittemplate,{...s,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(Wu))Bt.addHost(t,e);On.exports=Bt});var Cn=D((py,zu)=>{zu.exports=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib","node:sea","node:sqlite","node:test","node:test/reporters"]});var xn=D((dy,Rn)=>{"use strict";var Hu=Cn(),Vu=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),Yu=["node_modules","favicon.ico"];function Xu(t){var e=[],s=[];if(t===null)return s.push("name cannot be null"),ut(e,s);if(t===void 0)return s.push("name cannot be undefined"),ut(e,s);if(typeof t!="string")return s.push("name must be a string"),ut(e,s);if(t.length||s.push("name length must be greater than zero"),t.startsWith(".")&&s.push("name cannot start with a period"),t.startsWith("-")&&s.push("name cannot start with a hyphen"),t.match(/^_/)&&s.push("name cannot start with an underscore"),t.trim()!==t&&s.push("name cannot contain leading or trailing spaces"),Yu.forEach(function(l){t.toLowerCase()===l&&s.push(l+" is not a valid package name")}),Hu.includes(t.toLowerCase())&&e.push(t+" is a core module name"),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){var i=t.match(Vu);if(i){var r=i[1],n=i[2];if(n.startsWith(".")&&s.push("name cannot start with a period"),encodeURIComponent(r)===r&&encodeURIComponent(n)===n)return ut(e,s)}s.push("name can only contain URL-friendly characters")}return ut(e,s)}o(Xu,"validate");var ut=o(function(t,e){var s={validForNewPackages:e.length===0&&t.length===0,validForOldPackages:e.length===0,warnings:t,errors:e};return s.warnings.length||delete s.warnings,s.errors.length||delete s.errors,s},"done");Rn.exports=Xu});var Ut=D((gy,Pn)=>{var Ku=Symbol("proc-log.meta");Pn.exports={META:Ku,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:o(function(...t){return process.emit("output","standard",...t)},"standard"),error:o(function(...t){return process.emit("output","error",...t)},"error"),buffer:o(function(...t){return process.emit("output","buffer",...t)},"buffer"),flush:o(function(...t){return process.emit("output","flush",...t)},"flush")},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:o(function(...t){return process.emit("log","error",...t)},"error"),notice:o(function(...t){return process.emit("log","notice",...t)},"notice"),warn:o(function(...t){return process.emit("log","warn",...t)},"warn"),info:o(function(...t){return process.emit("log","info",...t)},"info"),verbose:o(function(...t){return process.emit("log","verbose",...t)},"verbose"),http:o(function(...t){return process.emit("log","http",...t)},"http"),silly:o(function(...t){return process.emit("log","silly",...t)},"silly"),timing:o(function(...t){return process.emit("log","timing",...t)},"timing"),pause:o(function(){return process.emit("log","pause")},"pause"),resume:o(function(){return process.emit("log","resume")},"resume")},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:o(function(t,e){process.emit("time","start",t);function s(){return process.emit("time","end",t)}if(o(s,"end"),typeof e=="function"){let i=e();return i&&i.finally?i.finally(s):(s(),i)}return s},"start"),end:o(function(t){return process.emit("time","end",t)},"end")},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:o(function(...t){let e;typeof t[0]=="function"&&(e=t.shift()),process.emit("input","start",...t);function s(){return process.emit("input","end",...t)}if(o(s,"end"),typeof e=="function"){let i=e();return i&&i.finally?i.finally(s):(s(),i)}return s},"start"),end:o(function(...t){return process.emit("input","end",...t)},"end"),read:o(function(...t){let e,s,i=new Promise((r,n)=>{e=r,s=n});return process.emit("input","read",e,s,...t),i},"read")}}});var jn=D((wy,mt)=>{"use strict";var dt=process.platform==="win32",{URL:js}=te("node:url"),Qe=dt?te("node:path/win32"):te("node:path"),{homedir:Ju}=te("node:os"),Zu=qt(),$n=lt(),In=xn(),{log:Qu}=Ut(),kn=dt?/\\|[/]/:/[/]/,Fn=/^(?:git[+])?[a-z]+:/i,ef=/^[^@]+@[^:.]+\.[^:]+:.+$/i,_s=/[.](?:tgz|tar\.gz|tar)$/i,tf=/:[0-9]+(\/|$)/i,sf=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,rf=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,Tn="https://registry.npmjs.org";function ft(t,e){let s,i;if(typeof t=="object")return t instanceof pt&&(!e||e===t.where)?t:t.name&&t.rawSpec?ft.resolve(t.name,t.rawSpec,e||t.where):ft(t.raw,e||t.where);let r=t.indexOf("@",1),n=r>0?t.slice(0,r):t;return Fn.test(t)?i=t:ef.test(t)?i=`git+ssh://${t}`:!n.startsWith("@")&&(kn.test(n)||_s.test(n))?i=t:r>0?(s=n,i=t.slice(r+1)||"*"):In(t).validForOldPackages?(s=t,i="*"):i=t,Mn(s,i,e,t)}o(ft,"npa");function nf(t){return t?t.toLowerCase().startsWith("file:")?!0:dt?sf.test(t):rf.test(t):!1}o(nf,"isFileSpec");function of(t){return t?t.toLowerCase().startsWith("npm:"):!1}o(of,"isAliasSpec");function Mn(t,e,s,i){let r=new pt({raw:i,name:t,rawSpec:e,fromArgument:i!=null});if(t&&(r.name=t),s||(s=process.cwd()),nf(e))return Nn(r,s);if(of(e))return mf(r,s);let n=Zu.fromUrl(e,{noGitPlus:!0,noCommittish:!0});return n?ff(r,n):e&&Fn.test(e)?df(r):e&&(kn.test(e)||_s.test(e))?Nn(r,s):gf(r)}o(Mn,"resolve");function af(t,e=Tn){let s=ft(t);if(s.type!=="version")throw cf(s.type,s.raw);let i="pkg:npm/"+s.name.replace(/^@/,"%40")+"@"+s.rawSpec;return e!==Tn&&(i+="?repository_url="+e),i}o(af,"toPurl");function lf(t,e,s){let i=new Error(`Invalid package name "${t}" of package "${s}": ${e.errors.join("; ")}.`);return i.code="EINVALIDPACKAGENAME",i}o(lf,"invalidPackageName");function hf(t,e){let s=new Error(`Invalid tag name "${t}" of package "${e}": Tags may not have any characters that encodeURIComponent encodes.`);return s.code="EINVALIDTAGNAME",s}o(hf,"invalidTagName");function cf(t,e){let s=new Error(`Invalid type "${t}" of package "${e}": Purl can only be generated for "version" types.`);return s.code="EINVALIDPURLTYPE",s}o(cf,"invalidPurlType");var pt=class{static{o(this,"Result")}constructor(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?`${e.name}@${e.rawSpec}`:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}setName(e){let s=In(e);if(!s.validForOldPackages)throw lf(e,s,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this}toString(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let s=this.saveSpec||this.fetchSpec||this.rawSpec;return s!=null&&s!==""&&e.push(s),e.length?e.join("@"):this.raw}toJSON(){let e=Object.assign({},this);return delete e.hosted,e}};function Gs(t,e){if(!e){t.gitCommittish=null;return}for(let s of e.split("::")){if(!s.includes(":")){if(t.gitRange)throw new Error("cannot override existing semver range with a committish");if(t.gitCommittish)throw new Error("cannot override existing committish with a second committish");t.gitCommittish=s;continue}let[i,r]=s.split(":");if(i==="semver"){if(t.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(t.gitRange)throw new Error("cannot override existing semver range with a second semver range");t.gitRange=decodeURIComponent(r);continue}if(i==="path"){if(t.gitSubdir)throw new Error("cannot override existing path with a second path");t.gitSubdir=`/${r}`;continue}Qu.warn("npm-package-arg",`ignoring unknown key "${i}"`)}}o(Gs,"setGitAttrs");var uf=new Map([["\0","%00"],[" ","%09"],[`
|
|
19
|
+
`,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",dt?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function Dn(t){let e="";for(let s=0;s<t.length;s++)e=`${e}${uf.get(t[s])??t[s]}`;return e.startsWith("file:")?e:`file:${e}`}o(Dn,"pathToFileURL");function Nn(t,e){t.type=_s.test(t.rawSpec)?"file":"directory",t.where=e;let s=Dn(t.rawSpec);s.startsWith("file:/")&&(/^file:\/\/[^/]/.test(s)&&(s=`file:/${s.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(s.slice(5))&&(s=s.replace(/^file:\/{1,3}/,"file:")));let i,r;try{i=new js(s,`${Dn(Qe.resolve(e))}/`),r=new js(s)}catch(h){let c=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(c,{raw:t.rawSpec,spec:t,where:e,originalError:h})}let n=decodeURIComponent(r.pathname),l=decodeURIComponent(i.pathname);return dt&&(n=n.replace(/^\/+([a-z]:\/)/i,"$1"),l=l.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(n)?(t.saveSpec=`file:${n.substr(1)}`,l=Qe.resolve(Ju(),n.substr(3))):Qe.isAbsolute(s.slice(5))?t.saveSpec=`file:${Qe.resolve(l)}`:t.saveSpec=`file:${Qe.relative(e,l)}`,t.fetchSpec=Qe.resolve(e,l),t.saveSpec=t.saveSpec.split("\\").join("/"),t.saveSpec.startsWith("file://")&&(t.saveSpec=`file:/${t.saveSpec.slice(7)}`),t}o(Nn,"fromFile");function ff(t,e){return t.type="git",t.hosted=e,t.saveSpec=e.toString({noGitPlus:!1,noCommittish:!1}),t.fetchSpec=e.getDefaultRepresentation()==="shortcut"?null:e.toString(),Gs(t,e.committish),t}o(ff,"fromHostedGit");function pf(t,e){let s=new Error(`Unsupported URL Type "${t}": ${e}`);return s.code="EUNSUPPORTEDPROTOCOL",s}o(pf,"unsupportedURLType");function df(t){let e=t.rawSpec;if(t.saveSpec=e,e.startsWith("git+ssh:")){let i=e.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(i&&!i[1].match(tf))return t.type="git",Gs(t,i[2]),t.fetchSpec=i[1],t}else e.startsWith("git+file://")&&(e=e.replace(/\\/g,"/"));let s=new js(e);switch(s.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":t.type="git",Gs(t,s.hash.slice(1)),s.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(e)?t.fetchSpec=`git+file://${s.host.toLowerCase()}:${s.pathname}`:(s.hash="",t.fetchSpec=s.toString()),t.fetchSpec.startsWith("git+")&&(t.fetchSpec=t.fetchSpec.slice(4));break;case"http:":case"https:":t.type="remote",t.fetchSpec=t.saveSpec;break;default:throw pf(s.protocol,e)}return t}o(df,"fromURL");function mf(t,e){let s=ft(t.rawSpec.substr(4),e);if(s.type==="alias")throw new Error("nested aliases not supported");if(!s.registry)throw new Error("aliases only work for registry deps");if(!s.name)throw new Error("aliases must have a name");return t.subSpec=s,t.registry=!0,t.type="alias",t.saveSpec=null,t.fetchSpec=null,t}o(mf,"fromAlias");function gf(t){t.registry=!0;let e=t.rawSpec.trim();t.saveSpec=null,t.fetchSpec=e;let s=$n.valid(e,!0),i=$n.validRange(e,!0);if(s)t.type="version";else if(i)t.type="range";else{if(encodeURIComponent(e)!==e)throw hf(e,t.raw);t.type="tag"}return t}o(gf,"fromRegistry");mt.exports=ft;mt.exports.resolve=Mn;mt.exports.toPurl=af;mt.exports.Result=pt});var wf=D(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.walkUp=void 0;var Gn=te("path"),yf=o(function*(t){for(t=(0,Gn.resolve)(t);t;){yield t;let e=(0,Gn.dirname)(t);if(e===t)break;t=e}},"walkUp");zt.walkUp=yf});var Bs=D((vy,qn)=>{"use strict";var bf=Symbol.for("indent"),Sf=Symbol.for("newline"),Ef=`
|
|
20
|
+
`,vf=" ",Af=/^\uFEFF/,Lf=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,Of=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,_n=/^Unexpected token '?(.)'?(,)? /i,Cf=o(t=>{let e=t.charCodeAt(0).toString(16).toUpperCase();return`0x${e.length%2?"0":""}${e}`},"hexify"),Wn=o(t=>String(t).replace(Af,""),"stripBOM"),Ws=o((t,e,s=0)=>({message:`${t} while parsing ${e}`,position:s}),"makeParsedError"),Rf=o((t,e,s=20)=>{let i=t.message;if(!e)return Ws(i,"empty string");let r=i.match(_n),n=i.match(/ position\s+(\d+)/i);r&&(i=i.replace(_n,`Unexpected token ${JSON.stringify(r[1])} (${Cf(r[1])})$2 `));let l;if(n?l=+n[1]:i.match(/^Unexpected end of JSON.*/i)&&(l=e.length-1),l==null)return Ws(i,`'${e.slice(0,s*2)}'`);let h=l<=s?0:l-s,c=l+s>=e.length?e.length:l+s,u=`${h?"...":""}${e.slice(h,c)}${c===e.length?"":"..."}`;return Ws(i,`${e===u?"":"near "}${JSON.stringify(u)}`,l)},"parseError"),Ht=class extends SyntaxError{static{o(this,"JSONParseError")}constructor(e,s,i,r){let n=Rf(e,s,i);super(n.message),Object.assign(this,n),this.code="EJSONPARSE",this.systemError=e,Error.captureStackTrace(this,r||this.constructor)}get name(){return this.constructor.name}set name(e){}get[Symbol.toStringTag](){return this.constructor.name}},Bn=o((t,e)=>{let s=JSON.parse(t,e);if(s&&typeof s=="object"){let i=t.match(Of)||t.match(Lf)||[null,"",""];s[Sf]=i[1]??Ef,s[bf]=i[2]??vf}return s},"parseJson"),Vt=o((t,e,s)=>{let i=Wn(t);try{return Bn(i,e)}catch(r){if(typeof t!="string"&&!Buffer.isBuffer(t)){let n=Array.isArray(t)&&t.length===0?"an empty array":String(t);throw Object.assign(new TypeError(`Cannot parse ${n}`),{code:"EJSONPARSE",systemError:r})}throw new Ht(r,i,s,Vt)}},"parseJsonError");qn.exports=Vt;Vt.JSONParseError=Ht;Vt.noExceptions=(t,e)=>{try{return Bn(Wn(t),e)}catch{}}});var Hn=D((Ly,zn)=>{var qs=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),xf=o(t=>{for(let e of qs)t&&t[e]&&(t[e]=Object.keys(t[e]).sort((s,i)=>s.localeCompare(i,"en")).reduce((s,i)=>(s[i]=t[e][i],s),{}));return t},"orderDeps"),Un=o(({content:t,originalContent:e})=>{let s=xf({...t});if(s.dependencies&&s.optionalDependencies)for(let h of Object.keys(s.optionalDependencies))delete s.dependencies[h];let i={...e};for(let h of qs)s[h]&&(i[h]=s[h]),s[h]&&typeof s=="object"&&Object.keys(s[h]).length===0&&delete i[h];let{dependencies:r,peerDependencies:n}=e||{},{peerDependencies:l}=i;if(r&&n&&l)for(let h of Object.keys(n))r[h]!==void 0&&l[h]!==void 0&&(i.dependencies=i.dependencies||{},i.dependencies[h]=l[h]);return i},"updateDependencies");Un.knownKeys=qs;zn.exports=Un});var Yn=D((Cy,Vn)=>{var Pf=o(({content:t,originalContent:e={}})=>{let s=t.scripts;if(!s)return e;if(o(()=>Object.entries(s).some(([r,n])=>typeof r!="string"||typeof n!="string"),"hasInvalidScripts")())throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...e,scripts:{...s}}},"updateScripts");Vn.exports=Pf});var Kn=D((xy,Xn)=>{var $f=o(({content:t,originalContent:e={}})=>{let s=t.workspaces;if(!s)return e;let i=o(()=>s.some(r=>typeof r!="string"),"hasInvalidWorkspaces");if(!s.length||i())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...e,workspaces:[...s]}},"updateWorkspaces");Xn.exports=$f});var Ys=D(ie=>{"use strict";var Ae=o((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"R"),Tf=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=o((r,n,l)=>{let h=r instanceof RegExp?s(r,l):r,c=n instanceof RegExp?s(n,l):n,u=h!==null&&c!=null&&(0,t.range)(h,c,l);return u&&{start:u[0],end:u[1],pre:l.slice(0,u[0]),body:l.slice(u[0]+h.length,u[1]),post:l.slice(u[1]+c.length)}},"Gs");t.balanced=e;var s=o((r,n)=>{let l=n.match(r);return l?l[0]:null},"Ie"),i=o((r,n,l)=>{let h,c,u,d,m,S=l.indexOf(r),b=l.indexOf(n,S+1),p=S;if(S>=0&&b>0){if(r===n)return[S,b];for(h=[],u=l.length;p>=0&&!m;){if(p===S)h.push(p),S=l.indexOf(r,p+1);else if(h.length===1){let f=h.pop();f!==void 0&&(m=[f,b])}else c=h.pop(),c!==void 0&&c<u&&(u=c,d=b),b=l.indexOf(n,p+1);p=S<b&&S>=0?S:b}h.length&&d!==void 0&&(m=[u,d])}return m},"zs");t.range=i}),Df=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=$;var e=Tf(),s="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0",h=new RegExp(s,"g"),c=new RegExp(i,"g"),u=new RegExp(r,"g"),d=new RegExp(n,"g"),m=new RegExp(l,"g"),S=/\\\\/g,b=/\\{/g,p=/\\}/g,f=/\\,/g,w=/\\./g;t.EXPANSION_MAX=1e5;function y(M){return isNaN(M)?M.charCodeAt(0):parseInt(M,10)}o(y,"ce");function L(M){return M.replace(S,s).replace(b,i).replace(p,r).replace(f,n).replace(w,l)}o(L,"Qs");function R(M){return M.replace(h,"\\").replace(c,"{").replace(u,"}").replace(d,",").replace(m,".")}o(R,"ti");function O(M){if(!M)return[""];let I=[],B=(0,e.balanced)("{","}",M);if(!B)return M.split(",");let{pre:_,body:X,post:oe}=B,Z=_.split(",");Z[Z.length-1]+="{"+X+"}";let V=O(oe);return oe.length&&(Z[Z.length-1]+=V.shift(),Z.push.apply(Z,V)),I.push.apply(I,Z),I}o(O,"Ve");function $(M,I={}){if(!M)return[];let{max:B=t.EXPANSION_MAX}=I;return M.slice(0,2)==="{}"&&(M="\\{\\}"+M.slice(2)),H(L(M),B,!0).map(R)}o($,"ei");function W(M){return"{"+M+"}"}o(W,"si");function j(M){return/^-?0\d/.test(M)}o(j,"ii");function T(M,I){return M<=I}o(T,"ri");function F(M,I){return M>=I}o(F,"ni");function H(M,I,B){let _=[],X=(0,e.balanced)("{","}",M);if(!X)return[M];let oe=X.pre,Z=X.post.length?H(X.post,I,!1):[""];if(/\$$/.test(X.pre))for(let V=0;V<Z.length&&V<I;V++){let fe=oe+"{"+X.body+"}"+Z[V];_.push(fe)}else{let V=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(X.body),fe=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(X.body),he=V||fe,le=X.body.indexOf(",")>=0;if(!he&&!le)return X.post.match(/,(?!,).*\}/)?(M=X.pre+"{"+X.body+r+X.post,H(M,I,!0)):[M];let J;if(he)J=X.body.split(/\.\./);else if(J=O(X.body),J.length===1&&J[0]!==void 0&&(J=H(J[0],I,!1).map(W),J.length===1))return Z.map(ce=>X.pre+J[0]+ce);let ee;if(he&&J[0]!==void 0&&J[1]!==void 0){let ce=y(J[0]),Se=y(J[1]),ke=Math.max(J[0].length,J[1].length),ge=J.length===3&&J[2]!==void 0?Math.abs(y(J[2])):1,Fe=T;Se<ce&&(ge*=-1,Fe=F);let v=J.some(j);ee=[];for(let A=ce;Fe(A,Se);A+=ge){let C;if(fe)C=String.fromCharCode(A),C==="\\"&&(C="");else if(C=String(A),v){let P=ke-C.length;if(P>0){let k=new Array(P+1).join("0");A<0?C="-"+k+C.slice(1):C=k+C}}ee.push(C)}}else{ee=[];for(let ce=0;ce<J.length;ce++)ee.push.apply(ee,H(J[ce],I,!1))}for(let ce=0;ce<ee.length;ce++)for(let Se=0;Se<Z.length&&_.length<I;Se++){let ke=oe+ee[ce]+Z[Se];(!B||he||ke)&&_.push(ke)}}return _}o(H,"ht")}),Nf=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;var e=1024*64,s=o(i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>e)throw new TypeError("pattern is too long")},"oi");t.assertValidPattern=s}),If=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;var e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},s=o(l=>l.replace(/[[\]\\-]/g,"\\$&"),"ot"),i=o(l=>l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"li"),r=o(l=>l.join(""),"Ye"),n=o((l,h)=>{let c=h;if(l.charAt(c)!=="[")throw new Error("not in a brace expression");let u=[],d=[],m=c+1,S=!1,b=!1,p=!1,f=!1,w=c,y="";e:for(;m<l.length;){let O=l.charAt(m);if((O==="!"||O==="^")&&m===c+1){f=!0,m++;continue}if(O==="]"&&S&&!p){w=m+1;break}if(S=!0,O==="\\"&&!p){p=!0,m++;continue}if(O==="["&&!p){for(let[$,[W,j,T]]of Object.entries(e))if(l.startsWith($,m)){if(y)return["$.",!1,l.length-c,!0];m+=$.length,T?d.push(W):u.push(W),b=b||j;continue e}}if(p=!1,y){O>y?u.push(s(y)+"-"+s(O)):O===y&&u.push(s(O)),y="",m++;continue}if(l.startsWith("-]",m+1)){u.push(s(O+"-")),m+=2;continue}if(l.startsWith("-",m+1)){y=O,m+=2;continue}u.push(s(O)),m++}if(w<m)return["",!1,0,!1];if(!u.length&&!d.length)return["$.",!1,l.length-c,!0];if(d.length===0&&u.length===1&&/^\\?.$/.test(u[0])&&!f){let O=u[0].length===2?u[0].slice(-1):u[0];return[i(O),!1,w-c,!1]}let L="["+(f?"^":"")+r(u)+"]",R="["+(f?"":"^")+r(d)+"]";return[u.length&&d.length?"("+L+"|"+R+")":u.length?L:R,b,w-c,!0]},"ci");t.parseClass=n}),Us=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0;var e=o((s,{windowsPathsNoEscape:i=!1,magicalBraces:r=!0}={})=>r?i?s.replace(/\[([^\/\\])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):i?s.replace(/\[([^\/\\{}])\]/g,"$1"):s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),"ui");t.unescape=e}),Jn=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;var e=If(),s=Us(),i=new Set(["!","?","+","*","@"]),r=o(f=>i.has(f),"Ze"),n="(?!(?:^|/)\\.\\.?(?:$|/))",l="(?!\\.)",h=new Set(["[","."]),c=new Set(["..","."]),u=new Set("().*{}+?[]^$\\!"),d=o(f=>f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"bi"),m="[^/]",S=m+"*?",b=m+"+?",p=class Te{static{o(this,"n")}type;#e;#s;#i=!1;#t=[];#n;#E;#b;#h=!1;#a;#u;#c=!1;constructor(w,y,L={}){this.type=w,w&&(this.#s=!0),this.#n=y,this.#e=this.#n?this.#n.#e:this,this.#a=this.#e===this?L:this.#e.#a,this.#b=this.#e===this?[]:this.#e.#b,w==="!"&&!this.#e.#h&&this.#b.push(this),this.#E=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#s!==void 0)return this.#s;for(let w of this.#t)if(typeof w!="string"&&(w.type||w.hasMagic))return this.#s=!0;return this.#s}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#t.map(w=>String(w)).join("|")+")":this.#u=this.#t.map(w=>String(w)).join("")}#l(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let w;for(;w=this.#b.pop();){if(w.type!=="!")continue;let y=w,L=y.#n;for(;L;){for(let R=y.#E+1;!L.type&&R<L.#t.length;R++)for(let O of w.#t){if(typeof O=="string")throw new Error("string part in extglob AST??");O.copyIn(L.#t[R])}y=L,L=y.#n}}return this}push(...w){for(let y of w)if(y!==""){if(typeof y!="string"&&!(y instanceof Te&&y.#n===this))throw new Error("invalid part: "+y);this.#t.push(y)}}toJSON(){let w=this.type===null?this.#t.slice().map(y=>typeof y=="string"?y:y.toJSON()):[this.type,...this.#t.map(y=>y.toJSON())];return this.isStart()&&!this.type&&w.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#n?.type==="!")&&w.push({}),w}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#E===0)return!0;let w=this.#n;for(let y=0;y<this.#E;y++){let L=w.#t[y];if(!(L instanceof Te&&L.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let w=this.#n?this.#n.#t.length:0;return this.#E===w-1}copyIn(w){typeof w=="string"?this.push(w):this.push(w.clone(this))}clone(w){let y=new Te(this.type,w);for(let L of this.#t)y.copyIn(L);return y}static#r(w,y,L,R){let O=!1,$=!1,W=-1,j=!1;if(y.type===null){let I=L,B="";for(;I<w.length;){let _=w.charAt(I++);if(O||_==="\\"){O=!O,B+=_;continue}if($){I===W+1?(_==="^"||_==="!")&&(j=!0):_==="]"&&!(I===W+2&&j)&&($=!1),B+=_;continue}else if(_==="["){$=!0,W=I,j=!1,B+=_;continue}if(!R.noext&&r(_)&&w.charAt(I)==="("){y.push(B),B="";let X=new Te(_,y);I=Te.#r(w,X,I,R),y.push(X);continue}B+=_}return y.push(B),I}let T=L+1,F=new Te(null,y),H=[],M="";for(;T<w.length;){let I=w.charAt(T++);if(O||I==="\\"){O=!O,M+=I;continue}if($){T===W+1?(I==="^"||I==="!")&&(j=!0):I==="]"&&!(T===W+2&&j)&&($=!1),M+=I;continue}else if(I==="["){$=!0,W=T,j=!1,M+=I;continue}if(r(I)&&w.charAt(T)==="("){F.push(M),M="";let B=new Te(I,F);F.push(B),T=Te.#r(w,B,T,R);continue}if(I==="|"){F.push(M),M="",H.push(F),F=new Te(null,y);continue}if(I===")")return M===""&&y.#t.length===0&&(y.#c=!0),F.push(M),M="",y.push(...H,F),T;M+=I}return y.type=null,y.#s=void 0,y.#t=[w.substring(L-1)],T}static fromGlob(w,y={}){let L=new Te(null,void 0,y);return Te.#r(w,L,0,y),L}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let w=this.toString(),[y,L,R,O]=this.toRegExpSource();if(!(R||this.#s||this.#a.nocase&&!this.#a.nocaseMagicOnly&&w.toUpperCase()!==w.toLowerCase()))return L;let $=(this.#a.nocase?"i":"")+(O?"u":"");return Object.assign(new RegExp(`^${y}$`,$),{_src:y,_glob:w})}get options(){return this.#a}toRegExpSource(w){let y=w??!!this.#a.dot;if(this.#e===this&&this.#l(),!this.type){let j=this.isStart()&&this.isEnd()&&!this.#t.some(M=>typeof M!="string"),T=this.#t.map(M=>{let[I,B,_,X]=typeof M=="string"?Te.#S(M,this.#s,j):M.toRegExpSource(w);return this.#s=this.#s||_,this.#i=this.#i||X,I}).join(""),F="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&c.has(this.#t[0]))){let M=h,I=y&&M.has(T.charAt(0))||T.startsWith("\\.")&&M.has(T.charAt(2))||T.startsWith("\\.\\.")&&M.has(T.charAt(4)),B=!y&&!w&&M.has(T.charAt(0));F=I?n:B?l:""}let H="";return this.isEnd()&&this.#e.#h&&this.#n?.type==="!"&&(H="(?:$|\\/)"),[F+T+H,(0,s.unescape)(T),this.#s=!!this.#s,this.#i]}let L=this.type==="*"||this.type==="+",R=this.type==="!"?"(?:(?!(?:":"(?:",O=this.#g(y);if(this.isStart()&&this.isEnd()&&!O&&this.type!=="!"){let j=this.toString();return this.#t=[j],this.type=null,this.#s=void 0,[j,(0,s.unescape)(this.toString()),!1,!1]}let $=!L||w||y||!l?"":this.#g(!0);$===O&&($=""),$&&(O=`(?:${O})(?:${$})*?`);let W="";if(this.type==="!"&&this.#c)W=(this.isStart()&&!y?l:"")+b;else{let j=this.type==="!"?"))"+(this.isStart()&&!y&&!w?l:"")+S+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&$?")":this.type==="*"&&$?")?":`)${this.type}`;W=R+O+j}return[W,(0,s.unescape)(O),this.#s=!!this.#s,this.#i]}#g(w){return this.#t.map(y=>{if(typeof y=="string")throw new Error("string type in extglob ast??");let[L,R,O,$]=y.toRegExpSource(w);return this.#i=this.#i||$,L}).filter(y=>!(this.isStart()&&this.isEnd())||!!y).join("|")}static#S(w,y,L=!1){let R=!1,O="",$=!1,W=!1;for(let j=0;j<w.length;j++){let T=w.charAt(j);if(R){R=!1,O+=(u.has(T)?"\\":"")+T;continue}if(T==="*"){if(W)continue;W=!0,O+=L&&/^[*]+$/.test(w)?b:S,y=!0;continue}else W=!1;if(T==="\\"){j===w.length-1?O+="\\\\":R=!0;continue}if(T==="["){let[F,H,M,I]=(0,e.parseClass)(w,j);if(M){O+=F,$=$||H,j+=M-1,y=y||I;continue}}if(T==="?"){O+=m,y=!0;continue}O+=d(T)}return[O,(0,s.unescape)(w),!!y,$]}};t.AST=p}),Zn=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0;var e=o((s,{windowsPathsNoEscape:i=!1,magicalBraces:r=!1}={})=>r?i?s.replace(/[?*()[\]{}]/g,"[$&]"):s.replace(/[?*()[\]\\{}]/g,"\\$&"):i?s.replace(/[?*()[\]]/g,"[$&]"):s.replace(/[?*()[\]\\]/g,"\\$&"),"yi");t.escape=e}),He=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;var e=Df(),s=Nf(),i=Jn(),r=Zn(),n=Us(),l=o((v,A,C={})=>((0,s.assertValidPattern)(A),!C.nocomment&&A.charAt(0)==="#"?!1:new Se(A,C).match(v)),"_i");t.minimatch=l;var h=/^\*+([^+@!?\*\[\(]*)$/,c=o(v=>A=>!A.startsWith(".")&&A.endsWith(v),"xi"),u=o(v=>A=>A.endsWith(v),"Ti"),d=o(v=>(v=v.toLowerCase(),A=>!A.startsWith(".")&&A.toLowerCase().endsWith(v)),"Ci"),m=o(v=>(v=v.toLowerCase(),A=>A.toLowerCase().endsWith(v)),"Ri"),S=/^\*+\.\*+$/,b=o(v=>!v.startsWith(".")&&v.includes("."),"ki"),p=o(v=>v!=="."&&v!==".."&&v.includes("."),"Mi"),f=/^\.\*+$/,w=o(v=>v!=="."&&v!==".."&&v.startsWith("."),"Di"),y=/^\*+$/,L=o(v=>v.length!==0&&!v.startsWith("."),"ji"),R=o(v=>v.length!==0&&v!=="."&&v!=="..","Ni"),O=/^\?+([^+@!?\*\[\(]*)?$/,$=o(([v,A=""])=>{let C=F([v]);return A?(A=A.toLowerCase(),P=>C(P)&&P.toLowerCase().endsWith(A)):C},"Wi"),W=o(([v,A=""])=>{let C=H([v]);return A?(A=A.toLowerCase(),P=>C(P)&&P.toLowerCase().endsWith(A)):C},"Bi"),j=o(([v,A=""])=>{let C=H([v]);return A?P=>C(P)&&P.endsWith(A):C},"Ii"),T=o(([v,A=""])=>{let C=F([v]);return A?P=>C(P)&&P.endsWith(A):C},"Gi"),F=o(([v])=>{let A=v.length;return C=>C.length===A&&!C.startsWith(".")},"rs"),H=o(([v])=>{let A=v.length;return C=>C.length===A&&C!=="."&&C!==".."},"ns"),M=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",I={win32:{sep:"\\"},posix:{sep:"/"}};t.sep=M==="win32"?I.win32.sep:I.posix.sep,t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;var B="[^/]",_=B+"*?",X="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",oe="(?:(?!(?:\\/|^)\\.).)*?",Z=o((v,A={})=>C=>(0,t.minimatch)(C,v,A),"Hi");t.filter=Z,t.minimatch.filter=t.filter;var V=o((v,A={})=>Object.assign({},v,A),"F"),fe=o(v=>{if(!v||typeof v!="object"||!Object.keys(v).length)return t.minimatch;let A=t.minimatch;return Object.assign((C,P,k={})=>A(C,P,V(v,k)),{Minimatch:class extends A.Minimatch{static{o(this,"Minimatch")}constructor(C,P={}){super(C,V(v,P))}static defaults(C){return A.defaults(V(v,C)).Minimatch}},AST:class extends A.AST{static{o(this,"AST")}constructor(C,P,k={}){super(C,P,V(v,k))}static fromGlob(C,P={}){return A.AST.fromGlob(C,V(v,P))}},unescape:o((C,P={})=>A.unescape(C,V(v,P)),"unescape"),escape:o((C,P={})=>A.escape(C,V(v,P)),"escape"),filter:o((C,P={})=>A.filter(C,V(v,P)),"filter"),defaults:o(C=>A.defaults(V(v,C)),"defaults"),makeRe:o((C,P={})=>A.makeRe(C,V(v,P)),"makeRe"),braceExpand:o((C,P={})=>A.braceExpand(C,V(v,P)),"braceExpand"),match:o((C,P,k={})=>A.match(C,P,V(v,k)),"match"),sep:A.sep,GLOBSTAR:t.GLOBSTAR})},"Vi");t.defaults=fe,t.minimatch.defaults=t.defaults;var he=o((v,A={})=>((0,s.assertValidPattern)(v),A.nobrace||!/\{(?:(?!\{).)*\}/.test(v)?[v]:(0,e.expand)(v,{max:A.braceExpandMax})),"Ki");t.braceExpand=he,t.minimatch.braceExpand=t.braceExpand;var le=o((v,A={})=>new Se(v,A).makeRe(),"Xi");t.makeRe=le,t.minimatch.makeRe=t.makeRe;var J=o((v,A,C={})=>{let P=new Se(A,C);return v=v.filter(k=>P.match(k)),P.options.nonull&&!v.length&&v.push(A),v},"Yi");t.match=J,t.minimatch.match=t.match;var ee=/[?*]|[+@!]\(.*?\)|\[|\]/,ce=o(v=>v.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"Ji"),Se=class{static{o(this,"J")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(v,A={}){(0,s.assertValidPattern)(v),A=A||{},this.options=A,this.pattern=v,this.platform=A.platform||M,this.isWindows=this.platform==="win32";let C="allowWindowsEscape";this.windowsPathsNoEscape=!!A.windowsPathsNoEscape||A[C]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!A.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!A.nonegate,this.comment=!1,this.empty=!1,this.partial=!!A.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=A.windowsNoMagicRoot!==void 0?A.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let v of this.set)for(let A of v)if(typeof A!="string")return!0;return!1}debug(...v){}make(){let v=this.pattern,A=this.options;if(!A.nocomment&&v.charAt(0)==="#"){this.comment=!0;return}if(!v){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],A.debug&&(this.debug=(...k)=>console.error(...k)),this.debug(this.pattern,this.globSet);let C=this.globSet.map(k=>this.slashSplit(k));this.globParts=this.preprocess(C),this.debug(this.pattern,this.globParts);let P=this.globParts.map((k,a,g)=>{if(this.isWindows&&this.windowsNoMagicRoot){let E=k[0]===""&&k[1]===""&&(k[2]==="?"||!ee.test(k[2]))&&!ee.test(k[3]),x=/^[a-z]:/i.test(k[0]);if(E)return[...k.slice(0,4),...k.slice(4).map(N=>this.parse(N))];if(x)return[k[0],...k.slice(1).map(N=>this.parse(N))]}return k.map(E=>this.parse(E))});if(this.debug(this.pattern,P),this.set=P.filter(k=>k.indexOf(!1)===-1),this.isWindows)for(let k=0;k<this.set.length;k++){let a=this.set[k];a[0]===""&&a[1]===""&&this.globParts[k][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(v){if(this.options.noglobstar)for(let C=0;C<v.length;C++)for(let P=0;P<v[C].length;P++)v[C][P]==="**"&&(v[C][P]="*");let{optimizationLevel:A=1}=this.options;return A>=2?(v=this.firstPhasePreProcess(v),v=this.secondPhasePreProcess(v)):A>=1?v=this.levelOneOptimize(v):v=this.adjascentGlobstarOptimize(v),v}adjascentGlobstarOptimize(v){return v.map(A=>{let C=-1;for(;(C=A.indexOf("**",C+1))!==-1;){let P=C;for(;A[P+1]==="**";)P++;P!==C&&A.splice(C,P-C)}return A})}levelOneOptimize(v){return v.map(A=>(A=A.reduce((C,P)=>{let k=C[C.length-1];return P==="**"&&k==="**"?C:P===".."&&k&&k!==".."&&k!=="."&&k!=="**"?(C.pop(),C):(C.push(P),C)},[]),A.length===0?[""]:A))}levelTwoFileOptimize(v){Array.isArray(v)||(v=this.slashSplit(v));let A=!1;do{if(A=!1,!this.preserveMultipleSlashes){for(let P=1;P<v.length-1;P++){let k=v[P];P===1&&k===""&&v[0]===""||(k==="."||k==="")&&(A=!0,v.splice(P,1),P--)}v[0]==="."&&v.length===2&&(v[1]==="."||v[1]==="")&&(A=!0,v.pop())}let C=0;for(;(C=v.indexOf("..",C+1))!==-1;){let P=v[C-1];P&&P!=="."&&P!==".."&&P!=="**"&&(A=!0,v.splice(C-1,2),C-=2)}}while(A);return v.length===0?[""]:v}firstPhasePreProcess(v){let A=!1;do{A=!1;for(let C of v){let P=-1;for(;(P=C.indexOf("**",P+1))!==-1;){let a=P;for(;C[a+1]==="**";)a++;a>P&&C.splice(P+1,a-P);let g=C[P+1],E=C[P+2],x=C[P+3];if(g!==".."||!E||E==="."||E===".."||!x||x==="."||x==="..")continue;A=!0,C.splice(P,1);let N=C.slice(0);N[P]="**",v.push(N),P--}if(!this.preserveMultipleSlashes){for(let a=1;a<C.length-1;a++){let g=C[a];a===1&&g===""&&C[0]===""||(g==="."||g==="")&&(A=!0,C.splice(a,1),a--)}C[0]==="."&&C.length===2&&(C[1]==="."||C[1]==="")&&(A=!0,C.pop())}let k=0;for(;(k=C.indexOf("..",k+1))!==-1;){let a=C[k-1];if(a&&a!=="."&&a!==".."&&a!=="**"){A=!0;let g=k===1&&C[k+1]==="**"?["."]:[];C.splice(k-1,2,...g),C.length===0&&C.push(""),k-=2}}}}while(A);return v}secondPhasePreProcess(v){for(let A=0;A<v.length-1;A++)for(let C=A+1;C<v.length;C++){let P=this.partsMatch(v[A],v[C],!this.preserveMultipleSlashes);if(P){v[A]=[],v[C]=P;break}}return v.filter(A=>A.length)}partsMatch(v,A,C=!1){let P=0,k=0,a=[],g="";for(;P<v.length&&k<A.length;)if(v[P]===A[k])a.push(g==="b"?A[k]:v[P]),P++,k++;else if(C&&v[P]==="**"&&A[k]===v[P+1])a.push(v[P]),P++;else if(C&&A[k]==="**"&&v[P]===A[k+1])a.push(A[k]),k++;else if(v[P]==="*"&&A[k]&&(this.options.dot||!A[k].startsWith("."))&&A[k]!=="**"){if(g==="b")return!1;g="a",a.push(v[P]),P++,k++}else if(A[k]==="*"&&v[P]&&(this.options.dot||!v[P].startsWith("."))&&v[P]!=="**"){if(g==="a")return!1;g="b",a.push(A[k]),P++,k++}else return!1;return v.length===A.length&&a}parseNegate(){if(this.nonegate)return;let v=this.pattern,A=!1,C=0;for(let P=0;P<v.length&&v.charAt(P)==="!";P++)A=!A,C++;C&&(this.pattern=v.slice(C)),this.negate=A}matchOne(v,A,C=!1){let P=this.options;if(this.isWindows){let se=typeof v[0]=="string"&&/^[a-z]:$/i.test(v[0]),ne=!se&&v[0]===""&&v[1]===""&&v[2]==="?"&&/^[a-z]:$/i.test(v[3]),ue=typeof A[0]=="string"&&/^[a-z]:$/i.test(A[0]),we=!ue&&A[0]===""&&A[1]===""&&A[2]==="?"&&typeof A[3]=="string"&&/^[a-z]:$/i.test(A[3]),Ee=ne?3:se?0:void 0,pe=we?3:ue?0:void 0;if(typeof Ee=="number"&&typeof pe=="number"){let[ve,Le]=[v[Ee],A[pe]];ve.toLowerCase()===Le.toLowerCase()&&(A[pe]=ve,pe>Ee?A=A.slice(pe):Ee>pe&&(v=v.slice(Ee)))}}let{optimizationLevel:k=1}=this.options;k>=2&&(v=this.levelTwoFileOptimize(v)),this.debug("matchOne",this,{file:v,pattern:A}),this.debug("matchOne",v.length,A.length);for(var a=0,g=0,E=v.length,x=A.length;a<E&&g<x;a++,g++){this.debug("matchOne loop");var N=A[g],Y=v[a];if(this.debug(A,N,Y),N===!1)return!1;if(N===t.GLOBSTAR){this.debug("GLOBSTAR",[A,N,Y]);var G=a,K=g+1;if(K===x){for(this.debug("** at the end");a<E;a++)if(v[a]==="."||v[a]===".."||!P.dot&&v[a].charAt(0)===".")return!1;return!0}for(;G<E;){var re=v[G];if(this.debug(`
|
|
21
|
+
globstar while`,v,G,A,K,re),this.matchOne(v.slice(G),A.slice(K),C))return this.debug("globstar found match!",G,E,re),!0;if(re==="."||re===".."||!P.dot&&re.charAt(0)==="."){this.debug("dot detected!",v,G,A,K);break}this.debug("globstar swallow a segment, and continue"),G++}return!!(C&&(this.debug(`
|
|
22
|
+
>>> no match, partial?`,v,G,A,K),G===E))}let se;if(typeof N=="string"?(se=Y===N,this.debug("string match",N,Y,se)):(se=N.test(Y),this.debug("pattern match",N,Y,se)),!se)return!1}if(a===E&&g===x)return!0;if(a===E)return C;if(g===x)return a===E-1&&v[a]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(v){(0,s.assertValidPattern)(v);let A=this.options;if(v==="**")return t.GLOBSTAR;if(v==="")return"";let C,P=null;(C=v.match(y))?P=A.dot?R:L:(C=v.match(h))?P=(A.nocase?A.dot?m:d:A.dot?u:c)(C[1]):(C=v.match(O))?P=(A.nocase?A.dot?W:$:A.dot?j:T)(C):(C=v.match(S))?P=A.dot?p:b:(C=v.match(f))&&(P=w);let k=i.AST.fromGlob(v,this.options).toMMPattern();return P&&typeof k=="object"&&Reflect.defineProperty(k,"test",{value:P}),k}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let v=this.set;if(!v.length)return this.regexp=!1,this.regexp;let A=this.options,C=A.noglobstar?_:A.dot?X:oe,P=new Set(A.nocase?["i"]:[]),k=v.map(E=>{let x=E.map(Y=>{if(Y instanceof RegExp)for(let G of Y.flags.split(""))P.add(G);return typeof Y=="string"?ce(Y):Y===t.GLOBSTAR?t.GLOBSTAR:Y._src});x.forEach((Y,G)=>{let K=x[G+1],re=x[G-1];Y!==t.GLOBSTAR||re===t.GLOBSTAR||(re===void 0?K!==void 0&&K!==t.GLOBSTAR?x[G+1]="(?:\\/|"+C+"\\/)?"+K:x[G]=C:K===void 0?x[G-1]=re+"(?:\\/|\\/"+C+")?":K!==t.GLOBSTAR&&(x[G-1]=re+"(?:\\/|\\/"+C+"\\/)"+K,x[G+1]=t.GLOBSTAR))});let N=x.filter(Y=>Y!==t.GLOBSTAR);if(this.partial&&N.length>=1){let Y=[];for(let G=1;G<=N.length;G++)Y.push(N.slice(0,G).join("/"));return"(?:"+Y.join("|")+")"}return N.join("/")}).join("|"),[a,g]=v.length>1?["(?:",")"]:["",""];k="^"+a+k+g+"$",this.partial&&(k="^(?:\\/|"+a+k.slice(1,-1)+g+")$"),this.negate&&(k="^(?!"+k+").+$");try{this.regexp=new RegExp(k,[...P].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(v){return this.preserveMultipleSlashes?v.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(v)?["",...v.split(/\/+/)]:v.split(/\/+/)}match(v,A=this.partial){if(this.debug("match",v,this.pattern),this.comment)return!1;if(this.empty)return v==="";if(v==="/"&&A)return!0;let C=this.options;this.isWindows&&(v=v.split("\\").join("/"));let P=this.slashSplit(v);this.debug(this.pattern,"split",P);let k=this.set;this.debug(this.pattern,"set",k);let a=P[P.length-1];if(!a)for(let g=P.length-2;!a&&g>=0;g--)a=P[g];for(let g=0;g<k.length;g++){let E=k[g],x=P;if(C.matchBase&&E.length===1&&(x=[a]),this.matchOne(x,E,A))return C.flipNegate?!0:!this.negate}return C.flipNegate?!1:this.negate}static defaults(v){return t.minimatch.defaults(v).Minimatch}};t.Minimatch=Se;var ke=Jn();Object.defineProperty(t,"AST",{enumerable:!0,get:o(function(){return ke.AST},"get")});var ge=Zn();Object.defineProperty(t,"escape",{enumerable:!0,get:o(function(){return ge.escape},"get")});var Fe=Us();Object.defineProperty(t,"unescape",{enumerable:!0,get:o(function(){return Fe.unescape},"get")}),t.minimatch.AST=i.AST,t.minimatch.Minimatch=Se,t.minimatch.escape=r.escape,t.minimatch.unescape=n.unescape}),kf=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s=new Set,i=typeof process=="object"&&process?process:{},r=o((b,p,f,w)=>{typeof i.emitWarning=="function"?i.emitWarning(b,p,f,w):console.error(`[${f}] ${p}: ${b}`)},"ls"),n=globalThis.AbortController,l=globalThis.AbortSignal;if(typeof n>"u"){l=class{static{o(this,"os")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,w){this._onabort.push(w)}},n=class{static{o(this,"Lt")}constructor(){p()}signal=new l;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let w of this.signal._onabort)w(f);this.signal.onabort?.(f)}}};let b=i.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=o(()=>{b&&(b=!1,r("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",p))},"t")}var h=o(b=>!s.has(b),"sr"),c=o(b=>b&&b===Math.floor(b)&&b>0&&isFinite(b),"V"),u=o(b=>c(b)?b<=Math.pow(2,8)?Uint8Array:b<=Math.pow(2,16)?Uint16Array:b<=Math.pow(2,32)?Uint32Array:b<=Number.MAX_SAFE_INTEGER?d:null:null,"cs"),d=class extends Array{static{o(this,"Nt")}constructor(b){super(b),this.fill(0)}},m=class gt{static{o(this,"at")}heap;length;static#e=!1;static create(p){let f=u(p);if(!f)return[];gt.#e=!0;let w=new gt(p,f);return gt.#e=!1,w}constructor(p,f){if(!gt.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(p),this.length=0}push(p){this.heap[this.length++]=p}pop(){return this.heap[--this.length]}},S=class to{static{o(this,"us")}#e;#s;#i;#t;#n;#E;#b;#h;get perf(){return this.#h}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#u;#c;#l;#r;#g;#S;#m;#p;#R;#d;#O;#C;#y;#w;#A;#x;#o;#N;static unsafeExposeInternals(p){return{starts:p.#C,ttls:p.#y,autopurgeTimers:p.#w,sizes:p.#O,keyMap:p.#c,keyList:p.#l,valList:p.#r,next:p.#g,prev:p.#S,get head(){return p.#m},get tail(){return p.#p},free:p.#R,isBackgroundFetch:o(f=>p.#v(f),"isBackgroundFetch"),backgroundFetch:o((f,w,y,L)=>p.#B(f,w,y,L),"backgroundFetch"),moveToTail:o(f=>p.#M(f),"moveToTail"),indexes:o(f=>p.#P(f),"indexes"),rindexes:o(f=>p.#$(f),"rindexes"),isStale:o(f=>p.#L(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#s}get calculatedSize(){return this.#u}get size(){return this.#a}get fetchMethod(){return this.#E}get memoMethod(){return this.#b}get dispose(){return this.#i}get onInsert(){return this.#t}get disposeAfter(){return this.#n}constructor(p){let{max:f=0,ttl:w,ttlResolution:y=1,ttlAutopurge:L,updateAgeOnGet:R,updateAgeOnHas:O,allowStale:$,dispose:W,onInsert:j,disposeAfter:T,noDisposeOnSet:F,noUpdateTTL:H,maxSize:M=0,maxEntrySize:I=0,sizeCalculation:B,fetchMethod:_,memoMethod:X,noDeleteOnFetchRejection:oe,noDeleteOnStaleGet:Z,allowStaleOnFetchRejection:V,allowStaleOnFetchAbort:fe,ignoreFetchAbort:he,perf:le}=p;if(le!==void 0&&typeof le?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#h=le??e,f!==0&&!c(f))throw new TypeError("max option must be a nonnegative integer");let J=f?u(f):Array;if(!J)throw new Error("invalid max value: "+f);if(this.#e=f,this.#s=M,this.maxEntrySize=I||this.#s,this.sizeCalculation=B,this.sizeCalculation){if(!this.#s&&!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(X!==void 0&&typeof X!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#b=X,_!==void 0&&typeof _!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#E=_,this.#x=!!_,this.#c=new Map,this.#l=new Array(f).fill(void 0),this.#r=new Array(f).fill(void 0),this.#g=new J(f),this.#S=new J(f),this.#m=0,this.#p=0,this.#R=m.create(f),this.#a=0,this.#u=0,typeof W=="function"&&(this.#i=W),typeof j=="function"&&(this.#t=j),typeof T=="function"?(this.#n=T,this.#d=[]):(this.#n=void 0,this.#d=void 0),this.#A=!!this.#i,this.#N=!!this.#t,this.#o=!!this.#n,this.noDisposeOnSet=!!F,this.noUpdateTTL=!!H,this.noDeleteOnFetchRejection=!!oe,this.allowStaleOnFetchRejection=!!V,this.allowStaleOnFetchAbort=!!fe,this.ignoreFetchAbort=!!he,this.maxEntrySize!==0){if(this.#s!==0&&!c(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!$,this.noDeleteOnStaleGet=!!Z,this.updateAgeOnGet=!!R,this.updateAgeOnHas=!!O,this.ttlResolution=c(y)||y===0?y:1,this.ttlAutopurge=!!L,this.ttl=w||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#I()}if(this.#e===0&&this.ttl===0&&this.#s===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#s){let ee="LRU_CACHE_UNBOUNDED";h(ee)&&(s.add(ee),r("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ee,to))}}getRemainingTTL(p){return this.#c.has(p)?1/0:0}#I(){let p=new d(this.#e),f=new d(this.#e);this.#y=p,this.#C=f;let w=this.ttlAutopurge?new Array(this.#e):void 0;this.#w=w,this.#G=(R,O,$=this.#h.now())=>{if(f[R]=O!==0?$:0,p[R]=O,w?.[R]&&(clearTimeout(w[R]),w[R]=void 0),O!==0&&w){let W=setTimeout(()=>{this.#L(R)&&this.#f(this.#l[R],"expire")},O+1);W.unref&&W.unref(),w[R]=W}},this.#T=R=>{f[R]=p[R]!==0?this.#h.now():0},this.#D=(R,O)=>{if(p[O]){let $=p[O],W=f[O];if(!$||!W)return;R.ttl=$,R.start=W,R.now=y||L();let j=R.now-W;R.remainingTTL=$-j}};let y=0,L=o(()=>{let R=this.#h.now();if(this.ttlResolution>0){y=R;let O=setTimeout(()=>y=0,this.ttlResolution);O.unref&&O.unref()}return R},"r");this.getRemainingTTL=R=>{let O=this.#c.get(R);if(O===void 0)return 0;let $=p[O],W=f[O];if(!$||!W)return 1/0;let j=(y||L())-W;return $-j},this.#L=R=>{let O=f[R],$=p[R];return!!$&&!!O&&(y||L())-O>$}}#T=o(()=>{},"#C");#D=o(()=>{},"#D");#G=o(()=>{},"#W");#L=o(()=>!1,"#_");#H(){let p=new d(this.#e);this.#u=0,this.#O=p,this.#k=f=>{this.#u-=p[f],p[f]=0},this.#_=(f,w,y,L)=>{if(this.#v(w))return 0;if(!c(y))if(L){if(typeof L!="function")throw new TypeError("sizeCalculation must be a function");if(y=L(w,f),!c(y))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 y},this.#F=(f,w,y)=>{if(p[f]=w,this.#s){let L=this.#s-p[f];for(;this.#u>L;)this.#j(!0)}this.#u+=p[f],y&&(y.entrySize=w,y.totalCalculatedSize=this.#u)}}#k=o(p=>{},"#L");#F=o((p,f,w)=>{},"#j");#_=o((p,f,w,y)=>{if(w||y)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#B");*#P({allowStale:p=this.allowStale}={}){if(this.#a)for(let f=this.#p;!(!this.#W(f)||((p||!this.#L(f))&&(yield f),f===this.#m));)f=this.#S[f]}*#$({allowStale:p=this.allowStale}={}){if(this.#a)for(let f=this.#m;!(!this.#W(f)||((p||!this.#L(f))&&(yield f),f===this.#p));)f=this.#g[f]}#W(p){return p!==void 0&&this.#c.get(this.#l[p])===p}*entries(){for(let p of this.#P())this.#r[p]!==void 0&&this.#l[p]!==void 0&&!this.#v(this.#r[p])&&(yield[this.#l[p],this.#r[p]])}*rentries(){for(let p of this.#$())this.#r[p]!==void 0&&this.#l[p]!==void 0&&!this.#v(this.#r[p])&&(yield[this.#l[p],this.#r[p]])}*keys(){for(let p of this.#P()){let f=this.#l[p];f!==void 0&&!this.#v(this.#r[p])&&(yield f)}}*rkeys(){for(let p of this.#$()){let f=this.#l[p];f!==void 0&&!this.#v(this.#r[p])&&(yield f)}}*values(){for(let p of this.#P())this.#r[p]!==void 0&&!this.#v(this.#r[p])&&(yield this.#r[p])}*rvalues(){for(let p of this.#$())this.#r[p]!==void 0&&!this.#v(this.#r[p])&&(yield this.#r[p])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(p,f={}){for(let w of this.#P()){let y=this.#r[w],L=this.#v(y)?y.__staleWhileFetching:y;if(L!==void 0&&p(L,this.#l[w],this))return this.get(this.#l[w],f)}}forEach(p,f=this){for(let w of this.#P()){let y=this.#r[w],L=this.#v(y)?y.__staleWhileFetching:y;L!==void 0&&p.call(f,L,this.#l[w],this)}}rforEach(p,f=this){for(let w of this.#$()){let y=this.#r[w],L=this.#v(y)?y.__staleWhileFetching:y;L!==void 0&&p.call(f,L,this.#l[w],this)}}purgeStale(){let p=!1;for(let f of this.#$({allowStale:!0}))this.#L(f)&&(this.#f(this.#l[f],"expire"),p=!0);return p}info(p){let f=this.#c.get(p);if(f===void 0)return;let w=this.#r[f],y=this.#v(w)?w.__staleWhileFetching:w;if(y===void 0)return;let L={value:y};if(this.#y&&this.#C){let R=this.#y[f],O=this.#C[f];if(R&&O){let $=R-(this.#h.now()-O);L.ttl=$,L.start=Date.now()}}return this.#O&&(L.size=this.#O[f]),L}dump(){let p=[];for(let f of this.#P({allowStale:!0})){let w=this.#l[f],y=this.#r[f],L=this.#v(y)?y.__staleWhileFetching:y;if(L===void 0||w===void 0)continue;let R={value:L};if(this.#y&&this.#C){R.ttl=this.#y[f];let O=this.#h.now()-this.#C[f];R.start=Math.floor(Date.now()-O)}this.#O&&(R.size=this.#O[f]),p.unshift([w,R])}return p}load(p){this.clear();for(let[f,w]of p){if(w.start){let y=Date.now()-w.start;w.start=this.#h.now()-y}this.set(f,w.value,w)}}set(p,f,w={}){if(f===void 0)return this.delete(p),this;let{ttl:y=this.ttl,start:L,noDisposeOnSet:R=this.noDisposeOnSet,sizeCalculation:O=this.sizeCalculation,status:$}=w,{noUpdateTTL:W=this.noUpdateTTL}=w,j=this.#_(p,f,w.size||0,O);if(this.maxEntrySize&&j>this.maxEntrySize)return $&&($.set="miss",$.maxEntrySizeExceeded=!0),this.#f(p,"set"),this;let T=this.#a===0?void 0:this.#c.get(p);if(T===void 0)T=this.#a===0?this.#p:this.#R.length!==0?this.#R.pop():this.#a===this.#e?this.#j(!1):this.#a,this.#l[T]=p,this.#r[T]=f,this.#c.set(p,T),this.#g[this.#p]=T,this.#S[T]=this.#p,this.#p=T,this.#a++,this.#F(T,j,$),$&&($.set="add"),W=!1,this.#N&&this.#t?.(f,p,"add");else{this.#M(T);let F=this.#r[T];if(f!==F){if(this.#x&&this.#v(F)){F.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:H}=F;H!==void 0&&!R&&(this.#A&&this.#i?.(H,p,"set"),this.#o&&this.#d?.push([H,p,"set"]))}else R||(this.#A&&this.#i?.(F,p,"set"),this.#o&&this.#d?.push([F,p,"set"]));if(this.#k(T),this.#F(T,j,$),this.#r[T]=f,$){$.set="replace";let H=F&&this.#v(F)?F.__staleWhileFetching:F;H!==void 0&&($.oldValue=H)}}else $&&($.set="update");this.#N&&this.onInsert?.(f,p,f===F?"update":"replace")}if(y!==0&&!this.#y&&this.#I(),this.#y&&(W||this.#G(T,y,L),$&&this.#D($,T)),!R&&this.#o&&this.#d){let F=this.#d,H;for(;H=F?.shift();)this.#n?.(...H)}return this}pop(){try{for(;this.#a;){let p=this.#r[this.#m];if(this.#j(!0),this.#v(p)){if(p.__staleWhileFetching)return p.__staleWhileFetching}else if(p!==void 0)return p}}finally{if(this.#o&&this.#d){let p=this.#d,f;for(;f=p?.shift();)this.#n?.(...f)}}}#j(p){let f=this.#m,w=this.#l[f],y=this.#r[f];return this.#x&&this.#v(y)?y.__abortController.abort(new Error("evicted")):(this.#A||this.#o)&&(this.#A&&this.#i?.(y,w,"evict"),this.#o&&this.#d?.push([y,w,"evict"])),this.#k(f),this.#w?.[f]&&(clearTimeout(this.#w[f]),this.#w[f]=void 0),p&&(this.#l[f]=void 0,this.#r[f]=void 0,this.#R.push(f)),this.#a===1?(this.#m=this.#p=0,this.#R.length=0):this.#m=this.#g[f],this.#c.delete(w),this.#a--,f}has(p,f={}){let{updateAgeOnHas:w=this.updateAgeOnHas,status:y}=f,L=this.#c.get(p);if(L!==void 0){let R=this.#r[L];if(this.#v(R)&&R.__staleWhileFetching===void 0)return!1;if(this.#L(L))y&&(y.has="stale",this.#D(y,L));else return w&&this.#T(L),y&&(y.has="hit",this.#D(y,L)),!0}else y&&(y.has="miss");return!1}peek(p,f={}){let{allowStale:w=this.allowStale}=f,y=this.#c.get(p);if(y===void 0||!w&&this.#L(y))return;let L=this.#r[y];return this.#v(L)?L.__staleWhileFetching:L}#B(p,f,w,y){let L=f===void 0?void 0:this.#r[f];if(this.#v(L))return L;let R=new n,{signal:O}=w;O?.addEventListener("abort",()=>R.abort(O.reason),{signal:R.signal});let $={signal:R.signal,options:w,context:y},W=o((I,B=!1)=>{let{aborted:_}=R.signal,X=w.ignoreFetchAbort&&I!==void 0,oe=w.ignoreFetchAbort||!!(w.allowStaleOnFetchAbort&&I!==void 0);if(w.status&&(_&&!B?(w.status.fetchAborted=!0,w.status.fetchError=R.signal.reason,X&&(w.status.fetchAbortIgnored=!0)):w.status.fetchResolved=!0),_&&!X&&!B)return T(R.signal.reason,oe);let Z=H,V=this.#r[f];return(V===H||X&&B&&V===void 0)&&(I===void 0?Z.__staleWhileFetching!==void 0?this.#r[f]=Z.__staleWhileFetching:this.#f(p,"fetch"):(w.status&&(w.status.fetchUpdated=!0),this.set(p,I,$.options))),I},"l"),j=o(I=>(w.status&&(w.status.fetchRejected=!0,w.status.fetchError=I),T(I,!1)),"f"),T=o((I,B)=>{let{aborted:_}=R.signal,X=_&&w.allowStaleOnFetchAbort,oe=X||w.allowStaleOnFetchRejection,Z=oe||w.noDeleteOnFetchRejection,V=H;if(this.#r[f]===H&&(!Z||!B&&V.__staleWhileFetching===void 0?this.#f(p,"fetch"):X||(this.#r[f]=V.__staleWhileFetching)),oe)return w.status&&V.__staleWhileFetching!==void 0&&(w.status.returnedStale=!0),V.__staleWhileFetching;if(V.__returned===V)throw I},"c"),F=o((I,B)=>{let _=this.#E?.(p,L,$);_&&_ instanceof Promise&&_.then(X=>I(X===void 0?void 0:X),B),R.signal.addEventListener("abort",()=>{(!w.ignoreFetchAbort||w.allowStaleOnFetchAbort)&&(I(void 0),w.allowStaleOnFetchAbort&&(I=o(X=>W(X,!0),"p")))})},"d");w.status&&(w.status.fetchDispatched=!0);let H=new Promise(F).then(W,j),M=Object.assign(H,{__abortController:R,__staleWhileFetching:L,__returned:void 0});return f===void 0?(this.set(p,M,{...$.options,status:void 0}),f=this.#c.get(p)):this.#r[f]=M,M}#v(p){if(!this.#x)return!1;let f=p;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof n}async fetch(p,f={}){let{allowStale:w=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:L=this.noDeleteOnStaleGet,ttl:R=this.ttl,noDisposeOnSet:O=this.noDisposeOnSet,size:$=0,sizeCalculation:W=this.sizeCalculation,noUpdateTTL:j=this.noUpdateTTL,noDeleteOnFetchRejection:T=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:F=this.allowStaleOnFetchRejection,ignoreFetchAbort:H=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:I,forceRefresh:B=!1,status:_,signal:X}=f;if(!this.#x)return _&&(_.fetch="get"),this.get(p,{allowStale:w,updateAgeOnGet:y,noDeleteOnStaleGet:L,status:_});let oe={allowStale:w,updateAgeOnGet:y,noDeleteOnStaleGet:L,ttl:R,noDisposeOnSet:O,size:$,sizeCalculation:W,noUpdateTTL:j,noDeleteOnFetchRejection:T,allowStaleOnFetchRejection:F,allowStaleOnFetchAbort:M,ignoreFetchAbort:H,status:_,signal:X},Z=this.#c.get(p);if(Z===void 0){_&&(_.fetch="miss");let V=this.#B(p,Z,oe,I);return V.__returned=V}else{let V=this.#r[Z];if(this.#v(V)){let J=w&&V.__staleWhileFetching!==void 0;return _&&(_.fetch="inflight",J&&(_.returnedStale=!0)),J?V.__staleWhileFetching:V.__returned=V}let fe=this.#L(Z);if(!B&&!fe)return _&&(_.fetch="hit"),this.#M(Z),y&&this.#T(Z),_&&this.#D(_,Z),V;let he=this.#B(p,Z,oe,I),le=he.__staleWhileFetching!==void 0&&w;return _&&(_.fetch=fe?"stale":"refresh",le&&fe&&(_.returnedStale=!0)),le?he.__staleWhileFetching:he.__returned=he}}async forceFetch(p,f={}){let w=await this.fetch(p,f);if(w===void 0)throw new Error("fetch() returned undefined");return w}memo(p,f={}){let w=this.#b;if(!w)throw new Error("no memoMethod provided to constructor");let{context:y,forceRefresh:L,...R}=f,O=this.get(p,R);if(!L&&O!==void 0)return O;let $=w(p,O,{options:R,context:y});return this.set(p,$,R),$}get(p,f={}){let{allowStale:w=this.allowStale,updateAgeOnGet:y=this.updateAgeOnGet,noDeleteOnStaleGet:L=this.noDeleteOnStaleGet,status:R}=f,O=this.#c.get(p);if(O!==void 0){let $=this.#r[O],W=this.#v($);return R&&this.#D(R,O),this.#L(O)?(R&&(R.get="stale"),W?(R&&w&&$.__staleWhileFetching!==void 0&&(R.returnedStale=!0),w?$.__staleWhileFetching:void 0):(L||this.#f(p,"expire"),R&&w&&(R.returnedStale=!0),w?$:void 0)):(R&&(R.get="hit"),W?$.__staleWhileFetching:(this.#M(O),y&&this.#T(O),$))}else R&&(R.get="miss")}#q(p,f){this.#S[f]=p,this.#g[p]=f}#M(p){p!==this.#p&&(p===this.#m?this.#m=this.#g[p]:this.#q(this.#S[p],this.#g[p]),this.#q(this.#p,p),this.#p=p)}delete(p){return this.#f(p,"delete")}#f(p,f){let w=!1;if(this.#a!==0){let y=this.#c.get(p);if(y!==void 0)if(this.#w?.[y]&&(clearTimeout(this.#w?.[y]),this.#w[y]=void 0),w=!0,this.#a===1)this.#U(f);else{this.#k(y);let L=this.#r[y];if(this.#v(L)?L.__abortController.abort(new Error("deleted")):(this.#A||this.#o)&&(this.#A&&this.#i?.(L,p,f),this.#o&&this.#d?.push([L,p,f])),this.#c.delete(p),this.#l[y]=void 0,this.#r[y]=void 0,y===this.#p)this.#p=this.#S[y];else if(y===this.#m)this.#m=this.#g[y];else{let R=this.#S[y];this.#g[R]=this.#g[y];let O=this.#g[y];this.#S[O]=this.#S[y]}this.#a--,this.#R.push(y)}}if(this.#o&&this.#d?.length){let y=this.#d,L;for(;L=y?.shift();)this.#n?.(...L)}return w}clear(){return this.#U("delete")}#U(p){for(let f of this.#$({allowStale:!0})){let w=this.#r[f];if(this.#v(w))w.__abortController.abort(new Error("deleted"));else{let y=this.#l[f];this.#A&&this.#i?.(w,y,p),this.#o&&this.#d?.push([w,y,p])}}if(this.#c.clear(),this.#r.fill(void 0),this.#l.fill(void 0),this.#y&&this.#C){this.#y.fill(0),this.#C.fill(0);for(let f of this.#w??[])f!==void 0&&clearTimeout(f);this.#w?.fill(void 0)}if(this.#O&&this.#O.fill(0),this.#m=0,this.#p=0,this.#R.length=0,this.#u=0,this.#a=0,this.#o&&this.#d){let f=this.#d,w;for(;w=f?.shift();)this.#n?.(...w)}}};t.LRUCache=S}),so=Ae(t=>{"use strict";var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0}),t.Minipass=t.isWritable=t.isReadable=t.isStream=void 0;var s=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("node:events"),r=e(te("node:stream")),n=te("node:string_decoder"),l=o(a=>!!a&&typeof a=="object"&&(a instanceof k||a instanceof r.default||(0,t.isReadable)(a)||(0,t.isWritable)(a)),"or");t.isStream=l;var h=o(a=>!!a&&typeof a=="object"&&a instanceof i.EventEmitter&&typeof a.pipe=="function"&&a.pipe!==r.default.Writable.prototype.pipe,"ar");t.isReadable=h;var c=o(a=>!!a&&typeof a=="object"&&a instanceof i.EventEmitter&&typeof a.write=="function"&&typeof a.end=="function","lr");t.isWritable=c;var u=Symbol("EOF"),d=Symbol("maybeEmitEnd"),m=Symbol("emittedEnd"),S=Symbol("emittingEnd"),b=Symbol("emittedError"),p=Symbol("closed"),f=Symbol("read"),w=Symbol("flush"),y=Symbol("flushChunk"),L=Symbol("encoding"),R=Symbol("decoder"),O=Symbol("flowing"),$=Symbol("paused"),W=Symbol("resume"),j=Symbol("buffer"),T=Symbol("pipes"),F=Symbol("bufferLength"),H=Symbol("bufferPush"),M=Symbol("bufferShift"),I=Symbol("objectMode"),B=Symbol("destroyed"),_=Symbol("error"),X=Symbol("emitData"),oe=Symbol("emitEnd"),Z=Symbol("emitEnd2"),V=Symbol("async"),fe=Symbol("abort"),he=Symbol("aborted"),le=Symbol("signal"),J=Symbol("dataListeners"),ee=Symbol("discarded"),ce=o(a=>Promise.resolve().then(a),"ft"),Se=o(a=>a(),"cr"),ke=o(a=>a==="end"||a==="finish"||a==="prefinish","ur"),ge=o(a=>a instanceof ArrayBuffer||!!a&&typeof a=="object"&&a.constructor&&a.constructor.name==="ArrayBuffer"&&a.byteLength>=0,"fr"),Fe=o(a=>!Buffer.isBuffer(a)&&ArrayBuffer.isView(a),"dr"),v=class{static{o(this,"$t")}src;dest;opts;ondrain;constructor(a,g,E){this.src=a,this.dest=g,this.opts=E,this.ondrain=()=>a[W](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(a){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},A=class extends v{static{o(this,"Ee")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(a,g,E){super(a,g,E),this.proxyErrors=x=>g.emit("error",x),a.on("error",this.proxyErrors)}},C=o(a=>!!a.objectMode,"pr"),P=o(a=>!a.objectMode&&!!a.encoding&&a.encoding!=="buffer","mr"),k=class extends i.EventEmitter{static{o(this,"qt")}[O]=!1;[$]=!1;[T]=[];[j]=[];[I];[L];[V];[R];[u]=!1;[m]=!1;[S]=!1;[p]=!1;[b]=null;[F]=0;[B]=!1;[le];[he]=!1;[J]=0;[ee]=!1;writable=!0;readable=!0;constructor(...a){let g=a[0]||{};if(super(),g.objectMode&&typeof g.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");C(g)?(this[I]=!0,this[L]=null):P(g)?(this[L]=g.encoding,this[I]=!1):(this[I]=!1,this[L]=null),this[V]=!!g.async,this[R]=this[L]?new n.StringDecoder(this[L]):null,g&&g.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:o(()=>this[j],"get")}),g&&g.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:o(()=>this[T],"get")});let{signal:E}=g;E&&(this[le]=E,E.aborted?this[fe]():E.addEventListener("abort",()=>this[fe]()))}get bufferLength(){return this[F]}get encoding(){return this[L]}set encoding(a){throw new Error("Encoding must be set at instantiation time")}setEncoding(a){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[I]}set objectMode(a){throw new Error("objectMode must be set at instantiation time")}get async(){return this[V]}set async(a){this[V]=this[V]||!!a}[fe](){this[he]=!0,this.emit("abort",this[le]?.reason),this.destroy(this[le]?.reason)}get aborted(){return this[he]}set aborted(a){}write(a,g,E){if(this[he])return!1;if(this[u])throw new Error("write after end");if(this[B])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof g=="function"&&(E=g,g="utf8"),g||(g="utf8");let x=this[V]?ce:Se;if(!this[I]&&!Buffer.isBuffer(a)){if(Fe(a))a=Buffer.from(a.buffer,a.byteOffset,a.byteLength);else if(ge(a))a=Buffer.from(a);else if(typeof a!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[I]?(this[O]&&this[F]!==0&&this[w](!0),this[O]?this.emit("data",a):this[H](a),this[F]!==0&&this.emit("readable"),E&&x(E),this[O]):a.length?(typeof a=="string"&&!(g===this[L]&&!this[R]?.lastNeed)&&(a=Buffer.from(a,g)),Buffer.isBuffer(a)&&this[L]&&(a=this[R].write(a)),this[O]&&this[F]!==0&&this[w](!0),this[O]?this.emit("data",a):this[H](a),this[F]!==0&&this.emit("readable"),E&&x(E),this[O]):(this[F]!==0&&this.emit("readable"),E&&x(E),this[O])}read(a){if(this[B])return null;if(this[ee]=!1,this[F]===0||a===0||a&&a>this[F])return this[d](),null;this[I]&&(a=null),this[j].length>1&&!this[I]&&(this[j]=[this[L]?this[j].join(""):Buffer.concat(this[j],this[F])]);let g=this[f](a||null,this[j][0]);return this[d](),g}[f](a,g){if(this[I])this[M]();else{let E=g;a===E.length||a===null?this[M]():typeof E=="string"?(this[j][0]=E.slice(a),g=E.slice(0,a),this[F]-=a):(this[j][0]=E.subarray(a),g=E.subarray(0,a),this[F]-=a)}return this.emit("data",g),!this[j].length&&!this[u]&&this.emit("drain"),g}end(a,g,E){return typeof a=="function"&&(E=a,a=void 0),typeof g=="function"&&(E=g,g="utf8"),a!==void 0&&this.write(a,g),E&&this.once("end",E),this[u]=!0,this.writable=!1,(this[O]||!this[$])&&this[d](),this}[W](){this[B]||(!this[J]&&!this[T].length&&(this[ee]=!0),this[$]=!1,this[O]=!0,this.emit("resume"),this[j].length?this[w]():this[u]?this[d]():this.emit("drain"))}resume(){return this[W]()}pause(){this[O]=!1,this[$]=!0,this[ee]=!1}get destroyed(){return this[B]}get flowing(){return this[O]}get paused(){return this[$]}[H](a){this[I]?this[F]+=1:this[F]+=a.length,this[j].push(a)}[M](){return this[I]?this[F]-=1:this[F]-=this[j][0].length,this[j].shift()}[w](a=!1){do;while(this[y](this[M]())&&this[j].length);!a&&!this[j].length&&!this[u]&&this.emit("drain")}[y](a){return this.emit("data",a),this[O]}pipe(a,g){if(this[B])return a;this[ee]=!1;let E=this[m];return g=g||{},a===s.stdout||a===s.stderr?g.end=!1:g.end=g.end!==!1,g.proxyErrors=!!g.proxyErrors,E?g.end&&a.end():(this[T].push(g.proxyErrors?new A(this,a,g):new v(this,a,g)),this[V]?ce(()=>this[W]()):this[W]()),a}unpipe(a){let g=this[T].find(E=>E.dest===a);g&&(this[T].length===1?(this[O]&&this[J]===0&&(this[O]=!1),this[T]=[]):this[T].splice(this[T].indexOf(g),1),g.unpipe())}addListener(a,g){return this.on(a,g)}on(a,g){let E=super.on(a,g);if(a==="data")this[ee]=!1,this[J]++,!this[T].length&&!this[O]&&this[W]();else if(a==="readable"&&this[F]!==0)super.emit("readable");else if(ke(a)&&this[m])super.emit(a),this.removeAllListeners(a);else if(a==="error"&&this[b]){let x=g;this[V]?ce(()=>x.call(this,this[b])):x.call(this,this[b])}return E}removeListener(a,g){return this.off(a,g)}off(a,g){let E=super.off(a,g);return a==="data"&&(this[J]=this.listeners("data").length,this[J]===0&&!this[ee]&&!this[T].length&&(this[O]=!1)),E}removeAllListeners(a){let g=super.removeAllListeners(a);return(a==="data"||a===void 0)&&(this[J]=0,!this[ee]&&!this[T].length&&(this[O]=!1)),g}get emittedEnd(){return this[m]}[d](){!this[S]&&!this[m]&&!this[B]&&this[j].length===0&&this[u]&&(this[S]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[p]&&this.emit("close"),this[S]=!1)}emit(a,...g){let E=g[0];if(a!=="error"&&a!=="close"&&a!==B&&this[B])return!1;if(a==="data")return!this[I]&&!E?!1:this[V]?(ce(()=>this[X](E)),!0):this[X](E);if(a==="end")return this[oe]();if(a==="close"){if(this[p]=!0,!this[m]&&!this[B])return!1;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(a==="error"){this[b]=E,super.emit(_,E);let N=!this[le]||this.listeners("error").length?super.emit("error",E):!1;return this[d](),N}else if(a==="resume"){let N=super.emit("resume");return this[d](),N}else if(a==="finish"||a==="prefinish"){let N=super.emit(a);return this.removeAllListeners(a),N}let x=super.emit(a,...g);return this[d](),x}[X](a){for(let E of this[T])E.dest.write(a)===!1&&this.pause();let g=this[ee]?!1:super.emit("data",a);return this[d](),g}[oe](){return this[m]?!1:(this[m]=!0,this.readable=!1,this[V]?(ce(()=>this[Z]()),!0):this[Z]())}[Z](){if(this[R]){let g=this[R].end();if(g){for(let E of this[T])E.dest.write(g);this[ee]||super.emit("data",g)}}for(let g of this[T])g.end();let a=super.emit("end");return this.removeAllListeners("end"),a}async collect(){let a=Object.assign([],{dataLength:0});this[I]||(a.dataLength=0);let g=this.promise();return this.on("data",E=>{a.push(E),this[I]||(a.dataLength+=E.length)}),await g,a}async concat(){if(this[I])throw new Error("cannot concat in objectMode");let a=await this.collect();return this[L]?a.join(""):Buffer.concat(a,a.dataLength)}async promise(){return new Promise((a,g)=>{this.on(B,()=>g(new Error("stream destroyed"))),this.on("error",E=>g(E)),this.on("end",()=>a())})}[Symbol.asyncIterator](){this[ee]=!1;let a=!1,g=o(async()=>(this.pause(),a=!0,{value:void 0,done:!0}),"e");return{next:o(()=>{if(a)return g();let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[u])return g();let x,N,Y=o(se=>{this.off("data",G),this.off("end",K),this.off(B,re),g(),N(se)},"o"),G=o(se=>{this.off("error",Y),this.off("end",K),this.off(B,re),this.pause(),x({value:se,done:!!this[u]})},"a"),K=o(()=>{this.off("error",Y),this.off("data",G),this.off(B,re),g(),x({done:!0,value:void 0})},"l"),re=o(()=>Y(new Error("stream destroyed")),"f");return new Promise((se,ne)=>{N=ne,x=se,this.once(B,re),this.once("error",Y),this.once("end",K),this.once("data",G)})},"next"),throw:g,return:g,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ee]=!1;let a=!1,g=o(()=>(this.pause(),this.off(_,g),this.off(B,g),this.off("end",g),a=!0,{done:!0,value:void 0}),"e"),E=o(()=>{if(a)return g();let x=this.read();return x===null?g():{done:!1,value:x}},"s");return this.once("end",g),this.once(_,g),this.once(B,g),{next:E,throw:g,return:g,[Symbol.iterator](){return this}}}destroy(a){if(this[B])return a?this.emit("error",a):this.emit(B),this;this[B]=!0,this[ee]=!0,this[j].length=0,this[F]=0;let g=this;return typeof g.close=="function"&&!this[p]&&g.close(),a?this.emit("error",a):this.emit(B),this}static get isStream(){return t.isStream}};t.Minipass=k}),Ff=Ae(t=>{"use strict";var e=t&&t.__createBinding||(Object.create?(function(a,g,E,x){x===void 0&&(x=E);var N=Object.getOwnPropertyDescriptor(g,E);(!N||("get"in N?!g.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:o(function(){return g[E]},"get")}),Object.defineProperty(a,x,N)}):(function(a,g,E,x){x===void 0&&(x=E),a[x]=g[E]})),s=t&&t.__setModuleDefault||(Object.create?(function(a,g){Object.defineProperty(a,"default",{enumerable:!0,value:g})}):function(a,g){a.default=g}),i=t&&t.__importStar||function(a){if(a&&a.__esModule)return a;var g={};if(a!=null)for(var E in a)E!=="default"&&Object.prototype.hasOwnProperty.call(a,E)&&e(g,a,E);return s(g,a),g};Object.defineProperty(t,"__esModule",{value:!0}),t.PathScurry=t.Path=t.PathScurryDarwin=t.PathScurryPosix=t.PathScurryWin32=t.PathScurryBase=t.PathPosix=t.PathWin32=t.PathBase=t.ChildrenCache=t.ResolveCache=void 0;var r=kf(),n=te("node:path"),l=te("node:url"),h=te("fs"),c=i(te("node:fs")),u=h.realpathSync.native,d=te("node:fs/promises"),m=so(),S={lstatSync:h.lstatSync,readdir:h.readdir,readdirSync:h.readdirSync,readlinkSync:h.readlinkSync,realpathSync:u,promises:{lstat:d.lstat,readdir:d.readdir,readlink:d.readlink,realpath:d.realpath}},b=o(a=>!a||a===S||a===c?S:{...S,...a,promises:{...S.promises,...a.promises||{}}},"_s"),p=/^\\\\\?\\([a-z]:)\\?$/i,f=o(a=>a.replace(/\//g,"\\").replace(p,"$1\\"),"Er"),w=/[\\\/]/,y=0,L=1,R=2,O=4,$=6,W=8,j=10,T=12,F=15,H=~F,M=16,I=32,B=64,_=128,X=256,oe=512,Z=B|_|oe,V=1023,fe=o(a=>a.isFile()?W:a.isDirectory()?O:a.isSymbolicLink()?j:a.isCharacterDevice()?R:a.isBlockDevice()?$:a.isSocket()?T:a.isFIFO()?L:y,"Te"),he=new r.LRUCache({max:2**12}),le=o(a=>{let g=he.get(a);if(g)return g;let E=a.normalize("NFKD");return he.set(a,E),E},"wt"),J=new r.LRUCache({max:2**12}),ee=o(a=>{let g=J.get(a);if(g)return g;let E=le(a.toLowerCase());return J.set(a,E),E},"Kt"),ce=class extends r.LRUCache{static{o(this,"bt")}constructor(){super({max:256})}};t.ResolveCache=ce;var Se=class extends r.LRUCache{static{o(this,"Jt")}constructor(a=16*1024){super({maxSize:a,sizeCalculation:o(g=>g.length+1,"sizeCalculation")})}};t.ChildrenCache=Se;var ke=Symbol("PathScurry setAsCwd"),ge=class{static{o(this,"A")}name;root;roots;parent;nocase;isCWD=!1;#e;#s;get dev(){return this.#s}#i;get mode(){return this.#i}#t;get nlink(){return this.#t}#n;get uid(){return this.#n}#E;get gid(){return this.#E}#b;get rdev(){return this.#b}#h;get blksize(){return this.#h}#a;get ino(){return this.#a}#u;get size(){return this.#u}#c;get blocks(){return this.#c}#l;get atimeMs(){return this.#l}#r;get mtimeMs(){return this.#r}#g;get ctimeMs(){return this.#g}#S;get birthtimeMs(){return this.#S}#m;get atime(){return this.#m}#p;get mtime(){return this.#p}#R;get ctime(){return this.#R}#d;get birthtime(){return this.#d}#O;#C;#y;#w;#A;#x;#o;#N;#I;#T;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(a,g=y,E,x,N,Y,G){this.name=a,this.#O=N?ee(a):le(a),this.#o=g&V,this.nocase=N,this.roots=x,this.root=E||this,this.#N=Y,this.#y=G.fullpath,this.#A=G.relative,this.#x=G.relativePosix,this.parent=G.parent,this.parent?this.#e=this.parent.#e:this.#e=b(G.fs)}depth(){return this.#C!==void 0?this.#C:this.parent?this.#C=this.parent.depth()+1:this.#C=0}childrenCache(){return this.#N}resolve(a){if(!a)return this;let g=this.getRootString(a),E=a.substring(g.length).split(this.splitSep);return g?this.getRoot(g).#D(E):this.#D(E)}#D(a){let g=this;for(let E of a)g=g.child(E);return g}children(){let a=this.#N.get(this);if(a)return a;let g=Object.assign([],{provisional:0});return this.#N.set(this,g),this.#o&=~M,g}child(a,g){if(a===""||a===".")return this;if(a==="..")return this.parent||this;let E=this.children(),x=this.nocase?ee(a):le(a);for(let K of E)if(K.#O===x)return K;let N=this.parent?this.sep:"",Y=this.#y?this.#y+N+a:void 0,G=this.newChild(a,y,{...g,parent:this,fullpath:Y});return this.canReaddir()||(G.#o|=_),E.push(G),G}relative(){if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let a=this.name,g=this.parent;if(!g)return this.#A=this.name;let E=g.relative();return E+(!E||!g.parent?"":this.sep)+a}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let a=this.name,g=this.parent;if(!g)return this.#x=this.fullpathPosix();let E=g.relativePosix();return E+(!E||!g.parent?"":"/")+a}fullpath(){if(this.#y!==void 0)return this.#y;let a=this.name,g=this.parent;if(!g)return this.#y=this.name;let E=g.fullpath()+(g.parent?this.sep:"")+a;return this.#y=E}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let x=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(x)?this.#w=`//?/${x}`:this.#w=x}let a=this.parent,g=a.fullpathPosix(),E=g+(!g||!a.parent?"":"/")+this.name;return this.#w=E}isUnknown(){return(this.#o&F)===y}isType(a){return this[`is${a}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#o&F)===W}isDirectory(){return(this.#o&F)===O}isCharacterDevice(){return(this.#o&F)===R}isBlockDevice(){return(this.#o&F)===$}isFIFO(){return(this.#o&F)===L}isSocket(){return(this.#o&F)===T}isSymbolicLink(){return(this.#o&j)===j}lstatCached(){return this.#o&I?this:void 0}readlinkCached(){return this.#I}realpathCached(){return this.#T}readdirCached(){let a=this.children();return a.slice(0,a.provisional)}canReadlink(){if(this.#I)return!0;if(!this.parent)return!1;let a=this.#o&F;return!(a!==y&&a!==j||this.#o&X||this.#o&_)}calledReaddir(){return!!(this.#o&M)}isENOENT(){return!!(this.#o&_)}isNamed(a){return this.nocase?this.#O===ee(a):this.#O===le(a)}async readlink(){let a=this.#I;if(a)return a;if(this.canReadlink()&&this.parent)try{let g=await this.#e.promises.readlink(this.fullpath()),E=(await this.parent.realpath())?.resolve(g);if(E)return this.#I=E}catch(g){this.#$(g.code);return}}readlinkSync(){let a=this.#I;if(a)return a;if(this.canReadlink()&&this.parent)try{let g=this.#e.readlinkSync(this.fullpath()),E=this.parent.realpathSync()?.resolve(g);if(E)return this.#I=E}catch(g){this.#$(g.code);return}}#G(a){this.#o|=M;for(let g=a.provisional;g<a.length;g++){let E=a[g];E&&E.#L()}}#L(){this.#o&_||(this.#o=(this.#o|_)&H,this.#H())}#H(){let a=this.children();a.provisional=0;for(let g of a)g.#L()}#k(){this.#o|=oe,this.#F()}#F(){if(this.#o&B)return;let a=this.#o;(a&F)===O&&(a&=H),this.#o=a|B,this.#H()}#_(a=""){a==="ENOTDIR"||a==="EPERM"?this.#F():a==="ENOENT"?this.#L():this.children().provisional=0}#P(a=""){a==="ENOTDIR"?this.parent.#F():a==="ENOENT"&&this.#L()}#$(a=""){let g=this.#o;g|=X,a==="ENOENT"&&(g|=_),(a==="EINVAL"||a==="UNKNOWN")&&(g&=H),this.#o=g,a==="ENOTDIR"&&this.parent&&this.parent.#F()}#W(a,g){return this.#B(a,g)||this.#j(a,g)}#j(a,g){let E=fe(a),x=this.newChild(a.name,E,{parent:this}),N=x.#o&F;return N!==O&&N!==j&&N!==y&&(x.#o|=B),g.unshift(x),g.provisional++,x}#B(a,g){for(let E=g.provisional;E<g.length;E++){let x=g[E];if((this.nocase?ee(a.name):le(a.name))===x.#O)return this.#v(a,x,E,g)}}#v(a,g,E,x){let N=g.name;return g.#o=g.#o&H|fe(a),N!==a.name&&(g.name=a.name),E!==x.provisional&&(E===x.length-1?x.pop():x.splice(E,1),x.unshift(g)),x.provisional++,g}async lstat(){if((this.#o&_)===0)try{return this.#q(await this.#e.promises.lstat(this.fullpath())),this}catch(a){this.#P(a.code)}}lstatSync(){if((this.#o&_)===0)try{return this.#q(this.#e.lstatSync(this.fullpath())),this}catch(a){this.#P(a.code)}}#q(a){let{atime:g,atimeMs:E,birthtime:x,birthtimeMs:N,blksize:Y,blocks:G,ctime:K,ctimeMs:re,dev:se,gid:ne,ino:ue,mode:we,mtime:Ee,mtimeMs:pe,nlink:ve,rdev:Le,size:Me,uid:$e}=a;this.#m=g,this.#l=E,this.#d=x,this.#S=N,this.#h=Y,this.#c=G,this.#R=K,this.#g=re,this.#s=se,this.#E=ne,this.#a=ue,this.#i=we,this.#p=Ee,this.#r=pe,this.#t=ve,this.#b=Le,this.#u=Me,this.#n=$e;let je=fe(a);this.#o=this.#o&H|je|I,je!==y&&je!==O&&je!==j&&(this.#o|=B)}#M=[];#f=!1;#U(a){this.#f=!1;let g=this.#M.slice();this.#M.length=0,g.forEach(E=>E(null,a))}readdirCB(a,g=!1){if(!this.canReaddir()){g?a(null,[]):queueMicrotask(()=>a(null,[]));return}let E=this.children();if(this.calledReaddir()){let N=E.slice(0,E.provisional);g?a(null,N):queueMicrotask(()=>a(null,N));return}if(this.#M.push(a),this.#f)return;this.#f=!0;let x=this.fullpath();this.#e.readdir(x,{withFileTypes:!0},(N,Y)=>{if(N)this.#_(N.code),E.provisional=0;else{for(let G of Y)this.#W(G,E);this.#G(E)}this.#U(E.slice(0,E.provisional))})}#V;async readdir(){if(!this.canReaddir())return[];let a=this.children();if(this.calledReaddir())return a.slice(0,a.provisional);let g=this.fullpath();if(this.#V)await this.#V;else{let E=o(()=>{},"s");this.#V=new Promise(x=>E=x);try{for(let x of await this.#e.promises.readdir(g,{withFileTypes:!0}))this.#W(x,a);this.#G(a)}catch(x){this.#_(x.code),a.provisional=0}this.#V=void 0,E()}return a.slice(0,a.provisional)}readdirSync(){if(!this.canReaddir())return[];let a=this.children();if(this.calledReaddir())return a.slice(0,a.provisional);let g=this.fullpath();try{for(let E of this.#e.readdirSync(g,{withFileTypes:!0}))this.#W(E,a);this.#G(a)}catch(E){this.#_(E.code),a.provisional=0}return a.slice(0,a.provisional)}canReaddir(){if(this.#o&Z)return!1;let a=F&this.#o;return a===y||a===O||a===j}shouldWalk(a,g){return(this.#o&O)===O&&!(this.#o&Z)&&!a.has(this)&&(!g||g(this))}async realpath(){if(this.#T)return this.#T;if(!((oe|X|_)&this.#o))try{let a=await this.#e.promises.realpath(this.fullpath());return this.#T=this.resolve(a)}catch{this.#k()}}realpathSync(){if(this.#T)return this.#T;if(!((oe|X|_)&this.#o))try{let a=this.#e.realpathSync(this.fullpath());return this.#T=this.resolve(a)}catch{this.#k()}}[ke](a){if(a===this)return;a.isCWD=!1,this.isCWD=!0;let g=new Set([]),E=[],x=this;for(;x&&x.parent;)g.add(x),x.#A=E.join(this.sep),x.#x=E.join("/"),x=x.parent,E.push("..");for(x=a;x&&x.parent&&!g.has(x);)x.#A=void 0,x.#x=void 0,x=x.parent}};t.PathBase=ge;var Fe=class io extends ge{static{o(this,"n")}sep="\\";splitSep=w;constructor(g,E=y,x,N,Y,G,K){super(g,E,x,N,Y,G,K)}newChild(g,E=y,x={}){return new io(g,E,this.root,this.roots,this.nocase,this.childrenCache(),x)}getRootString(g){return n.win32.parse(g).root}getRoot(g){if(g=f(g.toUpperCase()),g===this.root.name)return this.root;for(let[E,x]of Object.entries(this.roots))if(this.sameRoot(g,E))return this.roots[g]=x;return this.roots[g]=new C(g,this).root}sameRoot(g,E=this.root.name){return g=g.toUpperCase().replace(/\//g,"\\").replace(p,"$1\\"),g===E}};t.PathWin32=Fe;var v=class ro extends ge{static{o(this,"n")}splitSep="/";sep="/";constructor(g,E=y,x,N,Y,G,K){super(g,E,x,N,Y,G,K)}getRootString(g){return g.startsWith("/")?"/":""}getRoot(g){return this.root}newChild(g,E=y,x={}){return new ro(g,E,this.root,this.roots,this.nocase,this.childrenCache(),x)}};t.PathPosix=v;var A=class{static{o(this,"vt")}root;rootPath;roots;cwd;#e;#s;#i;nocase;#t;constructor(a=process.cwd(),g,E,{nocase:x,childrenCacheSize:N=16*1024,fs:Y=S}={}){this.#t=b(Y),(a instanceof URL||a.startsWith("file://"))&&(a=(0,l.fileURLToPath)(a));let G=g.resolve(a);this.roots=Object.create(null),this.rootPath=this.parseRootPath(G),this.#e=new ce,this.#s=new ce,this.#i=new Se(N);let K=G.substring(this.rootPath.length).split(E);if(K.length===1&&!K[0]&&K.pop(),x===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=x,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let re=this.root,se=K.length-1,ne=g.sep,ue=this.rootPath,we=!1;for(let Ee of K){let pe=se--;re=re.child(Ee,{relative:new Array(pe).fill("..").join(ne),relativePosix:new Array(pe).fill("..").join("/"),fullpath:ue+=(we?"":ne)+Ee}),we=!0}this.cwd=re}depth(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),a.depth()}childrenCache(){return this.#i}resolve(...a){let g="";for(let N=a.length-1;N>=0;N--){let Y=a[N];if(!(!Y||Y===".")&&(g=g?`${Y}/${g}`:Y,this.isAbsolute(Y)))break}let E=this.#e.get(g);if(E!==void 0)return E;let x=this.cwd.resolve(g).fullpath();return this.#e.set(g,x),x}resolvePosix(...a){let g="";for(let N=a.length-1;N>=0;N--){let Y=a[N];if(!(!Y||Y===".")&&(g=g?`${Y}/${g}`:Y,this.isAbsolute(Y)))break}let E=this.#s.get(g);if(E!==void 0)return E;let x=this.cwd.resolve(g).fullpathPosix();return this.#s.set(g,x),x}relative(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),a.relative()}relativePosix(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),a.relativePosix()}basename(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),a.name}dirname(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),(a.parent||a).fullpath()}async readdir(a=this.cwd,g={withFileTypes:!0}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E}=g;if(a.canReaddir()){let x=await a.readdir();return E?x:x.map(N=>N.name)}else return[]}readdirSync(a=this.cwd,g={withFileTypes:!0}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E=!0}=g;return a.canReaddir()?E?a.readdirSync():a.readdirSync().map(x=>x.name):[]}async lstat(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),a.lstat()}lstatSync(a=this.cwd){return typeof a=="string"&&(a=this.cwd.resolve(a)),a.lstatSync()}async readlink(a=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a.withFileTypes,a=this.cwd);let E=await a.readlink();return g?E:E?.fullpath()}readlinkSync(a=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a.withFileTypes,a=this.cwd);let E=a.readlinkSync();return g?E:E?.fullpath()}async realpath(a=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a.withFileTypes,a=this.cwd);let E=await a.realpath();return g?E:E?.fullpath()}realpathSync(a=this.cwd,{withFileTypes:g}={withFileTypes:!1}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a.withFileTypes,a=this.cwd);let E=a.realpathSync();return g?E:E?.fullpath()}async walk(a=this.cwd,g={}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E=!0,follow:x=!1,filter:N,walkFilter:Y}=g,G=[];(!N||N(a))&&G.push(E?a:a.fullpath());let K=new Set,re=o((ne,ue)=>{K.add(ne),ne.readdirCB((we,Ee)=>{if(we)return ue(we);let pe=Ee.length;if(!pe)return ue();let ve=o(()=>{--pe===0&&ue()},"b");for(let Le of Ee)(!N||N(Le))&&G.push(E?Le:Le.fullpath()),x&&Le.isSymbolicLink()?Le.realpath().then(Me=>Me?.isUnknown()?Me.lstat():Me).then(Me=>Me?.shouldWalk(K,Y)?re(Me,ve):ve()):Le.shouldWalk(K,Y)?re(Le,ve):ve()},!0)},"l"),se=a;return new Promise((ne,ue)=>{re(se,we=>{if(we)return ue(we);ne(G)})})}walkSync(a=this.cwd,g={}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E=!0,follow:x=!1,filter:N,walkFilter:Y}=g,G=[];(!N||N(a))&&G.push(E?a:a.fullpath());let K=new Set([a]);for(let re of K){let se=re.readdirSync();for(let ne of se){(!N||N(ne))&&G.push(E?ne:ne.fullpath());let ue=ne;if(ne.isSymbolicLink()){if(!(x&&(ue=ne.realpathSync())))continue;ue.isUnknown()&&ue.lstatSync()}ue.shouldWalk(K,Y)&&K.add(ue)}}return G}[Symbol.asyncIterator](){return this.iterate()}iterate(a=this.cwd,g={}){return typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd),this.stream(a,g)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(a=this.cwd,g={}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E=!0,follow:x=!1,filter:N,walkFilter:Y}=g;(!N||N(a))&&(yield E?a:a.fullpath());let G=new Set([a]);for(let K of G){let re=K.readdirSync();for(let se of re){(!N||N(se))&&(yield E?se:se.fullpath());let ne=se;if(se.isSymbolicLink()){if(!(x&&(ne=se.realpathSync())))continue;ne.isUnknown()&&ne.lstatSync()}ne.shouldWalk(G,Y)&&G.add(ne)}}}stream(a=this.cwd,g={}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E=!0,follow:x=!1,filter:N,walkFilter:Y}=g,G=new m.Minipass({objectMode:!0});(!N||N(a))&&G.write(E?a:a.fullpath());let K=new Set,re=[a],se=0,ne=o(()=>{let ue=!1;for(;!ue;){let we=re.shift();if(!we){se===0&&G.end();return}se++,K.add(we);let Ee=o((ve,Le,Me=!1)=>{if(ve)return G.emit("error",ve);if(x&&!Me){let $e=[];for(let je of Le)je.isSymbolicLink()&&$e.push(je.realpath().then(us=>us?.isUnknown()?us.lstat():us));if($e.length){Promise.all($e).then(()=>Ee(null,Le,!0));return}}for(let $e of Le)$e&&(!N||N($e))&&(G.write(E?$e:$e.fullpath())||(ue=!0));se--;for(let $e of Le){let je=$e.realpathCached()||$e;je.shouldWalk(K,Y)&&re.push(je)}ue&&!G.flowing?G.once("drain",ne):pe||ne()},"m"),pe=!0;we.readdirCB(Ee,!0),pe=!1}},"c");return ne(),G}streamSync(a=this.cwd,g={}){typeof a=="string"?a=this.cwd.resolve(a):a instanceof ge||(g=a,a=this.cwd);let{withFileTypes:E=!0,follow:x=!1,filter:N,walkFilter:Y}=g,G=new m.Minipass({objectMode:!0}),K=new Set;(!N||N(a))&&G.write(E?a:a.fullpath());let re=[a],se=0,ne=o(()=>{let ue=!1;for(;!ue;){let we=re.shift();if(!we){se===0&&G.end();return}se++,K.add(we);let Ee=we.readdirSync();for(let pe of Ee)(!N||N(pe))&&(G.write(E?pe:pe.fullpath())||(ue=!0));se--;for(let pe of Ee){let ve=pe;if(pe.isSymbolicLink()){if(!(x&&(ve=pe.realpathSync())))continue;ve.isUnknown()&&ve.lstatSync()}ve.shouldWalk(K,Y)&&re.push(ve)}}ue&&!G.flowing&&G.once("drain",ne)},"c");return ne(),G}chdir(a=this.cwd){let g=this.cwd;this.cwd=typeof a=="string"?this.cwd.resolve(a):a,this.cwd[ke](g)}};t.PathScurryBase=A;var C=class extends A{static{o(this,"Et")}sep="\\";constructor(a=process.cwd(),g={}){let{nocase:E=!0}=g;super(a,n.win32,"\\",{...g,nocase:E}),this.nocase=E;for(let x=this.cwd;x;x=x.parent)x.nocase=this.nocase}parseRootPath(a){return n.win32.parse(a).root.toUpperCase()}newRoot(a){return new Fe(this.rootPath,O,void 0,this.roots,this.nocase,this.childrenCache(),{fs:a})}isAbsolute(a){return a.startsWith("/")||a.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(a)}};t.PathScurryWin32=C;var P=class extends A{static{o(this,"_t")}sep="/";constructor(a=process.cwd(),g={}){let{nocase:E=!1}=g;super(a,n.posix,"/",{...g,nocase:E}),this.nocase=E}parseRootPath(a){return"/"}newRoot(a){return new v(this.rootPath,O,void 0,this.roots,this.nocase,this.childrenCache(),{fs:a})}isAbsolute(a){return a.startsWith("/")}};t.PathScurryPosix=P;var k=class extends P{static{o(this,"Zt")}constructor(a=process.cwd(),g={}){let{nocase:E=!0}=g;super(a,{...g,nocase:E})}};t.PathScurryDarwin=k,t.Path=process.platform==="win32"?Fe:v,t.PathScurry=process.platform==="win32"?C:process.platform==="darwin"?k:P}),no=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;var e=He(),s=o(l=>l.length>=1,"Tr"),i=o(l=>l.length>=1,"Cr"),r=Symbol.for("nodejs.util.inspect.custom"),n=class oo{static{o(this,"n")}#e;#s;#i;length;#t;#n;#E;#b;#h;#a;#u=!0;constructor(h,c,u,d){if(!s(h))throw new TypeError("empty pattern list");if(!i(c))throw new TypeError("empty glob list");if(c.length!==h.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=h.length,u<0||u>=this.length)throw new TypeError("index out of range");if(this.#e=h,this.#s=c,this.#i=u,this.#t=d,this.#i===0){if(this.isUNC()){let[m,S,b,p,...f]=this.#e,[w,y,L,R,...O]=this.#s;f[0]===""&&(f.shift(),O.shift());let $=[m,S,b,p,""].join("/"),W=[w,y,L,R,""].join("/");this.#e=[$,...f],this.#s=[W,...O],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[m,...S]=this.#e,[b,...p]=this.#s;S[0]===""&&(S.shift(),p.shift());let f=m+"/",w=b+"/";this.#e=[f,...S],this.#s=[w,...p],this.length=this.#e.length}}}[r](){return"Pattern <"+this.#s.slice(this.#i).join("/")+">"}pattern(){return this.#e[this.#i]}isString(){return typeof this.#e[this.#i]=="string"}isGlobstar(){return this.#e[this.#i]===e.GLOBSTAR}isRegExp(){return this.#e[this.#i]instanceof RegExp}globString(){return this.#E=this.#E||(this.#i===0?this.isAbsolute()?this.#s[0]+this.#s.slice(1).join("/"):this.#s.join("/"):this.#s.slice(this.#i).join("/"))}hasMore(){return this.length>this.#i+1}rest(){return this.#n!==void 0?this.#n:this.hasMore()?(this.#n=new oo(this.#e,this.#s,this.#i+1,this.#t),this.#n.#a=this.#a,this.#n.#h=this.#h,this.#n.#b=this.#b,this.#n):this.#n=null}isUNC(){let h=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#t==="win32"&&this.#i===0&&h[0]===""&&h[1]===""&&typeof h[2]=="string"&&!!h[2]&&typeof h[3]=="string"&&!!h[3]}isDrive(){let h=this.#e;return this.#b!==void 0?this.#b:this.#b=this.#t==="win32"&&this.#i===0&&this.length>1&&typeof h[0]=="string"&&/^[a-z]:$/i.test(h[0])}isAbsolute(){let h=this.#e;return this.#a!==void 0?this.#a:this.#a=h[0]===""&&h.length>1||this.isDrive()||this.isUNC()}root(){let h=this.#e[0];return typeof h=="string"&&this.isAbsolute()&&this.#i===0?h:""}checkFollowGlobstar(){return!(this.#i===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#i===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};t.Pattern=n}),ao=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;var e=He(),s=no(),i=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",r=class{static{o(this,"Ae")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(n,{nobrace:l,nocase:h,noext:c,noglobstar:u,platform:d=i}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=d,this.mmopts={dot:!0,nobrace:l,nocase:h,noext:c,noglobstar:u,optimizationLevel:2,platform:d,nocomment:!0,nonegate:!0};for(let m of n)this.add(m)}add(n){let l=new e.Minimatch(n,this.mmopts);for(let h=0;h<l.set.length;h++){let c=l.set[h],u=l.globParts[h];if(!c||!u)throw new Error("invalid pattern object");for(;c[0]==="."&&u[0]===".";)c.shift(),u.shift();let d=new s.Pattern(c,u,0,this.platform),m=new e.Minimatch(d.globString(),this.mmopts),S=u[u.length-1]==="**",b=d.isAbsolute();b?this.absolute.push(m):this.relative.push(m),S&&(b?this.absoluteChildren.push(m):this.relativeChildren.push(m))}}ignored(n){let l=n.fullpath(),h=`${l}/`,c=n.relative()||".",u=`${c}/`;for(let d of this.relative)if(d.match(c)||d.match(u))return!0;for(let d of this.absolute)if(d.match(l)||d.match(h))return!0;return!1}childrenIgnored(n){let l=n.fullpath()+"/",h=(n.relative()||".")+"/";for(let c of this.relativeChildren)if(c.match(h))return!0;for(let c of this.absoluteChildren)if(c.match(l))return!0;return!1}};t.Ignore=r}),Mf=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;var e=He(),s=class lo{static{o(this,"n")}store;constructor(h=new Map){this.store=h}copy(){return new lo(new Map(this.store))}hasWalked(h,c){return this.store.get(h.fullpath())?.has(c.globString())}storeWalked(h,c){let u=h.fullpath(),d=this.store.get(u);d?d.add(c.globString()):this.store.set(u,new Set([c.globString()]))}};t.HasWalkedCache=s;var i=class{static{o(this,"ie")}store=new Map;add(l,h,c){let u=(h?2:0)|(c?1:0),d=this.store.get(l);this.store.set(l,d===void 0?u:u&d)}entries(){return[...this.store.entries()].map(([l,h])=>[l,!!(h&2),!!(h&1)])}};t.MatchRecord=i;var r=class{static{o(this,"re")}store=new Map;add(l,h){if(!l.canReaddir())return;let c=this.store.get(l);c?c.find(u=>u.globString()===h.globString())||c.push(h):this.store.set(l,[h])}get(l){let h=this.store.get(l);if(!h)throw new Error("attempting to walk unknown path");return h}entries(){return this.keys().map(l=>[l,this.store.get(l)])}keys(){return[...this.store.keys()].filter(l=>l.canReaddir())}};t.SubWalks=r;var n=class ho{static{o(this,"n")}hasWalkedCache;matches=new i;subwalks=new r;patterns;follow;dot;opts;constructor(h,c){this.opts=h,this.follow=!!h.follow,this.dot=!!h.dot,this.hasWalkedCache=c?c.copy():new s}processPatterns(h,c){this.patterns=c;let u=c.map(d=>[h,d]);for(let[d,m]of u){this.hasWalkedCache.storeWalked(d,m);let S=m.root(),b=m.isAbsolute()&&this.opts.absolute!==!1;if(S){d=d.resolve(S==="/"&&this.opts.root!==void 0?this.opts.root:S);let y=m.rest();if(y)m=y;else{this.matches.add(d,!0,!1);continue}}if(d.isENOENT())continue;let p,f,w=!1;for(;typeof(p=m.pattern())=="string"&&(f=m.rest());)d=d.resolve(p),m=f,w=!0;if(p=m.pattern(),f=m.rest(),w){if(this.hasWalkedCache.hasWalked(d,m))continue;this.hasWalkedCache.storeWalked(d,m)}if(typeof p=="string"){let y=p===".."||p===""||p===".";this.matches.add(d.resolve(p),b,y);continue}else if(p===e.GLOBSTAR){(!d.isSymbolicLink()||this.follow||m.checkFollowGlobstar())&&this.subwalks.add(d,m);let y=f?.pattern(),L=f?.rest();if(!f||(y===""||y===".")&&!L)this.matches.add(d,b,y===""||y===".");else if(y===".."){let R=d.parent||d;L?this.hasWalkedCache.hasWalked(R,L)||this.subwalks.add(R,L):this.matches.add(R,b,!0)}}else p instanceof RegExp&&this.subwalks.add(d,m)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new ho(this.opts,this.hasWalkedCache)}filterEntries(h,c){let u=this.subwalks.get(h),d=this.child();for(let m of c)for(let S of u){let b=S.isAbsolute(),p=S.pattern(),f=S.rest();p===e.GLOBSTAR?d.testGlobstar(m,S,f,b):p instanceof RegExp?d.testRegExp(m,p,f,b):d.testString(m,p,f,b)}return d}testGlobstar(h,c,u,d){if((this.dot||!h.name.startsWith("."))&&(c.hasMore()||this.matches.add(h,d,!1),h.canReaddir()&&(this.follow||!h.isSymbolicLink()?this.subwalks.add(h,c):h.isSymbolicLink()&&(u&&c.checkFollowGlobstar()?this.subwalks.add(h,u):c.markFollowGlobstar()&&this.subwalks.add(h,c)))),u){let m=u.pattern();if(typeof m=="string"&&m!==".."&&m!==""&&m!==".")this.testString(h,m,u.rest(),d);else if(m===".."){let S=h.parent||h;this.subwalks.add(S,u)}else m instanceof RegExp&&this.testRegExp(h,m,u.rest(),d)}}testRegExp(h,c,u,d){c.test(h.name)&&(u?this.subwalks.add(h,u):this.matches.add(h,d,!1))}testString(h,c,u,d){h.isNamed(c)&&(u?this.subwalks.add(h,u):this.matches.add(h,d,!1))}};t.Processor=n}),jf=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;var e=so(),s=ao(),i=Mf(),r=o((c,u)=>typeof c=="string"?new s.Ignore([c],u):Array.isArray(c)?new s.Ignore(c,u):c,"Pr"),n=class{static{o(this,"Ot")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#s;#i;signal;maxDepth;includeChildMatches;constructor(c,u,d){if(this.patterns=c,this.path=u,this.opts=d,this.#i=!d.posix&&d.platform==="win32"?"\\":"/",this.includeChildMatches=d.includeChildMatches!==!1,(d.ignore||!this.includeChildMatches)&&(this.#s=r(d.ignore??[],d),!this.includeChildMatches&&typeof this.#s.add!="function")){let m="cannot ignore child matches, ignore lacks add() method.";throw new Error(m)}this.maxDepth=d.maxDepth||1/0,d.signal&&(this.signal=d.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(c){return this.seen.has(c)||!!this.#s?.ignored?.(c)}#n(c){return!!this.#s?.childrenIgnored?.(c)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let c;for(;!this.paused&&(c=this.#e.shift());)c()}onResume(c){this.signal?.aborted||(this.paused?this.#e.push(c):c())}async matchCheck(c,u){if(u&&this.opts.nodir)return;let d;if(this.opts.realpath){if(d=c.realpathCached()||await c.realpath(),!d)return;c=d}let m=c.isUnknown()||this.opts.stat?await c.lstat():c;if(this.opts.follow&&this.opts.nodir&&m?.isSymbolicLink()){let S=await m.realpath();S&&(S.isUnknown()||this.opts.stat)&&await S.lstat()}return this.matchCheckTest(m,u)}matchCheckTest(c,u){return c&&(this.maxDepth===1/0||c.depth()<=this.maxDepth)&&(!u||c.canReaddir())&&(!this.opts.nodir||!c.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!c.isSymbolicLink()||!c.realpathCached()?.isDirectory())&&!this.#t(c)?c:void 0}matchCheckSync(c,u){if(u&&this.opts.nodir)return;let d;if(this.opts.realpath){if(d=c.realpathCached()||c.realpathSync(),!d)return;c=d}let m=c.isUnknown()||this.opts.stat?c.lstatSync():c;if(this.opts.follow&&this.opts.nodir&&m?.isSymbolicLink()){let S=m.realpathSync();S&&(S?.isUnknown()||this.opts.stat)&&S.lstatSync()}return this.matchCheckTest(m,u)}matchFinish(c,u){if(this.#t(c))return;if(!this.includeChildMatches&&this.#s?.add){let S=`${c.relativePosix()}/**`;this.#s.add(S)}let d=this.opts.absolute===void 0?u:this.opts.absolute;this.seen.add(c);let m=this.opts.mark&&c.isDirectory()?this.#i:"";if(this.opts.withFileTypes)this.matchEmit(c);else if(d){let S=this.opts.posix?c.fullpathPosix():c.fullpath();this.matchEmit(S+m)}else{let S=this.opts.posix?c.relativePosix():c.relative(),b=this.opts.dotRelative&&!S.startsWith(".."+this.#i)?"."+this.#i:"";this.matchEmit(S?b+S+m:"."+m)}}async match(c,u,d){let m=await this.matchCheck(c,d);m&&this.matchFinish(m,u)}matchSync(c,u,d){let m=this.matchCheckSync(c,d);m&&this.matchFinish(m,u)}walkCB(c,u,d){this.signal?.aborted&&d(),this.walkCB2(c,u,new i.Processor(this.opts),d)}walkCB2(c,u,d,m){if(this.#n(c))return m();if(this.signal?.aborted&&m(),this.paused){this.onResume(()=>this.walkCB2(c,u,d,m));return}d.processPatterns(c,u);let S=1,b=o(()=>{--S===0&&m()},"h");for(let[p,f,w]of d.matches.entries())this.#t(p)||(S++,this.match(p,f,w).then(()=>b()));for(let p of d.subwalkTargets()){if(this.maxDepth!==1/0&&p.depth()>=this.maxDepth)continue;S++;let f=p.readdirCached();p.calledReaddir()?this.walkCB3(p,f,d,b):p.readdirCB((w,y)=>this.walkCB3(p,y,d,b),!0)}b()}walkCB3(c,u,d,m){d=d.filterEntries(c,u);let S=1,b=o(()=>{--S===0&&m()},"h");for(let[p,f,w]of d.matches.entries())this.#t(p)||(S++,this.match(p,f,w).then(()=>b()));for(let[p,f]of d.subwalks.entries())S++,this.walkCB2(p,f,d.child(),b);b()}walkCBSync(c,u,d){this.signal?.aborted&&d(),this.walkCB2Sync(c,u,new i.Processor(this.opts),d)}walkCB2Sync(c,u,d,m){if(this.#n(c))return m();if(this.signal?.aborted&&m(),this.paused){this.onResume(()=>this.walkCB2Sync(c,u,d,m));return}d.processPatterns(c,u);let S=1,b=o(()=>{--S===0&&m()},"h");for(let[p,f,w]of d.matches.entries())this.#t(p)||this.matchSync(p,f,w);for(let p of d.subwalkTargets()){if(this.maxDepth!==1/0&&p.depth()>=this.maxDepth)continue;S++;let f=p.readdirSync();this.walkCB3Sync(p,f,d,b)}b()}walkCB3Sync(c,u,d,m){d=d.filterEntries(c,u);let S=1,b=o(()=>{--S===0&&m()},"h");for(let[p,f,w]of d.matches.entries())this.#t(p)||this.matchSync(p,f,w);for(let[p,f]of d.subwalks.entries())S++,this.walkCB2Sync(p,f,d.child(),b);b()}};t.GlobUtil=n;var l=class extends n{static{o(this,"Pe")}matches=new Set;constructor(c,u,d){super(c,u,d)}matchEmit(c){this.matches.add(c)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((c,u)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?u(this.signal.reason):c(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};t.GlobWalker=l;var h=class extends n{static{o(this,"De")}results;constructor(c,u,d){super(c,u,d),this.results=new e.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(c){this.results.write(c),this.results.flowing||this.pause()}stream(){let c=this.path;return c.isUnknown()?c.lstat().then(()=>{this.walkCB(c,this.patterns,()=>this.results.end())}):this.walkCB(c,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};t.GlobStream=h}),co=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;var e=He(),s=te("node:url"),i=Ff(),r=no(),n=jf(),l=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",h=class{static{o(this,"Fe")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(c,u){if(!u)throw new TypeError("glob options required");if(this.withFileTypes=!!u.withFileTypes,this.signal=u.signal,this.follow=!!u.follow,this.dot=!!u.dot,this.dotRelative=!!u.dotRelative,this.nodir=!!u.nodir,this.mark=!!u.mark,u.cwd?(u.cwd instanceof URL||u.cwd.startsWith("file://"))&&(u.cwd=(0,s.fileURLToPath)(u.cwd)):this.cwd="",this.cwd=u.cwd||"",this.root=u.root,this.magicalBraces=!!u.magicalBraces,this.nobrace=!!u.nobrace,this.noext=!!u.noext,this.realpath=!!u.realpath,this.absolute=u.absolute,this.includeChildMatches=u.includeChildMatches!==!1,this.noglobstar=!!u.noglobstar,this.matchBase=!!u.matchBase,this.maxDepth=typeof u.maxDepth=="number"?u.maxDepth:1/0,this.stat=!!u.stat,this.ignore=u.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof c=="string"&&(c=[c]),this.windowsPathsNoEscape=!!u.windowsPathsNoEscape||u.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(c=c.map(f=>f.replace(/\\/g,"/"))),this.matchBase){if(u.noglobstar)throw new TypeError("base matching requires globstar");c=c.map(f=>f.includes("/")?f:`./**/${f}`)}if(this.pattern=c,this.platform=u.platform||l,this.opts={...u,platform:this.platform},u.scurry){if(this.scurry=u.scurry,u.nocase!==void 0&&u.nocase!==u.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let f=u.platform==="win32"?i.PathScurryWin32:u.platform==="darwin"?i.PathScurryDarwin:u.platform?i.PathScurryPosix:i.PathScurry;this.scurry=new f(this.cwd,{nocase:u.nocase,fs:u.fs})}this.nocase=this.scurry.nocase;let d=this.platform==="darwin"||this.platform==="win32",m={braceExpandMax:1e4,...u,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:d,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},S=this.pattern.map(f=>new e.Minimatch(f,m)),[b,p]=S.reduce((f,w)=>(f[0].push(...w.set),f[1].push(...w.globParts),f),[[],[]]);this.patterns=b.map((f,w)=>{let y=p[w];if(!y)throw new Error("invalid pattern object");return new r.Pattern(f,y,0,this.platform)})}async walk(){return[...await new n.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new n.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new n.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new n.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};t.Glob=h}),uo=Ae(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;var e=He(),s=o((i,r={})=>{Array.isArray(i)||(i=[i]);for(let n of i)if(new e.Minimatch(n,r).hasMagic())return!0;return!1},"Wr");t.hasMagic=s});Object.defineProperty(ie,"__esModule",{value:!0});ie.glob=ie.sync=ie.iterate=ie.iterateSync=ie.stream=ie.streamSync=ie.Ignore=ie.hasMagic=ie.Glob=ie.unescape=ie.escape=void 0;ie.globStreamSync=yt;ie.globStream=zs;ie.globSync=Hs;ie.globIterateSync=wt;ie.globIterate=Vs;var Qn=He(),Ve=co(),Gf=uo(),fo=He();Object.defineProperty(ie,"escape",{enumerable:!0,get:o(function(){return fo.escape},"get")});Object.defineProperty(ie,"unescape",{enumerable:!0,get:o(function(){return fo.unescape},"get")});var _f=co();Object.defineProperty(ie,"Glob",{enumerable:!0,get:o(function(){return _f.Glob},"get")});var Wf=uo();Object.defineProperty(ie,"hasMagic",{enumerable:!0,get:o(function(){return Wf.hasMagic},"get")});var Bf=ao();Object.defineProperty(ie,"Ignore",{enumerable:!0,get:o(function(){return Bf.Ignore},"get")});function yt(t,e={}){return new Ve.Glob(t,e).streamSync()}o(yt,"xt");function zs(t,e={}){return new Ve.Glob(t,e).stream()}o(zs,"Le");function Hs(t,e={}){return new Ve.Glob(t,e).walkSync()}o(Hs,"We");async function eo(t,e={}){return new Ve.Glob(t,e).walk()}o(eo,"Bs");function wt(t,e={}){return new Ve.Glob(t,e).iterateSync()}o(wt,"Tt");function Vs(t,e={}){return new Ve.Glob(t,e).iterate()}o(Vs,"Be");ie.streamSync=yt;ie.stream=Object.assign(zs,{sync:yt});ie.iterateSync=wt;ie.iterate=Object.assign(Vs,{sync:wt});ie.sync=Object.assign(Hs,{stream:yt,iterate:wt});ie.glob=Object.assign(eo,{glob:eo,globSync:Hs,sync:ie.sync,globStream:zs,stream:ie.stream,globStreamSync:yt,streamSync:ie.streamSync,globIterate:Vs,iterate:ie.iterate,globIterateSync:wt,iterateSync:ie.iterateSync,Glob:Ve.Glob,hasMagic:Gf.hasMagic,escape:Qn.escape,unescape:Qn.unescape});ie.glob.glob=ie.glob});var po=D((tw,qf)=>{qf.exports=["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"]});var mo=D((sw,Uf)=>{Uf.exports=["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"]});var go=D((iw,zf)=>{zf.exports=["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"]});var wo=D((rw,yo)=>{"use strict";var Hf=[].concat(po()).concat(mo()),Vf=go();yo.exports=function(t){var e=0;function s(){return e<t.length}o(s,"hasMore");function i(p){if(p instanceof RegExp){var f=t.slice(e),w=f.match(p);if(w)return e+=w[0].length,w[0]}else if(t.indexOf(p,e)===e)return e+=p.length,p}o(i,"read");function r(){i(/[ ]*/)}o(r,"skipWhitespace");function n(){for(var p,f=[/^WITH/i,/^AND/i,/^OR/i,"(",")",":","+"],w=0;w<f.length&&(p=i(f[w]),!p);w++);if(p==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return p&&{type:"OPERATOR",string:p.toUpperCase()}}o(n,"operator");function l(){return i(/[A-Za-z0-9-.]+/)}o(l,"idstring");function h(){var p=l();if(!p)throw new Error("Expected idstring at offset "+e);return p}o(h,"expectIdstring");function c(){if(i("DocumentRef-")){var p=h();return{type:"DOCUMENTREF",string:p}}}o(c,"documentRef");function u(){if(i("LicenseRef-")){var p=h();return{type:"LICENSEREF",string:p}}}o(u,"licenseRef");function d(){var p=e,f=l();if(Hf.indexOf(f)!==-1)return{type:"LICENSE",string:f};if(Vf.indexOf(f)!==-1)return{type:"EXCEPTION",string:f};e=p}o(d,"identifier");function m(){return n()||c()||u()||d()}o(m,"parseToken");for(var S=[];s()&&(r(),!!s());){var b=m();if(!b)throw new Error("Unexpected `"+t[e]+"` at offset "+e);S.push(b)}return S}});var So=D((ow,bo)=>{"use strict";bo.exports=function(t){var e=0;function s(){return e<t.length}o(s,"hasMore");function i(){return s()?t[e]:null}o(i,"token");function r(){if(!s())throw new Error;e++}o(r,"next");function n(f){var w=i();if(w&&w.type==="OPERATOR"&&f===w.string)return r(),w.string}o(n,"parseOperator");function l(){if(n("WITH")){var f=i();if(f&&f.type==="EXCEPTION")return r(),f.string;throw new Error("Expected exception after `WITH`")}}o(l,"parseWith");function h(){var f=e,w="",y=i();if(y.type==="DOCUMENTREF"&&(r(),w+="DocumentRef-"+y.string+":",!n(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(y=i(),y.type==="LICENSEREF")return r(),w+="LicenseRef-"+y.string,{license:w};e=f}o(h,"parseLicenseRef");function c(){var f=i();if(f&&f.type==="LICENSE"){r();var w={license:f.string};n("+")&&(w.plus=!0);var y=l();return y&&(w.exception=y),w}}o(c,"parseLicense");function u(){var f=n("(");if(f){var w=b();if(!n(")"))throw new Error("Expected `)`");return w}}o(u,"parseParenthesizedExpression");function d(){return u()||h()||c()}o(d,"parseAtom");function m(f,w){return o(function y(){var L=w();if(L){if(!n(f))return L;var R=y();if(!R)throw new Error("Expected expression");return{left:L,conjunction:f.toLowerCase(),right:R}}},"parseBinaryOp")}o(m,"makeBinaryOpParser");var S=m("AND",d),b=m("OR",S),p=b();if(!p||s())throw new Error("Syntax error");return p}});var vo=D((lw,Eo)=>{"use strict";var Yf=wo(),Xf=So();Eo.exports=function(t){return Xf(Yf(t))}});var Lo=D((hw,Ao)=>{var Kf=vo();function Xs(t){return Object.hasOwn(t,"license")?t.license.startsWith("LicenseRef")||t.license.startsWith("DocumentRef"):Xs(t.left)||Xs(t.right)}o(Xs,"usesLicenseRef");Ao.exports=o(function(e){if(e==="UNLICENSED"||e==="UNLICENCED"||/^SEE LICEN[CS]E IN ./.test(e))return!0;try{let s=Kf(e);return!Xs(s)}catch{return!1}},"licenseValidForNewPackage")});var $o=D((uw,Po)=>{var{URL:Ks}=te("node:url"),Oo=qt(),Jf=Lo(),Co={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"},Ro=o(t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf("."),"isEmail");function Zf(t){let e=t.trim().split(`
|
|
23
|
+
`),s=0;for(;e[s]?.trim().match(/^(#|$)/);)s++;let i=s+1;for(;i<e.length&&e[i].trim();)i++;return e.slice(s,i).join(" ").trim()}o(Zf,"extractDescription");function xo(t){if(typeof t!="string"){let n=t.name||"",l=t.url||t.web,h=l?" ("+l+")":"",c=t.email||t.mail,u=c?" <"+c+">":"";t=n+u+h}let e=t.match(/^([^(<]+)/),s=t.match(/\(([^()]+)\)/),i=t.match(/<([^<>]+)>/),r={};return e?.[0].trim()&&(r.name=e[0].trim()),i&&(r.email=i[1]),s&&(r.url=s[1]),r}o(xo,"stringifyPerson");function Qf(t,e){t.description&&typeof t.description!="string"&&(e?.push("'description' field should be a string"),delete t.description),t.readme&&!t.description&&t.readme!=="ERROR: No README data found!"&&(t.description=Zf(t.readme)),t.description===void 0&&delete t.description,t.description||e?.push("No description"),t.modules&&(e?.push("modules field is deprecated"),delete t.modules);let s=t.files;if(s&&!Array.isArray(s)?(e?.push("Invalid 'files' member"),delete t.files):t.files&&(t.files=t.files.filter(function(l){return!l||typeof l!="string"?(e?.push(`Invalid filename in 'files' list: ${l}`),!1):!0})),t.man&&typeof t.man=="string"&&(t.man=[t.man]),!t.bugs&&t.repository?.url){let l=Oo.fromUrl(t.repository.url);l&&l.bugs()&&(t.bugs={url:l.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Ro(t.bugs)?t.bugs={email:t.bugs}:Ks.canParse(t.bugs)?t.bugs={url:t.bugs}:e?.push("Bug string field must be url, email, or {email,url}");else{for(let h in t.bugs)["web","name"].includes(h)&&(e?.push(`bugs['${h}'] should probably be bugs['url'].`),t.bugs.url=t.bugs[h],delete t.bugs[h]);let l=t.bugs;t.bugs={},l.url&&(Ks.canParse(l.url)?t.bugs.url=l.url:e?.push("bugs.url field must be a string url. Deleted.")),l.email&&(typeof l.email=="string"&&Ro(l.email)?t.bugs.email=l.email:e?.push("bugs.email field must be a string email. Deleted."))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,e?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,e?.push("keywords should be an array of strings")):t.keywords&&(t.keywords=t.keywords.filter(function(l){return typeof l!="string"||!l?(e?.push("keywords should be an array of strings"),!1):!0}));let i="bundledDependencies",r="bundleDependencies";if(t[i]&&!t[r]&&(t[r]=t[i],delete t[i]),t[r]&&!Array.isArray(t[r])?(e?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete t[r]):t[r]&&(t[r]=t[r].filter(function(l){return!l||typeof l!="string"?(e?.push(`Invalid bundleDependencies member: ${l}`),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,l)||(e?.push(`Non-dependency in bundleDependencies: ${l}`),t.dependencies[l]="*"),!0)})),!t.homepage&&t.repository&&t.repository.url){let l=Oo.fromUrl(t.repository.url);l&&(t.homepage=l.docs())}t.homepage&&(typeof t.homepage!="string"?(e?.push("homepage field must be a string url. Deleted."),delete t.homepage):Ks.canParse(t.homepage)||(t.homepage="http://"+t.homepage)),t.readme||(e?.push("No README data"),t.readme="ERROR: No README data found!");let n=t.license||t.licence;n?typeof n!="string"||n.length<1||n.trim()===""?e?.push("license should be a valid SPDX license expression"):Jf(n)||e?.push("license should be a valid SPDX license expression"):e?.push("No license field."),t.author&&(t.author=xo(t.author)),["maintainers","contributors"].forEach(function(l){Array.isArray(t[l])&&(t[l]=t[l].map(xo))});for(let l in Co)Object.prototype.hasOwnProperty.call(t,l)&&e?.push(`${l} should probably be ${Co[l]}.`)}o(Qf,"normalizeData");Po.exports={normalizeData:Qf}});var Do=D((pw,To)=>{"use strict";var ep=o((t,e)=>{if(!t.length)return'""';let s;if(!/[ \t\n\v"]/.test(t))s=t;else{s='"';for(let i=0;i<=t.length;++i){let r=0;for(;t[i]==="\\";)++i,++r;if(i===t.length){s+="\\".repeat(r*2);break}t[i]==='"'?(s+="\\".repeat(r*2+1),s+=t[i]):(s+="\\".repeat(r),s+=t[i])}s+='"'}return s=s.replace(/[ !%^&()<>|"]/g,"^$&"),e&&(s=s.replace(/[ !%^&()<>|"]/g,"^$&")),s},"cmd"),tp=o(t=>t.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(t)?`'${t.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):t:"''","sh");To.exports={cmd:ep,sh:tp}});var Mo=D((mw,Fo)=>{"use strict";var{spawn:sp}=te("child_process"),ip=te("os"),rp=Ri(),No=Do(),Zs=o((t,e,s={},i={})=>{if(s.shell)return ko(t,e,s,i);let r,n,l=new Promise((b,p)=>{r=b,n=p}),h=new Error("command failed"),c=[],u=[],d=o(b=>({cmd:t,args:e,...b,...op(c,u,s),...i}),"getResult"),m=o((b,p)=>{let f=d(p);n(Object.assign(b,f))},"rejectWithOpts"),S=sp(t,e,s);return l.stdin=S.stdin,l.process=S,S.on("error",m),S.stdout&&(S.stdout.on("data",b=>c.push(b)),S.stdout.on("error",m)),S.stderr&&(S.stderr.on("data",b=>u.push(b)),S.stderr.on("error",m)),S.on("close",(b,p)=>{b||p?m(h,{code:b,signal:p}):r(d({code:b,signal:p}))}),l},"promiseSpawn"),ko=o((t,e,s,i)=>{let r=s.shell;r===!0&&(r=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let n={...s,shell:!1},l=[],h=t;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(r)){let u=!1,d="",m=!1;for(let b=0;b<t.length;++b){let p=t.charAt(b);if(p===" "&&!m)break;d+=p,(p==='"'||p==="'")&&(m=!m)}let S;try{S=rp.sync(d,{path:n.env&&Io(n.env,"PATH")||process.env.PATH,pathext:n.env&&Io(n.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{S=d.toLowerCase()}u=S.endsWith(".cmd")||S.endsWith(".bat");for(let b of e)h+=` ${No.cmd(b,u)}`;l.push("/d","/s","/c",h),n.windowsVerbatimArguments=!0}else{for(let u of e)h+=` ${No.sh(u)}`;l.push("-c",h)}return Zs(r,l,n,i)},"spawnWithShell"),np=o((t,e={},s={})=>{let i={...e,shell:!0},r=[].concat(t),n=process.platform;if(n==="linux"&&ip.release().toLowerCase().includes("microsoft")&&(n="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let l=i.command;return l||(n==="win32"?(i.shell=process.env.ComSpec,l='start ""'):n==="wsl"?l="sensible-browser":n==="darwin"?l="open":l="xdg-open"),ko(l,r,i,s)},"open");Zs.open=np;var Js=o((t="pipe",e)=>t==="pipe"||t===null?!0:Array.isArray(t)?Js(t[e],e):!1,"isPipe"),op=o((t,e,{stdioString:s=!0,stdio:i})=>{let r={stdout:null,stderr:null};return Js(i,1)&&(r.stdout=Buffer.concat(t),s&&(r.stdout=r.stdout.toString().trim())),Js(i,2)&&(r.stderr=Buffer.concat(e),s&&(r.stderr=r.stderr.toString().trim())),r},"stdioResult"),Io=o((t,e)=>{e=e.toLowerCase();for(let s of Object.keys(t).sort())if(s.toLowerCase()===e)return t[s]},"findInObject");Fo.exports=Zs});var Go=D((yw,jo)=>{var Qs=class{static{o(this,"RetryOperation")}#e=1;#s=null;#i=[];#t=null;#n;#E=null;#b;#h;#a=null;#u;constructor(e,s={}){this.#b=[...e],this.#h=[...e],this.#u=s.unref,this.#n=s.maxRetryTime||1/0,s.forever&&(this.#s=[...this.#h])}get timeouts(){return[...this.#h]}get errors(){return[...this.#i]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#i.length){let s=0,i={};for(let r=0;r<this.#i.length;r++){let n=this.#i[r],{message:l}=n;i[l]||(i[l]=0),i[l]++,i[l]>=s&&(e=n,s=i[l])}}return e}reset(){this.#e=1,this.#h=[...this.#b]}stop(){this.#a&&clearTimeout(this.#a),this.#h=[],this.#s=null}retry(e){if(this.#i.push(e),new Date().getTime()-this.#E>=this.#n)return this.#i.unshift(new Error("RetryOperation timeout occurred")),!1;let s=this.#h.shift();if(s===void 0)if(this.#s)this.#i.pop(),s=this.#s.at(-1);else return!1;return this.#a=setTimeout(()=>{this.#e++,this.#t(this.#e)},s),this.#u&&this.#a.unref(),!0}attempt(e){this.#t=e,this.#E=new Date().getTime(),this.#t(this.#e)}};jo.exports={RetryOperation:Qs}});var Bo=D((bw,Wo)=>{var{RetryOperation:ap}=Go(),_o=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),lp=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),hp=o(async(t,e={})=>{let s=[];if(e instanceof Array)s=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(r.retries){for(let n=0;n<r.retries;n++)s.push(_o(n,r));s.sort((n,l)=>n-l)}else e.forever&&s.push(_o(0,r))}let i=new ap(s,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(r,n){i.attempt(async l=>{try{let h=await t(c=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:c})},l,i);return r(h)}catch(h){if(!lp(h))return n(h);if(!i.retry(h.retried||new Error))return n(h.retried)}})})},"promiseRetry");Wo.exports={promiseRetry:hp}});var ii=D((Ew,qo)=>{var bt=class extends Error{static{o(this,"GitError")}shouldRetry(){return!1}},ei=class extends bt{static{o(this,"GitConnectionError")}constructor(){super("A git connection error occurred")}shouldRetry(e){return e<3}},ti=class extends bt{static{o(this,"GitPathspecError")}constructor(){super("The git reference could not be found")}},si=class extends bt{static{o(this,"GitUnknownError")}constructor(){super("An unknown git error occurred")}};qo.exports={GitConnectionError:ei,GitPathspecError:ti,GitUnknownError:si}});var zo=D((Aw,Uo)=>{var{GitConnectionError:cp,GitPathspecError:up,GitUnknownError:fp}=ii(),pp=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),dp=/pathspec .* did not match any file\(s\) known to git/;function mp(t){let e=t.stderr,s;return pp.test(e)?s=new cp(e):dp.test(e)?s=new up(e):s=new fp(e),Object.assign(s,t)}o(mp,"makeError");Uo.exports=mp});var Ko=D((Ow,Xo)=>{var{hasOwnProperty:ri}=Object.prototype,ni=o((t,e={})=>{typeof e=="string"&&(e={section:e}),e.align=e.align===!0,e.newline=e.newline===!0,e.sort=e.sort===!0,e.whitespace=e.whitespace===!0||e.align===!0,e.platform=e.platform||typeof process<"u"&&process.platform,e.bracketedArray=e.bracketedArray!==!1;let s=e.platform==="win32"?`\r
|
|
24
|
+
`:`
|
|
25
|
+
`,i=e.whitespace?" = ":"=",r=[],n=e.sort?Object.keys(t).sort():Object.keys(t),l=0;e.align&&(l=_e(n.filter(u=>t[u]===null||Array.isArray(t[u])||typeof t[u]!="object").map(u=>Array.isArray(t[u])?`${u}[]`:u).concat([""]).reduce((u,d)=>_e(u).length>=_e(d).length?u:d)).length);let h="",c=e.bracketedArray?"[]":"";for(let u of n){let d=t[u];if(d&&Array.isArray(d))for(let m of d)h+=_e(`${u}${c}`).padEnd(l," ")+i+_e(m)+s;else d&&typeof d=="object"?r.push(u):h+=_e(u).padEnd(l," ")+i+_e(d)+s}e.section&&h.length&&(h="["+_e(e.section)+"]"+(e.newline?s+s:s)+h);for(let u of r){let d=Vo(u,".").join("\\."),m=(e.section?e.section+".":"")+d,S=ni(t[u],{...e,section:m});h.length&&S.length&&(h+=s),h+=S}return h},"encode");function Vo(t,e){var s=0,i=0,r=0,n=[];do if(r=t.indexOf(e,s),r!==-1){if(s=r+e.length,r>0&&t[r-1]==="\\")continue;n.push(t.slice(i,r)),i=r+e.length}while(r!==-1);return n.push(t.slice(i)),n}o(Vo,"splitSections");var Ho=o((t,e={})=>{e.bracketedArray=e.bracketedArray!==!1;let s=Object.create(null),i=s,r=null,n=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,l=t.split(/[\r\n]+/g),h={};for(let u of l){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let d=u.match(n);if(!d)continue;if(d[1]!==void 0){if(r=Yt(d[1]),r==="__proto__"){i=Object.create(null);continue}i=s[r]=s[r]||Object.create(null);continue}let m=Yt(d[2]),S;e.bracketedArray?S=m.length>2&&m.slice(-2)==="[]":(h[m]=(h?.[m]||0)+1,S=h[m]>1);let b=S&&m.endsWith("[]")?m.slice(0,-2):m;if(b==="__proto__")continue;let p=d[3]?Yt(d[4]):!0,f=p==="true"||p==="false"||p==="null"?JSON.parse(p):p;S&&(ri.call(i,b)?Array.isArray(i[b])||(i[b]=[i[b]]):i[b]=[]),Array.isArray(i[b])?i[b].push(f):i[b]=f}let c=[];for(let u of Object.keys(s)){if(!ri.call(s,u)||typeof s[u]!="object"||Array.isArray(s[u]))continue;let d=Vo(u,".");i=s;let m=d.pop(),S=m.replace(/\\\./g,".");for(let b of d)b!=="__proto__"&&((!ri.call(i,b)||typeof i[b]!="object")&&(i[b]=Object.create(null)),i=i[b]);i===s&&S===m||(i[S]=s[u],c.push(u))}for(let u of c)delete s[u];return s},"decode"),Yo=o(t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"),"isQuoted"),_e=o(t=>typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&Yo(t)||t!==t.trim()?JSON.stringify(t):t.split(";").join("\\;").split("#").join("\\#"),"safe"),Yt=o(t=>{if(t=(t||"").trim(),Yo(t)){t.charAt(0)==="'"&&(t=t.slice(1,-1));try{t=JSON.parse(t)}catch{}}else{let e=!1,s="";for(let i=0,r=t.length;i<r;i++){let n=t.charAt(i);if(e)"\\;#".indexOf(n)!==-1?s+=n:s+="\\"+n,e=!1;else{if(";#".indexOf(n)!==-1)break;n==="\\"?e=!0:s+=n}}return e&&(s+="\\"),s.trim()}return t},"unsafe");Xo.exports={parse:Ho,decode:Ho,stringify:ni,encode:ni,safe:_e,unsafe:Yt}});var ea=D((Rw,oi)=>{var Jo=te("node:fs"),gp=te("node:os"),yp=te("node:path"),wp=Ko(),Zo=yp.join(gp.homedir(),".gitconfig"),St=null,Qo=o(()=>{if(St===null)try{if(St={},Jo.existsSync(Zo)){let t=Jo.readFileSync(Zo,"utf-8");St=wp.parse(t)}}catch{St={}}return St},"loadGitConfig"),bp=o(()=>{let t=Qo();return{sshCommandSetInConfig:t?.core?.sshCommand!==void 0,askPassSetInConfig:t?.core?.askpass!==void 0}},"checkGitConfigs"),Sp=process.env.GIT_SSH_COMMAND!==void 0,Ep=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:vp,askPassSetInConfig:Ap}=bp(),Lp={...Ep||Ap?{}:{GIT_ASKPASS:"echo"},...Sp||vp?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};oi.exports=(t={})=>({stdioString:!0,...t,shell:!1,env:t.env||{...Lp,...process.env}});oi.exports.loadGitConfig=Qo});var sa=D((Pw,ta)=>{var Op=Ri(),ai;try{ai=Op.sync("git")}catch{}ta.exports=(t={})=>t.git?t.git:!ai||t.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):ai});var Et=D(($w,ia)=>{var Cp=Mo(),{promiseRetry:Rp}=Bo(),{log:xp}=Ut(),Pp=zo(),$p=ea();ia.exports=(t,e={})=>{let i=sa()(e);if(i instanceof Error)return Promise.reject(i);let r=e.allowReplace||t[0]==="--no-replace-objects"?t:["--no-replace-objects",...t],n=e.retry;return n==null&&(n={retries:e.fetchRetries||2,factor:e.fetchRetryFactor||10,maxTimeout:e.fetchRetryMaxtimeout||6e4,minTimeout:e.fetchRetryMintimeout||1e3}),Rp((l,h)=>(h!==1&&xp.silly("git",`Retrying git command: ${r.join(" ")} attempt # ${h}`),Cp(i,r,$p(e)).catch(c=>{let u=Pp(c);if(!u.shouldRetry(h))throw u;l(u)})),n)}});var oa=D((Tw,na)=>{var ra=lt();na.exports=t=>Tp(t.reduce(Mp,{versions:{},"dist-tags":{},refs:{},shas:{}}));var Tp=o(t=>Ip(Dp(Np(t))),"finish"),Dp=o(t=>(Object.keys(t.refs).forEach(e=>{let s=t.refs[e];t.shas[s.sha]?t.shas[s.sha].push(e):t.shas[s.sha]=[e]}),t),"shaList"),Np=o(t=>(Object.keys(t.refs).filter(e=>e.endsWith("^{}")).forEach(e=>{let s=t.refs[e],i=t.refs[e.replace(/\^\{\}$/,"")];i&&(i.sha=s.sha,delete t.refs[e])}),t),"peelTags"),Ip=o(t=>{let e=t.refs.HEAD||{};return Object.keys(t.versions).forEach(i=>{let r=t.versions[i];t.refs.latest&&r.sha===t.refs.latest.sha?t["dist-tags"].latest=i:r.sha===e.sha&&(t["dist-tags"].HEAD=i,t.refs.latest||(t["dist-tags"].latest=i))}),t},"distTags"),kp=o(t=>t.startsWith("refs/tags/")?"tag":t.startsWith("refs/heads/")?"branch":t.startsWith("refs/pull/")?"pull":t==="HEAD"?"head":"other","refType"),Fp=o(t=>{let e=t.trim().split(/\s+/,2);if(e.length<2)return null;let s=e[0].trim(),i=e[1].trim(),r=kp(i);if(r==="tag"){let n=i.slice(10);return{sha:s,ref:n,rawRef:i,type:r}}if(r==="branch"){let n=i.slice(11);return{sha:s,ref:n,rawRef:i,type:r}}if(r==="pull"){let n=i.slice(5).replace(/\/head$/,"");return{sha:s,ref:n,rawRef:i,type:r}}return r==="head"?{sha:s,ref:"HEAD",rawRef:i,type:r}:{sha:s,ref:i,rawRef:i,type:r}},"lineToRevDoc"),Mp=o((t,e)=>{let s=Fp(e);if(!s)return t;if(t.refs[s.ref]=s,t.refs[s.rawRef]=s,s.type==="tag"){let i=!s.ref.endsWith("^{}")&&s.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);i&&ra.valid(i[1],!0)&&(t.versions[ra.clean(i[1],!0)]=s)}return t},"linesToRevsReducer")});var li=D((Nw,la)=>{var jp=Et(),{LRUCache:Gp}=Is(),_p=oa(),aa=new Gp({max:100,ttl:300*1e3});la.exports=async(t,e={})=>{if(!e.noGitRevCache){let r=aa.get(t);if(r)return r}let{stdout:s}=await jp(["ls-remote",t],e),i=_p(s.trim().split(`
|
|
26
|
+
`));return aa.set(t,i),i}});var ca=D(ha=>{var Wp=o(t=>(t.fakePlatform||process.platform)==="win32","isWindows");ha.isWindows=Wp});var ma=D((Fw,da)=>{var Ye=te("node:process"),Bp=te("node:os"),qp=te("node:fs");function Up(t){return t.includes("libc.musl-")||t.includes("ld-musl-")}o(Up,"isMusl");function ua(){return Ye.platform}o(ua,"os");function fa(){return Ye.arch}o(fa,"cpu");var zp="/usr/bin/ldd";function Hp(){try{let t=qp.readFileSync(zp,"utf-8");return t.includes("musl")?"musl":t.includes("GNU C Library")?"glibc":null}catch{return}}o(Hp,"getFamilyFromFilesystem");function Vp(){let t=Ye.report.excludeNetwork;Ye.report.excludeNetwork=!0;let e=Ye.report.getReport();return Ye.report.excludeNetwork=t,e.header?.glibcVersionRuntime?We="glibc":Array.isArray(e.sharedObjects)&&e.sharedObjects.some(Up)?We="musl":We=null,We}o(Vp,"getFamilyFromReport");var We;function pa(t){if(t==="linux")return We===void 0&&(We=Hp(),We===void 0&&(We=Vp())),We}o(pa,"libc");function Yp(t={}){let e=t.os||ua();return{cpu:{name:t.cpu||fa()},libc:{name:t.libc||pa(e)},os:{name:e,version:t.osVersion||Bp.release()},packageManager:{name:"npm",version:t.npmVersion},runtime:{name:"node",version:t.nodeVersion||Ye.version}}}o(Yp,"devEngines");da.exports={cpu:fa,libc:pa,os:ua,devEngines:Yp}});var ya=D((jw,ga)=>{var Xp=Ze(),Kp=Ps(),Jp=["ignore","warn","error","download"],Zp=["name","version","onFail"],Qp=["packageManager","runtime","cpu","libc","os"];function ed(t,e,s){let{engine:i}=s;if(typeof t!="object"||t===null||Array.isArray(t))throw new Error(`Invalid non-object value for "${i}"`);let r=Object.keys(t);for(let n of r)if(!Zp.includes(n))throw new Error(`Invalid property "${n}" for "${i}"`);if(!r.includes("name"))throw new Error(`Missing "name" property for "${i}"`);if(typeof t.name!="string")throw new Error(`Invalid non-string value for "name" within "${i}"`);if(typeof e.name!="string"||e.name==="")throw new Error(`Unable to determine "name" for "${i}"`);if(r.includes("onFail")){if(typeof t.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${i}"`);if(!Jp.includes(t.onFail))throw new Error(`Invalid onFail value "${t.onFail}" for "${i}"`)}if(t.name!==e.name)return new Error(`Invalid name "${t.name}" does not match "${e.name}" for "${i}"`);if(r.includes("version")){if(typeof t.version!="string")throw new Error(`Invalid non-string value for "version" within "${i}"`);if(typeof e.version!="string"||e.version==="")throw new Error(`Unable to determine "version" for "${i}" "${t.name}"`);if(Kp(t.version)){if(!Xp(e.version,t.version,s.semver))return new Error(`Invalid semver version "${t.version}" does not match "${e.version}" for "${i}"`)}else if(t.version!==e.version)return new Error(`Invalid version "${t.version}" does not match "${e.version}" for "${i}"`)}}o(ed,"checkDependency");function td(t,e={},s={}){if(typeof t!="object"||t===null||Array.isArray(t))throw new Error('Invalid non-object value for "devEngines"');let i=[];for(let r of Object.keys(t)){if(!Qp.includes(r))throw new Error(`Invalid property "devEngines.${r}"`);let n=t[r],l=[n].flat(),h=e[r]||{};if(l.length===0)continue;let c=[];for(let d of l){let m=ed(d,h,{...s,engine:r});m&&c.push(m)}if(c.length===l.length){let m=l[l.length-1].onFail||"error";m==="download"&&(m="error");let S=Object.assign(new Error(`Invalid devEngines.${r}`),{errors:c,engine:r,isWarn:m==="warn",isError:m==="error",current:h,required:n});i.push(S)}}return i}o(td,"checkDevEngines");ga.exports={checkDevEngines:td}});var Sa=D((_w,ba)=>{var wa=lt(),Xt=ma(),{checkDevEngines:sd}=ya(),id=o((t,e,s,i=!1)=>{let r=i?null:s,n=t.engines,l={includePrerelease:!0};if(!n)return;let h=r&&n.node&&!wa.satisfies(r,n.node,l),c=e&&n.npm&&!wa.satisfies(e,n.npm,l);if(h||c)throw Object.assign(new Error("Unsupported engine"),{pkgid:t._id,current:{node:s,npm:e},required:n,code:"EBADENGINE"})},"checkEngine"),rd=o((t,e=!1,s={})=>{if(e)return;let i=s.os||Xt.os(),r=s.cpu||Xt.cpu(),n=s.libc||Xt.libc(i),l=t.os?hi(i,t.os):!0,h=t.cpu?hi(r,t.cpu):!0,c=t.libc?hi(n,t.libc):!0;if(t.libc&&!n&&(c=!1),!l||!h||!c)throw Object.assign(new Error("Unsupported platform"),{pkgid:t._id,current:{os:i,cpu:r,libc:n},required:{os:t.os,cpu:t.cpu,libc:t.libc},code:"EBADPLATFORM"})},"checkPlatform"),hi=o((t,e)=>{if(typeof e=="string"&&(e=[e]),e.length===1&&e[0]==="any")return!0;let s=0,i=!1;for(let r of e){let n=r.charAt(0)==="!",l=n?r.slice(1):r;if(n){if(s++,t===l)return!1}else i=i||t===l}return i||s===e.length},"checkList");ba.exports={checkEngine:id,checkPlatform:rd,checkDevEngines:sd,currentEnv:Xt}});var La=D((Bw,Aa)=>{var{join:Ea,basename:va}=te("path"),nd=o(t=>t.bin?typeof t.bin=="string"?od(t):Array.isArray(t.bin)?ad(t):typeof t.bin=="object"?ui(t):ci(t):ci(t),"normalize"),od=o(t=>t.name?(t.bin={[t.name]:t.bin},ui(t)):ci(t),"normalizeString"),ad=o(t=>(t.bin=t.bin.reduce((e,s)=>(e[va(s)]=s,e),{}),ui(t)),"normalizeArray"),ci=o(t=>(delete t.bin,t),"removeBin"),ui=o(t=>{let e=t.bin,s={},i=!1;return Object.keys(e).forEach(r=>{let n=Ea("/",va(r.replace(/\\|:/g,"/"))).slice(1);if(typeof e[r]!="string"||!n)return;let l=Ea("/",e[r].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);l&&(s[n]=l,i=!0)}),i?t.bin=s:delete t.bin,t},"normalizeObject");Aa.exports=nd});var Ra=D((Uw,Ca)=>{"use strict";var Oa=jn(),vt=lt(),{checkEngine:ld}=Sa(),hd=La(),fi=o((t,e,s)=>{try{return ld(t,e,s),!0}catch{return!1}},"engineOk"),Kt=o((t,e,s)=>!t||!t[e]||Date.parse(t[e])<=s,"isBefore"),cd={includePrerelease:!0,loose:!0},Jt=o((t,e)=>e&&vt.satisfies(t,e,cd),"shouldAvoid"),pi=o((t,e)=>t&&Jt(t.version,e)?{...t,_shouldAvoid:!0}:t,"decorateAvoid"),At=o((t,e,s)=>{let{defaultTag:i="latest",before:r=null,nodeVersion:n=process.version,npmVersion:l=null,includeStaged:h=!1,avoid:c=null,avoidStrict:u=!1}=s,{name:d,time:m}=t,S=t.versions||{};if(u){let T={...s,avoidStrict:!1},F=At(t,e,T);if(!F||!F._shouldAvoid)return F;let H=At(t,`^${F.version}`,T);if(!H||!H._shouldAvoid)return{...H,_outsideDependencyRange:!0,_isSemVerMajor:!1};let M=At(t,"*",T);if(!M||!M._shouldAvoid)return{...M,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${d}`),{code:"ETARGET",name:d,wanted:e,avoid:c,before:r,versions:Object.keys(S)})}let b=h&&t.stagedVersions&&t.stagedVersions.versions||{},p=t.policyRestrictions&&t.policyRestrictions.versions||{},f=r&&m?+new Date(r):1/0,y=Oa.resolve(d,e||i).type,L=t["dist-tags"]||{};if(y!=="tag"&&y!=="version"&&y!=="range")throw new Error("Only tag, version, and range are supported");if(e&&y==="tag"){let T=L[e];return Kt(m,T,f)?pi(S[T]||b[T]||p[T],c):At(t,`<=${T}`,s)}if(e&&y==="version"){let T=vt.clean(e,{loose:!0}),F=S[T]||b[T]||p[T];return Kt(m,T,f)?pi(F,c):null}let R=y==="range"?e:"*",O=L[i];if(O&&(R==="*"||vt.satisfies(O,R,{loose:!0}))&&!p[O]&&!Jt(O,c)){let T=S[O];if(T&&Kt(m,O,f)&&fi(T,l,n)&&!T.deprecated&&!b[O])return T}let $=Object.entries(S).concat(Object.entries(b)).concat(Object.entries(p)).filter(([T])=>Kt(m,T,f));if(!$.length)throw Object.assign(new Error(`No versions available for ${d}`),{code:"ENOVERSIONS",name:d,type:y,wanted:e,before:r,versions:Object.keys(S)});let W={loose:!0},j=$.filter(([T])=>vt.satisfies(T,R,{loose:!0})).sort((T,F)=>{let[H,M]=T,[I,B]=F,_=!Jt(H,c),X=!Jt(I,c),oe=!p[H],Z=!p[I],V=!b[H],fe=!b[I],he=!M.deprecated,le=!B.deprecated,J=fi(M,l,n),ee=fi(B,l,n);return X-_||Z-oe||fe-V||(le&&ee)-(he&&J)||ee-J||le-he||vt.rcompare(H,I,W)});return pi(j[0]&&j[0][1],c)},"pickManifest");Ca.exports=(t,e,s={})=>{let i=At(t,e,s),r=i&&hd(i),n=t.policyRestrictions,l=n&&n.versions||{};if(r&&!l[r.version])return r;let{before:h=null,defaultTag:c="latest"}=s,u=h?new Date(h).toLocaleString():"",{name:d}=t,m=`${d}@${e}`+(h?` with a date before ${u}`:""),S=r&&!!l[r.version],b=S?n.message:"",p=S?`Could not download ${m} due to policy violations:
|
|
27
|
+
${b}`:`No matching version found for ${m}.`,f=S?"E403":"ETARGET";throw Object.assign(new Error(p),{code:f,type:Oa.resolve(t.name,e).type,wanted:e,versions:Object.keys(t.versions??{}),name:d,distTags:t["dist-tags"],defaultTag:c})}});var Ta=D((Hw,$a)=>{var ud=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:fd}=te("url"),xa=te("path"),pd=li(),Lt=Et(),{isWindows:Zt}=ca(),dd=Ra(),di=te("fs/promises");$a.exports=(t,e="HEAD",s=null,i={})=>pd(t,i).then(r=>gd(t,r,e,yd(r,e,i),s||md(t,i.cwd),i));var mi=o((t,e)=>e.gitShallow===!1||e.gitShallow?e.gitShallow:ud.has(fd(t).host),"maybeShallow"),md=o((t,e=process.cwd())=>xa.resolve(e,xa.basename(t.replace(/[/\\]?\.git$/,""))),"defaultTarget"),gd=o((t,e,s,i,r,n)=>i?i.sha===e.refs.HEAD.sha?Sd(t,i,r,n):i.type==="tag"||i.type==="branch"?bd(t,i,r,n):wd(t,i,r,n):Ed(t,s,r,n),"clone"),yd=o((t,e,s)=>{let{spec:i={}}=s;return e=i.gitCommittish||e,t?i.gitRange?dd(t,i.gitRange,s):e?t.refs[e]?t.refs[e]:t.shas[e]?t.refs[t.shas[e][0]]:null:t.refs.HEAD:null},"resolveRef"),wd=o((t,e,s,i)=>{let r=mi(t,i),n=["fetch","origin",e.rawRef].concat(r?["--depth=1"]:[]),l=o(h=>Lt(h,{...i,cwd:s}),"git");return di.mkdir(s,{recursive:!0}).then(()=>l(["init"])).then(()=>Zt(i)?l(["config","--local","--add","core.longpaths","true"]):null).then(()=>l(["remote","add","origin",t])).then(()=>l(n)).then(()=>l(["checkout",e.sha])).then(()=>Pa(s,i)).then(()=>e.sha)},"other"),bd=o((t,e,s,i)=>{let r=["clone","-b",e.ref,t,s,"--recurse-submodules"];return mi(t,i)&&r.push("--depth=1"),Zt(i)&&r.push("--config","core.longpaths=true"),Lt(r,i).then(()=>e.sha)},"branch"),Sd=o((t,e,s,i)=>{let r=["clone",t,s,"--recurse-submodules"];return mi(t,i)&&r.push("--depth=1"),Zt(i)&&r.push("--config","core.longpaths=true"),Lt(r,i).then(()=>e.sha)},"plain"),Pa=o(async(t,e)=>await di.stat(`${t}/.gitmodules`).then(()=>!0).catch(()=>!1)?Lt(["submodule","update","-q","--init","--recursive"],{...e,cwd:t}):null,"updateSubmodules"),Ed=o((t,e,s,i)=>{let r=Zt(i)?["--config","core.longpaths=true"]:[],n=["clone","--mirror","-q",t,s+"/.git"],l=o(h=>Lt(h,{...i,cwd:s}),"git");return di.mkdir(s,{recursive:!0}).then(()=>l(n.concat(r))).then(()=>l(["init"])).then(()=>l(["checkout",e])).then(()=>Pa(s,i)).then(()=>l(["rev-parse","--revs-only","HEAD"])).then(({stdout:h})=>h.trim())},"unresolved")});var gi=D((Yw,Da)=>{var{stat:vd}=te("fs/promises");Da.exports=({cwd:t=process.cwd()}={})=>vd(t+"/.git").then(()=>!0,()=>!1)});var Ia=D((Xw,Na)=>{var Ad=gi(),{dirname:Ld}=te("path");Na.exports=async({cwd:t=process.cwd(),root:e}={})=>{for(;;){if(await Ad({cwd:t}))return t;let s=Ld(t);if(t===e||t===s)return null;t=s}}});var Fa=D((Kw,ka)=>{var Od=Et();ka.exports=(t={})=>Od(["status","--porcelain=v1","-uno"],t).then(e=>!e.stdout.trim().split(/\r?\n+/).map(s=>s.trim()).filter(s=>s).length)});var ja=D((Jw,Ma)=>{Ma.exports={clone:Ta(),revs:li(),spawn:Et(),is:gi(),find:Ia(),isClean:Fa(),errors:ii()}});var Ua=D((Zw,qa)=>{var Cd=ys(),Rd=ws(),Ue=te("node:fs/promises"),me=te("node:path"),{log:Wa}=Ut(),xd=te("node:module"),yi;function Ga(){return yi||(yi=qt()),yi}o(Ga,"lazyHostedGitInfo");var wi;function Qt(){return wi||(wi=Ys().glob),wi}o(Qt,"lazyLoadGlob");function Pd(t,e){if(t.bin&&(typeof t.bin=="string"&&t.name?(e?.push('"bin" was converted to an object'),t.bin={[t.name]:t.bin}):Array.isArray(t.bin)&&(e?.push('"bin" was converted to an object'),t.bin=t.bin.reduce((s,i)=>(s[me.basename(i)]=i,s),{})),typeof t.bin=="object")){for(let s in t.bin){if(typeof t.bin[s]!="string"){delete t.bin[s],e?.push(`removed invalid "bin[${s}]"`);continue}let i=me.basename(et(s));if(!i){delete t.bin[s],e?.push(`removed invalid "bin[${s}]"`);continue}let r=et(t.bin[s]);if(!r){delete t.bin[s],e?.push(`removed invalid "bin[${s}]"`);continue}i!==s&&(delete t.bin[s],e?.push(`"bin[${s}]" was renamed to "bin[${i}]"`)),r!==t.bin[s]&&e?.push(`"bin[${i}]" script name ${r} was invalid and removed`),t.bin[i]=r}return Object.keys(t.bin).length===0&&(e?.push('empty "bin" was removed'),delete t.bin),t}delete t.bin}o(Pd,"normalizePackageBin");function $d(t,e){if(t.man){let s=[];for(let i of Array.isArray(t.man)?t.man:[t.man])typeof i!="string"?e?.push(`removed invalid "man [${i}]"`):s.push(et(i));if(!s.length)e?.push('empty "man" was removed');else return t.man=s,t}delete t.man}o($d,"normalizePackageMan");function Td(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}o(Td,"isCorrectlyEncodedName");function Dd(t){if(t.charAt(0)!=="@")return!1;let e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}o(Dd,"isValidScopedPackageName");function _a(t){return t.replace(/\\|:/g,"/")}o(_a,"unixifyPath");function et(t){let e=_a(me.join(".",me.join("/",_a(t))));return e.startsWith("./")?"":e}o(et,"secureAndUnixifyPath");function Ba(t,{strict:e,steps:s,changes:i,allowLegacyCase:r}){let n=t.content,l=`${n.name??""}@${n.version??""}`;if(s.includes("fixName")||s.includes("fixNameField")||s.includes("normalizeData"))if(!n.name&&!e)i?.push('Missing "name" field was set to an empty string'),n.name="";else{if(typeof n.name!="string")throw new Error("name field must be a string.");if(!e){let h=n.name.trim();n.name!==h&&(i?.push('Whitespace was trimmed from "name"'),n.name=h)}if(n.name.startsWith(".")||!(Dd(n.name)||Td(n.name))||e&&!r&&n.name!==n.name.toLowerCase()||n.name.toLowerCase()==="node_modules"||n.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(n.name))}if(s.includes("fixName")&&xd.builtinModules.includes(n.name)&&Wa.warn("package-json",l,`Package name "${n.name}" conflicts with a Node.js built-in module name`),s.includes("fixVersionField")||s.includes("normalizeData")){let h=!e;if(!n.version)n.version="";else{if(!Cd(n.version,h))throw new Error(`Invalid version: "${n.version}"`);let c=Rd(n.version,h);c!==n.version&&(i?.push(`"version" was cleaned and set to "${c}"`),n.version=c)}}if(s.includes("_attributes"))for(let h in n)h.startsWith("_")&&(i?.push(`"${h}" was removed`),delete t.content[h]);if(s.includes("_id")&&n.name&&n.version&&(i?.push(`"_id" was set to ${l}`),n._id=l),s.includes("bundledDependencies")&&(n.bundleDependencies===void 0&&n.bundledDependencies!==void 0&&(n.bundleDependencies=n.bundledDependencies,i?.push('Deleted incorrect "bundledDependencies"')),delete n.bundledDependencies),s.includes("bundleDependencies")){let h=n.bundleDependencies;h===!1&&!s.includes("bundleDependenciesDeleteFalse")?(i?.push('"bundleDependencies" was changed from "false" to "[]"'),n.bundleDependencies=[]):h===!0?(i?.push('"bundleDependencies" was auto-populated from "dependencies"'),n.bundleDependencies=Object.keys(n.dependencies||{})):h&&typeof h=="object"?Array.isArray(h)||(i?.push('"bundleDependencies" was changed from an object to an array'),n.bundleDependencies=Object.keys(h)):"bundleDependencies"in n&&(i?.push('"bundleDependencies" was removed'),delete n.bundleDependencies)}if(s.includes("optionalDedupe")&&n.dependencies&&n.optionalDependencies&&typeof n.optionalDependencies=="object"){for(let h in n.optionalDependencies)i?.push(`optionalDependencies."${h}" was removed`),delete n.dependencies[h];Object.keys(n.dependencies).length||(i?.push('Empty "optionalDependencies" was removed'),delete n.dependencies)}if((s.includes("scripts")||s.includes("scriptpath"))&&n.scripts!==void 0){let h=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof n.scripts=="object")for(let c in n.scripts)typeof n.scripts[c]!="string"?(delete n.scripts[c],i?.push(`Invalid scripts."${c}" was removed`)):s.includes("scriptpath")&&h.test(n.scripts[c])&&(n.scripts[c]=n.scripts[c].replace(h,""),i?.push(`scripts entry "${c}" was fixed to remove node_modules/.bin reference`));else i?.push('Removed invalid "scripts"'),delete n.scripts}if(s.includes("funding")&&n.funding&&typeof n.funding=="string"&&(n.funding={url:n.funding},i?.push('"funding" was changed to an object with a url attribute')),(s.includes("fixRepositoryField")||s.includes("normalizeData"))&&(n.repositories&&(i?.push(`"repository" was set to the first entry in "repositories" (${n.repository})`),n.repository=n.repositories[0]),n.repository&&(typeof n.repository=="string"&&(i?.push('"repository" was changed from a string to an object'),n.repository={type:"git",url:n.repository}),n.repository.url))){let h=Ga().fromUrl(n.repository.url),c;h&&(h.getDefaultRepresentation()==="shortcut"?c=h.https():c=h.toString(),c!==n.repository.url&&(i?.push(`"repository.url" was normalized to "${c}"`),n.repository.url=c))}if(s.includes("fixDependencies")||s.includes("normalizeData")){for(let h of["dependencies","devDependencies","optionalDependencies"])if(n[h]){let c=!0;if(typeof n[h]=="string"&&(i?.push(`"${h}" was converted from a string into an object`),n[h]=n[h].trim().split(/[\n\r\s\t ,]+/),c=!1),Array.isArray(n[h])){c&&i?.push(`"${h}" was converted from an array into an object`);let u={};for(let d of n[h])if(typeof d=="string"){let m=d.trim().split(/(:?[@\s><=])/),S=m.shift(),b=m.join("").replace(/^@/,"").trim();u[S]=b}n[h]=u}}for(let h of["dependencies","devDependencies"])if(h in n)if(!n[h]||typeof n[h]!="object")i?.push(`Removed invalid "${h}"`),delete n[h];else for(let c in n[h]){typeof n[h][c]!="string"&&(i?.push(`Removed invalid "${h}.${c}"`),delete n[h][c]);let d=Ga().fromUrl(n[h][c])?.toString();d&&d!==n[h][c]&&(i?.push(`Normalized git reference to "${h}.${c}"`),n[h][c]=d.toString())}}if(s.includes("normalizeData")){let{normalizeData:h}=$o();h(n,i)}}o(Ba,"syncSteps");async function Nd(t,{steps:e,root:s,changes:i}){let r=t.content,n=r.scripts||{},l=`${r.name??""}@${r.version??""}`;if(e.includes("gypfile")&&!n.install&&!n.preinstall&&r.gypfile!==!1&&(await Qt()("*.gyp",{cwd:t.path})).length&&(n.install="node-gyp rebuild",r.scripts=n,r.gypfile=!0,i?.push('"scripts.install" was set to "node-gyp rebuild"'),i?.push('"gypfile" was set to "true"')),e.includes("serverjs")&&!n.start)try{await Ue.access(me.join(t.path,"server.js")),n.start="node server.js",r.scripts=n,i?.push('"scripts.start" was set to "node server.js"')}catch{}if(e.includes("authors")&&!r.contributors)try{let c=(await Ue.readFile(me.join(t.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(u=>u.replace(/^\s*#.*$/,"").trim()).filter(u=>u);r.contributors=c,i?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(e.includes("readme")&&!r.readme){let h=/\.m?a?r?k?d?o?w?n?$/i,c=await Qt()("{README,README.*}",{cwd:t.path,nocase:!0,mark:!0}),u;for(let d of c)if(!d.endsWith(me.sep)){if(d.match(h)){u=d;break}d.endsWith("README")&&(u=d)}if(u){let d=await Ue.readFile(me.join(t.path,u),"utf8");r.readme=d,r.readmeFilename=u,i?.push(`"readme" was set to the contents of ${u}`),i?.push(`"readmeFilename" was set to ${u}`)}r.readme||(r.readme="ERROR: No README data found!")}if(e.includes("mans")){if(r.directories?.man&&!r.man){let h=et(r.directories.man),c=me.resolve(t.path,h),u=await Qt()("**/*.[0-9]",{cwd:c});r.man=u.map(d=>me.relative(t.path,me.join(c,d)).split(me.sep).join("/"))}$d(r,i)}if(e.includes("binDir")&&r.directories?.bin&&!r.bin&&t.path){let h=et(r.directories.bin),c=await Qt()("**",{cwd:me.resolve(t.path,h)});r.bin=c.reduce((u,d)=>{if(d&&!d.startsWith(".")){let m=me.basename(d);u[m]=`${h}/${et(d)}`}return u},{})}else(e.includes("bin")||e.includes("binDir")||e.includes("binRefs"))&&Pd(r,i);if(e.includes("gitHead")&&!r.gitHead){let c=await ja().find({cwd:t.path,root:s}),u;if(c)try{u=await Ue.readFile(me.resolve(c,".git/HEAD"),"utf8")}catch{}let d;if(u)if(u.startsWith("ref: ")){let m=u.replace(/^ref: /,"").trim(),S=me.resolve(c,".git",m);try{d=await Ue.readFile(S,"utf8"),d=d.replace(/^ref: /,"").trim()}catch{}if(!d){let b=me.resolve(c,".git/packed-refs");try{let p=await Ue.readFile(b,"utf8");if(p){p=p.split(`
|
|
28
|
+
`);for(let f=0;f<p.length;f++){let w=p[f].match(/^([0-9a-f]{40}) (.+)$/);if(w&&w[2].trim()===m){d=w[1];break}}}}catch{}}}else d=u.trim();d&&(r.gitHead=d)}if(e.includes("fillTypes")){let h=r.main||"index.js";if(typeof h!="string")throw new TypeError('The "main" attribute must be of type string.');let u=`./${me.join(me.dirname(h),me.basename(h,me.extname(h)))}.d.ts`;if(!("types"in r||"typings"in r))try{await Ue.access(me.join(t.path,u)),r.types=u.split(me.sep).join("/")}catch{}}if(e.includes("binRefs")&&r.bin instanceof Object)for(let h in r.bin)try{await Ue.access(me.resolve(t.path,r.bin[h]))}catch{Wa.warn("package-json",l,`No bin file found at ${r.bin[h]}`)}}o(Nd,"asyncSteps");async function Id(t,e){if(!t.content)throw new Error("Can not normalize without content");await Nd(t,e),Ba(t,e)}o(Id,"normalize");function kd(t,e){Ba(t,e)}o(kd,"syncNormalize");qa.exports={normalize:Id,syncNormalize:kd}});var Ya=D((eb,Va)=>{var{readFile:Fd}=te("fs/promises"),Md=Bs();async function za(t){try{return await Fd(t,"utf8")}catch(e){throw e.message=`Could not read package.json: ${e}`,e}}o(za,"read");function Ha(t){try{return Md(t)}catch(e){throw e.message=`Invalid package.json: ${e}`,e}}o(Ha,"parse");async function jd(t){let e=await za(t);return Ha(e)}o(jd,"readPackage");Va.exports={read:za,parse:Ha,readPackage:jd}});var Ka=D((sb,Xa)=>{function Gd(t){let{name:e,version:s,private:i,description:r,keywords:n,homepage:l,bugs:h,repository:c,funding:u,license:d,author:m,maintainers:S,contributors:b,type:p,imports:f,exports:w,main:y,browser:L,types:R,bin:O,man:$,directories:W,files:j,workspaces:T,scripts:F,config:H,dependencies:M,devDependencies:I,peerDependencies:B,peerDependenciesMeta:_,optionalDependencies:X,bundledDependencies:oe,bundleDependencies:Z,engines:V,os:fe,cpu:he,publishConfig:le,devEngines:J,licenses:ee,overrides:ce,...Se}=t;return{...typeof e<"u"?{name:e}:{},...typeof s<"u"?{version:s}:{},...typeof i<"u"?{private:i}:{},...typeof r<"u"?{description:r}:{},...typeof n<"u"?{keywords:n}:{},...typeof l<"u"?{homepage:l}:{},...typeof h<"u"?{bugs:h}:{},...typeof c<"u"?{repository:c}:{},...typeof u<"u"?{funding:u}:{},...typeof d<"u"?{license:d}:{},...typeof m<"u"?{author:m}:{},...typeof S<"u"?{maintainers:S}:{},...typeof b<"u"?{contributors:b}:{},...typeof p<"u"?{type:p}:{},...typeof f<"u"?{imports:f}:{},...typeof w<"u"?{exports:w}:{},...typeof y<"u"?{main:y}:{},...typeof L<"u"?{browser:L}:{},...typeof R<"u"?{types:R}:{},...typeof O<"u"?{bin:O}:{},...typeof $<"u"?{man:$}:{},...typeof W<"u"?{directories:W}:{},...typeof j<"u"?{files:j}:{},...typeof T<"u"?{workspaces:T}:{},...typeof F<"u"?{scripts:F}:{},...typeof H<"u"?{config:H}:{},...typeof M<"u"?{dependencies:M}:{},...typeof I<"u"?{devDependencies:I}:{},...typeof B<"u"?{peerDependencies:B}:{},...typeof _<"u"?{peerDependenciesMeta:_}:{},...typeof X<"u"?{optionalDependencies:X}:{},...typeof oe<"u"?{bundledDependencies:oe}:{},...typeof Z<"u"?{bundleDependencies:Z}:{},...typeof V<"u"?{engines:V}:{},...typeof fe<"u"?{os:fe}:{},...typeof he<"u"?{cpu:he}:{},...typeof le<"u"?{publishConfig:le}:{},...typeof J<"u"?{devEngines:J}:{},...typeof ee<"u"?{licenses:ee}:{},...typeof ce<"u"?{overrides:ce}:{},...Se}}o(Gd,"packageSort");Xa.exports={packageSort:Gd}});var el=D((rb,Qa)=>{var{readFile:_d,writeFile:Wd}=te("node:fs/promises"),{resolve:Ja}=te("node:path"),Bd=Bs(),Za=Hn(),qd=Yn(),Ud=Kn(),{normalize:bi,syncNormalize:zd}=Ua(),{read:Hd,parse:Vd}=Ya(),{packageSort:Yd}=Ka(),Xd=new Set([Za,qd,Ud]),Kd=new Set([...Za.knownKeys,"scripts","workspaces"]),Si=class t{static{o(this,"PackageJson")}static fixSteps=Object.freeze(["binRefs","bundleDependencies","fixName","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin","binDir"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(e,s={}){let i=new t;return await i.create(e),s.data?i.update(s.data):i}static async load(e,s={}){let i=new t;if(!s.create)return i.load(e);try{return await i.load(e)}catch(r){if(!r.message.startsWith("Could not read package.json"))throw r;return await i.create(e)}}static async fix(e,s){let i=new t;return await i.load(e,!0),i.fix(s)}static async prepare(e,s){let i=new t;return await i.load(e,!0),i.prepare(s)}static async normalize(e,s){let i=new t;return await i.load(e),i.normalize(s)}#e;#s;#i="";#t=!0;async load(e,s){this.#e=e;let i;try{this.#i=await Hd(this.filename)}catch(r){if(!s)throw r;i=r}if(i){let r=Ja(this.path,"index.js"),n;try{n=await _d(r,"utf8")}catch{throw i}try{this.fromComment(n)}catch{throw i}return this.#t=!1,this}return this.fromJSON(this.#i)}fromJSON(e){return this.#s=Vd(e),this}fromContent(e){if(!e||typeof e!="object")throw new Error("Content data must be an object");return this.#s=e,this.#t=!1,this}fromComment(e){if(e=e.split(/^\/\*\*package(?:\s|$)/m),e.length<2)throw new Error("File has no package in comments");if(e=e[1],e=e.split(/\*\*\/$/m),e.length<2)throw new Error("File has no package in comments");return e=e[0],e=e.replace(/^\s*\*/mg,""),this.#s=Bd(e),this}get content(){return this.#s}get path(){return this.#e}get filename(){if(this.path)return Ja(this.path,"package.json")}create(e){return this.#e=e,this.#s={},this}update(e){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let s of Xd)this.#s=s({content:e,originalContent:this.content});for(let[s,i]of Object.entries(e))Kd.has(s)||(this.content[s]=i);return this}async save({sort:e}={}){if(!this.#t)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:s,[Symbol.for("newline")]:i,...r}=this.content,n=s===void 0?" ":s,l=i===void 0?`
|
|
29
|
+
`:i,h=e?Yd(r):r,c=`${JSON.stringify(h,null,n)}
|
|
30
|
+
`.replace(/\n/g,l);if(c.trim()!==this.#i.trim()){let u=await Wd(this.filename,c);return this.#i=c,u}}syncNormalize(e={}){return e.steps=this.constructor.normalizeSteps.filter(s=>s!=="_attributes"),zd(this,e),this}async normalize(e={}){return e.steps||(e.steps=this.constructor.normalizeSteps),await bi(this,e),this}async prepare(e={}){return e.steps||(e.steps=this.constructor.prepareSteps),await bi(this,e),this}async fix(e={}){return e.steps=this.constructor.fixSteps,await bi(this,e),this}};Qa.exports=Si});var il=D((ob,sl)=>{var{basename:tl,dirname:Jd}=te("path"),Zd=o((t,e)=>t.charAt(0)==="@"?`${t}/${e}`:e,"getName");sl.exports=t=>t?Zd(tl(Jd(t)),tl(t)):!1});var nl=D(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.range=Xe.balanced=void 0;var Qd=o((t,e,s)=>{let i=t instanceof RegExp?rl(t,s):t,r=e instanceof RegExp?rl(e,s):e,n=i!==null&&r!=null&&(0,Xe.range)(i,r,s);return n&&{start:n[0],end:n[1],pre:s.slice(0,n[0]),body:s.slice(n[0]+i.length,n[1]),post:s.slice(n[1]+r.length)}},"balanced");Xe.balanced=Qd;var rl=o((t,e)=>{let s=e.match(t);return s?s[0]:null},"maybeMatch"),em=o((t,e,s)=>{let i,r,n,l,h,c=s.indexOf(t),u=s.indexOf(e,c+1),d=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],n=s.length;d>=0&&!h;){if(d===c)i.push(d),c=s.indexOf(t,d+1);else if(i.length===1){let m=i.pop();m!==void 0&&(h=[m,u])}else r=i.pop(),r!==void 0&&r<n&&(n=r,l=u),u=s.indexOf(e,d+1);d=c<u&&c>=0?c:u}i.length&&l!==void 0&&(h=[n,l])}return h},"range");Xe.range=em});var fl=D(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.EXPANSION_MAX=void 0;tt.expand=pm;var ol=nl(),al="\0SLASH"+Math.random()+"\0",ll="\0OPEN"+Math.random()+"\0",vi="\0CLOSE"+Math.random()+"\0",hl="\0COMMA"+Math.random()+"\0",cl="\0PERIOD"+Math.random()+"\0",tm=new RegExp(al,"g"),sm=new RegExp(ll,"g"),im=new RegExp(vi,"g"),rm=new RegExp(hl,"g"),nm=new RegExp(cl,"g"),om=/\\\\/g,am=/\\{/g,lm=/\\}/g,hm=/\\,/g,cm=/\\\./g;tt.EXPANSION_MAX=1e5;function Ei(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(Ei,"numeric");function um(t){return t.replace(om,al).replace(am,ll).replace(lm,vi).replace(hm,hl).replace(cm,cl)}o(um,"escapeBraces");function fm(t){return t.replace(tm,"\\").replace(sm,"{").replace(im,"}").replace(rm,",").replace(nm,".")}o(fm,"unescapeBraces");function ul(t){if(!t)return[""];let e=[],s=(0,ol.balanced)("{","}",t);if(!s)return t.split(",");let{pre:i,body:r,post:n}=s,l=i.split(",");l[l.length-1]+="{"+r+"}";let h=ul(n);return n.length&&(l[l.length-1]+=h.shift(),l.push.apply(l,h)),e.push.apply(e,l),e}o(ul,"parseCommaParts");function pm(t,e={}){if(!t)return[];let{max:s=tt.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Ot(um(t),s,!0).map(fm)}o(pm,"expand");function dm(t){return"{"+t+"}"}o(dm,"embrace");function mm(t){return/^-?0\d/.test(t)}o(mm,"isPadded");function gm(t,e){return t<=e}o(gm,"lte");function ym(t,e){return t>=e}o(ym,"gte");function Ot(t,e,s){let i=[],r=(0,ol.balanced)("{","}",t);if(!r)return[t];let n=r.pre,l=r.post.length?Ot(r.post,e,!1):[""];if(/\$$/.test(r.pre))for(let h=0;h<l.length&&h<e;h++){let c=n+"{"+r.body+"}"+l[h];i.push(c)}else{let h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),u=h||c,d=r.body.indexOf(",")>=0;if(!u&&!d)return r.post.match(/,(?!,).*\}/)?(t=r.pre+"{"+r.body+vi+r.post,Ot(t,e,!0)):[t];let m;if(u)m=r.body.split(/\.\./);else if(m=ul(r.body),m.length===1&&m[0]!==void 0&&(m=Ot(m[0],e,!1).map(dm),m.length===1))return l.map(b=>r.pre+m[0]+b);let S;if(u&&m[0]!==void 0&&m[1]!==void 0){let b=Ei(m[0]),p=Ei(m[1]),f=Math.max(m[0].length,m[1].length),w=m.length===3&&m[2]!==void 0?Math.max(Math.abs(Ei(m[2])),1):1,y=gm;p<b&&(w*=-1,y=ym);let R=m.some(mm);S=[];for(let O=b;y(O,p);O+=w){let $;if(c)$=String.fromCharCode(O),$==="\\"&&($="");else if($=String(O),R){let W=f-$.length;if(W>0){let j=new Array(W+1).join("0");O<0?$="-"+j+$.slice(1):$=j+$}}S.push($)}}else{S=[];for(let b=0;b<m.length;b++)S.push.apply(S,Ot(m[b],e,!1))}for(let b=0;b<S.length;b++)for(let p=0;p<l.length&&i.length<e;p++){let f=n+S[b]+l[p];(!s||u||f)&&i.push(f)}}return i}o(Ot,"expand_")});var pl=D(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.assertValidPattern=void 0;var wm=1024*64,bm=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>wm)throw new TypeError("pattern is too long")},"assertValidPattern");es.assertValidPattern=bm});var ml=D(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.parseClass=void 0;var Sm={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ct=o(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),Em=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),dl=o(t=>t.join(""),"rangesToString"),vm=o((t,e)=>{let s=e;if(t.charAt(s)!=="[")throw new Error("not in a brace expression");let i=[],r=[],n=s+1,l=!1,h=!1,c=!1,u=!1,d=s,m="";e:for(;n<t.length;){let f=t.charAt(n);if((f==="!"||f==="^")&&n===s+1){u=!0,n++;continue}if(f==="]"&&l&&!c){d=n+1;break}if(l=!0,f==="\\"&&!c){c=!0,n++;continue}if(f==="["&&!c){for(let[w,[y,L,R]]of Object.entries(Sm))if(t.startsWith(w,n)){if(m)return["$.",!1,t.length-s,!0];n+=w.length,R?r.push(y):i.push(y),h=h||L;continue e}}if(c=!1,m){f>m?i.push(Ct(m)+"-"+Ct(f)):f===m&&i.push(Ct(f)),m="",n++;continue}if(t.startsWith("-]",n+1)){i.push(Ct(f+"-")),n+=2;continue}if(t.startsWith("-",n+1)){m=f,n+=2;continue}i.push(Ct(f)),n++}if(d<n)return["",!1,0,!1];if(!i.length&&!r.length)return["$.",!1,t.length-s,!0];if(r.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let f=i[0].length===2?i[0].slice(-1):i[0];return[Em(f),!1,d-s,!1]}let S="["+(u?"^":"")+dl(i)+"]",b="["+(u?"":"^")+dl(r)+"]";return[i.length&&r.length?"("+S+"|"+b+")":i.length?S:b,h,d-s,!0]},"parseClass");ts.parseClass=vm});var is=D(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.unescape=void 0;var Am=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:s=!0}={})=>s?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");ss.unescape=Am});var Oi=D(as=>{"use strict";var Pe;Object.defineProperty(as,"__esModule",{value:!0});as.AST=void 0;var Lm=ml(),rs=is(),Om=new Set(["!","?","+","*","@"]),Ai=o(t=>Om.has(t),"isExtglobType"),gl=o(t=>Ai(t.type),"isExtglobAST"),Cm=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Rm=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),xm=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),yl=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Pm="(?!(?:^|/)\\.\\.?(?:$|/))",ns="(?!\\.)",$m=new Set(["[","."]),Tm=new Set(["..","."]),Dm=new Set("().*{}+?[]^$\\!"),Nm=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Li="[^/]",wl=Li+"*?",bl=Li+"+?",Im=0,os=class{static{o(this,"AST")}type;#e;#s;#i=!1;#t=[];#n;#E;#b;#h=!1;#a;#u;#c=!1;id=++Im;get depth(){return(this.#n?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#n?.id,depth:this.depth,partsLength:this.#t.length,parts:this.#t}}constructor(e,s,i={}){this.type=e,e&&(this.#s=!0),this.#n=s,this.#e=this.#n?this.#n.#e:this,this.#a=this.#e===this?i:this.#e.#a,this.#b=this.#e===this?[]:this.#e.#b,e==="!"&&!this.#e.#h&&this.#b.push(this),this.#E=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#s!==void 0)return this.#s;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#s=!0;return this.#s}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#u=this.#t.map(e=>String(e)).join("")}#l(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let e;for(;e=this.#b.pop();){if(e.type!=="!")continue;let s=e,i=s.#n;for(;i;){for(let r=s.#E+1;!i.type&&r<i.#t.length;r++)for(let n of e.#t){if(typeof n=="string")throw new Error("string part in extglob AST??");n.copyIn(i.#t[r])}s=i,i=s.#n}}return this}push(...e){for(let s of e)if(s!==""){if(typeof s!="string"&&!(s instanceof Pe&&s.#n===this))throw new Error("invalid part: "+s);this.#t.push(s)}}toJSON(){let e=this.type===null?this.#t.slice().map(s=>typeof s=="string"?s:s.toJSON()):[this.type,...this.#t.map(s=>s.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#E===0)return!0;let e=this.#n;for(let s=0;s<this.#E;s++){let i=e.#t[s];if(!(i instanceof Pe&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#t.length:0;return this.#E===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let s=new Pe(this.type,e);for(let i of this.#t)s.copyIn(i);return s}static#r(e,s,i,r,n){let l=r.maxExtglobRecursion??2,h=!1,c=!1,u=-1,d=!1;if(s.type===null){let f=i,w="";for(;f<e.length;){let y=e.charAt(f++);if(h||y==="\\"){h=!h,w+=y;continue}if(c){f===u+1?(y==="^"||y==="!")&&(d=!0):y==="]"&&!(f===u+2&&d)&&(c=!1),w+=y;continue}else if(y==="["){c=!0,u=f,d=!1,w+=y;continue}if(!r.noext&&Ai(y)&&e.charAt(f)==="("&&n<=l){s.push(w),w="";let R=new Pe(y,s);f=Pe.#r(e,R,f,r,n+1),s.push(R);continue}w+=y}return s.push(w),f}let m=i+1,S=new Pe(null,s),b=[],p="";for(;m<e.length;){let f=e.charAt(m++);if(h||f==="\\"){h=!h,p+=f;continue}if(c){m===u+1?(f==="^"||f==="!")&&(d=!0):f==="]"&&!(m===u+2&&d)&&(c=!1),p+=f;continue}else if(f==="["){c=!0,u=m,d=!1,p+=f;continue}if(!r.noext&&Ai(f)&&e.charAt(m)==="("&&(n<=l||s&&s.#m(f))){let y=s&&s.#m(f)?0:1;S.push(p),p="";let L=new Pe(f,S);S.push(L),m=Pe.#r(e,L,m,r,n+y);continue}if(f==="|"){S.push(p),p="",b.push(S),S=new Pe(null,s);continue}if(f===")")return p===""&&s.#t.length===0&&(s.#c=!0),S.push(p),p="",s.push(...b,S),m;p+=f}return s.type=null,s.#s=void 0,s.#t=[e.substring(i-1)],m}#g(e){return this.#S(e,Rm)}#S(e,s=Cm){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#m(i.type,s)}#m(e,s=xm){return!!s.get(this.type)?.includes(e)}#p(e,s){let i=e.#t[0],r=new Pe(null,i,this.options);r.#t.push(""),i.push(r),this.#R(e,s)}#R(e,s){let i=e.#t[0];this.#t.splice(s,1,...i.#t);for(let r of i.#t)typeof r=="object"&&(r.#n=this);this.#u=void 0}#d(e){return!!yl.get(this.type)?.has(e)}#O(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let s=e.#t[0];return!s||typeof s!="object"||s.type===null?!1:this.#d(s.type)}#C(e){let s=yl.get(this.type),i=e.#t[0],r=s?.get(i.type);if(!r)return!1;this.#t=i.#t;for(let n of this.#t)typeof n=="object"&&(n.#n=this);this.type=r,this.#u=void 0,this.#c=!1}static fromGlob(e,s={}){let i=new Pe(null,void 0,s);return Pe.#r(e,i,0,s,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[s,i,r,n]=this.toRegExpSource();if(!(r||this.#s||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let h=(this.#a.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${s}$`,h),{_src:s,_glob:e})}get options(){return this.#a}toRegExpSource(e){let s=e??!!this.#a.dot;if(this.#e===this&&(this.#y(),this.#l()),!gl(this)){let c=this.isStart()&&this.isEnd()&&!this.#t.some(b=>typeof b!="string"),u=this.#t.map(b=>{let[p,f,w,y]=typeof b=="string"?Pe.#A(b,this.#s,c):b.toRegExpSource(e);return this.#s=this.#s||w,this.#i=this.#i||y,p}).join(""),d="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&Tm.has(this.#t[0]))){let p=$m,f=s&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),w=!s&&!e&&p.has(u.charAt(0));d=f?Pm:w?ns:""}let m="";return this.isEnd()&&this.#e.#h&&this.#n?.type==="!"&&(m="(?:$|\\/)"),[d+u+m,(0,rs.unescape)(u),this.#s=!!this.#s,this.#i]}let i=this.type==="*"||this.type==="+",r=this.type==="!"?"(?:(?!(?:":"(?:",n=this.#w(s);if(this.isStart()&&this.isEnd()&&!n&&this.type!=="!"){let c=this.toString(),u=this;return u.#t=[c],u.type=null,u.#s=void 0,[c,(0,rs.unescape)(this.toString()),!1,!1]}let l=!i||e||s||!ns?"":this.#w(!0);l===n&&(l=""),l&&(n=`(?:${n})(?:${l})*?`);let h="";if(this.type==="!"&&this.#c)h=(this.isStart()&&!s?ns:"")+bl;else{let c=this.type==="!"?"))"+(this.isStart()&&!s&&!e?ns:"")+wl+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;h=r+n+c}return[h,(0,rs.unescape)(n),this.#s=!!this.#s,this.#i]}#y(){if(gl(this)){let e=0,s=!1;do{s=!0;for(let i=0;i<this.#t.length;i++){let r=this.#t[i];typeof r=="object"&&(r.#y(),this.#S(r)?(s=!1,this.#R(r,i)):this.#g(r)?(s=!1,this.#p(r,i)):this.#O(r)&&(s=!1,this.#C(r)))}}while(!s&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#y();this.#u=void 0}#w(e){return this.#t.map(s=>{if(typeof s=="string")throw new Error("string type in extglob ast??");let[i,r,n,l]=s.toRegExpSource(e);return this.#i=this.#i||l,i}).filter(s=>!(this.isStart()&&this.isEnd())||!!s).join("|")}static#A(e,s,i=!1){let r=!1,n="",l=!1,h=!1;for(let c=0;c<e.length;c++){let u=e.charAt(c);if(r){r=!1,n+=(Dm.has(u)?"\\":"")+u;continue}if(u==="*"){if(h)continue;h=!0,n+=i&&/^[*]+$/.test(e)?bl:wl,s=!0;continue}else h=!1;if(u==="\\"){c===e.length-1?n+="\\\\":r=!0;continue}if(u==="["){let[d,m,S,b]=(0,Lm.parseClass)(e,c);if(S){n+=d,l=l||m,c+=S-1,s=s||b;continue}}if(u==="?"){n+=Li,s=!0;continue}n+=Nm(u)}return[n,(0,rs.unescape)(e),!!s,l]}};as.AST=os;Pe=os});var Ci=D(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.escape=void 0;var km=o((t,{windowsPathsNoEscape:e=!1,magicalBraces:s=!1}={})=>s?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");ls.escape=km});var Cl=D(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.unescape=z.escape=z.AST=z.Minimatch=z.match=z.makeRe=z.braceExpand=z.defaults=z.filter=z.GLOBSTAR=z.sep=z.minimatch=void 0;var Fm=fl(),hs=pl(),vl=Oi(),Mm=Ci(),jm=is(),Gm=o((t,e,s={})=>((0,hs.assertValidPattern)(e),!s.nocomment&&e.charAt(0)==="#"?!1:new Ke(e,s).match(t)),"minimatch");z.minimatch=Gm;var _m=/^\*+([^+@!?*[(]*)$/,Wm=o(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),Bm=o(t=>e=>e.endsWith(t),"starDotExtTestDot"),qm=o(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),Um=o(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),zm=/^\*+\.\*+$/,Hm=o(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),Vm=o(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),Ym=/^\.\*+$/,Xm=o(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),Km=/^\*+$/,Jm=o(t=>t.length!==0&&!t.startsWith("."),"starTest"),Zm=o(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),Qm=/^\?+([^+@!?*[(]*)?$/,eg=o(([t,e=""])=>{let s=Al([t]);return e?(e=e.toLowerCase(),i=>s(i)&&i.toLowerCase().endsWith(e)):s},"qmarksTestNocase"),tg=o(([t,e=""])=>{let s=Ll([t]);return e?(e=e.toLowerCase(),i=>s(i)&&i.toLowerCase().endsWith(e)):s},"qmarksTestNocaseDot"),sg=o(([t,e=""])=>{let s=Ll([t]);return e?i=>s(i)&&i.endsWith(e):s},"qmarksTestDot"),ig=o(([t,e=""])=>{let s=Al([t]);return e?i=>s(i)&&i.endsWith(e):s},"qmarksTest"),Al=o(([t])=>{let e=t.length;return s=>s.length===e&&!s.startsWith(".")},"qmarksTestNoExt"),Ll=o(([t])=>{let e=t.length;return s=>s.length===e&&s!=="."&&s!==".."},"qmarksTestNoExtDot"),Ol=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Sl={win32:{sep:"\\"},posix:{sep:"/"}};z.sep=Ol==="win32"?Sl.win32.sep:Sl.posix.sep;z.minimatch.sep=z.sep;z.GLOBSTAR=Symbol("globstar **");z.minimatch.GLOBSTAR=z.GLOBSTAR;var rg="[^/]",ng=rg+"*?",og="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",ag="(?:(?!(?:\\/|^)\\.).)*?",lg=o((t,e={})=>s=>(0,z.minimatch)(s,t,e),"filter");z.filter=lg;z.minimatch.filter=z.filter;var Ie=o((t,e={})=>Object.assign({},t,e),"ext"),hg=o(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return z.minimatch;let e=z.minimatch;return Object.assign(o((i,r,n={})=>e(i,r,Ie(t,n)),"m"),{Minimatch:class extends e.Minimatch{static{o(this,"Minimatch")}constructor(r,n={}){super(r,Ie(t,n))}static defaults(r){return e.defaults(Ie(t,r)).Minimatch}},AST:class extends e.AST{static{o(this,"AST")}constructor(r,n,l={}){super(r,n,Ie(t,l))}static fromGlob(r,n={}){return e.AST.fromGlob(r,Ie(t,n))}},unescape:o((i,r={})=>e.unescape(i,Ie(t,r)),"unescape"),escape:o((i,r={})=>e.escape(i,Ie(t,r)),"escape"),filter:o((i,r={})=>e.filter(i,Ie(t,r)),"filter"),defaults:o(i=>e.defaults(Ie(t,i)),"defaults"),makeRe:o((i,r={})=>e.makeRe(i,Ie(t,r)),"makeRe"),braceExpand:o((i,r={})=>e.braceExpand(i,Ie(t,r)),"braceExpand"),match:o((i,r,n={})=>e.match(i,r,Ie(t,n)),"match"),sep:e.sep,GLOBSTAR:z.GLOBSTAR})},"defaults");z.defaults=hg;z.minimatch.defaults=z.defaults;var cg=o((t,e={})=>((0,hs.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Fm.expand)(t,{max:e.braceExpandMax})),"braceExpand");z.braceExpand=cg;z.minimatch.braceExpand=z.braceExpand;var ug=o((t,e={})=>new Ke(t,e).makeRe(),"makeRe");z.makeRe=ug;z.minimatch.makeRe=z.makeRe;var fg=o((t,e,s={})=>{let i=new Ke(e,s);return t=t.filter(r=>i.match(r)),i.options.nonull&&!t.length&&t.push(e),t},"match");z.match=fg;z.minimatch.match=z.match;var El=/[?*]|[+@!]\(.*?\)|\[|\]/,pg=o(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Ke=class{static{o(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,s={}){(0,hs.assertValidPattern)(e),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=e,this.platform=s.platform||Ol,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let s of e)if(typeof s!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,s=this.options;if(!s.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],s.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let r=this.globParts.map((n,l,h)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=n[0]===""&&n[1]===""&&(n[2]==="?"||!El.test(n[2]))&&!El.test(n[3]),u=/^[a-z]:/i.test(n[0]);if(c)return[...n.slice(0,4),...n.slice(4).map(d=>this.parse(d))];if(u)return[n[0],...n.slice(1).map(d=>this.parse(d))]}return n.map(c=>this.parse(c))});if(this.debug(this.pattern,r),this.set=r.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let l=this.set[n];l[0]===""&&l[1]===""&&this.globParts[n][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i of e)for(let r=0;r<i.length;r++)i[r]==="**"&&(i[r]="*");let{optimizationLevel:s=1}=this.options;return s>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):s>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let r=i;for(;s[r+1]==="**";)r++;r!==i&&s.splice(i,r-i)}return s})}levelOneOptimize(e){return e.map(s=>(s=s.reduce((i,r)=>{let n=i[i.length-1];return r==="**"&&n==="**"?i:r===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(i.pop(),i):(i.push(r),i)},[]),s.length===0?[""]:s))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let s=!1;do{if(s=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let n=e[r];r===1&&n===""&&e[0]===""||(n==="."||n==="")&&(s=!0,e.splice(r,1),r--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(s=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let r=e[i-1];r&&r!=="."&&r!==".."&&r!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(s=!0,e.splice(i-1,2),i-=2)}}while(s);return e.length===0?[""]:e}firstPhasePreProcess(e){let s=!1;do{s=!1;for(let i of e){let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let l=r;for(;i[l+1]==="**";)l++;l>r&&i.splice(r+1,l-r);let h=i[r+1],c=i[r+2],u=i[r+3];if(h!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;s=!0,i.splice(r,1);let d=i.slice(0);d[r]="**",e.push(d),r--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){let h=i[l];l===1&&h===""&&i[0]===""||(h==="."||h==="")&&(s=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(s=!0,i.pop())}let n=0;for(;(n=i.indexOf("..",n+1))!==-1;){let l=i[n-1];if(l&&l!=="."&&l!==".."&&l!=="**"){s=!0;let c=n===1&&i[n+1]==="**"?["."]:[];i.splice(n-1,2,...c),i.length===0&&i.push(""),n-=2}}}}while(s);return e}secondPhasePreProcess(e){for(let s=0;s<e.length-1;s++)for(let i=s+1;i<e.length;i++){let r=this.partsMatch(e[s],e[i],!this.preserveMultipleSlashes);if(r){e[s]=[],e[i]=r;break}}return e.filter(s=>s.length)}partsMatch(e,s,i=!1){let r=0,n=0,l=[],h="";for(;r<e.length&&n<s.length;)if(e[r]===s[n])l.push(h==="b"?s[n]:e[r]),r++,n++;else if(i&&e[r]==="**"&&s[n]===e[r+1])l.push(e[r]),r++;else if(i&&s[n]==="**"&&e[r]===s[n+1])l.push(s[n]),n++;else if(e[r]==="*"&&s[n]&&(this.options.dot||!s[n].startsWith("."))&&s[n]!=="**"){if(h==="b")return!1;h="a",l.push(e[r]),r++,n++}else if(s[n]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(h==="a")return!1;h="b",l.push(s[n]),r++,n++}else return!1;return e.length===s.length&&l}parseNegate(){if(this.nonegate)return;let e=this.pattern,s=!1,i=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)s=!s,i++;i&&(this.pattern=e.slice(i)),this.negate=s}matchOne(e,s,i=!1){let r=0,n=0;if(this.isWindows){let h=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),c=!h&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),d=!u&&s[0]===""&&s[1]===""&&s[2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3]),m=c?3:h?0:void 0,S=d?3:u?0:void 0;if(typeof m=="number"&&typeof S=="number"){let[b,p]=[e[m],s[S]];b.toLowerCase()===p.toLowerCase()&&(s[S]=b,n=S,r=m)}}let{optimizationLevel:l=1}=this.options;return l>=2&&(e=this.levelTwoFileOptimize(e)),s.includes(z.GLOBSTAR)?this.#e(e,s,i,r,n):this.#i(e,s,i,r,n)}#e(e,s,i,r,n){let l=s.indexOf(z.GLOBSTAR,n),h=s.lastIndexOf(z.GLOBSTAR),[c,u,d]=i?[s.slice(n,l),s.slice(l+1),[]]:[s.slice(n,l),s.slice(l+1,h),s.slice(h+1)];if(c.length){let L=e.slice(r,r+c.length);if(!this.#i(L,c,i,0,0))return!1;r+=c.length,n+=c.length}let m=0;if(d.length){if(d.length+r>e.length)return!1;let L=e.length-d.length;if(this.#i(e,d,i,L,0))m=d.length;else{if(e[e.length-1]!==""||r+d.length===e.length||(L--,!this.#i(e,d,i,L,0)))return!1;m=d.length+1}}if(!u.length){let L=!!m;for(let R=r;R<e.length-m;R++){let O=String(e[R]);if(L=!0,O==="."||O===".."||!this.options.dot&&O.startsWith("."))return!1}return i||L}let S=[[[],0]],b=S[0],p=0,f=[0];for(let L of u)L===z.GLOBSTAR?(f.push(p),b=[[],0],S.push(b)):(b[0].push(L),p++);let w=S.length-1,y=e.length-m;for(let L of S)L[1]=y-(f[w--]+L[0].length);return!!this.#s(e,S,r,0,i,0,!!m)}#s(e,s,i,r,n,l,h){let c=s[r];if(!c){for(let m=i;m<e.length;m++){h=!0;let S=e[m];if(S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1}return h}let[u,d]=c;for(;i<=d;){if(this.#i(e.slice(0,i+u.length),u,n,i,0)&&l<this.maxGlobstarRecursion){let b=this.#s(e,s,i+u.length,r+1,n,l+1,h);if(b!==!1)return b}let S=e[i];if(S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1;i++}return n||null}#i(e,s,i,r,n){let l,h,c,u;for(l=r,h=n,u=e.length,c=s.length;l<u&&h<c;l++,h++){this.debug("matchOne loop");let d=s[h],m=e[l];if(this.debug(s,d,m),d===!1||d===z.GLOBSTAR)return!1;let S;if(typeof d=="string"?(S=m===d,this.debug("string match",d,m,S)):(S=d.test(m),this.debug("pattern match",d,m,S)),!S)return!1}if(l===u&&h===c)return!0;if(l===u)return i;if(h===c)return l===u-1&&e[l]==="";throw new Error("wtf?")}braceExpand(){return(0,z.braceExpand)(this.pattern,this.options)}parse(e){(0,hs.assertValidPattern)(e);let s=this.options;if(e==="**")return z.GLOBSTAR;if(e==="")return"";let i,r=null;(i=e.match(Km))?r=s.dot?Zm:Jm:(i=e.match(_m))?r=(s.nocase?s.dot?Um:qm:s.dot?Bm:Wm)(i[1]):(i=e.match(Qm))?r=(s.nocase?s.dot?tg:eg:s.dot?sg:ig)(i):(i=e.match(zm))?r=s.dot?Vm:Hm:(i=e.match(Ym))&&(r=Xm);let n=vl.AST.fromGlob(e,this.options).toMMPattern();return r&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:r}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let s=this.options,i=s.noglobstar?ng:s.dot?og:ag,r=new Set(s.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(m=>{if(m instanceof RegExp)for(let S of m.flags.split(""))r.add(S);return typeof m=="string"?pg(m):m===z.GLOBSTAR?z.GLOBSTAR:m._src});u.forEach((m,S)=>{let b=u[S+1],p=u[S-1];m!==z.GLOBSTAR||p===z.GLOBSTAR||(p===void 0?b!==void 0&&b!==z.GLOBSTAR?u[S+1]="(?:\\/|"+i+"\\/)?"+b:u[S]=i:b===void 0?u[S-1]=p+"(?:\\/|\\/"+i+")?":b!==z.GLOBSTAR&&(u[S-1]=p+"(?:\\/|\\/"+i+"\\/)"+b,u[S+1]=z.GLOBSTAR))});let d=u.filter(m=>m!==z.GLOBSTAR);if(this.partial&&d.length>=1){let m=[];for(let S=1;S<=d.length;S++)m.push(d.slice(0,S).join("/"));return"(?:"+m.join("|")+")"}return d.join("/")}).join("|"),[l,h]=e.length>1?["(?:",")"]:["",""];n="^"+l+n+h+"$",this.partial&&(n="^(?:\\/|"+l+n.slice(1,-1)+h+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,s=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&s)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let n=this.set;this.debug(this.pattern,"set",n);let l=r[r.length-1];if(!l)for(let h=r.length-2;!l&&h>=0;h--)l=r[h];for(let h of n){let c=r;if(i.matchBase&&h.length===1&&(c=[l]),this.matchOne(c,h,s))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return z.minimatch.defaults(e).Minimatch}};z.Minimatch=Ke;var dg=Oi();Object.defineProperty(z,"AST",{enumerable:!0,get:o(function(){return dg.AST},"get")});var mg=Ci();Object.defineProperty(z,"escape",{enumerable:!0,get:o(function(){return mg.escape},"get")});var gg=is();Object.defineProperty(z,"unescape",{enumerable:!0,get:o(function(){return gg.unescape},"get")});z.minimatch.AST=vl.AST;z.minimatch.Minimatch=Ke;z.minimatch.escape=Mm.escape;z.minimatch.unescape=jm.unescape});var Lg=D((Cb,Tl)=>{var Rl=te("path"),yg=il(),{minimatch:Rt}=Cl(),wg=el(),{glob:bg}=Ys();function Sg(t){let e=[],s=[];for(let i of t){let r=i.match(/^!+/);if(r&&(i=i.slice(r[0].length)),i=i.replace(/^\.?\/+/,""),r&&r[0].length%2===1)s.push(i);else{for(let l=0;l<s.length;++l){let h=s[l];Rt(i,h)&&s.splice(l,1)}e.push(i)}}for(let i of s)for(let r of Rt.match(e,i))e.splice(e.indexOf(r),1);return{patterns:e,negatedPatterns:s}}o(Sg,"appendNegatedPatterns");function xl(t){let e=Array.isArray(t.packages)?t.packages:t;if(!Array.isArray(e))throw cs({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return Sg(e)}o(xl,"getPatterns");function Pl(t,e){return t.name||yg(e)}o(Pl,"getPackageName");function Eg(t){return t=t.replace(/\\/g,"/"),t.endsWith("/")?t:`${t}/`}o(Eg,"getGlobPattern");function cs({Type:t=TypeError,message:e,code:s}){return Object.assign(new t(e),{code:s})}o(cs,"getError");function vg(t){return new Map(Array.from(t,e=>e.reverse()))}o(vg,"reverseResultMap");async function $l(t={}){if(!t||!t.pkg)throw cs({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});t.cwd||(t.cwd=process.cwd());let{workspaces:e=[]}=t.pkg,{patterns:s,negatedPatterns:i}=xl(e),r=new Map;if(!s.length&&!i.length)return r;let n=new Map,l=o(()=>({...t,ignore:[...t.ignore||[],"**/node_modules/**",...i]}),"getGlobOpts"),h=await bg(s.map(d=>Eg(d)),l());h=h.sort((d,m)=>d.localeCompare(m,"en"));let c=[];for(let d of s)c.push(...h.filter(m=>Rt(m,d,{partial:!0,windowsPathsNoEscape:!0})));for(let d of c){let m;try{m=await wg.normalize(Rl.join(t.cwd,d))}catch(p){if(p.code==="ENOENT"||p.code==="ENOTDIR")continue;throw p}let S=Pl(m.content,m.path),b=n.get(S);b||(b=new Set,n.set(S,b)),b.add(m.path)}let u=["must not have multiple workspaces with the same name"];for(let[d,m]of n)m.size>1?Ag(u,d,m):r.set(d,m.values().next().value);if(u.length>1)throw cs({Type:Error,message:u.join(`
|
|
31
|
+
`),code:"EDUPLICATEWORKSPACE"});return r}o($l,"mapWorkspaces");function Ag(t,e,s){t.push(`package '${e}' has conflicts in the following paths:`);for(let i of s)t.push(" "+i)}o(Ag,"addDuplicateErrorMessages");$l.virtual=function(t={}){if(!t||!t.lockfile)throw cs({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});t.cwd||(t.cwd=process.cwd());let{packages:e={}}=t.lockfile,{workspaces:s=[]}=e[""]||{},i=new Map,{patterns:r,negatedPatterns:n}=xl(s);if(!r.length&&!n.length)return i;n.push("**/node_modules/**");let l=Object.keys(e);for(let h of n)for(let c of Rt.match(l,h))l.splice(l.indexOf(c),1);for(let h of r)for(let c of Rt.match(l,h)){let u=Rl.join(t.cwd,c),d=Pl(e[c],u);i.set(u,d)}return vg(i)};Tl.exports=$l});export{Is as a,qt as b,ys as c,lt as d,Ut as e,jn as f,wf as g,Ko as h,Bs as i,Ys as j,Mo as k,Bo as l,Sa as m,La as n,Ra as o,ja as p,el as q,il as r,Cl as s,Lg as t};
|